shithub: pokered

Download patch

ref: b610edaee10a0e715fe9f02b76a2e433a4aabac9
parent: c4a49e4a35aa78bd950ef16631c1ce65bf49c8b5
author: Bryan Bishop <kanzure@gmail.com>
date: Sat Jan 14 14:56:45 EST 2012

add script, texts and blocks for Mansion2

hg-commit-id: 9bccdc4e5ae9


--- a/common.asm
+++ b/common.asm
@@ -26881,13 +26881,27 @@
 Mansion2_h: ; 0x51fcc to 0x51fd8 (12 bytes) (id=214)
     db $16 ; tileset
     db $0e, $0f ; dimensions (y, x)
-    dw $6110, $604d, $5fd8 ; blocks, texts, scripts
+    dw Mansion2Blocks, Mansion2Texts, Mansion2Script ; blocks, texts, scripts
     db $00 ; connections
 
     dw Mansion2Object ; objects
 
-INCBIN "baserom.gbc",$51fd8,$52064 - $51fd8
+Mansion2Script:
+    call $5fee
+    call $3c3c
+    ld hl, $6057
+    ld de, $6047
+    ld a, [$d63c]
+    call $3160
+    ld [$d63c], a
+    ret
+; 0x51fee
 
+INCBIN "baserom.gbc",$51fee,$5204d - $51fee
+
+Mansion2Texts: ; 0x5204d
+INCBIN "baserom.gbc",$5204d,23
+
 Mansion2Text1: ; 0x52064
     db $08 ; asm
     ld hl, $6057
@@ -26929,7 +26943,8 @@
     EVENT_DISP $f, $e, $19 ; MANSION_3
     EVENT_DISP $f, $1, $6 ; MANSION_3
 
-INCBIN "baserom.gbc",$52110,$d2
+Mansion2Blocks:
+    INCBIN "maps/mansion2.blk"
 
 Mansion3_h: ; 0x521e2 to 0x521ee (12 bytes) (id=215)
     db $16 ; tileset