mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Remove RAM address comments
This commit is contained in:
parent
5650595807
commit
929c7f6f7d
4 changed files with 899 additions and 900 deletions
|
|
@ -5054,11 +5054,11 @@ BuildingRageText:
|
|||
; copy last move for Mirror Move
|
||||
; sets zero flag on failure and unsets zero flag on success
|
||||
MirrorMoveCopyMove:
|
||||
; Mirror Move makes use of ccf1 (wPlayerUsedMove) and ccf2 (wEnemyUsedMove) addresses,
|
||||
; Mirror Move makes use of wPlayerUsedMove and wEnemyUsedMove,
|
||||
; which are mainly used to print the "[Pokemon] used [Move]" text.
|
||||
; Both are set to 0 whenever a new Pokemon is sent out
|
||||
; ccf1 is also set to 0 whenever the player is fast asleep or frozen solid.
|
||||
; ccf2 is also set to 0 whenever the enemy is fast asleep or frozen solid.
|
||||
; wPlayerUsedMove is also set to 0 whenever the player is fast asleep or frozen solid.
|
||||
; wEnemyUsedMove is also set to 0 whenever the enemy is fast asleep or frozen solid.
|
||||
|
||||
ld a, [H_WHOSETURN]
|
||||
and a
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ SubstituteEffect_:
|
|||
add hl, de ; point hl to current HP low byte
|
||||
pop de
|
||||
ld a, b
|
||||
ld [de], a ; save copy of HP to subtract in ccd7/ccd8 [how much HP substitute has]
|
||||
ld [de], a ; save copy of HP to subtract in wPlayerSubstituteHP/wEnemySubstituteHP
|
||||
ld a, [hld]
|
||||
; subtract [max hp / 4] to current HP
|
||||
sub b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue