aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-06-17 21:25:52 -0500
committerGitHub <noreply@github.com>2022-06-17 22:25:52 -0400
commitedb55e00f84024dd3634a25df8715e8b9cb3454b (patch)
tree043aa188ef8748d8bb3e52b4abe7570db7486ce9 /engine/items
parentMention WildDataPointers in map_constants.asm (diff)
downloadpokeyellow-edb55e00f84024dd3634a25df8715e8b9cb3454b.tar.gz
pokeyellow-edb55e00f84024dd3634a25df8715e8b9cb3454b.tar.xz
pokeyellow-edb55e00f84024dd3634a25df8715e8b9cb3454b.zip
Rename `SLP` to `SLP_MASK` (#361)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/item_effects.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index f58b737e..16b4140a 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -225,7 +225,7 @@ ItemUseBall:
ld a, [wEnemyMonStatus]
and a
jr z, .skipAilmentValueSubtraction ; no ailments
- and 1 << FRZ | SLP
+ and (1 << FRZ) | SLP_MASK
ld c, 12
jr z, .notFrozenOrAsleep
ld c, 25
@@ -380,7 +380,7 @@ ItemUseBall:
ld a, [wEnemyMonStatus]
and a
jr z, .skip5
- and 1 << FRZ | SLP
+ and (1 << FRZ) | SLP_MASK
ld b, 5
jr z, .addAilmentValue
ld b, 10
@@ -878,7 +878,7 @@ ItemUseMedicine:
lb bc, ICE_HEAL_MSG, 1 << FRZ
cp ICE_HEAL
jr z, .checkMonStatus
- lb bc, AWAKENING_MSG, SLP
+ lb bc, AWAKENING_MSG, SLP_MASK
cp AWAKENING
jr z, .checkMonStatus
lb bc, PARALYZ_HEAL_MSG, 1 << PAR
@@ -1700,7 +1700,7 @@ ItemUsePokeflute:
.inBattle
xor a
ld [wWereAnyMonsAsleep], a
- ld b, ~SLP & $ff
+ ld b, ~SLP_MASK
ld hl, wPartyMon1Status
call WakeUpEntireParty
ld a, [wIsInBattle]
@@ -1752,7 +1752,7 @@ WakeUpEntireParty:
.loop
ld a, [hl]
push af
- and SLP ; is pokemon asleep?
+ and SLP_MASK
jr z, .notAsleep
ld a, 1
ld [wWereAnyMonsAsleep], a ; indicate that a pokemon had to be woken up