From b9a68fec2589eb6969be63e6ed1eb3fca312c307 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Thu, 28 Dec 2017 21:22:35 -0500 Subject: Consistent if/else/endc (matches rept/endr) and DEF (matches BANK/HIGH/LOW) --- mobile/battle_tower_47.asm | 10 +++++----- mobile/mobile_5c.asm | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'mobile') diff --git a/mobile/battle_tower_47.asm b/mobile/battle_tower_47.asm index d0ca6edd8..14f69d654 100755 --- a/mobile/battle_tower_47.asm +++ b/mobile/battle_tower_47.asm @@ -5,19 +5,19 @@ BattleTowerText:: ; 11c000 ; 3: Player won ld a, [rSVBK] push af - ld a, 3 ; BANK(BT_OTTrainerClass) + ld a, BANK(BT_OTTrainerClass) ld [rSVBK], a -IF DEF(CRYSTAL11) +if DEF(CRYSTAL11) ld hl, BT_OTTrainerClass -ELSE - ld hl, BT_OTName + 5 +else ; BUG ALERT ; Instead of loading the Trainer Class, this routine ; loads the 6th character in the Trainer's name, then ; uses it to get the gender of the trainer. ; As a consequence, the enemy trainer's dialog will ; always be sampled from the female array. -ENDC + ld hl, BT_OTName + 5 +endc ld a, [hl] dec a ld e, a diff --git a/mobile/mobile_5c.asm b/mobile/mobile_5c.asm index f6d6cdf3f..18ae114cc 100755 --- a/mobile/mobile_5c.asm +++ b/mobile/mobile_5c.asm @@ -936,11 +936,11 @@ GameBoyN64GFX: INCBIN "gfx/trade/game_boy_n64.2bpp" Tilemap_1733af: -IF DEF(CRYSTAL11) +if DEF(CRYSTAL11) INCBIN "gfx/unknown/1733af_corrupt.tilemap" -ELSE +else INCBIN "gfx/unknown/1733af.tilemap" -ENDC +endc Attrmap_173517: INCBIN "gfx/unknown/173517.attrmap" -- cgit v1.2.3