summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/engine.asm1
-rw-r--r--data/battle_tower/parties.asm9
-rw-r--r--engine/battle/effect_commands.asm154
-rw-r--r--engine/battle/move_effects/baton_pass.asm6
-rw-r--r--engine/battle/move_effects/beat_up.asm3
-rw-r--r--engine/battle/move_effects/bide.asm1
-rw-r--r--engine/battle/move_effects/fury_cutter.asm1
-rw-r--r--engine/battle/move_effects/triple_kick.asm1
-rw-r--r--engine/events/battle_tower/trainer_text.asm2
-rw-r--r--engine/events/magikarp.asm1
-rw-r--r--engine/items/item_effects.asm1
-rw-r--r--engine/menus/menu.asm1
-rw-r--r--engine/movie/trade_animation.asm1
-rw-r--r--engine/overworld/npc_movement.asm1
-rw-r--r--engine/overworld/overworld.asm1
-rw-r--r--engine/pokedex/pokedex.asm1
-rw-r--r--home/audio.asm1
-rw-r--r--home/copy.asm4
-rw-r--r--home/palettes.asm1
-rw-r--r--home/time.asm1
-rw-r--r--mobile/mobile_40.asm1
-rw-r--r--mobile/mobile_46.asm1
22 files changed, 0 insertions, 194 deletions
diff --git a/audio/engine.asm b/audio/engine.asm
index 5dae1e3b6..482b1d1db 100644
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -2752,7 +2752,6 @@ LoadMusicByte::
ld a, [wCurMusicByte]
ret
-
INCLUDE "audio/notes.asm"
INCLUDE "audio/wave_samples.asm"
diff --git a/data/battle_tower/parties.asm b/data/battle_tower/parties.asm
index c81197656..15b7cdc4e 100644
--- a/data/battle_tower/parties.asm
+++ b/data/battle_tower/parties.asm
@@ -550,7 +550,6 @@ BattleTowerMons1:
db "BARIYA-DO@@"
-
BattleTowerMons2:
db UMBREON
@@ -1100,7 +1099,6 @@ BattleTowerMons2:
db "NUO-@@@@@@@"
-
BattleTowerMons3:
db JOLTEON
@@ -1650,7 +1648,6 @@ BattleTowerMons3:
db "OKORIZARU@@"
-
BattleTowerMons4:
db TAUROS
@@ -2200,7 +2197,6 @@ BattleTowerMons4:
db "EREBU-@@@@@"
-
BattleTowerMons5:
db KINGDRA
@@ -2750,7 +2746,6 @@ BattleTowerMons5:
db "HURI-ZA-@@@"
-
BattleTowerMons6:
db KINGDRA
@@ -3300,7 +3295,6 @@ BattleTowerMons6:
db "GORO-NIya@@"
-
BattleTowerMons7:
db JOLTEON
@@ -3850,7 +3844,6 @@ BattleTowerMons7:
db "KAMEtuKUSU@"
-
BattleTowerMons8:
db JOLTEON
@@ -4400,7 +4393,6 @@ BattleTowerMons8:
db "GURANBURU@@"
-
BattleTowerMons9:
db UMBREON
@@ -4950,7 +4942,6 @@ BattleTowerMons9:
db "BETOBETON@@"
-
BattleTowerMons10:
db HOUNDOOM
diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm
index e19cce189..35e94ee2d 100644
--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -7,7 +7,6 @@ DoPlayerTurn:
jr DoTurn
-
DoEnemyTurn:
call SetEnemyTurn
@@ -109,7 +108,6 @@ DoMove:
.DoMoveEffectCommand:
jp hl
-
CheckTurn:
BattleCommand_CheckTurn:
; checkturn
@@ -336,7 +334,6 @@ CheckPlayerTurn:
call CantMove
jp EndTurn
-
CantMove:
ld a, BATTLE_VARS_SUBSTATUS1
call GetBattleVarAddr
@@ -363,15 +360,11 @@ CantMove:
res SUBSTATUS_FLYING, [hl]
jp AppearUserRaiseSub
-
-
OpponentCantMove:
call BattleCommand_SwitchTurn
call CantMove
jp BattleCommand_SwitchTurn
-
-
CheckEnemyTurn:
ld hl, wEnemySubStatus4
@@ -595,7 +588,6 @@ EndTurn:
ld [wTurnEnded], a
jp ResetDamage
-
MoveDisabled:
; Make sure any charged moves fail
@@ -611,7 +603,6 @@ MoveDisabled:
ld hl, DisabledMoveText
jp StdBattleTextBox
-
HitConfusion:
ld hl, HurtItselfText
@@ -642,7 +633,6 @@ HitConfusion:
call DoPlayerDamage
jp BattleCommand_RaiseSub
-
BattleCommand_CheckObedience:
; checkobedience
@@ -928,7 +918,6 @@ BattleCommand_CheckObedience:
jp EndMoveEffect
-
IgnoreSleepOnly:
ld a, BATTLE_VARS_MOVE_ANIM
@@ -957,13 +946,11 @@ IgnoreSleepOnly:
scf
ret
-
BattleCommand_UsedMoveText:
; usedmovetext
farcall DisplayUsedMoveText
ret
-
CheckUserIsCharging:
ld a, [hBattleTurn]
@@ -975,7 +962,6 @@ CheckUserIsCharging:
and a
ret
-
BattleCommand_DoTurn:
call CheckUserIsCharging
ret nz
@@ -1142,7 +1128,6 @@ CheckMimicUsed:
and a
ret
-
BattleCommand_Critical:
; critical
@@ -1421,7 +1406,6 @@ BattleCommand_Stab:
ld [wTypeModifier], a
ret
-
BattleCheckTypeMatchup:
ld hl, wEnemyMonType1
ld a, [hBattleTurn]
@@ -1501,7 +1485,6 @@ CheckTypeMatchup:
pop hl
ret
-
BattleCommand_ResetTypeMatchup:
; Reset the type matchup multiplier to 1.0, if the type matchup is not 0.
; If there is immunity in play, the move automatically misses.
@@ -1521,7 +1504,6 @@ BattleCommand_ResetTypeMatchup:
ld [wTypeMatchup], a
ret
-
INCLUDE "engine/battle/ai/switch.asm"
INCLUDE "data/types/type_matchups.asm"
@@ -1578,7 +1560,6 @@ BattleCommand_DamageVariation:
ld [hl], a
ret
-
BattleCommand_CheckHit:
; checkhit
@@ -1914,7 +1895,6 @@ BattleCommand_EffectChance:
and a
ret
-
BattleCommand_LowerSub:
; lowersub
@@ -1983,14 +1963,12 @@ BattleCommand_LowerSub:
ld [wSomeoneIsRampaging], a
ret
-
BattleCommand_MoveAnim:
; moveanim
call BattleCommand_LowerSub
call BattleCommand_MoveAnimNoSub
jp BattleCommand_RaiseSub
-
BattleCommand_MoveAnimNoSub:
ld a, [wAttackMissed]
and a
@@ -2055,7 +2033,6 @@ BattleCommand_MoveAnimNoSub:
ld [wNumHits], a
jp PlayFXAnimID
-
BattleCommand_StatUpAnim:
ld a, [wAttackMissed]
and a
@@ -2064,7 +2041,6 @@ BattleCommand_StatUpAnim:
xor a
jr BattleCommand_StatUpDownAnim
-
BattleCommand_StatDownAnim:
ld a, [wAttackMissed]
and a
@@ -2088,7 +2064,6 @@ BattleCommand_StatUpDownAnim:
ld d, 0
jp PlayFXAnimID
-
BattleCommand_SwitchTurn:
; switchturn
@@ -2097,7 +2072,6 @@ BattleCommand_SwitchTurn:
ld [hBattleTurn], a
ret
-
BattleCommand_RaiseSub:
; raisesub
@@ -2117,7 +2091,6 @@ BattleCommand_RaiseSub:
ld a, SUBSTITUTE
jp LoadAnim
-
BattleCommand_FailureText:
; failuretext
; If the move missed or failed, load the appropriate
@@ -2160,7 +2133,6 @@ BattleCommand_FailureText:
call AppearUserRaiseSub
jp EndMoveEffect
-
BattleCommand_ApplyDamage:
; applydamage
@@ -2253,7 +2225,6 @@ BattleCommand_ApplyDamage:
ld [de], a
ret
-
GetFailureResultText:
ld hl, DoesntAffectText
ld de, DoesntAffectText
@@ -2322,7 +2293,6 @@ FailText_CheckOpponentProtect:
.not_protected
jp StdBattleTextBox
-
BattleCommand_BideFailText:
ld a, [wAttackMissed]
and a
@@ -2333,7 +2303,6 @@ BattleCommand_BideFailText:
jp z, PrintDoesntAffect
jp PrintButItFailed
-
BattleCommand_CriticalText:
; criticaltext
; Prints the message for critical hits or one-hit KOs.
@@ -2378,7 +2347,6 @@ BattleCommand_StartLoop:
ld [hl], a
ret
-
BattleCommand_SuperEffectiveLoopText:
; supereffectivelooptext
@@ -2402,7 +2370,6 @@ BattleCommand_SuperEffectiveText:
.print
jp StdBattleTextBox
-
BattleCommand_CheckDestinyBond:
; checkdestinybond
@@ -2490,7 +2457,6 @@ BattleCommand_CheckDestinyBond:
.finish
jp EndMoveEffect
-
BattleCommand_BuildOpponentRage:
; buildopponentrage
@@ -2522,7 +2488,6 @@ BattleCommand_BuildOpponentRage:
call StdBattleTextBox
jp BattleCommand_SwitchTurn
-
BattleCommand_RageDamage:
; ragedamage
@@ -2551,7 +2516,6 @@ BattleCommand_RageDamage:
ld [wCurDamage + 1], a
ret
-
EndMoveEffect:
ld a, [wBattleScriptBufferAddress]
ld l, a
@@ -2563,7 +2527,6 @@ EndMoveEffect:
ld [hl], a
ret
-
DittoMetalPowder:
ld a, MON_SPECIES
call BattlePartyAttr
@@ -2600,7 +2563,6 @@ DittoMetalPowder:
rr c
ret
-
BattleCommand_DamageStats:
; damagestats
@@ -2692,7 +2654,6 @@ PlayerAttackDamage:
and a
ret
-
TruncateHL_BC:
.loop
; Truncate 16-bit values hl and bc to 8-bit values b and c respectively.
@@ -2738,7 +2699,6 @@ TruncateHL_BC:
ld b, l
ret
-
GetDamageStatsCritical:
; Return carry if non-critical.
@@ -2789,7 +2749,6 @@ GetDamageStats:
pop hl
ret
-
ThickClubBoost:
; Return in hl the stat value at hl.
@@ -2805,7 +2764,6 @@ ThickClubBoost:
pop bc
ret
-
LightBallBoost:
; Return in hl the stat value at hl.
@@ -2821,7 +2779,6 @@ LightBallBoost:
pop bc
ret
-
SpeciesItemBoost:
; Return in hl the stat value at hl.
@@ -2862,7 +2819,6 @@ SpeciesItemBoost:
rl h
ret
-
EnemyAttackDamage:
call ResetDamage
@@ -2941,7 +2897,6 @@ EnemyAttackDamage:
and a
ret
-
INCLUDE "engine/battle/move_effects/beat_up.asm"
BattleCommand_ClearMissDamage:
@@ -2952,7 +2907,6 @@ BattleCommand_ClearMissDamage:
jp ResetDamage
-
HitSelfInConfusion:
call ResetDamage
ld a, [hBattleTurn]
@@ -2989,7 +2943,6 @@ HitSelfInConfusion:
ld e, a
ret
-
BattleCommand_DamageCalc:
; damagecalc
@@ -3219,7 +3172,6 @@ BattleCommand_DamageCalc:
ret
-
INCLUDE "data/types/type_boost_items.asm"
BattleCommand_ConstantDamage:
@@ -3422,7 +3374,6 @@ BattleCommand_DefrostOpponent:
ld [hl], a
ret
-
INCLUDE "engine/battle/move_effects/sleep_talk.asm"
INCLUDE "engine/battle/move_effects/destiny_bond.asm"
@@ -3454,7 +3405,6 @@ PlayFXAnimID:
callfar PlayBattleAnim
ret
-
DoEnemyDamage:
ld hl, wCurDamage
ld a, [hli]
@@ -3515,7 +3465,6 @@ DoEnemyDamage:
.did_no_damage
jp RefreshBattleHuds
-
DoPlayerDamage:
ld hl, wCurDamage
ld a, [hli]
@@ -3576,7 +3525,6 @@ DoPlayerDamage:
.did_no_damage
jp RefreshBattleHuds
-
DoSubstituteDamage:
ld hl, SubTookDamageText
call StdBattleTextBox
@@ -3634,7 +3582,6 @@ DoSubstituteDamage:
.done
jp ResetDamage
-
UpdateMoveData:
ld a, BATTLE_VARS_MOVE_ANIM
@@ -3652,7 +3599,6 @@ UpdateMoveData:
call GetMoveName
jp CopyName1
-
BattleCommand_SleepTarget:
; sleeptarget
@@ -3724,7 +3670,6 @@ BattleCommand_SleepTarget:
pop hl
jp StdBattleTextBox
-
.CheckAIRandomFail:
; Enemy turn
ld a, [hBattleTurn]
@@ -3753,7 +3698,6 @@ BattleCommand_SleepTarget:
xor a
ret
-
BattleCommand_PoisonTarget:
; poisontarget
@@ -3789,7 +3733,6 @@ BattleCommand_PoisonTarget:
farcall UseHeldStatusHealingItem
ret
-
BattleCommand_Poison:
; poison
@@ -3878,13 +3821,11 @@ BattleCommand_Poison:
pop hl
jp StdBattleTextBox
-
.apply_poison
call AnimateCurrentMove
call PoisonOpponent
jp RefreshBattleHuds
-
.check_toxic
ld a, BATTLE_VARS_SUBSTATUS5_OPP
call GetBattleVarAddr
@@ -3899,7 +3840,6 @@ BattleCommand_Poison:
cp EFFECT_TOXIC
ret
-
CheckIfTargetIsPoisonType:
ld de, wEnemyMonType1
ld a, [hBattleTurn]
@@ -3915,28 +3855,24 @@ CheckIfTargetIsPoisonType:
cp POISON
ret
-
PoisonOpponent:
ld a, BATTLE_VARS_STATUS_OPP
call GetBattleVarAddr
set PSN, [hl]
jp UpdateOpponentInParty
-
BattleCommand_DrainTarget:
; draintarget
call SapHealth
ld hl, SuckedHealthText
jp StdBattleTextBox
-
BattleCommand_EatDream:
; eatdream
call SapHealth
ld hl, DreamEatenText
jp StdBattleTextBox
-
SapHealth:
; Divide damage by 2, store it in hDividend
ld hl, wCurDamage
@@ -4030,7 +3966,6 @@ SapHealth:
call RefreshBattleHuds
jp UpdateBattleMonInParty
-
BattleCommand_BurnTarget:
; burntarget
@@ -4072,7 +4007,6 @@ BattleCommand_BurnTarget:
farcall UseHeldStatusHealingItem
ret
-
Defrost:
ld a, [hl]
and 1 << FRZ
@@ -4098,7 +4032,6 @@ Defrost:
ld hl, DefrostedOpponentText
jp StdBattleTextBox
-
BattleCommand_FreezeTarget:
; freezetarget
@@ -4152,7 +4085,6 @@ BattleCommand_FreezeTarget:
ld [hl], $1
ret
-
BattleCommand_ParalyzeTarget:
; paralyzetarget
@@ -4189,7 +4121,6 @@ BattleCommand_ParalyzeTarget:
ld hl, UseHeldStatusHealingItem
jp CallBattleCore
-
BattleCommand_AttackUp:
; attackup
ld b, ATTACK
@@ -4268,7 +4199,6 @@ BattleCommand_StatUp:
ret nz
jp StatUpAnimation
-
CheckIfStatCanBeRaised:
ld a, b
ld [wLoweredStat], a
@@ -4348,7 +4278,6 @@ CheckIfStatCanBeRaised:
ld [wFailedMessage], a
ret
-
.stats_already_max
pop hl
dec [hl]
@@ -4361,13 +4290,11 @@ CheckIfStatCanBeRaised:
ld [wAttackMissed], a
ret
-
.stat_raise_failed
ld a, $1
ld [wFailedMessage], a
ret
-
StatUpAnimation:
ld bc, wPlayerMinimized
ld hl, DropPlayerSub
@@ -4393,7 +4320,6 @@ StatUpAnimation:
call WaitBGMap
jp BattleCommand_MoveDelay
-
BattleCommand_AttackDown:
; attackdown
ld a, ATTACK
@@ -4586,7 +4512,6 @@ BattleCommand_StatDown:
ld [wAttackMissed], a
ret
-
CheckMist:
ld a, BATTLE_VARS_MOVE_EFFECT
call GetBattleVar
@@ -4612,7 +4537,6 @@ CheckMist:
bit SUBSTATUS_MIST, a
ret
-
BattleCommand_StatUpMessage:
ld a, [wFailedMessage]
and a
@@ -4643,7 +4567,6 @@ BattleCommand_StatUpMessage:
text_jump UnknownText_0x1c0ce0
db "@"
-
BattleCommand_StatDownMessage:
ld a, [wFailedMessage]
and a
@@ -4673,7 +4596,6 @@ BattleCommand_StatDownMessage:
text_jump UnknownText_0x1c0d06
db "@"
-
TryLowerStat:
; Lower stat c from stat struct hl (buffer de).
@@ -4717,7 +4639,6 @@ TryLowerStat:
and a
ret
-
BattleCommand_StatUpFailText:
; statupfailtext
ld a, [wFailedMessage]
@@ -4736,7 +4657,6 @@ BattleCommand_StatUpFailText:
ld hl, WontRiseAnymoreText
jp StdBattleTextBox
-
BattleCommand_StatDownFailText:
; statdownfailtext
ld a, [wFailedMessage]
@@ -4758,7 +4678,6 @@ BattleCommand_StatDownFailText:
ld hl, WontDropAnymoreText
jp StdBattleTextBox
-
GetStatName:
ld hl, StatNames
ld c, "@"
@@ -4813,7 +4732,6 @@ ResetMiss:
ld [wAttackMissed], a
ret
-
LowerStat:
ld [wLoweredStat], a
@@ -4885,7 +4803,6 @@ LowerStat:
ld [wFailedMessage], a
ret
-
BattleCommand_TriStatusChance:
; tristatuschance
@@ -4914,7 +4831,6 @@ BattleCommand_Curl:
set SUBSTATUS_CURLED, [hl]
ret
-
BattleCommand_RaiseSubNoAnim:
ld hl, GetBattleMonBackpic
ld a, [hBattleTurn]
@@ -4927,7 +4843,6 @@ BattleCommand_RaiseSubNoAnim:
call CallBattleCore
jp WaitBGMap
-
BattleCommand_LowerSubNoAnim:
ld hl, DropPlayerSub
ld a, [hBattleTurn]
@@ -4940,7 +4855,6 @@ BattleCommand_LowerSubNoAnim:
call CallBattleCore
jp WaitBGMap
-
CalcPlayerStats:
ld hl, wPlayerAtkLevel
ld de, wPlayerStats
@@ -4962,7 +4876,6 @@ CalcPlayerStats:
jp BattleCommand_SwitchTurn
-
CalcEnemyStats:
ld hl, wEnemyAtkLevel
ld de, wEnemyStats
@@ -4981,7 +4894,6 @@ CalcEnemyStats:
jp BattleCommand_SwitchTurn
-
CalcStats:
.loop
push af
@@ -5051,7 +4963,6 @@ CalcStats:
ret
-
INCLUDE "engine/battle/move_effects/bide.asm"
BattleCommand_CheckRampage:
@@ -5091,7 +5002,6 @@ BattleCommand_CheckRampage:
ld b, rampage_command
jp SkipToBattleCommand
-
BattleCommand_Rampage:
; rampage
@@ -5119,7 +5029,6 @@ BattleCommand_Rampage:
ld [wSomeoneIsRampaging], a
ret
-
INCLUDE "engine/battle/move_effects/teleport.asm"
SetBattleDraw:
@@ -5129,7 +5038,6 @@ SetBattleDraw:
ld [wBattleResult], a
ret
-
BattleCommand_ForceSwitch:
; forceswitch
@@ -5349,7 +5257,6 @@ BattleCommand_ForceSwitch:
.do_text
jp StdBattleTextBox
-
CheckPlayerHasMonToSwitchTo:
ld a, [wPartyCount]
ld d, a
@@ -5379,7 +5286,6 @@ CheckPlayerHasMonToSwitchTo:
and a
ret
-
BattleCommand_EndLoop:
; endloop
@@ -5514,7 +5420,6 @@ BattleCommand_EndLoop:
ld [wBattleScriptBufferAddress], a
ret
-
BattleCommand_FakeOut:
ld a, [wAttackMissed]
and a
@@ -5536,7 +5441,6 @@ BattleCommand_FakeOut:
ld [wAttackMissed], a
ret
-
BattleCommand_FlinchTarget:
call CheckSubstituteOpp
ret nz
@@ -5561,7 +5465,6 @@ FlinchTarget:
set SUBSTATUS_FLINCHED, [hl]
jp EndRechargeOpp
-
CheckOpponentWentFirst:
; Returns a=0, z if user went first
; Returns a=1, nz if opponent went first
@@ -5573,7 +5476,6 @@ CheckOpponentWentFirst:
pop bc
ret
-
BattleCommand_HeldFlinch:
; kingsrock
@@ -5602,7 +5504,6 @@ BattleCommand_HeldFlinch:
set SUBSTATUS_FLINCHED, [hl]
ret
-
BattleCommand_OHKO:
; ohko
@@ -5649,7 +5550,6 @@ BattleCommand_OHKO:
ld [wAttackMissed], a
ret
-
BattleCommand_CheckCharge:
; checkcharge
@@ -5663,7 +5563,6 @@ BattleCommand_CheckCharge:
ld b, charge_command
jp SkipToBattleCommand
-
BattleCommand_Charge:
; charge
@@ -5809,7 +5708,6 @@ BattleCommand3c:
; unused
ret
-
BattleCommand_TrapTarget:
; traptarget
@@ -5934,7 +5832,6 @@ BattleCommand_Recoil:
ld hl, RecoilText
jp StdBattleTextBox
-
BattleCommand_ConfuseTarget:
; confusetarget
@@ -6038,7 +5935,6 @@ BattleCommand_Confuse_CheckSnore_Swagger_ConfuseHit:
ret z
jp PrintDidntAffect2
-
BattleCommand_Paralyze:
; paralyze
@@ -6119,7 +6015,6 @@ BattleCommand_Paralyze:
call AnimateFailedMove
jp PrintDoesntAffect
-
CheckMoveTypeMatchesTarget:
; Compare move type to opponent type.
; Return z if matching the opponent type,
@@ -6155,7 +6050,6 @@ CheckMoveTypeMatchesTarget:
pop hl
ret
-
INCLUDE "engine/battle/move_effects/substitute.asm"
BattleCommand_RechargeNextTurn:
@@ -6165,7 +6059,6 @@ BattleCommand_RechargeNextTurn:
set SUBSTATUS_RECHARGE, [hl]
ret
-
EndRechargeOpp:
push hl
ld a, BATTLE_VARS_SUBSTATUS4_OPP
@@ -6174,7 +6067,6 @@ EndRechargeOpp:
pop hl
ret
-
INCLUDE "engine/battle/move_effects/rage.asm"
BattleCommand_DoubleFlyingDamage:
@@ -6185,7 +6077,6 @@ BattleCommand_DoubleFlyingDamage:
ret z
jr DoubleDamage
-
BattleCommand_DoubleUndergroundDamage:
; doubleundergrounddamage
ld a, BATTLE_VARS_SUBSTATUS3_OPP
@@ -6208,7 +6099,6 @@ DoubleDamage:
.quit
ret
-
INCLUDE "engine/battle/move_effects/mimic.asm"
INCLUDE "engine/battle/move_effects/leech_seed.asm"
@@ -6254,7 +6144,6 @@ BattleCommand_ResetStats:
jr nz, .next
ret
-
BattleCommand_Heal:
; heal
@@ -6337,7 +6226,6 @@ BattleCommand_Heal:
ld hl, HPIsFullText
jp StdBattleTextBox
-
INCLUDE "engine/battle/move_effects/transform.asm"
BattleSideCopy:
@@ -6355,12 +6243,10 @@ BattleSideCopy:
.copy
jp CopyBytes
-
BattleEffect_ButItFailed:
call AnimateFailedMove
jp PrintButItFailed
-
ClearLastMove:
ld a, BATTLE_VARS_LAST_COUNTER_MOVE
call GetBattleVarAddr
@@ -6373,7 +6259,6 @@ ClearLastMove:
ld [hl], a
ret
-
ResetActorDisable:
ld a, [hBattleTurn]
and a
@@ -6390,7 +6275,6 @@ ResetActorDisable:
ld [wDisabledMove], a
ret
-
BattleCommand_Screen:
; screen
@@ -6436,19 +6320,16 @@ BattleCommand_Screen:
call AnimateFailedMove
jp PrintButItFailed
-
PrintDoesntAffect:
; 'it doesn't affect'
ld hl, DoesntAffectText
jp StdBattleTextBox
-
PrintNothingHappened:
; 'but nothing happened!'
ld hl, NothingHappenedText
jp StdBattleTextBox
-
TryPrintButItFailed:
ld a, [wAlreadyFailed]
and a
@@ -6461,7 +6342,6 @@ PrintButItFailed:
ld hl, ButItFailedText
jp StdBattleTextBox
-
FailMove:
call AnimateFailedMove
; fallthrough
@@ -6471,33 +6351,28 @@ FailMimic:
ld de, ItFailedText ; 'it failed!'
jp FailText_CheckOpponentProtect
-
PrintDidntAffect:
; 'it didn't affect'
ld hl, DidntAffect1Text
jp StdBattleTextBox
-
PrintDidntAffect2:
call AnimateFailedMove
ld hl, DidntAffect1Text ; 'it didn't affect'
ld de, DidntAffect2Text ; 'it didn't affect'
jp FailText_CheckOpponentProtect
-
PrintParalyze:
; 'paralyzed! maybe it can't attack!'
ld hl, ParalyzedText
jp StdBattleTextBox
-
CheckSubstituteOpp:
ld a, BATTLE_VARS_SUBSTATUS4_OPP
call GetBattleVar
bit SUBSTATUS_SUBSTITUTE, a
ret
-
INCLUDE "engine/battle/move_effects/selfdestruct.asm"
INCLUDE "engine/battle/move_effects/mirror_move.asm"
@@ -6528,7 +6403,6 @@ CheckUserMove:
and a
ret
-
ResetTurn:
ld hl, wPlayerCharging
ld a, [hBattleTurn]
@@ -6543,7 +6417,6 @@ ResetTurn:
call DoMove
jp EndMoveEffect
-
INCLUDE "engine/battle/move_effects/thief.asm"
BattleCommand_ArenaTrap:
@@ -6572,7 +6445,6 @@ BattleCommand_ArenaTrap:
call AnimateFailedMove
jp PrintButItFailed
-
INCLUDE "engine/battle/move_effects/nightmare.asm"
BattleCommand_Defrost:
@@ -6606,7 +6478,6 @@ BattleCommand_Defrost:
ld hl, WasDefrostedText
jp StdBattleTextBox
-
INCLUDE "engine/battle/move_effects/curse.asm"
INCLUDE "engine/battle/move_effects/protect.asm"
@@ -6627,7 +6498,6 @@ BattleCommand5d:
; unused
ret
-
INCLUDE "engine/battle/move_effects/fury_cutter.asm"
INCLUDE "engine/battle/move_effects/attract.asm"
@@ -6653,7 +6523,6 @@ SafeCheckSafeguard:
pop hl
ret
-
BattleCommand_CheckSafeguard:
; checksafeguard
ld hl, wEnemyScreens
@@ -6671,7 +6540,6 @@ BattleCommand_CheckSafeguard:
call StdBattleTextBox
jp EndMoveEffect
-
INCLUDE "engine/battle/move_effects/magnitude.asm"
INCLUDE "engine/battle/move_effects/baton_pass.asm"
@@ -6811,7 +6679,6 @@ BattleCommand_DoubleMinimizeDamage:
ld [hl], a
ret
-
BattleCommand_SkipSunCharge:
; mimicsuncharge
ld a, [wBattleWeather]
@@ -6820,7 +6687,6 @@ BattleCommand_SkipSunCharge:
ld b, charge_command
jp SkipToBattleCommand
-
INCLUDE "engine/battle/move_effects/future_sight.asm"
INCLUDE "engine/battle/move_effects/thunder.asm"
@@ -6832,7 +6698,6 @@ CheckHiddenOpponent:
and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
ret
-
GetUserItem:
; Return the effect of the user's item in bc, and its id at hl.
ld hl, wBattleMonItem
@@ -6844,7 +6709,6 @@ GetUserItem:
ld b, [hl]
jp GetItemHeldEffect
-
GetOpponentItem:
; Return the effect of the opponent's item in bc, and its id at hl.
ld hl, wEnemyMonItem
@@ -6856,7 +6720,6 @@ GetOpponentItem:
ld b, [hl]
jp GetItemHeldEffect
-
GetItemHeldEffect:
; Return the effect of item b in bc.
ld a, b
@@ -6877,7 +6740,6 @@ GetItemHeldEffect:
pop hl
ret
-
AnimateCurrentMoveEitherSide:
push hl
push de
@@ -6894,7 +6756,6 @@ AnimateCurrentMoveEitherSide:
pop hl
ret
-
AnimateCurrentMove:
push hl
push de
@@ -6911,7 +6772,6 @@ AnimateCurrentMove:
pop hl
ret
-
PlayDamageAnim:
xor a
ld [wFXAnimID + 1], a
@@ -6934,7 +6794,6 @@ PlayDamageAnim:
jp PlayUserBattleAnim
-
LoadMoveAnim:
xor a
ld [wNumHits], a
@@ -6962,7 +6821,6 @@ PlayUserBattleAnim:
pop hl
ret
-
PlayOpponentBattleAnim:
ld a, e
ld [wFXAnimID], a
@@ -6984,26 +6842,22 @@ PlayOpponentBattleAnim:
pop hl
ret
-
CallBattleCore:
ld a, BANK("Battle Core")
rst FarCall
ret
-
AnimateFailedMove:
call BattleCommand_LowerSub
call BattleCommand_MoveDelay
jp BattleCommand_RaiseSub
-
BattleCommand_MoveDelay:
; movedelay
; Wait 40 frames.
ld c, 40
jp DelayFrames
-
BattleCommand_ClearText:
; cleartext
@@ -7031,7 +6885,6 @@ SkipToBattleCommand:
ld [wBattleScriptBufferAddress], a
ret
-
GetMoveAttr:
; Assuming hl = Moves + x, return attribute x of move a.
push bc
@@ -7041,7 +6894,6 @@ GetMoveAttr:
pop bc
ret
-
GetMoveData:
; Copy move struct a to de.
ld hl, Moves
@@ -7050,27 +6902,22 @@ GetMoveData:
ld a, BANK(Moves)
jp FarCopyBytes
-
GetMoveByte:
ld a, BANK(Moves)
jp GetFarByte
-
DisappearUser:
farcall _DisappearUser
ret
-
AppearUserLowerSub:
farcall _AppearUserLowerSub
ret
-
AppearUserRaiseSub:
farcall _AppearUserRaiseSub
ret
-
_CheckBattleScene:
; Checks the options. Returns carry if battle animations are disabled.
push hl
@@ -7081,4 +6928,3 @@ _CheckBattleScene:
pop de
pop hl
ret
-
diff --git a/engine/battle/move_effects/baton_pass.asm b/engine/battle/move_effects/baton_pass.asm
index 5f15b3cea..bde7e18c0 100644
--- a/engine/battle/move_effects/baton_pass.asm
+++ b/engine/battle/move_effects/baton_pass.asm
@@ -79,7 +79,6 @@ BattleCommand_BatonPass:
jr ResetBatonPassStatus
-
BatonPass_LinkPlayerSwitch:
ld a, [wLinkMode]
and a
@@ -97,7 +96,6 @@ BatonPass_LinkPlayerSwitch:
ld [wBattlePlayerAction], a
ret
-
BatonPass_LinkEnemySwitch:
ld a, [wLinkMode]
and a
@@ -123,12 +121,10 @@ BatonPass_LinkEnemySwitch:
.switch
jp CloseWindow
-
FailedBatonPass:
call AnimateFailedMove
jp PrintButItFailed
-
ResetBatonPassStatus:
; Reset status changes that aren't passed by Baton Pass.
@@ -168,7 +164,6 @@ ResetBatonPassStatus:
ld [wEnemyWrapCount], a
ret
-
CheckAnyOtherAlivePartyMons:
ld hl, wPartyMon1HP
ld a, [wPartyCount]
@@ -177,7 +172,6 @@ CheckAnyOtherAlivePartyMons:
ld e, a
jr CheckAnyOtherAliveMons
-
CheckAnyOtherAliveEnemyMons:
ld hl, wOTPartyMon1HP
ld a, [wOTPartyCount]
diff --git a/engine/battle/move_effects/beat_up.asm b/engine/battle/move_effects/beat_up.asm
index 5e6cfae22..673fc46c6 100644
--- a/engine/battle/move_effects/beat_up.asm
+++ b/engine/battle/move_effects/beat_up.asm
@@ -193,12 +193,10 @@ BattleCommand_BeatUp:
ld d, a
ret
-
.beatup_fail
ld b, buildopponentrage_command
jp SkipToBattleCommand
-
BattleCommand_BeatUpFailText:
; beatupfailtext
@@ -208,7 +206,6 @@ BattleCommand_BeatUpFailText:
jp PrintButItFailed
-
GetBeatupMonLocation:
push bc
ld c, a
diff --git a/engine/battle/move_effects/bide.asm b/engine/battle/move_effects/bide.asm
index d7d8203b0..53abd2e07 100644
--- a/engine/battle/move_effects/bide.asm
+++ b/engine/battle/move_effects/bide.asm
@@ -69,7 +69,6 @@ BattleCommand_StoreEnergy:
call StdBattleTextBox
jp EndMoveEffect
-
BattleCommand_UnleashEnergy:
; unleashenergy
diff --git a/engine/battle/move_effects/fury_cutter.asm b/engine/battle/move_effects/fury_cutter.asm
index a3a8c44b3..ab096b447 100644
--- a/engine/battle/move_effects/fury_cutter.asm
+++ b/engine/battle/move_effects/fury_cutter.asm
@@ -38,7 +38,6 @@ BattleCommand_FuryCutter:
ld [hl], a
ret
-
ResetFuryCutterCount:
push hl
diff --git a/engine/battle/move_effects/triple_kick.asm b/engine/battle/move_effects/triple_kick.asm
index 358e84b94..8c0253858 100644
--- a/engine/battle/move_effects/triple_kick.asm
+++ b/engine/battle/move_effects/triple_kick.asm
@@ -26,7 +26,6 @@ BattleCommand_TripleKick:
ld [hl], a
ret
-
BattleCommand_KickCounter:
; kickcounter
diff --git a/engine/events/battle_tower/trainer_text.asm b/engine/events/battle_tower/trainer_text.asm
index 2c9902bf0..e2db148b7 100644
--- a/engine/events/battle_tower/trainer_text.asm
+++ b/engine/events/battle_tower/trainer_text.asm
@@ -530,8 +530,6 @@ BTWinM25:
text_jump UnknownText_0x1ec99b
db "@"
-
-
BTGreetingF1:
text_jump UnknownText_0x1ec9bd
db "@"
diff --git a/engine/events/magikarp.asm b/engine/events/magikarp.asm
index 21ecf5062..7fe8adba7 100644
--- a/engine/events/magikarp.asm
+++ b/engine/events/magikarp.asm
@@ -301,7 +301,6 @@ CalcMagikarpLength:
INCLUDE "data/events/magikarp_lengths.asm"
-
MagikarpHouseSign:
ld a, [wBestMagikarpLengthFeet]
ld [wMagikarpLength], a
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 10084d3ea..1a2181be9 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -2784,7 +2784,6 @@ ApplyPPUp:
inc de
jr .loop
-
ComputeMaxPP:
push bc
; Divide the base PP by 5.
diff --git a/engine/menus/menu.asm b/engine/menus/menu.asm
index 0dd48222b..c9ce72b13 100644
--- a/engine/menus/menu.asm
+++ b/engine/menus/menu.asm
@@ -55,7 +55,6 @@ _InterpretMobileMenu::
and a
ret
-
Draw2DMenu:
xor a
ld [hBGMapMode], a
diff --git a/engine/movie/trade_animation.asm b/engine/movie/trade_animation.asm
index b993e7ecb..abd7022b6 100644
--- a/engine/movie/trade_animation.asm
+++ b/engine/movie/trade_animation.asm
@@ -1409,7 +1409,6 @@ TradeAnim_WaitAnim2:
call TradeAnim_AdvanceScriptPointer
ret
-
Unreferenced_DebugTrade:
; This function is not referenced.
; It was meant for use in Japanese versions, so the
diff --git a/engine/overworld/npc_movement.asm b/engine/overworld/npc_movement.asm
index 84f4a3020..868df2254 100644
--- a/engine/overworld/npc_movement.asm
+++ b/engine/overworld/npc_movement.asm
@@ -215,7 +215,6 @@ Function6fa1:
scf
ret
-
CheckFacingObject::
call GetFacingTileCoord
diff --git a/engine/overworld/overworld.asm b/engine/overworld/overworld.asm
index c4261bcad..f3dcb5b96 100644
--- a/engine/overworld/overworld.asm
+++ b/engine/overworld/overworld.asm
@@ -161,7 +161,6 @@ LoadUsedSpritesGFX:
farcall LoadEmote
ret
-
SafeGetSprite:
push hl
call GetSprite
diff --git a/engine/pokedex/pokedex.asm b/engine/pokedex/pokedex.asm
index 0055585b7..c61062049 100644
--- a/engine/pokedex/pokedex.asm
+++ b/engine/pokedex/pokedex.asm
@@ -1609,7 +1609,6 @@ Pokedex_CheckSeen:
pop de
ret
-
Pokedex_OrderMonsByMode:
ld hl, wPokedexOrder
ld bc, wPokedexOrderEnd - wPokedexOrder
diff --git a/home/audio.asm b/home/audio.asm
index 7bded5098..0099e2d2f 100644
--- a/home/audio.asm
+++ b/home/audio.asm
@@ -130,7 +130,6 @@ PlayMusic2::
pop hl
ret
-
PlayCry::
; Play cry de.
diff --git a/home/copy.asm b/home/copy.asm
index 02ff82f63..68ed240e3 100644
--- a/home/copy.asm
+++ b/home/copy.asm
@@ -93,12 +93,10 @@ OldDMATransfer::
ld [hBGMapMode], a
ret
-
ReplaceKrisSprite::
farcall _ReplaceKrisSprite
ret
-
LoadStandardFont::
farcall _LoadStandardFont
ret
@@ -107,7 +105,6 @@ LoadFontsBattleExtra::
farcall _LoadFontsBattleExtra
ret
-
LoadFontsExtra::
farcall _LoadFontsExtra1
farcall _LoadFontsExtra2
@@ -135,7 +132,6 @@ DecompressRequest2bpp::
call CloseSRAM
ret
-
FarCopyBytes::
; copy bc bytes from a:hl to de
diff --git a/home/palettes.asm b/home/palettes.asm
index 1f1759043..265c7f11b 100644
--- a/home/palettes.asm
+++ b/home/palettes.asm
@@ -229,7 +229,6 @@ DmgToCgbObjPal1::
pop af
ret
-
CopyPals::
; copy c palettes in order b from de to hl
diff --git a/home/time.asm b/home/time.asm
index 4383ed68f..caf857a68 100644
--- a/home/time.asm
+++ b/home/time.asm
@@ -196,7 +196,6 @@ InitTime::
farcall _InitTime
ret
-
PanicResetClock::
call .ClearhRTC
call SetClock
diff --git a/mobile/mobile_40.asm b/mobile/mobile_40.asm
index 98234a5f2..dc3767bf4 100644
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -2037,7 +2037,6 @@ Function100db0:
xor a
ret
-
Function100dc0:
ld a, [wLinkMode]
cp LINK_MOBILE
diff --git a/mobile/mobile_46.asm b/mobile/mobile_46.asm
index 17b5e4294..43ddf5201 100644
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -1304,7 +1304,6 @@ BattleTowerRoomMenu_UpdatePickLevelMenu:
ld [wMobileInactivityTimerFrames], a
ret
-
Function118a54:
ld a, [wcd55]
ld l, a