ref: 936a170e0da19cb5bb2ccc325a43a28690230098
parent: a17623d96b25d6733846f5774fd10bb317862b43
author: Rangi <[email protected]>
date: Wed Jan 31 18:21:15 EST 2018
MobileTradeRoom matches MobileBattleRoom
--- a/constants/map_constants.asm
+++ b/constants/map_constants.asm
@@ -373,7 +373,7 @@
mapconst TRADE_CENTER, 4, 5 ; 2
mapconst COLOSSEUM, 4, 5 ; 3
mapconst TIME_CAPSULE, 4, 5 ; 4
- mapconst MOBILE_TRADE_ROOM_MOBILE, 4, 5 ; 5
+ mapconst MOBILE_TRADE_ROOM, 4, 5 ; 5
mapconst MOBILE_BATTLE_ROOM, 4, 5 ; 6
newgroup ; 21
--- a/constants/scene_constants.asm
+++ b/constants/scene_constants.asm
@@ -377,10 +377,10 @@
const SCENE_MOUNTMOONSQUARE_0
const SCENE_MOUNTMOONSQUARE_1
-; wMobileTradeRoomMobileSceneID
+; wMobileTradeRoomSceneID
const_def
- const SCENE_MOBILETRADEROOMMOBILE_0
- const SCENE_MOBILETRADEROOMMOBILE_1
+ const SCENE_MOBILETRADEROOM_0
+ const SCENE_MOBILETRADEROOM_1
; wMobileBattleRoomSceneID
const_def
--- a/data/maps/blocks.asm
+++ b/data/maps/blocks.asm
@@ -1025,8 +1025,8 @@
PokecomCenterAdminRoomMobile_Blocks:
INCBIN "maps/PokecomCenterAdminRoomMobile.blk"
-MobileTradeRoomMobile_Blocks:
- INCBIN "maps/MobileTradeRoomMobile.blk"
+MobileTradeRoom_Blocks:
+ INCBIN "maps/MobileTradeRoom.blk"
MobileBattleRoom_Blocks:
INCBIN "maps/MobileBattleRoom.blk"
--- a/data/maps/data.asm
+++ b/data/maps/data.asm
@@ -584,7 +584,7 @@
map_data TradeCenter, TRADE_CENTER, $00, 0
map_data Colosseum, COLOSSEUM, $00, 0
map_data TimeCapsule, TIME_CAPSULE, $00, 0
- map_data MobileTradeRoomMobile, MOBILE_TRADE_ROOM_MOBILE, $00, 0
+ map_data MobileTradeRoom, MOBILE_TRADE_ROOM, $00, 0
map_data MobileBattleRoom, MOBILE_BATTLE_ROOM, $00, 0
map_data CeladonDeptStore1F, CELADON_DEPT_STORE_1F, $00, 0
map_data CeladonDeptStore2F, CELADON_DEPT_STORE_2F, $00, 0
--- a/data/maps/definitions.asm
+++ b/data/maps/definitions.asm
@@ -375,7 +375,7 @@
map_def TradeCenter, TILESET_GATE, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
map_def Colosseum, TILESET_GATE, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
map_def TimeCapsule, TILESET_GATE, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
- map_def MobileTradeRoomMobile, TILESET_MANSION, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
+ map_def MobileTradeRoom, TILESET_MANSION, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
map_def MobileBattleRoom, TILESET_MANSION, INDOOR, SPECIAL_MAP, MUSIC_CHERRYGROVE_CITY, TRUE, PALETTE_DAY, FISHGROUP_SHORE
MapGroup_Celadon:
--- a/data/maps/scenes.asm
+++ b/data/maps/scenes.asm
@@ -83,7 +83,7 @@
scene_def FAST_SHIP_1F, wFastShip1FSceneID
scene_def FAST_SHIP_B1F, wFastShipB1FSceneID
scene_def MOUNT_MOON_SQUARE, wMountMoonSquareSceneID
- scene_def MOBILE_TRADE_ROOM_MOBILE, wMobileTradeRoomMobileSceneID
+ scene_def MOBILE_TRADE_ROOM, wMobileTradeRoomSceneID
scene_def MOBILE_BATTLE_ROOM, wMobileBattleRoomSceneID
db -1
; 4d15b
--- a/data/maps/scripts.asm
+++ b/data/maps/scripts.asm
@@ -343,7 +343,7 @@
INCLUDE "maps/TradeCenter.asm"
INCLUDE "maps/Colosseum.asm"
INCLUDE "maps/TimeCapsule.asm"
-INCLUDE "maps/MobileTradeRoomMobile.asm"
+INCLUDE "maps/MobileTradeRoom.asm"
INCLUDE "maps/MobileBattleRoom.asm"
--- /dev/null
+++ b/maps/MobileTradeRoom.asm
@@ -1,0 +1,47 @@
+MobileTradeRoom_MapScripts:
+ db 2 ; scene scripts
+ scene_script .InitializeMobileTradeRoom ; SCENE_MOBILETRADEROOM_0
+ scene_script .DummyScene ; SCENE_MOBILETRADEROOM_1
+
+ db 0 ; callbacks
+
+.InitializeMobileTradeRoom:
+ priorityjump .InitializeAndPreparePokecenter2F
+ end
+
+.DummyScene:
+ end
+
+.InitializeAndPreparePokecenter2F:
+ setscene SCENE_MOBILETRADEROOM_1
+ setmapscene POKECENTER_2F, SCENE_POKECENTER2F_4
+ end
+
+MapMobileTradeRoomSignpost0Script:
+ refreshscreen
+ special Function1037c2
+ writetext MobileTradeRoom_EstablishingCommsText
+ waitbutton
+ reloadmappart
+ special Function101231
+ closetext
+ end
+
+MobileTradeRoom_EstablishingCommsText:
+ text "Establishing"
+ line "communications…"
+ done
+
+MobileTradeRoom_MapEvents:
+ db 0, 0 ; filler
+
+ db 2 ; warp events
+ warp_event 4, 7, 5, POKECENTER_2F
+ warp_event 5, 7, 5, POKECENTER_2F
+
+ db 0 ; coord events
+
+ db 1 ; bg events
+ bg_event 4, 2, BGEVENT_UP, MapMobileTradeRoomSignpost0Script
+
+ db 0 ; object events
--- /dev/null
+++ b/maps/MobileTradeRoom.blk
@@ -1,0 +1,1 @@
+/1230=567>9<.;:=?->
\ No newline at end of file
--- a/maps/MobileTradeRoomMobile.asm
+++ /dev/null
@@ -1,47 +1,0 @@
-MobileTradeRoomMobile_MapScripts:
- db 2 ; scene scripts
- scene_script .InitializeMobileTradeRoomMobile ; SCENE_MOBILETRADEROOMMOBILE_0
- scene_script .DummyScene ; SCENE_MOBILETRADEROOMMOBILE_1
-
- db 0 ; callbacks
-
-.InitializeMobileTradeRoomMobile:
- priorityjump .InitializeAndPreparePokecenter2F
- end
-
-.DummyScene:
- end
-
-.InitializeAndPreparePokecenter2F:
- setscene SCENE_MOBILETRADEROOMMOBILE_1
- setmapscene POKECENTER_2F, SCENE_POKECENTER2F_4
- end
-
-MapMobileTradeRoomMobileSignpost0Script:
- refreshscreen
- special Function1037c2
- writetext MobileTradeRoomMobile_EstablishingCommsText
- waitbutton
- reloadmappart
- special Function101231
- closetext
- end
-
-MobileTradeRoomMobile_EstablishingCommsText:
- text "Establishing"
- line "communications…"
- done
-
-MobileTradeRoomMobile_MapEvents:
- db 0, 0 ; filler
-
- db 2 ; warp events
- warp_event 4, 7, 5, POKECENTER_2F
- warp_event 5, 7, 5, POKECENTER_2F
-
- db 0 ; coord events
-
- db 1 ; bg events
- bg_event 4, 2, BGEVENT_UP, MapMobileTradeRoomMobileSignpost0Script
-
- db 0 ; object events
--- a/maps/MobileTradeRoomMobile.blk
+++ /dev/null
@@ -1,1 +1,0 @@
-/1230=567>9<.;:=?->
\ No newline at end of file
--- a/maps/Pokecenter2F.asm
+++ b/maps/Pokecenter2F.asm
@@ -382,7 +382,7 @@
special Function101220
scall Script_WalkOutOfMobileTradeRoom
setscene SCENE_POKECENTER2F_0
- setmapscene MOBILE_TRADE_ROOM_MOBILE, SCENE_MOBILETRADEROOMMOBILE_0
+ setmapscene MOBILE_TRADE_ROOM, SCENE_MOBILETRADEROOM_0
end
Script_WalkOutOfMobileTradeRoom:
@@ -1028,7 +1028,7 @@
warp_event 5, 0, 1, TRADE_CENTER
warp_event 9, 0, 1, COLOSSEUM
warp_event 13, 2, 1, TIME_CAPSULE
- warp_event 6, 0, 1, MOBILE_TRADE_ROOM_MOBILE
+ warp_event 6, 0, 1, MOBILE_TRADE_ROOM
warp_event 10, 0, 1, MOBILE_BATTLE_ROOM
db 0 ; coord events
--- a/wram.asm
+++ b/wram.asm
@@ -2577,7 +2577,7 @@
wFastShip1FSceneID:: db ; d9bc
wFastShipB1FSceneID:: db ; d9bd
wMountMoonSquareSceneID:: db ; d9be
-wMobileTradeRoomMobileSceneID:: db ; d9bf
+wMobileTradeRoomSceneID:: db ; d9bf
wMobileBattleRoomSceneID:: db ; d9c0
ds 49