diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-17 10:56:28 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-17 10:56:28 -0500 |
commit | dd73b278b585266922424e09cd99faeeba02a2f4 (patch) | |
tree | dfe10f0e37b9de9a90453405db90921ecfc03a48 /engine/battle/core.asm | |
parent | 10bda1f6b2b57d44525b0b32e92fe09c8a2d10d9 (diff) |
Resolve some "???" comments
Diffstat (limited to 'engine/battle/core.asm')
-rw-r--r-- | engine/battle/core.asm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index 02f80eef..3826a182 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -2304,17 +2304,19 @@ WinTrainerBattle: call BattleWinSlideInEnemyTrainerFrontpic ld c, 40 call DelayFrames + ld a, [wBattleType] cp BATTLETYPE_CANLOSE jr nz, .skip_heal predef HealParty .skip_heal + ld a, [wDebugFlags] bit DEBUG_BATTLE_F, a - jr nz, .GiveMoney + jr nz, .skip_win_loss_text call PrintWinLossText +.skip_win_loss_text -.GiveMoney: ld a, [wAmuletCoin] and a call nz, .DoubleReward @@ -2576,7 +2578,8 @@ UpdateFaintedPlayerMon: ld a, [wWhichMonFaintedFirst] and a ret z - ret ; ?????????? + ; code was probably dummied out here + ret AskUseNextPokemon: call EmptyBattleTextbox @@ -2971,7 +2974,8 @@ EnemySwitch_SetMode: jp ShowSetEnemyMonAndSendOutAnimation CheckWhetherSwitchmonIsPredetermined: -; returns carry if: ??? +; returns the enemy switchmon index in b, or +; returns carry if the index is not yet determined. ld a, [wLinkMode] and a jr z, .not_linked @@ -2993,7 +2997,7 @@ CheckWhetherSwitchmonIsPredetermined: .check_wBattleHasJustStarted ld a, [wBattleHasJustStarted] and a - ld b, $0 + ld b, 0 jr nz, .return_carry and a |