mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
comment and relabel more battle functions
This commit is contained in:
parent
a18cab495d
commit
4dbf0d44e0
249
battle/core.asm
249
battle/core.asm
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,7 @@ BattleCommand54: ; 37588
|
||||
|
||||
ld a, $1
|
||||
ld [$c689], a
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld a, $2
|
||||
call Function36532
|
||||
call SwitchTurn
|
||||
@ -71,7 +71,7 @@ BattleCommand54: ; 37588
|
||||
jr nz, .failed
|
||||
|
||||
set 1, [hl]
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld hl, GetHalfMaxHP
|
||||
call CallBattleCore
|
||||
ld hl, Function3cc3f
|
||||
@ -81,7 +81,7 @@ BattleCommand54: ; 37588
|
||||
jp StdBattleTextBox
|
||||
|
||||
.failed
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
jp PrintButItFailed
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ BattleCommand54: ; 37588
|
||||
|
||||
ld b, $8 ; ABILITY
|
||||
call GetStatName
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
ld hl, WontRiseAnymoreText
|
||||
jp StdBattleTextBox
|
||||
; 37618
|
||||
|
@ -10,7 +10,7 @@ BattleCommand5a: ; 3766f
|
||||
call _GetBattleVar
|
||||
set SUBSTATUS_ENDURE, [hl]
|
||||
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
|
||||
ld hl, BracedItselfText
|
||||
jp StdBattleTextBox
|
||||
|
@ -14,7 +14,7 @@ BattleCommand57: ; 376a0
|
||||
jr nz, .failed
|
||||
|
||||
set SUBSTATUS_IDENTIFIED, [hl]
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld hl, IdentifiedText
|
||||
jp StdBattleTextBox
|
||||
|
||||
|
@ -15,7 +15,7 @@ BattleCommand1b: ; 373c9
|
||||
jr nz, .use
|
||||
|
||||
.failed
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
|
||||
ld hl, MirrorMoveFailedText
|
||||
call StdBattleTextBox
|
||||
|
@ -28,12 +28,12 @@ BattleCommand52: ; 37536
|
||||
; Otherwise give the opponent a nightmare.
|
||||
|
||||
set SUBSTATUS_NIGHTMARE, [hl]
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld hl, StartedNightmareText
|
||||
jp StdBattleTextBox
|
||||
|
||||
.failed
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
jp PrintButItFailed
|
||||
; 37563
|
||||
|
||||
|
@ -30,12 +30,12 @@ BattleCommand58: ; 376c2
|
||||
ld [EnemyPerishCount], a
|
||||
|
||||
.done
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld hl, StartPerishText
|
||||
jp StdBattleTextBox
|
||||
|
||||
.failed
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
jp PrintButItFailed
|
||||
; 376f8
|
||||
|
||||
|
@ -7,7 +7,7 @@ BattleCommand55: ; 37618
|
||||
call _GetBattleVar
|
||||
set SUBSTATUS_PROTECT, [hl]
|
||||
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
|
||||
ld hl, ProtectedItselfText
|
||||
jp StdBattleTextBox
|
||||
@ -73,7 +73,7 @@ ProtectChance: ; 3762c
|
||||
.failed
|
||||
xor a
|
||||
ld [de], a
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
call PrintButItFailed
|
||||
scf
|
||||
ret
|
||||
|
@ -9,12 +9,12 @@ BattleCommand59: ; 376f8
|
||||
ld [Weather], a
|
||||
ld a, 5
|
||||
ld [WeatherCount], a
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
ld hl, SandstormBrewedText
|
||||
jp StdBattleTextBox
|
||||
|
||||
.failed
|
||||
call Function37e77
|
||||
call AnimateFailedMove
|
||||
jp PrintButItFailed
|
||||
; 37718
|
||||
|
||||
|
@ -17,7 +17,7 @@ BattleCommand56: ; 37683
|
||||
|
||||
set SCREENS_SPIKES, [hl]
|
||||
|
||||
call Function37e01
|
||||
call AnimateCurrentMove
|
||||
|
||||
ld hl, SpikesText
|
||||
jp StdBattleTextBox
|
||||
|
6
main.asm
6
main.asm
@ -36789,7 +36789,7 @@ ClearBattleRAM: ; 2ef18
|
||||
xor a
|
||||
call ByteFill
|
||||
|
||||
callab Function3d867
|
||||
callab ResetEnemyStatLevels
|
||||
|
||||
call Function1fbf
|
||||
|
||||
@ -37438,8 +37438,8 @@ Function3846c: ; 3846c
|
||||
.asm_384a3
|
||||
ld a, $1
|
||||
ld [$d264], a
|
||||
callab Function3d834
|
||||
callab Function3d867
|
||||
callab NewEnemyMonStatus
|
||||
callab ResetEnemyStatLevels
|
||||
ld hl, PlayerSubStatus1
|
||||
res 7, [hl]
|
||||
callba Function3d4e1
|
||||
|
Loading…
x
Reference in New Issue
Block a user