diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-01-10 21:25:43 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-01-10 21:25:43 -0500 |
commit | 0ffdb6521065aeeb0eb792b36db33916e86847b0 (patch) | |
tree | 5288082faee894c72b95b4537dc95a53db1bae2a | |
parent | 418c70a8afd034ed1ded863bd60e1f11f714f962 (diff) |
Better comments for enemy health percentage code
-rw-r--r-- | engine/battle/core.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index a7c761ee2..5a6f20ce9 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -7637,7 +7637,7 @@ SendOutMonText: ld hl, GoMonText jr z, .skip_to_textbox - ; compute enemy helth remaining as a percentage + ; compute enemy health remaining as a percentage xor a ldh [hMultiplicand + 0], a ld hl, wEnemyMonHP @@ -7712,10 +7712,10 @@ WithdrawMonText: .WithdrawMonText: text_far _BattleMonNickCommaText text_asm -; Print text to withdraw mon -; depending on HP the message is different +; Depending on the HP lost since the enemy mon was sent out, the game prints a different text push de push bc + ; compute enemy health lost as a percentage ld hl, wEnemyMonHP + 1 ld de, wEnemyHPAtTimeOfPlayerSwitch + 1 ld b, [hl] |