summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2011-12-29 02:20:55 -0700
committerIIMarckus <iimarckus@gmail.com>2011-12-29 02:20:55 -0700
commitb273050dc6f1b051c05fba100d2e00a850e9f937 (patch)
tree11b0221cdff7a955cc9fb2aa5a8fe1cbb2b7c2c6
parentee3c63737d629f5c36aa963ec089dd7f530e4636 (diff)
Add some more Pokémon Tower battle stuff.
hg-commit-id: 4510da2e0fc3
-rw-r--r--pokered.asm34
1 files changed, 31 insertions, 3 deletions
diff --git a/pokered.asm b/pokered.asm
index 7a3ee8b5..eb50597f 100644
--- a/pokered.asm
+++ b/pokered.asm
@@ -1089,7 +1089,18 @@ TechnicalPrefix:
HiddenPrefix:
db "HM"
-INCBIN "baserom.gbc",$3040,$3541 - $3040
+INCBIN "baserom.gbc",$3040,$3493 - $3040
+
+Function3493: ; 3493
+; XXX what does this do
+; related to Pokémon Tower and ghosts
+ ld a,$1C
+ call Predef
+ ld a,b
+ and a
+ ret
+
+INCBIN "baserom.gbc",$349B,$3541 - $349B
Function3541: ; 3541
; XXX what do these three functions do
@@ -10235,7 +10246,24 @@ GetOutText:
TX_FAR _GetOutText
db "@"
-INCBIN "baserom.gbc",$3D83A,$3E474 - $3D83A
+Function583A: ; 583A
+ ld a,[W_ISINBATTLE]
+ dec a
+ ret nz
+ ld a,[W_CURMAP]
+ cp a,$8E ; Lavender Town
+ jr c,.next\@
+ cp a,$95 ; Pokémon Tower
+ jr nc,.next\@
+ ld b,SILPH_SCOPE
+ call Function3493
+ ret z
+.next\@
+ ld a,1
+ and a
+ ret
+
+INCBIN "baserom.gbc",$3D854,$3E474 - $3D854
TypeEffects: ; 6474
; format: attacking type, defending type, damage multiplier
@@ -12185,7 +12213,7 @@ PredefPointers: ; 7E79
dbw $03,$4754
dbw $0E,$6F5B
dbw $01,$6E43
- dbw $03,$78A5
+ dbw $03,$78A5; 1C, used in Pokémon Tower
dbw $03,$3EB5
dbw $03,$3E2E
dbw $12,$40EB