summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/move_effects')
-rw-r--r--engine/battle/move_effects/attract.asm7
-rw-r--r--engine/battle/move_effects/baton_pass.asm40
-rw-r--r--engine/battle/move_effects/beat_up.asm17
-rw-r--r--engine/battle/move_effects/belly_drum.asm4
-rw-r--r--engine/battle/move_effects/bide.asm9
-rw-r--r--engine/battle/move_effects/conversion.asm4
-rw-r--r--engine/battle/move_effects/conversion2.asm4
-rw-r--r--engine/battle/move_effects/counter.asm4
-rw-r--r--engine/battle/move_effects/curse.asm6
-rw-r--r--engine/battle/move_effects/destiny_bond.asm4
-rw-r--r--engine/battle/move_effects/disable.asm4
-rw-r--r--engine/battle/move_effects/encore.asm4
-rw-r--r--engine/battle/move_effects/endure.asm3
-rw-r--r--engine/battle/move_effects/false_swipe.asm4
-rw-r--r--engine/battle/move_effects/focus_energy.asm4
-rw-r--r--engine/battle/move_effects/foresight.asm3
-rw-r--r--engine/battle/move_effects/frustration.asm4
-rw-r--r--engine/battle/move_effects/fury_cutter.asm10
-rw-r--r--engine/battle/move_effects/future_sight.asm8
-rw-r--r--engine/battle/move_effects/heal_bell.asm4
-rw-r--r--engine/battle/move_effects/hidden_power.asm4
-rw-r--r--engine/battle/move_effects/leech_seed.asm4
-rw-r--r--engine/battle/move_effects/lock_on.asm4
-rw-r--r--engine/battle/move_effects/magnitude.asm2
-rw-r--r--engine/battle/move_effects/metronome.asm7
-rw-r--r--engine/battle/move_effects/mimic.asm4
-rw-r--r--engine/battle/move_effects/mirror_coat.asm4
-rw-r--r--engine/battle/move_effects/mirror_move.asm3
-rw-r--r--engine/battle/move_effects/mist.asm4
-rw-r--r--engine/battle/move_effects/nightmare.asm3
-rw-r--r--engine/battle/move_effects/pain_split.asm8
-rw-r--r--engine/battle/move_effects/pay_day.asm4
-rw-r--r--engine/battle/move_effects/perish_song.asm4
-rw-r--r--engine/battle/move_effects/present.asm16
-rw-r--r--engine/battle/move_effects/protect.asm9
-rw-r--r--engine/battle/move_effects/psych_up.asm4
-rw-r--r--engine/battle/move_effects/pursuit.asm4
-rw-r--r--engine/battle/move_effects/rage.asm4
-rw-r--r--engine/battle/move_effects/rain_dance.asm4
-rw-r--r--engine/battle/move_effects/rapid_spin.asm4
-rw-r--r--engine/battle/move_effects/return.asm4
-rw-r--r--engine/battle/move_effects/rollout.asm8
-rw-r--r--engine/battle/move_effects/safeguard.asm4
-rw-r--r--engine/battle/move_effects/sandstorm.asm3
-rw-r--r--engine/battle/move_effects/selfdestruct.asm4
-rw-r--r--engine/battle/move_effects/sketch.asm4
-rw-r--r--engine/battle/move_effects/sleep_talk.asm4
-rw-r--r--engine/battle/move_effects/snore.asm4
-rw-r--r--engine/battle/move_effects/spikes.asm3
-rw-r--r--engine/battle/move_effects/spite.asm4
-rw-r--r--engine/battle/move_effects/splash.asm4
-rw-r--r--engine/battle/move_effects/substitute.asm4
-rw-r--r--engine/battle/move_effects/sunny_day.asm4
-rw-r--r--engine/battle/move_effects/teleport.asm4
-rw-r--r--engine/battle/move_effects/thief.asm6
-rw-r--r--engine/battle/move_effects/thunder.asm4
-rw-r--r--engine/battle/move_effects/transform.asm4
-rw-r--r--engine/battle/move_effects/triple_kick.asm9
58 files changed, 84 insertions, 244 deletions
diff --git a/engine/battle/move_effects/attract.asm b/engine/battle/move_effects/attract.asm
index 026176694..bb7b4fce4 100644
--- a/engine/battle/move_effects/attract.asm
+++ b/engine/battle/move_effects/attract.asm
@@ -1,4 +1,4 @@
-BattleCommand_Attract: ; 377ce
+BattleCommand_Attract:
; attract
ld a, [wAttackMissed]
and a
@@ -21,10 +21,8 @@ BattleCommand_Attract: ; 377ce
.failed
jp FailMove
-; 377f5
-
-CheckOppositeGender: ; 377f5
+CheckOppositeGender:
ld a, MON_SPECIES
call BattlePartyAttr
ld a, [hl]
@@ -76,4 +74,3 @@ CheckOppositeGender: ; 377f5
.genderless_samegender
scf
ret
-; 3784b
diff --git a/engine/battle/move_effects/baton_pass.asm b/engine/battle/move_effects/baton_pass.asm
index 369565877..5d9f19838 100644
--- a/engine/battle/move_effects/baton_pass.asm
+++ b/engine/battle/move_effects/baton_pass.asm
@@ -1,11 +1,10 @@
-BattleCommand_BatonPass: ; 379c9
+BattleCommand_BatonPass:
; batonpass
ld a, [hBattleTurn]
and a
jp nz, .Enemy
-
; Need something to switch to
call CheckAnyOtherAlivePartyMons
jp z, FailedBatonPass
@@ -45,9 +44,7 @@ BattleCommand_BatonPass: ; 379c9
call ResetBatonPassStatus
ret
-
.Enemy:
-
; Wildmons don't have anything to switch to
ld a, [wBattleMode]
dec a ; WILDMON
@@ -81,10 +78,7 @@ BattleCommand_BatonPass: ; 379c9
jr ResetBatonPassStatus
-; 37a67
-
-
-BatonPass_LinkPlayerSwitch: ; 37a67
+BatonPass_LinkPlayerSwitch:
ld a, [wLinkMode]
and a
ret z
@@ -101,10 +95,7 @@ BatonPass_LinkPlayerSwitch: ; 37a67
ld [wBattlePlayerAction], a
ret
-; 37a82
-
-
-BatonPass_LinkEnemySwitch: ; 37a82
+BatonPass_LinkEnemySwitch:
ld a, [wLinkMode]
and a
ret z
@@ -129,17 +120,11 @@ BatonPass_LinkEnemySwitch: ; 37a82
.switch
jp CloseWindow
-; 37aab
-
-
-FailedBatonPass: ; 37aab
+FailedBatonPass:
call AnimateFailedMove
jp PrintButItFailed
-; 37ab1
-
-
-ResetBatonPassStatus: ; 37ab1
+ResetBatonPassStatus:
; Reset status changes that aren't passed by Baton Pass.
; Nightmare isn't passed.
@@ -178,10 +163,7 @@ ResetBatonPassStatus: ; 37ab1
ld [wEnemyWrapCount], a
ret
-; 37ae9
-
-
-CheckAnyOtherAlivePartyMons: ; 37ae9
+CheckAnyOtherAlivePartyMons:
ld hl, wPartyMon1HP
ld a, [wPartyCount]
ld d, a
@@ -189,10 +171,7 @@ CheckAnyOtherAlivePartyMons: ; 37ae9
ld e, a
jr CheckAnyOtherAliveMons
-; 37af6
-
-
-CheckAnyOtherAliveEnemyMons: ; 37af6
+CheckAnyOtherAliveEnemyMons:
ld hl, wOTPartyMon1HP
ld a, [wOTPartyCount]
ld d, a
@@ -200,9 +179,8 @@ CheckAnyOtherAliveEnemyMons: ; 37af6
ld e, a
; fallthrough
-; 37b01
-CheckAnyOtherAliveMons: ; 37b01
+CheckAnyOtherAliveMons:
; Check for nonzero HP starting from partymon
; HP at hl for d partymons, besides current mon e.
@@ -237,5 +215,3 @@ CheckAnyOtherAliveMons: ; 37b01
ld a, b
and a
ret
-
-; 37b1d
diff --git a/engine/battle/move_effects/beat_up.asm b/engine/battle/move_effects/beat_up.asm
index 8ea308d90..673fc46c6 100644
--- a/engine/battle/move_effects/beat_up.asm
+++ b/engine/battle/move_effects/beat_up.asm
@@ -1,4 +1,4 @@
-BattleCommand_BeatUp: ; 35461
+BattleCommand_BeatUp:
; beatup
call ResetDamage
@@ -193,17 +193,11 @@ BattleCommand_BeatUp: ; 35461
ld d, a
ret
-; 355b0
-
-
-.beatup_fail ; 355b0
+.beatup_fail
ld b, buildopponentrage_command
jp SkipToBattleCommand
-; 355b5
-
-
-BattleCommand_BeatUpFailText: ; 355b5
+BattleCommand_BeatUpFailText:
; beatupfailtext
ld a, [wBeatUpHitAtLeastOnce]
@@ -212,10 +206,7 @@ BattleCommand_BeatUpFailText: ; 355b5
jp PrintButItFailed
-; 355bd
-
-
-GetBeatupMonLocation: ; 355bd
+GetBeatupMonLocation:
push bc
ld c, a
ld b, 0
diff --git a/engine/battle/move_effects/belly_drum.asm b/engine/battle/move_effects/belly_drum.asm
index bd300c9cd..27ef1a542 100644
--- a/engine/battle/move_effects/belly_drum.asm
+++ b/engine/battle/move_effects/belly_drum.asm
@@ -1,4 +1,4 @@
-BattleCommand_BellyDrum: ; 37c1a
+BattleCommand_BellyDrum:
; bellydrum
; This command is buggy because it raises the user's attack
; before checking that it has enough HP to use the move.
@@ -32,5 +32,3 @@ BattleCommand_BellyDrum: ; 37c1a
.failed
call AnimateFailedMove
jp PrintButItFailed
-
-; 37c55
diff --git a/engine/battle/move_effects/bide.asm b/engine/battle/move_effects/bide.asm
index d9958ca53..871e0e7a8 100644
--- a/engine/battle/move_effects/bide.asm
+++ b/engine/battle/move_effects/bide.asm
@@ -1,4 +1,4 @@
-BattleCommand_StoreEnergy: ; 36671
+BattleCommand_StoreEnergy:
; storeenergy
ld a, BATTLE_VARS_SUBSTATUS3
@@ -69,10 +69,7 @@ BattleCommand_StoreEnergy: ; 36671
call StdBattleTextBox
jp EndMoveEffect
-; 366e5
-
-
-BattleCommand_UnleashEnergy: ; 366e5
+BattleCommand_UnleashEnergy:
; unleashenergy
ld de, wPlayerDamageTaken
@@ -101,5 +98,3 @@ BattleCommand_UnleashEnergy: ; 366e5
ld [wKickCounter], a
call AnimateCurrentMove
jp EndMoveEffect
-
-; 3671a
diff --git a/engine/battle/move_effects/conversion.asm b/engine/battle/move_effects/conversion.asm
index d66d23a5e..f9307056c 100644
--- a/engine/battle/move_effects/conversion.asm
+++ b/engine/battle/move_effects/conversion.asm
@@ -1,4 +1,4 @@
-BattleCommand_Conversion: ; 3707f
+BattleCommand_Conversion:
; conversion
ld hl, wBattleMonMoves
@@ -94,5 +94,3 @@ BattleCommand_Conversion: ; 3707f
call AnimateCurrentMove
ld hl, TransformedTypeText
jp StdBattleTextBox
-
-; 3710e
diff --git a/engine/battle/move_effects/conversion2.asm b/engine/battle/move_effects/conversion2.asm
index c0e390926..14a7e257a 100644
--- a/engine/battle/move_effects/conversion2.asm
+++ b/engine/battle/move_effects/conversion2.asm
@@ -1,4 +1,4 @@
-BattleCommand_Conversion2: ; 359e6
+BattleCommand_Conversion2:
; conversion2
ld a, [wAttackMissed]
@@ -62,5 +62,3 @@ BattleCommand_Conversion2: ; 359e6
.failed
jp FailMove
-
-; 35a53
diff --git a/engine/battle/move_effects/counter.asm b/engine/battle/move_effects/counter.asm
index 9948ebcbd..031c399a6 100644
--- a/engine/battle/move_effects/counter.asm
+++ b/engine/battle/move_effects/counter.asm
@@ -1,4 +1,4 @@
-BattleCommand_Counter: ; 35813
+BattleCommand_Counter:
; counter
ld a, 1
@@ -57,5 +57,3 @@ BattleCommand_Counter: ; 35813
xor a
ld [wAttackMissed], a
ret
-
-; 35864
diff --git a/engine/battle/move_effects/curse.asm b/engine/battle/move_effects/curse.asm
index b11b9f3fb..4861e9a37 100644
--- a/engine/battle/move_effects/curse.asm
+++ b/engine/battle/move_effects/curse.asm
@@ -1,4 +1,4 @@
-BattleCommand_Curse: ; 37588
+BattleCommand_Curse:
; curse
ld de, wBattleMonType1
@@ -21,7 +21,6 @@ BattleCommand_Curse: ; 37588
cp GHOST
jr z, .ghost
-
; If no stats can be increased, don't.
; Attack
@@ -54,7 +53,6 @@ BattleCommand_Curse: ; 37588
call BattleCommand_DefenseUp
jp BattleCommand_StatUpMessage
-
.ghost
; Cut HP in half and put a curse on the opponent.
@@ -84,7 +82,6 @@ BattleCommand_Curse: ; 37588
call AnimateFailedMove
jp PrintButItFailed
-
.cantraise
; Can't raise either stat.
@@ -94,4 +91,3 @@ BattleCommand_Curse: ; 37588
call AnimateFailedMove
ld hl, WontRiseAnymoreText
jp StdBattleTextBox
-; 37618
diff --git a/engine/battle/move_effects/destiny_bond.asm b/engine/battle/move_effects/destiny_bond.asm
index 2dc125ddf..55809d98a 100644
--- a/engine/battle/move_effects/destiny_bond.asm
+++ b/engine/battle/move_effects/destiny_bond.asm
@@ -1,4 +1,4 @@
-BattleCommand_DestinyBond: ; 35bff
+BattleCommand_DestinyBond:
; destinybond
ld a, BATTLE_VARS_SUBSTATUS5
@@ -7,5 +7,3 @@ BattleCommand_DestinyBond: ; 35bff
call AnimateCurrentMove
ld hl, DestinyBondEffectText
jp StdBattleTextBox
-
-; 35c0f
diff --git a/engine/battle/move_effects/disable.asm b/engine/battle/move_effects/disable.asm
index 5df785d24..44017e30d 100644
--- a/engine/battle/move_effects/disable.asm
+++ b/engine/battle/move_effects/disable.asm
@@ -1,4 +1,4 @@
-BattleCommand_Disable: ; 36fed
+BattleCommand_Disable:
; disable
ld a, [wAttackMissed]
@@ -70,5 +70,3 @@ BattleCommand_Disable: ; 36fed
.failed
jp FailMove
-
-; 3705c
diff --git a/engine/battle/move_effects/encore.asm b/engine/battle/move_effects/encore.asm
index e6607fb11..f436fd970 100644
--- a/engine/battle/move_effects/encore.asm
+++ b/engine/battle/move_effects/encore.asm
@@ -1,4 +1,4 @@
-BattleCommand_Encore: ; 35864
+BattleCommand_Encore:
; encore
ld hl, wEnemyMonMoves
@@ -118,5 +118,3 @@ BattleCommand_Encore: ; 35864
.failed
jp PrintDidntAffect2
-
-; 35926
diff --git a/engine/battle/move_effects/endure.asm b/engine/battle/move_effects/endure.asm
index ed4329ff5..f0555a737 100644
--- a/engine/battle/move_effects/endure.asm
+++ b/engine/battle/move_effects/endure.asm
@@ -1,4 +1,4 @@
-BattleCommand_Endure: ; 3766f
+BattleCommand_Endure:
; endure
; Endure shares code with Protect. See protect.asm.
@@ -14,4 +14,3 @@ BattleCommand_Endure: ; 3766f
ld hl, BracedItselfText
jp StdBattleTextBox
-; 37683
diff --git a/engine/battle/move_effects/false_swipe.asm b/engine/battle/move_effects/false_swipe.asm
index f00de91e7..4f4eb329c 100644
--- a/engine/battle/move_effects/false_swipe.asm
+++ b/engine/battle/move_effects/false_swipe.asm
@@ -1,4 +1,4 @@
-BattleCommand_FalseSwipe: ; 35c94
+BattleCommand_FalseSwipe:
; falseswipe
; Makes sure wCurDamage < MonHP
@@ -46,5 +46,3 @@ BattleCommand_FalseSwipe: ; 35c94
.done
and a
ret
-
-; 35cc9
diff --git a/engine/battle/move_effects/focus_energy.asm b/engine/battle/move_effects/focus_energy.asm
index 2a3726c53..ffdc7b136 100644
--- a/engine/battle/move_effects/focus_energy.asm
+++ b/engine/battle/move_effects/focus_energy.asm
@@ -1,4 +1,4 @@
-BattleCommand_FocusEnergy: ; 36c98
+BattleCommand_FocusEnergy:
; focusenergy
ld a, BATTLE_VARS_SUBSTATUS4
@@ -13,5 +13,3 @@ BattleCommand_FocusEnergy: ; 36c98
.already_pumped
call AnimateFailedMove
jp PrintButItFailed
-
-; 36cb2
diff --git a/engine/battle/move_effects/foresight.asm b/engine/battle/move_effects/foresight.asm
index 8c51bb220..4235e0878 100644
--- a/engine/battle/move_effects/foresight.asm
+++ b/engine/battle/move_effects/foresight.asm
@@ -1,4 +1,4 @@
-BattleCommand_Foresight: ; 376a0
+BattleCommand_Foresight:
; foresight
ld a, [wAttackMissed]
@@ -20,4 +20,3 @@ BattleCommand_Foresight: ; 376a0
.failed
jp FailMove
-; 376c2
diff --git a/engine/battle/move_effects/frustration.asm b/engine/battle/move_effects/frustration.asm
index 3f8456ced..3d395b510 100644
--- a/engine/battle/move_effects/frustration.asm
+++ b/engine/battle/move_effects/frustration.asm
@@ -1,4 +1,4 @@
-BattleCommand_FrustrationPower: ; 3790e
+BattleCommand_FrustrationPower:
; frustrationpower
push bc
@@ -25,5 +25,3 @@ BattleCommand_FrustrationPower: ; 3790e
ld d, a
pop bc
ret
-
-; 37939
diff --git a/engine/battle/move_effects/fury_cutter.asm b/engine/battle/move_effects/fury_cutter.asm
index 91679368f..6aa6b7838 100644
--- a/engine/battle/move_effects/fury_cutter.asm
+++ b/engine/battle/move_effects/fury_cutter.asm
@@ -1,4 +1,4 @@
-BattleCommand_FuryCutter: ; 37792
+BattleCommand_FuryCutter:
; furycutter
ld hl, wPlayerFuryCutterCount
@@ -38,11 +38,7 @@ BattleCommand_FuryCutter: ; 37792
ld [hl], a
ret
-; 377be
-
-
-ResetFuryCutterCount: ; 377be
-
+ResetFuryCutterCount:
push hl
ld hl, wPlayerFuryCutterCount
@@ -57,5 +53,3 @@ ResetFuryCutterCount: ; 377be
pop hl
ret
-
-; 377ce
diff --git a/engine/battle/move_effects/future_sight.asm b/engine/battle/move_effects/future_sight.asm
index fa2148ab7..c28841b35 100644
--- a/engine/battle/move_effects/future_sight.asm
+++ b/engine/battle/move_effects/future_sight.asm
@@ -1,4 +1,4 @@
-BattleCommand_CheckFutureSight: ; 37d0d
+BattleCommand_CheckFutureSight:
; checkfuturesight
ld hl, wPlayerFutureSightCount
@@ -25,9 +25,7 @@ BattleCommand_CheckFutureSight: ; 37d0d
ld b, futuresight_command
jp SkipToBattleCommand
-; 37d34
-
-BattleCommand_FutureSight: ; 37d34
+BattleCommand_FutureSight:
; futuresight
call CheckUserIsCharging
@@ -81,5 +79,3 @@ BattleCommand_FutureSight: ; 37d34
call AnimateFailedMove
call PrintButItFailed
jp EndMoveEffect
-
-; 37d94
diff --git a/engine/battle/move_effects/heal_bell.asm b/engine/battle/move_effects/heal_bell.asm
index c79362f9c..2570a53ba 100644
--- a/engine/battle/move_effects/heal_bell.asm
+++ b/engine/battle/move_effects/heal_bell.asm
@@ -1,4 +1,4 @@
-BattleCommand_HealBell: ; 35cc9
+BattleCommand_HealBell:
; healbell
ld a, BATTLE_VARS_SUBSTATUS1
@@ -32,5 +32,3 @@ BattleCommand_HealBell: ; 35cc9
and a
jp z, CalcPlayerStats
jp CalcEnemyStats
-
-; 35d00
diff --git a/engine/battle/move_effects/hidden_power.asm b/engine/battle/move_effects/hidden_power.asm
index f96becf97..3b40a6c31 100644
--- a/engine/battle/move_effects/hidden_power.asm
+++ b/engine/battle/move_effects/hidden_power.asm
@@ -1,4 +1,4 @@
-BattleCommand_HiddenPower: ; 37be8
+BattleCommand_HiddenPower:
; hiddenpower
ld a, [wAttackMissed]
@@ -6,5 +6,3 @@ BattleCommand_HiddenPower: ; 37be8
ret nz
farcall HiddenPowerDamage
ret
-
-; 37bf4
diff --git a/engine/battle/move_effects/leech_seed.asm b/engine/battle/move_effects/leech_seed.asm
index 328a2c416..5602e7f62 100644
--- a/engine/battle/move_effects/leech_seed.asm
+++ b/engine/battle/move_effects/leech_seed.asm
@@ -1,4 +1,4 @@
-BattleCommand_LeechSeed: ; 36f9d
+BattleCommand_LeechSeed:
; leechseed
ld a, [wAttackMissed]
and a
@@ -38,5 +38,3 @@ BattleCommand_LeechSeed: ; 36f9d
call AnimateFailedMove
ld hl, EvadedText
jp StdBattleTextBox
-
-; 36fe1
diff --git a/engine/battle/move_effects/lock_on.asm b/engine/battle/move_effects/lock_on.asm
index 36d8db926..7dc4a013d 100644
--- a/engine/battle/move_effects/lock_on.asm
+++ b/engine/battle/move_effects/lock_on.asm
@@ -1,4 +1,4 @@
-BattleCommand_LockOn: ; 35a53
+BattleCommand_LockOn:
; lockon
call CheckSubstituteOpp
@@ -19,5 +19,3 @@ BattleCommand_LockOn: ; 35a53
.fail
call AnimateFailedMove
jp PrintDidntAffect
-
-; 35a74
diff --git a/engine/battle/move_effects/magnitude.asm b/engine/battle/move_effects/magnitude.asm
index f56ec5c1b..4dcf919d7 100644
--- a/engine/battle/move_effects/magnitude.asm
+++ b/engine/battle/move_effects/magnitude.asm
@@ -1,4 +1,4 @@
-BattleCommand_GetMagnitude: ; 37991
+BattleCommand_GetMagnitude:
; getmagnitude
push bc
diff --git a/engine/battle/move_effects/metronome.asm b/engine/battle/move_effects/metronome.asm
index 6835ab569..25197d7cd 100644
--- a/engine/battle/move_effects/metronome.asm
+++ b/engine/battle/move_effects/metronome.asm
@@ -1,4 +1,4 @@
-BattleCommand_Metronome: ; 37418
+BattleCommand_Metronome:
; metronome
call ClearLastMove
@@ -34,13 +34,10 @@ BattleCommand_Metronome: ; 37418
call CheckUserMove
jr z, .GetMove
-
ld a, BATTLE_VARS_MOVE
call GetBattleVarAddr
ld [hl], b
call UpdateMoveData
jp ResetTurn
-; 37454
-
-INCLUDE "data/battle/metronome_exception_moves.asm"
+INCLUDE "data/moves/metronome_exception_moves.asm"
diff --git a/engine/battle/move_effects/mimic.asm b/engine/battle/move_effects/mimic.asm
index 712b42df1..b1c6608fa 100644
--- a/engine/battle/move_effects/mimic.asm
+++ b/engine/battle/move_effects/mimic.asm
@@ -1,4 +1,4 @@
-BattleCommand_Mimic: ; 36f46
+BattleCommand_Mimic:
; mimic
call ClearLastMove
@@ -48,5 +48,3 @@ BattleCommand_Mimic: ; 36f46
.fail
jp FailMimic
-
-; 36f9d
diff --git a/engine/battle/move_effects/mirror_coat.asm b/engine/battle/move_effects/mirror_coat.asm
index dcdd9c2f3..fb3a30d58 100644
--- a/engine/battle/move_effects/mirror_coat.asm
+++ b/engine/battle/move_effects/mirror_coat.asm
@@ -1,4 +1,4 @@
-BattleCommand_MirrorCoat: ; 37c95
+BattleCommand_MirrorCoat:
; mirrorcoat
ld a, 1
@@ -58,5 +58,3 @@ BattleCommand_MirrorCoat: ; 37c95
xor a
ld [wAttackMissed], a
ret
-
-; 37ce6
diff --git a/engine/battle/move_effects/mirror_move.asm b/engine/battle/move_effects/mirror_move.asm
index c4f208d77..089403839 100644
--- a/engine/battle/move_effects/mirror_move.asm
+++ b/engine/battle/move_effects/mirror_move.asm
@@ -1,4 +1,4 @@
-BattleCommand_MirrorMove: ; 373c9
+BattleCommand_MirrorMove:
; mirrormove
call ClearLastMove
@@ -49,4 +49,3 @@ BattleCommand_MirrorMove: ; 373c9
.done
call BattleCommand_MoveDelay
jp ResetTurn
-; 37418
diff --git a/engine/battle/move_effects/mist.asm b/engine/battle/move_effects/mist.asm
index 9ffd86c8e..199a30045 100644
--- a/engine/battle/move_effects/mist.asm
+++ b/engine/battle/move_effects/mist.asm
@@ -1,4 +1,4 @@
-BattleCommand_Mist: ; 36c7e
+BattleCommand_Mist:
; mist
ld a, BATTLE_VARS_SUBSTATUS4
@@ -13,5 +13,3 @@ BattleCommand_Mist: ; 36c7e
.already_mist
call AnimateFailedMove
jp PrintButItFailed
-
-; 36c98
diff --git a/engine/battle/move_effects/nightmare.asm b/engine/battle/move_effects/nightmare.asm
index 788e3de41..dd85c722d 100644
--- a/engine/battle/move_effects/nightmare.asm
+++ b/engine/battle/move_effects/nightmare.asm
@@ -1,4 +1,4 @@
-BattleCommand_Nightmare: ; 37536
+BattleCommand_Nightmare:
; nightmare
; Can't hit an absent opponent.
@@ -35,4 +35,3 @@ BattleCommand_Nightmare: ; 37536
.failed
call AnimateFailedMove
jp PrintButItFailed
-; 37563
diff --git a/engine/battle/move_effects/pain_split.asm b/engine/battle/move_effects/pain_split.asm
index 2db3726c6..4e4380b23 100644
--- a/engine/battle/move_effects/pain_split.asm
+++ b/engine/battle/move_effects/pain_split.asm
@@ -1,4 +1,4 @@
-BattleCommand_PainSplit: ; 35926
+BattleCommand_PainSplit:
; painsplit
ld a, [wAttackMissed]
@@ -65,7 +65,7 @@ BattleCommand_PainSplit: ; 35926
inc de
inc de
-.EnemyShareHP: ; 359ac
+.EnemyShareHP:
ld c, [hl]
dec hl
ld a, [wCurDamage + 1]
@@ -89,9 +89,5 @@ BattleCommand_PainSplit: ; 35926
ld [wBuffer6], a
ret
-; 359cd
-
.ButItFailed:
jp PrintDidntAffect2
-
-; 359d0
diff --git a/engine/battle/move_effects/pay_day.asm b/engine/battle/move_effects/pay_day.asm
index a5d2fed0d..ba1dce884 100644
--- a/engine/battle/move_effects/pay_day.asm
+++ b/engine/battle/move_effects/pay_day.asm
@@ -1,4 +1,4 @@
-BattleCommand_PayDay: ; 3705c
+BattleCommand_PayDay:
; payday
xor a
@@ -24,5 +24,3 @@ BattleCommand_PayDay: ; 3705c
.done
ld hl, CoinsScatteredText
jp StdBattleTextBox
-
-; 3707f
diff --git a/engine/battle/move_effects/perish_song.asm b/engine/battle/move_effects/perish_song.asm
index 8c88c8739..4df52cc1c 100644
--- a/engine/battle/move_effects/perish_song.asm
+++ b/engine/battle/move_effects/perish_song.asm
@@ -1,7 +1,6 @@
-BattleCommand_PerishSong: ; 376c2
+BattleCommand_PerishSong:
; perishsong
-
ld hl, wPlayerSubStatus1
ld de, wEnemySubStatus1
bit SUBSTATUS_PERISH, [hl]
@@ -37,4 +36,3 @@ BattleCommand_PerishSong: ; 376c2
.failed
call AnimateFailedMove
jp PrintButItFailed
-; 376f8
diff --git a/engine/battle/move_effects/present.asm b/engine/battle/move_effects/present.asm
index a2ef5bc64..f0949558f 100644
--- a/engine/battle/move_effects/present.asm
+++ b/engine/battle/move_effects/present.asm
@@ -1,4 +1,4 @@
-BattleCommand_Present: ; 37874
+BattleCommand_Present:
; present
ld a, [wLinkMode]
@@ -32,12 +32,12 @@ BattleCommand_Present: ; 37874
.next
ld a, [hli]
cp -1
- jr z, .heal_effect ; 378a4 $11
+ jr z, .heal_effect
cp b
- jr nc, .got_power ; 378a7 $4
+ jr nc, .got_power
inc c
inc hl
- jr .next ; 378ab $f4
+ jr .next
.got_power
ld a, c
@@ -56,12 +56,12 @@ BattleCommand_Present: ; 37874
ld hl, AICheckPlayerMaxHP
ld a, [hBattleTurn]
and a
- jr z, .got_hp_fn_pointer ; 378c9 $3
+ jr z, .got_hp_fn_pointer
ld hl, AICheckEnemyMaxHP
.got_hp_fn_pointer
ld a, BANK(AICheckPlayerMaxHP)
rst FarCall
- jr c, .already_fully_healed ; 378d1 $20
+ jr c, .already_fully_healed
ld hl, GetQuarterMaxHP
call CallBattleCore
@@ -73,12 +73,12 @@ BattleCommand_Present: ; 37874
call StdBattleTextBox
call BattleCommand_SwitchTurn
call UpdateOpponentInParty
- jr .do_animation ; 378f1 $11
+ jr .do_animation
.already_fully_healed
call BattleCommand_SwitchTurn
call _CheckBattleScene
- jr nc, .do_animation ; 378f9 $9
+ jr nc, .do_animation
call AnimateFailedMove
ld hl, RefusedGiftText
call StdBattleTextBox
diff --git a/engine/battle/move_effects/protect.asm b/engine/battle/move_effects/protect.asm
index 6c65e0ed1..9025d2f4b 100644
--- a/engine/battle/move_effects/protect.asm
+++ b/engine/battle/move_effects/protect.asm
@@ -1,4 +1,4 @@
-BattleCommand_Protect: ; 37618
+BattleCommand_Protect:
; protect
call ProtectChance
ret c
@@ -11,11 +11,8 @@ BattleCommand_Protect: ; 37618
ld hl, ProtectedItselfText
jp StdBattleTextBox
-; 3762c
-
-
-ProtectChance: ; 3762c
+ProtectChance:
ld de, wPlayerProtectCount
ld a, [hBattleTurn]
and a
@@ -69,7 +66,6 @@ ProtectChance: ; 3762c
and a
ret
-
.failed
xor a
ld [de], a
@@ -77,4 +73,3 @@ ProtectChance: ; 3762c
call PrintButItFailed
scf
ret
-; 3766f
diff --git a/engine/battle/move_effects/psych_up.asm b/engine/battle/move_effects/psych_up.asm
index c57fff9cd..02fdef5d2 100644
--- a/engine/battle/move_effects/psych_up.asm
+++ b/engine/battle/move_effects/psych_up.asm
@@ -1,4 +1,4 @@
-BattleCommand_PsychUp: ; 37c55
+BattleCommand_PsychUp:
; psychup
ld hl, wEnemyStatLevels
@@ -47,5 +47,3 @@ BattleCommand_PsychUp: ; 37c55
call AnimateCurrentMove
ld hl, CopiedStatsText
jp StdBattleTextBox
-
-; 37c95
diff --git a/engine/battle/move_effects/pursuit.asm b/engine/battle/move_effects/pursuit.asm
index 969e08f73..18c358144 100644
--- a/engine/battle/move_effects/pursuit.asm
+++ b/engine/battle/move_effects/pursuit.asm
@@ -1,4 +1,4 @@
-BattleCommand_Pursuit: ; 37b1d
+BattleCommand_Pursuit:
; pursuit
; Double damage if the opponent is switching.
@@ -22,5 +22,3 @@ BattleCommand_Pursuit: ; 37b1d
ld [hli], a
ld [hl], a
ret
-
-; 37b39
diff --git a/engine/battle/move_effects/rage.asm b/engine/battle/move_effects/rage.asm
index ac01f8137..df206a6bf 100644
--- a/engine/battle/move_effects/rage.asm
+++ b/engine/battle/move_effects/rage.asm
@@ -1,8 +1,6 @@
-BattleCommand_Rage: ; 36f1d
+BattleCommand_Rage:
; rage
ld a, BATTLE_VARS_SUBSTATUS4
call GetBattleVarAddr
set SUBSTATUS_RAGE, [hl]
ret
-
-; 36f25
diff --git a/engine/battle/move_effects/rain_dance.asm b/engine/battle/move_effects/rain_dance.asm
index 6c587d551..e9ef5d123 100644
--- a/engine/battle/move_effects/rain_dance.asm
+++ b/engine/battle/move_effects/rain_dance.asm
@@ -1,4 +1,4 @@
-BattleCommand_StartRain: ; 37bf4
+BattleCommand_StartRain:
; startrain
ld a, WEATHER_RAIN
ld [wBattleWeather], a
@@ -7,5 +7,3 @@ BattleCommand_StartRain: ; 37bf4
call AnimateCurrentMove
ld hl, DownpourText
jp StdBattleTextBox
-
-; 37c07
diff --git a/engine/battle/move_effects/rapid_spin.asm b/engine/battle/move_effects/rapid_spin.asm
index 84bcbad7f..0dc8b7de2 100644
--- a/engine/battle/move_effects/rapid_spin.asm
+++ b/engine/battle/move_effects/rapid_spin.asm
@@ -1,4 +1,4 @@
-BattleCommand_ClearHazards: ; 37b39
+BattleCommand_ClearHazards:
; clearhazards
ld a, BATTLE_VARS_SUBSTATUS4
@@ -34,5 +34,3 @@ BattleCommand_ClearHazards: ; 37b39
ld [de], a
ld hl, ReleasedByText
jp StdBattleTextBox
-
-; 37b74
diff --git a/engine/battle/move_effects/return.asm b/engine/battle/move_effects/return.asm
index e1d568e7c..d3071d23a 100644
--- a/engine/battle/move_effects/return.asm
+++ b/engine/battle/move_effects/return.asm
@@ -1,4 +1,4 @@
-BattleCommand_HappinessPower: ; 3784b
+BattleCommand_HappinessPower:
; happinesspower
push bc
ld hl, wBattleMonHappiness
@@ -23,5 +23,3 @@ BattleCommand_HappinessPower: ; 3784b
ld d, a
pop bc
ret
-
-; 37874
diff --git a/engine/battle/move_effects/rollout.asm b/engine/battle/move_effects/rollout.asm
index f6966c48a..de4bfcaa6 100644
--- a/engine/battle/move_effects/rollout.asm
+++ b/engine/battle/move_effects/rollout.asm
@@ -1,7 +1,6 @@
MAX_ROLLOUT_COUNT EQU 5
-
-BattleCommand_CheckCurl: ; 37718
+BattleCommand_CheckCurl:
; checkcurl
ld de, wPlayerRolloutCount
@@ -22,10 +21,8 @@ BattleCommand_CheckCurl: ; 37718
xor a
ld [de], a
ret
-; 37734
-
-BattleCommand_RolloutPower: ; 37734
+BattleCommand_RolloutPower:
; rolloutpower
ld a, BATTLE_VARS_STATUS
@@ -96,4 +93,3 @@ BattleCommand_RolloutPower: ; 37734
.done_damage
ret
-; 37791
diff --git a/engine/battle/move_effects/safeguard.asm b/engine/battle/move_effects/safeguard.asm
index 1dc233eab..a926bdccc 100644
--- a/engine/battle/move_effects/safeguard.asm
+++ b/engine/battle/move_effects/safeguard.asm
@@ -1,4 +1,4 @@
-BattleCommand_Safeguard: ; 37939
+BattleCommand_Safeguard:
; safeguard
ld hl, wPlayerScreens
@@ -21,5 +21,3 @@ BattleCommand_Safeguard: ; 37939
.failed
call AnimateFailedMove
jp PrintButItFailed
-
-; 37962
diff --git a/engine/battle/move_effects/sandstorm.asm b/engine/battle/move_effects/sandstorm.asm
index 5aaa61deb..77d6e24b5 100644
--- a/engine/battle/move_effects/sandstorm.asm
+++ b/engine/battle/move_effects/sandstorm.asm
@@ -1,4 +1,4 @@
-BattleCommand_StartSandstorm: ; 376f8
+BattleCommand_StartSandstorm:
; startsandstorm
ld a, [wBattleWeather]
@@ -16,4 +16,3 @@ BattleCommand_StartSandstorm: ; 376f8
.failed
call AnimateFailedMove
jp PrintButItFailed
-; 37718
diff --git a/engine/battle/move_effects/selfdestruct.asm b/engine/battle/move_effects/selfdestruct.asm
index 6f6b0966f..d6eeac484 100644
--- a/engine/battle/move_effects/selfdestruct.asm
+++ b/engine/battle/move_effects/selfdestruct.asm
@@ -1,4 +1,4 @@
-BattleCommand_Selfdestruct: ; 37380
+BattleCommand_Selfdestruct:
farcall StubbedTrainerRankings_Selfdestruct
ld a, BATTLEANIM_PLAYER_DAMAGE
ld [wNumHits], a
@@ -27,5 +27,3 @@ BattleCommand_Selfdestruct: ; 37380
farcall DrawEnemyHUD
call WaitBGMap
jp RefreshBattleHuds
-
-; 373c9
diff --git a/engine/battle/move_effects/sketch.asm b/engine/battle/move_effects/sketch.asm
index 93f7ff30c..4c15dbe02 100644
--- a/engine/battle/move_effects/sketch.asm
+++ b/engine/battle/move_effects/sketch.asm
@@ -1,4 +1,4 @@
-BattleCommand_Sketch: ; 35a74
+BattleCommand_Sketch:
; sketch
call ClearLastMove
@@ -115,5 +115,3 @@ BattleCommand_Sketch: ; 35a74
.fail
call AnimateFailedMove
jp PrintDidntAffect
-
-; 35b16
diff --git a/engine/battle/move_effects/sleep_talk.asm b/engine/battle/move_effects/sleep_talk.asm
index 3f62d4e36..ae2d252b7 100644
--- a/engine/battle/move_effects/sleep_talk.asm
+++ b/engine/battle/move_effects/sleep_talk.asm
@@ -1,4 +1,4 @@
-BattleCommand_SleepTalk: ; 35b33
+BattleCommand_SleepTalk:
; sleeptalk
call ClearLastMove
@@ -141,5 +141,3 @@ BattleCommand_SleepTalk: ; 35b33
ret z
cp EFFECT_BIDE
ret
-
-; 35bff
diff --git a/engine/battle/move_effects/snore.asm b/engine/battle/move_effects/snore.asm
index 49fb1b210..e2432c59f 100644
--- a/engine/battle/move_effects/snore.asm
+++ b/engine/battle/move_effects/snore.asm
@@ -1,4 +1,4 @@
-BattleCommand_Snore: ; 359d0
+BattleCommand_Snore:
; snore
ld a, BATTLE_VARS_STATUS
call GetBattleVar
@@ -9,5 +9,3 @@ BattleCommand_Snore: ; 359d0
ld [wAttackMissed], a
call FailMove
jp EndMoveEffect
-
-; 359e6
diff --git a/engine/battle/move_effects/spikes.asm b/engine/battle/move_effects/spikes.asm
index 6cab0b96f..1eca7ae53 100644
--- a/engine/battle/move_effects/spikes.asm
+++ b/engine/battle/move_effects/spikes.asm
@@ -1,4 +1,4 @@
-BattleCommand_Spikes: ; 37683
+BattleCommand_Spikes:
; spikes
ld hl, wEnemyScreens
@@ -24,4 +24,3 @@ BattleCommand_Spikes: ; 37683
.failed
jp FailMove
-; 376a0
diff --git a/engine/battle/move_effects/spite.asm b/engine/battle/move_effects/spite.asm
index 30a908ae7..8aba187a4 100644
--- a/engine/battle/move_effects/spite.asm
+++ b/engine/battle/move_effects/spite.asm
@@ -1,4 +1,4 @@
-BattleCommand_Spite: ; 35c0f
+BattleCommand_Spite:
; spite
ld a, [wAttackMissed]
@@ -84,5 +84,3 @@ BattleCommand_Spite: ; 35c0f
.failed
jp PrintDidntAffect2
-
-; 35c94
diff --git a/engine/battle/move_effects/splash.asm b/engine/battle/move_effects/splash.asm
index 5b5e504b8..493ea8ca6 100644
--- a/engine/battle/move_effects/splash.asm
+++ b/engine/battle/move_effects/splash.asm
@@ -1,6 +1,4 @@
-BattleCommand_Splash: ; 36fe1
+BattleCommand_Splash:
call AnimateCurrentMove
farcall StubbedTrainerRankings_Splash
jp PrintNothingHappened
-
-; 36fed
diff --git a/engine/battle/move_effects/substitute.asm b/engine/battle/move_effects/substitute.asm
index 1deaa848d..8f14bc315 100644
--- a/engine/battle/move_effects/substitute.asm
+++ b/engine/battle/move_effects/substitute.asm
@@ -1,4 +1,4 @@
-BattleCommand_Substitute: ; 36e7c
+BattleCommand_Substitute:
; substitute
call BattleCommand_MoveDelay
@@ -86,5 +86,3 @@ BattleCommand_Substitute: ; 36e7c
ld hl, TooWeakSubText
.jp_stdbattletextbox
jp StdBattleTextBox
-
-; 36f0b
diff --git a/engine/battle/move_effects/sunny_day.asm b/engine/battle/move_effects/sunny_day.asm
index ef8c37c5c..f5825930f 100644
--- a/engine/battle/move_effects/sunny_day.asm
+++ b/engine/battle/move_effects/sunny_day.asm
@@ -1,4 +1,4 @@
-BattleCommand_StartSun: ; 37c07
+BattleCommand_StartSun:
; startsun
ld a, WEATHER_SUN
ld [wBattleWeather], a
@@ -7,5 +7,3 @@ BattleCommand_StartSun: ; 37c07
call AnimateCurrentMove
ld hl, SunGotBrightText
jp StdBattleTextBox
-
-; 37c1a
diff --git a/engine/battle/move_effects/teleport.asm b/engine/battle/move_effects/teleport.asm
index 1bd1eb725..1c67ef112 100644
--- a/engine/battle/move_effects/teleport.asm
+++ b/engine/battle/move_effects/teleport.asm
@@ -1,4 +1,4 @@
-BattleCommand_Teleport: ; 36778
+BattleCommand_Teleport:
; teleport
ld a, [wBattleType]
@@ -87,5 +87,3 @@ BattleCommand_Teleport: ; 36778
ld hl, FledFromBattleText
jp StdBattleTextBox
-
-; 36804
diff --git a/engine/battle/move_effects/thief.asm b/engine/battle/move_effects/thief.asm
index 5397c2bdf..64de1a4fe 100644
--- a/engine/battle/move_effects/thief.asm
+++ b/engine/battle/move_effects/thief.asm
@@ -1,4 +1,4 @@
-BattleCommand_Thief: ; 37492
+BattleCommand_Thief:
; thief
ld a, [hBattleTurn]
@@ -50,7 +50,6 @@ BattleCommand_Thief: ; 37492
ld [de], a
jr .stole
-
.enemy
; The enemy can't already have an item.
@@ -91,13 +90,11 @@ BattleCommand_Thief: ; 37492
ld [hl], a
ld [de], a
-
.stole
call GetItemName
ld hl, StoleText
jp StdBattleTextBox
-
.playeritem
ld a, 1
call BattlePartyAttr
@@ -113,4 +110,3 @@ BattleCommand_Thief: ; 37492
ld e, l
ld hl, wEnemyMonItem
ret
-; 37517
diff --git a/engine/battle/move_effects/thunder.asm b/engine/battle/move_effects/thunder.asm
index 3705e1a28..b2a643787 100644
--- a/engine/battle/move_effects/thunder.asm
+++ b/engine/battle/move_effects/thunder.asm
@@ -1,4 +1,4 @@
-BattleCommand_ThunderAccuracy: ; 37d94
+BattleCommand_ThunderAccuracy:
; thunderaccuracy
ld a, BATTLE_VARS_MOVE_TYPE
@@ -16,5 +16,3 @@ BattleCommand_ThunderAccuracy: ; 37d94
; Redundant with CheckHit guranteeing hit
ld [hl], 100 percent
ret
-
-; 37daa
diff --git a/engine/battle/move_effects/transform.asm b/engine/battle/move_effects/transform.asm
index 5ae7c1511..ef8071290 100644
--- a/engine/battle/move_effects/transform.asm
+++ b/engine/battle/move_effects/transform.asm
@@ -1,5 +1,5 @@
-BattleCommand_Transform: ; 371cd
+BattleCommand_Transform:
; transform
call ClearLastMove
@@ -137,5 +137,3 @@ BattleCommand_Transform: ; 371cd
call nz, LoadAnim
ld hl, TransformedText
jp StdBattleTextBox
-
-; 372c6
diff --git a/engine/battle/move_effects/triple_kick.asm b/engine/battle/move_effects/triple_kick.asm
index cef56a1ae..e41044c9d 100644
--- a/engine/battle/move_effects/triple_kick.asm
+++ b/engine/battle/move_effects/triple_kick.asm
@@ -1,4 +1,4 @@
-BattleCommand_TripleKick: ; 346b2
+BattleCommand_TripleKick:
; triplekick
ld a, [wKickCounter]
@@ -26,14 +26,9 @@ BattleCommand_TripleKick: ; 346b2
ld [hl], a
ret
-; 346cd
-
-
-BattleCommand_KickCounter: ; 346cd
+BattleCommand_KickCounter:
; kickcounter
ld hl, wKickCounter
inc [hl]
ret
-
-; 346d2