summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/subtract_paid_money.asm2
-rw-r--r--home.asm6
-rw-r--r--text.asm8
3 files changed, 8 insertions, 8 deletions
diff --git a/engine/subtract_paid_money.asm b/engine/subtract_paid_money.asm
index a6a6ec2e..2f4c2243 100644
--- 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
+; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
SubtractAmountPaidFromMoney_:
ld de, wPlayerMoney
ld hl, hMoney ; total price of items
diff --git a/home.asm b/home.asm
index 28fb81c9..e0ef5539 100644
--- a/home.asm
+++ b/home.asm
@@ -333,10 +333,10 @@ GetCryData::
call BankswitchBack
; Cry headers have 3 channels,
- ; and start from index $14,
+ ; and start from index CRY_SFX_START,
; so add 3 times the cry id.
ld a, b
- ld c, $14
+ ld c, CRY_SFX_START
rlca ; * 2
add b
add c
@@ -1307,7 +1307,7 @@ CountSetBits::
ret
; subtracts the amount the player paid from their money
-; sets carry flag if there is enough money and unsets carry flag if not
+; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
SubtractAmountPaidFromMoney::
jpba SubtractAmountPaidFromMoney_
diff --git a/text.asm b/text.asm
index ff87054a..a97ac7c0 100644
--- a/text.asm
+++ b/text.asm
@@ -255,7 +255,7 @@ _TradeWentToText::
TX_RAM wcf4b
text " went"
line "to @"
- TX_RAM wGrassRate
+ TX_RAM wLinkEnemyTrainerName
text "."
done
@@ -267,7 +267,7 @@ _TradeForText::
done
_TradeSendsText::
- TX_RAM wGrassRate
+ TX_RAM wLinkEnemyTrainerName
text " sends"
line "@"
TX_RAM wcd6d
@@ -275,7 +275,7 @@ _TradeSendsText::
done
_TradeWavesFarewellText::
- TX_RAM wGrassRate
+ TX_RAM wLinkEnemyTrainerName
text " waves"
line "farewell as"
done
@@ -294,7 +294,7 @@ _TradeTakeCareText::
done
_TradeWillTradeText::
- TX_RAM wGrassRate
+ TX_RAM wLinkEnemyTrainerName
text " will"
line "trade @"
TX_RAM wcd6d