aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events
diff options
context:
space:
mode:
authorRangi42 <sylvie.oukaour+rangi42@gmail.com>2024-12-16 10:35:55 -0500
committerRangi42 <sylvie.oukaour+rangi42@gmail.com>2024-12-16 10:35:55 -0500
commit67084c9d261c5ab88c52b2dd99c8a767be831805 (patch)
treeac60df11741ef7e8a101982ae6860690f4eafb08 /engine/events
parentUse "gray", not "grey" (diff)
downloadpokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.tar.gz
pokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.tar.xz
pokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.zip
Remove redundant parentheses
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/poison.asm4
-rw-r--r--engine/events/prize_menu.asm6
2 files changed, 5 insertions, 5 deletions
diff --git a/engine/events/poison.asm b/engine/events/poison.asm
index bd79ad16..c0b4a18f 100644
--- a/engine/events/poison.asm
+++ b/engine/events/poison.asm
@@ -15,7 +15,7 @@ ApplyOutOfBattlePoisonDamage:
ld de, wPartySpecies
.applyDamageLoop
ld a, [hl]
- and (1 << PSN)
+ and 1 << PSN
jr z, .nextMon2 ; not poisoned
dec hl
dec hl
@@ -79,7 +79,7 @@ ApplyOutOfBattlePoisonDamage:
ld e, 0
.countPoisonedLoop
ld a, [hl]
- and (1 << PSN)
+ and 1 << PSN
or e
ld e, a
ld bc, wPartyMon2 - wPartyMon1
diff --git a/engine/events/prize_menu.asm b/engine/events/prize_menu.asm
index 816637bf..f2b24a3f 100644
--- a/engine/events/prize_menu.asm
+++ b/engine/events/prize_menu.asm
@@ -129,15 +129,15 @@ GetPrizeMenuId:
; reg. c:
; [low nybble] number of bytes
; [bits 765 = %100] space-padding (not zero-padding)
- ld c, (1 << 7 | 2)
+ ld c, (1 << 7) | 2
call PrintBCDNumber
ld de, wPrize2Price
hlcoord 13, 7
- ld c, (1 << 7 | 2)
+ ld c, (1 << 7) | 2
call PrintBCDNumber
ld de, wPrize3Price
hlcoord 13, 9
- ld c, (1 << 7 | 2)
+ ld c, (1 << 7) | 2
jp PrintBCDNumber
INCLUDE "data/events/prizes.asm"