aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/PokemonMansionB1F.asm
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-09-03 17:56:09 +0200
committerGitHub <noreply@github.com>2025-09-03 11:56:09 -0400
commit4d2594cb24b7e67cde4e1373c9a2b5e0ae7ff473 (patch)
tree5bd4fce0a314171b46b3962a5db5df6eb5154ee2 /scripts/PokemonMansionB1F.asm
parentDocument where badge and elevator floor "items" are used (diff)
downloadpokeyellow-4d2594cb24b7e67cde4e1373c9a2b5e0ae7ff473.tar.gz
pokeyellow-4d2594cb24b7e67cde4e1373c9a2b5e0ae7ff473.tar.xz
pokeyellow-4d2594cb24b7e67cde4e1373c9a2b5e0ae7ff473.zip
Label and constant cleanup (#528)
* Label cleanup, add some constants instead of raw numbers * Rename load/save game functions to be more explicit
Diffstat (limited to 'scripts/PokemonMansionB1F.asm')
-rw-r--r--scripts/PokemonMansionB1F.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/PokemonMansionB1F.asm b/scripts/PokemonMansionB1F.asm
index e31bbd3e..176c243a 100644
--- a/scripts/PokemonMansionB1F.asm
+++ b/scripts/PokemonMansionB1F.asm
@@ -16,30 +16,30 @@ MansionB1FCheckReplaceSwitchDoorBlocks:
CheckEvent EVENT_MANSION_SWITCH_ON
jr nz, .switchTurnedOn
ld a, $e
- ld bc, $80d
+ lb bc, 8, 13
call Mansion2ReplaceBlock
ld a, $e
- ld bc, $b06
+ lb bc, 11, 6
call Mansion2ReplaceBlock
ld a, $5f
- ld bc, $304
+ lb bc, 3, 4
call Mansion2ReplaceBlock
ld a, $54
- ld bc, $808
+ lb bc, 8, 8
call Mansion2ReplaceBlock
ret
.switchTurnedOn
ld a, $2d
- ld bc, $80d
+ lb bc, 8, 13
call Mansion2ReplaceBlock
ld a, $5f
- ld bc, $b06
+ lb bc, 11, 6
call Mansion2ReplaceBlock
ld a, $e
- ld bc, $304
+ lb bc, 3, 4
call Mansion2ReplaceBlock
ld a, $e
- ld bc, $808
+ lb bc, 8, 8
call Mansion2ReplaceBlock
ret