Prefix engine_flags wram addresses with w

This commit is contained in:
xCrystal
2017-12-28 13:15:46 +01:00
parent e2b378f5e3
commit 9457679af8
53 changed files with 270 additions and 270 deletions

View File

@@ -6695,7 +6695,7 @@ CheckSleepingTreeMon: ; 3eb38
CheckUnownLetter: ; 3eb75
; Return carry if the Unown letter hasn't been unlocked yet
ld a, [UnlockedUnowns]
ld a, [wUnlockedUnowns]
ld c, a
ld de, 0
@@ -7074,7 +7074,7 @@ BadgeStatBoosts: ; 3ed45
and a
ret nz
ld a, [JohtoBadges]
ld a, [wJohtoBadges]
; Swap badges 3 (PlainBadge) and 5 (MineralBadge).
ld d, a
@@ -9349,7 +9349,7 @@ GetTrainerBackpic: ; 3fbff
ld a, [wPlayerSpriteSetupFlags]
bit 2, a ; transformed to male
jr nz, .Chris
ld a, [PlayerGender]
ld a, [wPlayerGender]
bit 0, a
jr z, .Chris

View File

@@ -726,7 +726,7 @@ BattleCommand_CheckObedience: ; 343db
.obeylevel
; The maximum obedience level is constrained by owned badges:
ld hl, JohtoBadges
ld hl, wJohtoBadges
; risingbadge
bit RISINGBADGE, [hl]

View File

@@ -176,9 +176,9 @@ DoBadgeTypeBoosts: ; fbe24
ld hl, .BadgeTypes
ld a, [KantoBadges]
ld a, [wKantoBadges]
ld b, a
ld a, [JohtoBadges]
ld a, [wJohtoBadges]
ld c, a
.CheckBadge: