Remove redundant comments referencing labels (#921)

This commit is contained in:
vulcandth
2022-06-06 16:34:54 -05:00
committed by GitHub
parent 3648afda16
commit 73c020074e
59 changed files with 3 additions and 264 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
BattleCommand_Attract: BattleCommand_Attract:
; attract
ld a, [wAttackMissed] ld a, [wAttackMissed]
and a and a
jr nz, .failed jr nz, .failed

View File

@ -1,6 +1,4 @@
BattleCommand_BatonPass: BattleCommand_BatonPass:
; batonpass
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
jp nz, .Enemy jp nz, .Enemy

View File

@ -1,6 +1,4 @@
BattleCommand_BeatUp: BattleCommand_BeatUp:
; beatup
call ResetDamage call ResetDamage
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
@ -198,8 +196,6 @@ BattleCommand_BeatUp:
jp SkipToBattleCommand jp SkipToBattleCommand
BattleCommand_BeatUpFailText: BattleCommand_BeatUpFailText:
; beatupfailtext
ld a, [wBeatUpHitAtLeastOnce] ld a, [wBeatUpHitAtLeastOnce]
and a and a
ret nz ret nz

View File

@ -1,5 +1,4 @@
BattleCommand_BellyDrum: BattleCommand_BellyDrum:
; bellydrum
; This command is buggy because it raises the user's attack ; This command is buggy because it raises the user's attack
; before checking that it has enough HP to use the move. ; before checking that it has enough HP to use the move.
; Swap the order of these two blocks to fix. ; Swap the order of these two blocks to fix.

View File

@ -1,6 +1,4 @@
BattleCommand_StoreEnergy: BattleCommand_StoreEnergy:
; storeenergy
ld a, BATTLE_VARS_SUBSTATUS3 ld a, BATTLE_VARS_SUBSTATUS3
call GetBattleVar call GetBattleVar
bit SUBSTATUS_BIDE, a bit SUBSTATUS_BIDE, a
@ -70,8 +68,6 @@ BattleCommand_StoreEnergy:
jp EndMoveEffect jp EndMoveEffect
BattleCommand_UnleashEnergy: BattleCommand_UnleashEnergy:
; unleashenergy
ld de, wPlayerDamageTaken ld de, wPlayerDamageTaken
ld bc, wPlayerRolloutCount ld bc, wPlayerRolloutCount
ldh a, [hBattleTurn] ldh a, [hBattleTurn]

View File

@ -1,6 +1,4 @@
BattleCommand_Conversion: BattleCommand_Conversion:
; conversion
ld hl, wBattleMonMoves ld hl, wBattleMonMoves
ld de, wBattleMonType1 ld de, wBattleMonType1
ldh a, [hBattleTurn] ldh a, [hBattleTurn]

View File

@ -1,6 +1,4 @@
BattleCommand_Conversion2: BattleCommand_Conversion2:
; conversion2
ld a, [wAttackMissed] ld a, [wAttackMissed]
and a and a
jr nz, .failed jr nz, .failed

View File

@ -1,6 +1,4 @@
BattleCommand_Counter: BattleCommand_Counter:
; counter
ld a, 1 ld a, 1
ld [wAttackMissed], a ld [wAttackMissed], a
ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP

View File

@ -1,6 +1,4 @@
BattleCommand_Curse: BattleCommand_Curse:
; curse
ld de, wBattleMonType1 ld de, wBattleMonType1
ld bc, wPlayerStatLevels ld bc, wPlayerStatLevels
ldh a, [hBattleTurn] ldh a, [hBattleTurn]

View File

@ -1,6 +1,4 @@
BattleCommand_DestinyBond: BattleCommand_DestinyBond:
; destinybond
ld a, BATTLE_VARS_SUBSTATUS5 ld a, BATTLE_VARS_SUBSTATUS5
call GetBattleVarAddr call GetBattleVarAddr
set SUBSTATUS_DESTINY_BOND, [hl] set SUBSTATUS_DESTINY_BOND, [hl]

View File

@ -1,6 +1,4 @@
BattleCommand_Disable: BattleCommand_Disable:
; disable
ld a, [wAttackMissed] ld a, [wAttackMissed]
and a and a
jr nz, .failed jr nz, .failed

View File

@ -1,6 +1,4 @@
BattleCommand_Encore: BattleCommand_Encore:
; encore
ld hl, wEnemyMonMoves ld hl, wEnemyMonMoves
ld de, wEnemyEncoreCount ld de, wEnemyEncoreCount
ldh a, [hBattleTurn] ldh a, [hBattleTurn]

View File

@ -1,6 +1,4 @@
BattleCommand_Endure: BattleCommand_Endure:
; endure
; Endure shares code with Protect. See protect.asm. ; Endure shares code with Protect. See protect.asm.
call ProtectChance call ProtectChance

View File

@ -1,6 +1,4 @@
BattleCommand_FalseSwipe: BattleCommand_FalseSwipe:
; falseswipe
; Makes sure wCurDamage < MonHP ; Makes sure wCurDamage < MonHP
ld hl, wEnemyMonHP ld hl, wEnemyMonHP

View File

@ -1,6 +1,4 @@
BattleCommand_FocusEnergy: BattleCommand_FocusEnergy:
; focusenergy
ld a, BATTLE_VARS_SUBSTATUS4 ld a, BATTLE_VARS_SUBSTATUS4
call GetBattleVarAddr call GetBattleVarAddr
bit SUBSTATUS_FOCUS_ENERGY, [hl] bit SUBSTATUS_FOCUS_ENERGY, [hl]

View File

@ -1,6 +1,4 @@
BattleCommand_Foresight: BattleCommand_Foresight:
; foresight
ld a, [wAttackMissed] ld a, [wAttackMissed]
and a and a
jr nz, .failed jr nz, .failed

View File

@ -1,5 +1,4 @@
BattleCommand_FrustrationPower: BattleCommand_FrustrationPower:
; frustrationpower
push bc push bc
ld hl, wBattleMonHappiness ld hl, wBattleMonHappiness
ldh a, [hBattleTurn] ldh a, [hBattleTurn]

View File

@ -1,6 +1,4 @@
BattleCommand_FuryCutter: BattleCommand_FuryCutter:
; furycutter
ld hl, wPlayerFuryCutterCount ld hl, wPlayerFuryCutterCount
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a

View File

@ -1,6 +1,4 @@
BattleCommand_CheckFutureSight: BattleCommand_CheckFutureSight:
; checkfuturesight
ld hl, wPlayerFutureSightCount ld hl, wPlayerFutureSightCount
ld de, wPlayerFutureSightDamage ld de, wPlayerFutureSightDamage
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
@ -26,8 +24,6 @@ BattleCommand_CheckFutureSight:
jp SkipToBattleCommand jp SkipToBattleCommand
BattleCommand_FutureSight: BattleCommand_FutureSight:
; futuresight
call CheckUserIsCharging call CheckUserIsCharging
jr nz, .AlreadyChargingFutureSight jr nz, .AlreadyChargingFutureSight
ld a, BATTLE_VARS_MOVE_ANIM ld a, BATTLE_VARS_MOVE_ANIM

Some files were not shown because too many files have changed in this diff Show More