Resolve some "???" comments

This commit is contained in:
Rangi
2020-11-17 11:09:02 -05:00
parent cd3fb2ca72
commit 9b3c45b14d
15 changed files with 33 additions and 25 deletions

View File

@@ -2366,18 +2366,20 @@ 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, .skip_win_loss_text
call PrintWinLossText
.skip_win_loss_text
jp .GiveMoney
jp .give_money
.mobile
call BattleWinSlideInEnemyTrainerFrontpic
@@ -2405,7 +2407,7 @@ WinTrainerBattle:
call ClearBGPalettes
ret
.GiveMoney:
.give_money
ld a, [wAmuletCoin]
and a
call nz, .DoubleReward
@@ -2678,7 +2680,8 @@ UpdateFaintedPlayerMon:
ld a, [wWhichMonFaintedFirst]
and a
ret z
ret ; ??????????
; code was probably dummied out here
ret
AskUseNextPokemon:
call EmptyBattleTextbox
@@ -3160,7 +3163,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
@@ -3182,7 +3186,7 @@ CheckWhetherSwitchmonIsPredetermined:
.check_wBattleHasJustStarted
ld a, [wBattleHasJustStarted]
and a
ld b, $0
ld b, 0
jr nz, .return_carry
and a

View File

@@ -4,7 +4,7 @@ BattleCommand_Spite:
ld a, [wAttackMissed]
and a
jp nz, .failed
ld bc, PARTYMON_STRUCT_LENGTH ; ????
ld bc, PARTYMON_STRUCT_LENGTH ; unused
ld hl, wEnemyMonMoves
ldh a, [hBattleTurn]
and a