diff options
author | YamaArashi <shadow962@live.com> | 2014-09-13 00:50:56 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2014-09-13 00:50:56 -0700 |
commit | 0c916aea3353ed1bf2750be403b0da9ea0b922d4 (patch) | |
tree | 4e50d805a37f06fabac6086a7ad6ed1d4f4526c4 /engine/battle | |
parent | 91793015e53dbed09576f825d39e71bc59bf90a5 (diff) |
Commented more sprite and map code
Diffstat (limited to 'engine/battle')
-rwxr-xr-x | engine/battle/14.asm | 2 | ||||
-rwxr-xr-x | engine/battle/1c.asm | 2 | ||||
-rwxr-xr-x | engine/battle/4_2.asm | 4 | ||||
-rwxr-xr-x | engine/battle/animations.asm | 6 | ||||
-rwxr-xr-x | engine/battle/core.asm | 14 | ||||
-rwxr-xr-x | engine/battle/d.asm | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/engine/battle/14.asm b/engine/battle/14.asm index 01a8f48a..530032a0 100755 --- a/engine/battle/14.asm +++ b/engine/battle/14.asm @@ -15,7 +15,7 @@ Func_525af: ; 525af (14:65af) ld [wPartyGainExpFlags], a ld [wPlayerMonNumber], a ; wPlayerMonNumber ld [wEscapedFromBattle], a - ld [wd35d], a + ld [wMapPalOffset], a ld hl, wcf1d ld [hli], a ld [hl], a diff --git a/engine/battle/1c.asm b/engine/battle/1c.asm index 3f23a27c..1c69c00f 100755 --- a/engine/battle/1c.asm +++ b/engine/battle/1c.asm @@ -89,7 +89,7 @@ BattleTransition: ; 7096d (1c:496d) xor a ld [hVBlankWY], a dec a - ld [wcfcb], a + ld [wUpdateSpritesEnabled], a call DelayFrame ld hl, wSpriteStateData1 + 2 ld a, [H_DOWNARROWBLINKCNT2] diff --git a/engine/battle/4_2.asm b/engine/battle/4_2.asm index 79594bdd..133acdcc 100755 --- a/engine/battle/4_2.asm +++ b/engine/battle/4_2.asm @@ -71,7 +71,7 @@ EndOfBattle: ; 137aa (4:77aa) call WaitForSoundToFinish call GBPalWhiteOut ld a, $ff - ld [wd42f], a + ld [wDestinationWarpID], a ret YouWinText: ; 13853 (4:7853) @@ -94,7 +94,7 @@ Func_13870: ; 13870 (4:7870) ld a, [wd736] and a ret nz - callab Func_c49d + callab IsPlayerStandingOnDoorTileOrWarpTile jr nc, .asm_13888 .asm_13884 ld a, $1 diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm index a094b34c..15d94f05 100755 --- a/engine/battle/animations.asm +++ b/engine/battle/animations.asm @@ -517,7 +517,7 @@ Func_78e01: ; 78e01 (1e:4e01) ret Func_78e23: ; 78e23 (1e:4e23) - ld a, [wcf1b] + ld a, [wOnSGB] and a ld a, $e4 jr z, .asm_78e47 @@ -1091,7 +1091,7 @@ CallWithTurnFlipped: ; 79155 (1e:5155) AnimationFlashScreenLong: ; 79165 (1e:5165) ld a,3 ; cycle through the palettes 3 times ld [wd08a],a - ld a,[wcf1b] ; running on SGB? + ld a,[wOnSGB] ; running on SGB? and a ld hl,FlashScreenLongMonochrome jr z,.loop @@ -1211,7 +1211,7 @@ Func_791f9: ; 791f9 (1e:51f9) ld bc, $4040 Func_791fc: ; 791fc (1e:51fc) - ld a, [wcf1b] + ld a, [wOnSGB] and a ld a, b jr z, .asm_79204 diff --git a/engine/battle/core.asm b/engine/battle/core.asm index 4b1ceedd..26465b8f 100755 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -139,7 +139,7 @@ SlidePlayerAndEnemySilhouettesOnScreen: ; 3c04c (f:404c) ld [$ffd7], a ld [hVBlankSCY], a dec a - ld [wcfcb], a + ld [wUpdateSpritesEnabled], a call Delay3 xor a ld [H_AUTOBGTRANSFERENABLED], a @@ -6247,7 +6247,7 @@ DoBattleTransitionAndInitBattleVariables: ; 3ec32 (f:6c32) ld [wMenuJoypadPollCount], a callab DisplayLinkBattleVersusTextBox ld a, $1 - ld [wcfcb], a + ld [wUpdateSpritesEnabled], a call ClearScreen .next call DelayFrame @@ -6256,7 +6256,7 @@ DoBattleTransitionAndInitBattleVariables: ; 3ec32 (f:6c32) ld a, $1 ld [H_AUTOBGTRANSFERENABLED], a ld a, $ff - ld [wcfcb], a + ld [wUpdateSpritesEnabled], a call ClearSprites call ClearScreen xor a @@ -6729,16 +6729,16 @@ asm_3ef23: ; 3ef23 (f:6f23) bit 1, a jr z, .asm_3ef2f ld a, [hJoyHeld] - bit 1, a + bit 1, a ; B button pressed? ret nz .asm_3ef2f - ld a, [wd13c] + ld a, [wNumberOfNoRandomBattleStepsLeft] and a ret nz callab Func_13870 ret nz asm_3ef3d: ; 3ef3d (f:6f3d) - ld a, [wd35d] + ld a, [wMapPalOffset] push af ld hl, wd358 ld a, [hl] @@ -6849,7 +6849,7 @@ InitBattle_Common: ; 3efeb (f:6feb) pop af ld [wd358], a pop af - ld [wd35d], a + ld [wMapPalOffset], a ld a, [wd0d4] ld [$ffd7], a scf diff --git a/engine/battle/d.asm b/engine/battle/d.asm index dcd58ec4..94a07eb6 100755 --- a/engine/battle/d.asm +++ b/engine/battle/d.asm @@ -17,7 +17,7 @@ DisplayLinkBattleVersusTextBox: ; 372d6 (d:72d6) ld [hli], a ld [hl], $6a xor a - ld [wcfcb], a + ld [wUpdateSpritesEnabled], a callab SetupPlayerAndEnemyPokeballs ld c, 150 jp DelayFrames |