ref: 9f3e9145f9466ba93810dc6cd34fee7e7e835832
parent: 0f074e2ad1519df11d1873eacc8dbb9cfbdaea04
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Jun 25 08:01:02 EDT 2018
Remove more triple newlines
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -2752,7 +2752,6 @@
ld a, [wCurMusicByte]
ret
-
INCLUDE "audio/notes.asm"
INCLUDE "audio/wave_samples.asm"
--- a/data/battle_tower/parties.asm
+++ b/data/battle_tower/parties.asm
@@ -550,7 +550,6 @@
db "BARIYA-DO@@"
-
BattleTowerMons2:
db UMBREON
@@ -1100,7 +1099,6 @@
db "NUO-@@@@@@@"
-
BattleTowerMons3:
db JOLTEON
@@ -1650,7 +1648,6 @@
db "OKORIZARU@@"
-
BattleTowerMons4:
db TAUROS
@@ -2200,7 +2197,6 @@
db "EREBU-@@@@@"
-
BattleTowerMons5:
db KINGDRA
@@ -2750,7 +2746,6 @@
db "HURI-ZA-@@@"
-
BattleTowerMons6:
db KINGDRA
@@ -3300,7 +3295,6 @@
db "GORO-NIya@@"
-
BattleTowerMons7:
db JOLTEON
@@ -3850,7 +3844,6 @@
db "KAMEtuKUSU@"
-
BattleTowerMons8:
db JOLTEON
@@ -4400,7 +4393,6 @@
db "GURANBURU@@"
-
BattleTowerMons9:
db UMBREON
@@ -4948,7 +4940,6 @@
bigdw 167 ; SAtk
bigdw 230 ; SDef
db "BETOBETON@@"
-
BattleTowerMons10:
--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -7,7 +7,6 @@
jr DoTurn
-
DoEnemyTurn:
call SetEnemyTurn
@@ -109,7 +108,6 @@
.DoMoveEffectCommand:
jp hl
-
CheckTurn:
BattleCommand_CheckTurn:
; checkturn
@@ -336,7 +334,6 @@
call CantMove
jp EndTurn
-
CantMove:
ld a, BATTLE_VARS_SUBSTATUS1
call GetBattleVarAddr
@@ -363,15 +360,11 @@
res SUBSTATUS_FLYING, [hl]
jp AppearUserRaiseSub
-
-
OpponentCantMove:
call BattleCommand_SwitchTurn
call CantMove
jp BattleCommand_SwitchTurn
-
-
CheckEnemyTurn:
ld hl, wEnemySubStatus4
@@ -595,7 +588,6 @@
ld [wTurnEnded], a
jp ResetDamage
-
MoveDisabled:
; Make sure any charged moves fail
@@ -611,7 +603,6 @@
ld hl, DisabledMoveText
jp StdBattleTextBox
-
HitConfusion:
ld hl, HurtItselfText
@@ -642,7 +633,6 @@
call DoPlayerDamage
jp BattleCommand_RaiseSub
-
BattleCommand_CheckObedience:
; checkobedience
@@ -928,7 +918,6 @@
jp EndMoveEffect
-
IgnoreSleepOnly:
ld a, BATTLE_VARS_MOVE_ANIM
@@ -957,13 +946,11 @@
scf
ret
-
BattleCommand_UsedMoveText:
; usedmovetext
farcall DisplayUsedMoveText
ret
-
CheckUserIsCharging:
ld a, [hBattleTurn]
@@ -975,7 +962,6 @@
and a
ret
-
BattleCommand_DoTurn:
call CheckUserIsCharging
ret nz
@@ -1142,7 +1128,6 @@
and a
ret
-
BattleCommand_Critical:
; critical
@@ -1421,7 +1406,6 @@
ld [wTypeModifier], a
ret
-
BattleCheckTypeMatchup:
ld hl, wEnemyMonType1
ld a, [hBattleTurn]
@@ -1501,7 +1485,6 @@
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 @@
ld [wTypeMatchup], a
ret
-
INCLUDE "engine/battle/ai/switch.asm"
INCLUDE "data/types/type_matchups.asm"
@@ -1578,7 +1560,6 @@
ld [hl], a
ret
-
BattleCommand_CheckHit:
; checkhit
@@ -1914,7 +1895,6 @@
and a
ret
-
BattleCommand_LowerSub:
; lowersub
@@ -1983,7 +1963,6 @@
ld [wSomeoneIsRampaging], a
ret
-
BattleCommand_MoveAnim:
; moveanim
call BattleCommand_LowerSub
@@ -1990,7 +1969,6 @@
call BattleCommand_MoveAnimNoSub
jp BattleCommand_RaiseSub
-
BattleCommand_MoveAnimNoSub:
ld a, [wAttackMissed]
and a
@@ -2055,7 +2033,6 @@
ld [wNumHits], a
jp PlayFXAnimID
-
BattleCommand_StatUpAnim:
ld a, [wAttackMissed]
and a
@@ -2064,7 +2041,6 @@
xor a
jr BattleCommand_StatUpDownAnim
-
BattleCommand_StatDownAnim:
ld a, [wAttackMissed]
and a
@@ -2088,7 +2064,6 @@
ld d, 0
jp PlayFXAnimID
-
BattleCommand_SwitchTurn:
; switchturn
@@ -2097,7 +2072,6 @@
ld [hBattleTurn], a
ret
-
BattleCommand_RaiseSub:
; raisesub
@@ -2117,7 +2091,6 @@
ld a, SUBSTITUTE
jp LoadAnim
-
BattleCommand_FailureText:
; failuretext
; If the move missed or failed, load the appropriate
@@ -2160,7 +2133,6 @@
call AppearUserRaiseSub
jp EndMoveEffect
-
BattleCommand_ApplyDamage:
; applydamage
@@ -2253,7 +2225,6 @@
ld [de], a
ret
-
GetFailureResultText:
ld hl, DoesntAffectText
ld de, DoesntAffectText
@@ -2322,7 +2293,6 @@
.not_protected
jp StdBattleTextBox
-
BattleCommand_BideFailText:
ld a, [wAttackMissed]
and a
@@ -2333,7 +2303,6 @@
jp z, PrintDoesntAffect
jp PrintButItFailed
-
BattleCommand_CriticalText:
; criticaltext
; Prints the message for critical hits or one-hit KOs.
@@ -2378,7 +2347,6 @@
ld [hl], a
ret
-
BattleCommand_SuperEffectiveLoopText:
; supereffectivelooptext
@@ -2402,7 +2370,6 @@
jp StdBattleTextBox
-
BattleCommand_CheckDestinyBond:
; checkdestinybond
@@ -2490,7 +2457,6 @@
.finish
jp EndMoveEffect
-
BattleCommand_BuildOpponentRage:
; buildopponentrage
@@ -2522,7 +2488,6 @@
call StdBattleTextBox
jp BattleCommand_SwitchTurn
-
BattleCommand_RageDamage:
; ragedamage
@@ -2551,7 +2516,6 @@
ld [wCurDamage + 1], a
ret
-
EndMoveEffect:
ld a, [wBattleScriptBufferAddress]
ld l, a
@@ -2563,7 +2527,6 @@
ld [hl], a
ret
-
DittoMetalPowder:
ld a, MON_SPECIES
call BattlePartyAttr
@@ -2600,7 +2563,6 @@
rr c
ret
-
BattleCommand_DamageStats:
; damagestats
@@ -2692,7 +2654,6 @@
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 @@
ld b, l
ret
-
GetDamageStatsCritical:
; Return carry if non-critical.
@@ -2789,7 +2749,6 @@
pop hl
ret
-
ThickClubBoost:
; Return in hl the stat value at hl.
@@ -2805,7 +2764,6 @@
pop bc
ret
-
LightBallBoost:
; Return in hl the stat value at hl.
@@ -2821,7 +2779,6 @@
pop bc
ret
-
SpeciesItemBoost:
; Return in hl the stat value at hl.
@@ -2862,7 +2819,6 @@
rl h
ret
-
EnemyAttackDamage:
call ResetDamage
@@ -2941,7 +2897,6 @@
and a
ret
-
INCLUDE "engine/battle/move_effects/beat_up.asm"
BattleCommand_ClearMissDamage:
@@ -2952,7 +2907,6 @@
jp ResetDamage
-
HitSelfInConfusion:
call ResetDamage
ld a, [hBattleTurn]
@@ -2989,7 +2943,6 @@
ld e, a
ret
-
BattleCommand_DamageCalc:
; damagecalc
@@ -3219,7 +3172,6 @@
ret
-
INCLUDE "data/types/type_boost_items.asm"
BattleCommand_ConstantDamage:
@@ -3422,7 +3374,6 @@
ld [hl], a
ret
-
INCLUDE "engine/battle/move_effects/sleep_talk.asm"
INCLUDE "engine/battle/move_effects/destiny_bond.asm"
@@ -3454,7 +3405,6 @@
callfar PlayBattleAnim
ret
-
DoEnemyDamage:
ld hl, wCurDamage
ld a, [hli]
@@ -3515,7 +3465,6 @@
.did_no_damage
jp RefreshBattleHuds
-
DoPlayerDamage:
ld hl, wCurDamage
ld a, [hli]
@@ -3576,7 +3525,6 @@
.did_no_damage
jp RefreshBattleHuds
-
DoSubstituteDamage:
ld hl, SubTookDamageText
call StdBattleTextBox
@@ -3634,7 +3582,6 @@
.done
jp ResetDamage
-
UpdateMoveData:
ld a, BATTLE_VARS_MOVE_ANIM
@@ -3652,7 +3599,6 @@
call GetMoveName
jp CopyName1
-
BattleCommand_SleepTarget:
; sleeptarget
@@ -3724,7 +3670,6 @@
pop hl
jp StdBattleTextBox
-
.CheckAIRandomFail:
; Enemy turn
ld a, [hBattleTurn]
@@ -3753,7 +3698,6 @@
xor a
ret
-
BattleCommand_PoisonTarget:
; poisontarget
@@ -3789,7 +3733,6 @@
farcall UseHeldStatusHealingItem
ret
-
BattleCommand_Poison:
; poison
@@ -3878,13 +3821,11 @@
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 @@
cp EFFECT_TOXIC
ret
-
CheckIfTargetIsPoisonType:
ld de, wEnemyMonType1
ld a, [hBattleTurn]
@@ -3915,7 +3855,6 @@
cp POISON
ret
-
PoisonOpponent:
ld a, BATTLE_VARS_STATUS_OPP
call GetBattleVarAddr
@@ -3922,7 +3861,6 @@
set PSN, [hl]
jp UpdateOpponentInParty
-
BattleCommand_DrainTarget:
; draintarget
call SapHealth
@@ -3929,7 +3867,6 @@
ld hl, SuckedHealthText
jp StdBattleTextBox
-
BattleCommand_EatDream:
; eatdream
call SapHealth
@@ -3936,7 +3873,6 @@
ld hl, DreamEatenText
jp StdBattleTextBox
-
SapHealth:
; Divide damage by 2, store it in hDividend
ld hl, wCurDamage
@@ -4030,7 +3966,6 @@
call RefreshBattleHuds
jp UpdateBattleMonInParty
-
BattleCommand_BurnTarget:
; burntarget
@@ -4072,7 +4007,6 @@
farcall UseHeldStatusHealingItem
ret
-
Defrost:
ld a, [hl]
and 1 << FRZ
@@ -4098,7 +4032,6 @@
ld hl, DefrostedOpponentText
jp StdBattleTextBox
-
BattleCommand_FreezeTarget:
; freezetarget
@@ -4152,7 +4085,6 @@
ld [hl], $1
ret
-
BattleCommand_ParalyzeTarget:
; paralyzetarget
@@ -4189,7 +4121,6 @@
ld hl, UseHeldStatusHealingItem
jp CallBattleCore
-
BattleCommand_AttackUp:
; attackup
ld b, ATTACK
@@ -4268,7 +4199,6 @@
ret nz
jp StatUpAnimation
-
CheckIfStatCanBeRaised:
ld a, b
ld [wLoweredStat], a
@@ -4348,7 +4278,6 @@
ld [wFailedMessage], a
ret
-
.stats_already_max
pop hl
dec [hl]
@@ -4361,13 +4290,11 @@
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 @@
call WaitBGMap
jp BattleCommand_MoveDelay
-
BattleCommand_AttackDown:
; attackdown
ld a, ATTACK
@@ -4586,7 +4512,6 @@
ld [wAttackMissed], a
ret
-
CheckMist:
ld a, BATTLE_VARS_MOVE_EFFECT
call GetBattleVar
@@ -4612,7 +4537,6 @@
bit SUBSTATUS_MIST, a
ret
-
BattleCommand_StatUpMessage:
ld a, [wFailedMessage]
and a
@@ -4643,7 +4567,6 @@
text_jump UnknownText_0x1c0ce0
db "@"
-
BattleCommand_StatDownMessage:
ld a, [wFailedMessage]
and a
@@ -4673,7 +4596,6 @@
text_jump UnknownText_0x1c0d06
db "@"
-
TryLowerStat:
; Lower stat c from stat struct hl (buffer de).
@@ -4717,7 +4639,6 @@
and a
ret
-
BattleCommand_StatUpFailText:
; statupfailtext
ld a, [wFailedMessage]
@@ -4736,7 +4657,6 @@
ld hl, WontRiseAnymoreText
jp StdBattleTextBox
-
BattleCommand_StatDownFailText:
; statdownfailtext
ld a, [wFailedMessage]
@@ -4758,7 +4678,6 @@
ld hl, WontDropAnymoreText
jp StdBattleTextBox
-
GetStatName:
ld hl, StatNames
ld c, "@"
@@ -4813,7 +4732,6 @@
ld [wAttackMissed], a
ret
-
LowerStat:
ld [wLoweredStat], a
@@ -4885,7 +4803,6 @@
ld [wFailedMessage], a
ret
-
BattleCommand_TriStatusChance:
; tristatuschance
@@ -4914,7 +4831,6 @@
set SUBSTATUS_CURLED, [hl]
ret
-
BattleCommand_RaiseSubNoAnim:
ld hl, GetBattleMonBackpic
ld a, [hBattleTurn]
@@ -4927,7 +4843,6 @@
call CallBattleCore
jp WaitBGMap
-
BattleCommand_LowerSubNoAnim:
ld hl, DropPlayerSub
ld a, [hBattleTurn]
@@ -4940,7 +4855,6 @@
call CallBattleCore
jp WaitBGMap
-
CalcPlayerStats:
ld hl, wPlayerAtkLevel
ld de, wPlayerStats
@@ -4962,7 +4876,6 @@
jp BattleCommand_SwitchTurn
-
CalcEnemyStats:
ld hl, wEnemyAtkLevel
ld de, wEnemyStats
@@ -4981,7 +4894,6 @@
jp BattleCommand_SwitchTurn
-
CalcStats:
.loop
push af
@@ -5051,7 +4963,6 @@
ret
-
INCLUDE "engine/battle/move_effects/bide.asm"
BattleCommand_CheckRampage:
@@ -5091,7 +5002,6 @@
ld b, rampage_command
jp SkipToBattleCommand
-
BattleCommand_Rampage:
; rampage
@@ -5119,7 +5029,6 @@
ld [wSomeoneIsRampaging], a
ret
-
INCLUDE "engine/battle/move_effects/teleport.asm"
SetBattleDraw:
@@ -5129,7 +5038,6 @@
ld [wBattleResult], a
ret
-
BattleCommand_ForceSwitch:
; forceswitch
@@ -5349,7 +5257,6 @@
.do_text
jp StdBattleTextBox
-
CheckPlayerHasMonToSwitchTo:
ld a, [wPartyCount]
ld d, a
@@ -5379,7 +5286,6 @@
and a
ret
-
BattleCommand_EndLoop:
; endloop
@@ -5514,7 +5420,6 @@
ld [wBattleScriptBufferAddress], a
ret
-
BattleCommand_FakeOut:
ld a, [wAttackMissed]
and a
@@ -5536,7 +5441,6 @@
ld [wAttackMissed], a
ret
-
BattleCommand_FlinchTarget:
call CheckSubstituteOpp
ret nz
@@ -5561,7 +5465,6 @@
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 @@
pop bc
ret
-
BattleCommand_HeldFlinch:
; kingsrock
@@ -5602,7 +5504,6 @@
set SUBSTATUS_FLINCHED, [hl]
ret
-
BattleCommand_OHKO:
; ohko
@@ -5649,7 +5550,6 @@
ld [wAttackMissed], a
ret
-
BattleCommand_CheckCharge:
; checkcharge
@@ -5663,7 +5563,6 @@
ld b, charge_command
jp SkipToBattleCommand
-
BattleCommand_Charge:
; charge
@@ -5809,7 +5708,6 @@
; unused
ret
-
BattleCommand_TrapTarget:
; traptarget
@@ -5934,7 +5832,6 @@
ld hl, RecoilText
jp StdBattleTextBox
-
BattleCommand_ConfuseTarget:
; confusetarget
@@ -6038,7 +5935,6 @@
ret z
jp PrintDidntAffect2
-
BattleCommand_Paralyze:
; paralyze
@@ -6119,7 +6015,6 @@
call AnimateFailedMove
jp PrintDoesntAffect
-
CheckMoveTypeMatchesTarget:
; Compare move type to opponent type.
; Return z if matching the opponent type,
@@ -6155,7 +6050,6 @@
pop hl
ret
-
INCLUDE "engine/battle/move_effects/substitute.asm"
BattleCommand_RechargeNextTurn:
@@ -6165,7 +6059,6 @@
set SUBSTATUS_RECHARGE, [hl]
ret
-
EndRechargeOpp:
push hl
ld a, BATTLE_VARS_SUBSTATUS4_OPP
@@ -6174,7 +6067,6 @@
pop hl
ret
-
INCLUDE "engine/battle/move_effects/rage.asm"
BattleCommand_DoubleFlyingDamage:
@@ -6185,7 +6077,6 @@
ret z
jr DoubleDamage
-
BattleCommand_DoubleUndergroundDamage:
; doubleundergrounddamage
ld a, BATTLE_VARS_SUBSTATUS3_OPP
@@ -6208,7 +6099,6 @@
.quit
ret
-
INCLUDE "engine/battle/move_effects/mimic.asm"
INCLUDE "engine/battle/move_effects/leech_seed.asm"
@@ -6254,7 +6144,6 @@
jr nz, .next
ret
-
BattleCommand_Heal:
; heal
@@ -6337,7 +6226,6 @@
ld hl, HPIsFullText
jp StdBattleTextBox
-
INCLUDE "engine/battle/move_effects/transform.asm"
BattleSideCopy:
@@ -6355,12 +6243,10 @@
.copy
jp CopyBytes
-
BattleEffect_ButItFailed:
call AnimateFailedMove
jp PrintButItFailed
-
ClearLastMove:
ld a, BATTLE_VARS_LAST_COUNTER_MOVE
call GetBattleVarAddr
@@ -6373,7 +6259,6 @@
ld [hl], a
ret
-
ResetActorDisable:
ld a, [hBattleTurn]
and a
@@ -6390,7 +6275,6 @@
ld [wDisabledMove], a
ret
-
BattleCommand_Screen:
; screen
@@ -6436,19 +6320,16 @@
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 @@
ld hl, ButItFailedText
jp StdBattleTextBox
-
FailMove:
call AnimateFailedMove
; fallthrough
@@ -6471,13 +6351,11 @@
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'
@@ -6484,13 +6362,11 @@
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
@@ -6497,7 +6373,6 @@
bit SUBSTATUS_SUBSTITUTE, a
ret
-
INCLUDE "engine/battle/move_effects/selfdestruct.asm"
INCLUDE "engine/battle/move_effects/mirror_move.asm"
@@ -6528,7 +6403,6 @@
and a
ret
-
ResetTurn:
ld hl, wPlayerCharging
ld a, [hBattleTurn]
@@ -6543,7 +6417,6 @@
call DoMove
jp EndMoveEffect
-
INCLUDE "engine/battle/move_effects/thief.asm"
BattleCommand_ArenaTrap:
@@ -6572,7 +6445,6 @@
call AnimateFailedMove
jp PrintButItFailed
-
INCLUDE "engine/battle/move_effects/nightmare.asm"
BattleCommand_Defrost:
@@ -6606,7 +6478,6 @@
ld hl, WasDefrostedText
jp StdBattleTextBox
-
INCLUDE "engine/battle/move_effects/curse.asm"
INCLUDE "engine/battle/move_effects/protect.asm"
@@ -6627,7 +6498,6 @@
; unused
ret
-
INCLUDE "engine/battle/move_effects/fury_cutter.asm"
INCLUDE "engine/battle/move_effects/attract.asm"
@@ -6653,7 +6523,6 @@
pop hl
ret
-
BattleCommand_CheckSafeguard:
; checksafeguard
ld hl, wEnemyScreens
@@ -6671,7 +6540,6 @@
call StdBattleTextBox
jp EndMoveEffect
-
INCLUDE "engine/battle/move_effects/magnitude.asm"
INCLUDE "engine/battle/move_effects/baton_pass.asm"
@@ -6811,7 +6679,6 @@
ld [hl], a
ret
-
BattleCommand_SkipSunCharge:
; mimicsuncharge
ld a, [wBattleWeather]
@@ -6820,7 +6687,6 @@
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 @@
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 @@
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 @@
ld b, [hl]
jp GetItemHeldEffect
-
GetItemHeldEffect:
; Return the effect of item b in bc.
ld a, b
@@ -6877,7 +6740,6 @@
pop hl
ret
-
AnimateCurrentMoveEitherSide:
push hl
push de
@@ -6894,7 +6756,6 @@
pop hl
ret
-
AnimateCurrentMove:
push hl
push de
@@ -6911,7 +6772,6 @@
pop hl
ret
-
PlayDamageAnim:
xor a
ld [wFXAnimID + 1], a
@@ -6934,7 +6794,6 @@
jp PlayUserBattleAnim
-
LoadMoveAnim:
xor a
ld [wNumHits], a
@@ -6962,7 +6821,6 @@
pop hl
ret
-
PlayOpponentBattleAnim:
ld a, e
ld [wFXAnimID], a
@@ -6984,19 +6842,16 @@
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.
@@ -7003,7 +6858,6 @@
ld c, 40
jp DelayFrames
-
BattleCommand_ClearText:
; cleartext
@@ -7031,7 +6885,6 @@
ld [wBattleScriptBufferAddress], a
ret
-
GetMoveAttr:
; Assuming hl = Moves + x, return attribute x of move a.
push bc
@@ -7041,7 +6894,6 @@
pop bc
ret
-
GetMoveData:
; Copy move struct a to de.
ld hl, Moves
@@ -7050,27 +6902,22 @@
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 @@
pop de
pop hl
ret
-
--- a/engine/battle/move_effects/baton_pass.asm
+++ b/engine/battle/move_effects/baton_pass.asm
@@ -79,7 +79,6 @@
jr ResetBatonPassStatus
-
BatonPass_LinkPlayerSwitch:
ld a, [wLinkMode]
and a
@@ -97,7 +96,6 @@
ld [wBattlePlayerAction], a
ret
-
BatonPass_LinkEnemySwitch:
ld a, [wLinkMode]
and a
@@ -123,12 +121,10 @@
.switch
jp CloseWindow
-
FailedBatonPass:
call AnimateFailedMove
jp PrintButItFailed
-
ResetBatonPassStatus:
; Reset status changes that aren't passed by Baton Pass.
@@ -168,7 +164,6 @@
ld [wEnemyWrapCount], a
ret
-
CheckAnyOtherAlivePartyMons:
ld hl, wPartyMon1HP
ld a, [wPartyCount]
@@ -176,7 +171,6 @@
ld a, [wCurBattleMon]
ld e, a
jr CheckAnyOtherAliveMons
-
CheckAnyOtherAliveEnemyMons:
ld hl, wOTPartyMon1HP
--- a/engine/battle/move_effects/beat_up.asm
+++ b/engine/battle/move_effects/beat_up.asm
@@ -193,12 +193,10 @@
ld d, a
ret
-
.beatup_fail
ld b, buildopponentrage_command
jp SkipToBattleCommand
-
BattleCommand_BeatUpFailText:
; beatupfailtext
@@ -207,7 +205,6 @@
ret nz
jp PrintButItFailed
-
GetBeatupMonLocation:
push bc
--- a/engine/battle/move_effects/bide.asm
+++ b/engine/battle/move_effects/bide.asm
@@ -69,7 +69,6 @@
call StdBattleTextBox
jp EndMoveEffect
-
BattleCommand_UnleashEnergy:
; unleashenergy
--- a/engine/battle/move_effects/fury_cutter.asm
+++ b/engine/battle/move_effects/fury_cutter.asm
@@ -38,7 +38,6 @@
ld [hl], a
ret
-
ResetFuryCutterCount:
push hl
--- a/engine/battle/move_effects/triple_kick.asm
+++ b/engine/battle/move_effects/triple_kick.asm
@@ -26,7 +26,6 @@
ld [hl], a
ret
-
BattleCommand_KickCounter:
; kickcounter
--- a/engine/events/battle_tower/trainer_text.asm
+++ b/engine/events/battle_tower/trainer_text.asm
@@ -530,8 +530,6 @@
text_jump UnknownText_0x1ec99b
db "@"
-
-
BTGreetingF1:
text_jump UnknownText_0x1ec9bd
db "@"
--- a/engine/events/magikarp.asm
+++ b/engine/events/magikarp.asm
@@ -301,7 +301,6 @@
INCLUDE "data/events/magikarp_lengths.asm"
-
MagikarpHouseSign:
ld a, [wBestMagikarpLengthFeet]
ld [wMagikarpLength], a
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -2784,7 +2784,6 @@
inc de
jr .loop
-
ComputeMaxPP:
push bc
; Divide the base PP by 5.
--- a/engine/menus/menu.asm
+++ b/engine/menus/menu.asm
@@ -55,7 +55,6 @@
and a
ret
-
Draw2DMenu:
xor a
ld [hBGMapMode], a
--- a/engine/movie/trade_animation.asm
+++ b/engine/movie/trade_animation.asm
@@ -1409,7 +1409,6 @@
call TradeAnim_AdvanceScriptPointer
ret
-
Unreferenced_DebugTrade:
; This function is not referenced.
; It was meant for use in Japanese versions, so the
--- a/engine/overworld/npc_movement.asm
+++ b/engine/overworld/npc_movement.asm
@@ -215,7 +215,6 @@
scf
ret
-
CheckFacingObject::
call GetFacingTileCoord
--- a/engine/overworld/overworld.asm
+++ b/engine/overworld/overworld.asm
@@ -161,7 +161,6 @@
farcall LoadEmote
ret
-
SafeGetSprite:
push hl
call GetSprite
--- a/engine/pokedex/pokedex.asm
+++ b/engine/pokedex/pokedex.asm
@@ -1609,7 +1609,6 @@
pop de
ret
-
Pokedex_OrderMonsByMode:
ld hl, wPokedexOrder
ld bc, wPokedexOrderEnd - wPokedexOrder
--- a/home/audio.asm
+++ b/home/audio.asm
@@ -130,7 +130,6 @@
pop hl
ret
-
PlayCry::
; Play cry de.
--- a/home/copy.asm
+++ b/home/copy.asm
@@ -93,12 +93,10 @@
ld [hBGMapMode], a
ret
-
ReplaceKrisSprite::
farcall _ReplaceKrisSprite
ret
-
LoadStandardFont::
farcall _LoadStandardFont
ret
@@ -107,7 +105,6 @@
farcall _LoadFontsBattleExtra
ret
-
LoadFontsExtra::
farcall _LoadFontsExtra1
farcall _LoadFontsExtra2
@@ -134,7 +131,6 @@
call Request2bpp
call CloseSRAM
ret
-
FarCopyBytes::
; copy bc bytes from a:hl to de
--- a/home/palettes.asm
+++ b/home/palettes.asm
@@ -229,7 +229,6 @@
pop af
ret
-
CopyPals::
; copy c palettes in order b from de to hl
--- a/home/time.asm
+++ b/home/time.asm
@@ -196,7 +196,6 @@
farcall _InitTime
ret
-
PanicResetClock::
call .ClearhRTC
call SetClock
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -2037,7 +2037,6 @@
xor a
ret
-
Function100dc0:
ld a, [wLinkMode]
cp LINK_MOBILE
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -1304,7 +1304,6 @@
ld [wMobileInactivityTimerFrames], a
ret
-
Function118a54:
ld a, [wcd55]
ld l, a