summaryrefslogtreecommitdiff
path: root/data/maps/SevenIsland_TrainerTower
diff options
context:
space:
mode:
authorgarak <garakmon@gmail.com>2019-05-13 19:44:24 -0400
committergarak <garakmon@gmail.com>2019-05-13 19:44:24 -0400
commit55d66b51770b4f657ed55822e7e76f6d6e3261d8 (patch)
tree1c324c7d2108afb678d2260e63b5591a04571b0d /data/maps/SevenIsland_TrainerTower
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/SevenIsland_TrainerTower')
-rw-r--r--data/maps/SevenIsland_TrainerTower/connections.inc6
-rw-r--r--data/maps/SevenIsland_TrainerTower/events.inc16
-rw-r--r--data/maps/SevenIsland_TrainerTower/header.inc8
-rw-r--r--data/maps/SevenIsland_TrainerTower/map.json102
4 files changed, 102 insertions, 30 deletions
diff --git a/data/maps/SevenIsland_TrainerTower/connections.inc b/data/maps/SevenIsland_TrainerTower/connections.inc
deleted file mode 100644
index 4c55ced6e..000000000
--- a/data/maps/SevenIsland_TrainerTower/connections.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-SevenIsland_TrainerTower_MapConnectionsList: @ 8352E84
- connection down, 48, MAP_SEVEN_ISLAND
-
-SevenIsland_TrainerTower_MapConnections:: @ 8352E90
- .4byte 1
- .4byte SevenIsland_TrainerTower_MapConnectionsList
diff --git a/data/maps/SevenIsland_TrainerTower/events.inc b/data/maps/SevenIsland_TrainerTower/events.inc
deleted file mode 100644
index 45aa2f532..000000000
--- a/data/maps/SevenIsland_TrainerTower/events.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-SevenIsland_TrainerTower_EventObjects:
- object_event 1, 19, 0, 56, 0, 26, 0, 3, 7, 17, 0, 1, 0, 1, 0, SevenIsland_TrainerTower_EventScript_1AC84D, 0, 0, 0
- object_event 2, 23, 0, 56, 0, 29, 0, 3, 8, 17, 0, 1, 0, 1, 0, SevenIsland_TrainerTower_EventScript_1AC88B, 0, 0, 0
-
-SevenIsland_TrainerTower_MapWarps:
- warp_def 58, 7, 3, 1, 522
-
-SevenIsland_TrainerTower_MapBGEvents:
- bg_event 49, 27, 3, 7, 0, 107, 185, 1
- bg_event 47, 30, 3, 7, 0, 106, 186, 1
- bg_event 59, 32, 3, 7, 0, 150, 187, 1
- bg_event 56, 8, 0, 0, 0, SevenIsland_TrainerTower_EventScript_168BE1
- bg_event 50, 30, 0, 0, 0, SevenIsland_TrainerTower_EventScript_168BEA
-
-SevenIsland_TrainerTower_MapEvents::
- map_events SevenIsland_TrainerTower_EventObjects, SevenIsland_TrainerTower_MapWarps, 0x0, SevenIsland_TrainerTower_MapBGEvents
diff --git a/data/maps/SevenIsland_TrainerTower/header.inc b/data/maps/SevenIsland_TrainerTower/header.inc
deleted file mode 100644
index 70ebb690e..000000000
--- a/data/maps/SevenIsland_TrainerTower/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-SevenIsland_TrainerTower:: @ 8350CE0
- .4byte SevenIsland_TrainerTower_Layout @ 0x833287C
- .4byte SevenIsland_TrainerTower_MapEvents @ 0x83B9328
- .4byte SevenIsland_TrainerTower_MapScripts @ 0x8168BD5
- .4byte SevenIsland_TrainerTower_MapConnections @ 0x8352E90
- .2byte BGM_FRLG_SEVII_ISLANDS
- .2byte 254
- .byte 0xa7, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/SevenIsland_TrainerTower/map.json b/data/maps/SevenIsland_TrainerTower/map.json
new file mode 100644
index 000000000..3b7aa0b8a
--- /dev/null
+++ b/data/maps/SevenIsland_TrainerTower/map.json
@@ -0,0 +1,102 @@
+{
+ "id": "MAP_SEVEN_ISLAND_TRAINER_TOWER",
+ "name": "SevenIsland_TrainerTower",
+ "layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER",
+ "music": "BGM_FRLG_SEVII_ISLANDS",
+ "region_map_section": "MAPSEC_TRAINER_TOWER",
+ "requires_flash": false,
+ "weather": "WEATHER_2",
+ "map_type": "MAP_TYPE_3",
+ "unknown_18": 1,
+ "unknown_19": 6,
+ "elevator_flag": 0,
+ "battle_scene": "BATTLE_SCENE_0",
+ "connections": [
+ {
+ "map": "MAP_SEVEN_ISLAND",
+ "offset": 48,
+ "direction": "down"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "19",
+ "x": 56,
+ "y": 26,
+ "elevation": 3,
+ "movement_type": "7",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "SevenIsland_TrainerTower_EventScript_1AC84D",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "23",
+ "x": 56,
+ "y": 29,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "SevenIsland_TrainerTower_EventScript_1AC88B",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 58,
+ "y": 7,
+ "elevation": 3,
+ "dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
+ "dest_warp_id": 1
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "hidden_item",
+ "x": 49,
+ "y": 27,
+ "elevation": 3,
+ "item": "ITEM_BIG_PEARL",
+ "flag": "185",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 47,
+ "y": 30,
+ "elevation": 3,
+ "item": "ITEM_PEARL",
+ "flag": "186",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 59,
+ "y": 32,
+ "elevation": 3,
+ "item": "ITEM_NANAB_BERRY",
+ "flag": "187",
+ "unknown": 1
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 56,
+ "y": 8,
+ "elevation": 0,
+ "script": "SevenIsland_TrainerTower_EventScript_168BE1"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 50,
+ "y": 30,
+ "elevation": 0,
+ "script": "SevenIsland_TrainerTower_EventScript_168BEA"
+ }
+ ]
+} \ No newline at end of file