summaryrefslogtreecommitdiff
path: root/scripts/tradecenter.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-16 23:21:57 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-16 23:21:57 -0500
commit4670a1ddae02fd73d8c4826f9d9c9948820636a0 (patch)
tree42f3a4c0861f920a88254cd13d8ec05a0f9a7238 /scripts/tradecenter.asm
parentb1cb3788938fa981e65619f022a41f1c1d91ae3b (diff)
Swap trade center and battle center
also rename battle center to colosseum closes https://github.com/iimarckus/pokered/issues/102
Diffstat (limited to 'scripts/tradecenter.asm')
-rwxr-xr-xscripts/tradecenter.asm38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/tradecenter.asm b/scripts/tradecenter.asm
new file mode 100755
index 00000000..0a5cc100
--- /dev/null
+++ b/scripts/tradecenter.asm
@@ -0,0 +1,38 @@
+TradeCenterScript: ; 4fd10 (13:7d10)
+ call EnableAutoTextBoxDrawing
+ ld a, [$ffaa]
+ cp $2
+ ld a, $8
+ jr z, .asm_4fd1d
+ ld a, $c
+.asm_4fd1d
+ ld [$ff8d], a
+ ld a, $1
+ ld [$ff8c], a
+ call SetSpriteFacingDirection
+ ld hl, wd72d
+ bit 0, [hl]
+ set 0, [hl]
+ ret nz
+ ld hl, wSpriteStateData2 + $14
+ ld a, $8
+ ld [hli], a
+ ld a, $a
+ ld [hl], a
+ ld a, SPRITE_FACING_LEFT
+ ld [wSpriteStateData1 + $19], a
+ ld a, [$ffaa]
+ cp $2
+ ret z
+ ld a, $7
+ ld [wSpriteStateData2 + $15], a
+ ld a, SPRITE_FACING_RIGHT
+ ld [wSpriteStateData1 + $19], a
+ ret
+
+TradeCenterTextPointers: ; 4fd4c (13:7d4c)
+ dw TradeCenterText1
+
+TradeCenterText1: ; 4fd4e (13:7d4e)
+ TX_FAR _TradeCenterText1
+ db "@"