ref: 09f07502b3aada1b6eef1e2c69944ea46b328c78
parent: dfe718d99e0f08c2ae77b5fe967c49e3b383f46d
author: Akatsuki-py <bluejapan73+dev@gmail.com>
date: Fri Jun 5 00:32:12 EDT 2020
fix SubtractAmountPaidFromMoney comment
--- a/engine/subtract_paid_money.asm
+++ b/engine/subtract_paid_money.asm
@@ -1,5 +1,5 @@
-; subtracts the amount the player paid from their money
-; sets carry flag if there is enough money and unsets carry flag if not
+; subtracts the amount the player paid from their money
+; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
SubtractAmountPaidFromMoney_:
ld de, wPlayerMoney
ld hl, hMoney ; total price of items
--- a/home.asm
+++ b/home.asm
@@ -1306,8 +1306,8 @@
ld [wNumSetBits], a
ret
-; subtracts the amount the player paid from their money
-; sets carry flag if there is enough money and unsets carry flag if not
+; subtracts the amount the player paid from their money
+; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
SubtractAmountPaidFromMoney::
jpba SubtractAmountPaidFromMoney_