summaryrefslogtreecommitdiff
path: root/data/maps/Route8
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/Route8
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/Route8')
-rw-r--r--data/maps/Route8/connections.inc7
-rw-r--r--data/maps/Route8/events.inc29
-rw-r--r--data/maps/Route8/header.inc8
-rw-r--r--data/maps/Route8/map.json276
4 files changed, 276 insertions, 44 deletions
diff --git a/data/maps/Route8/connections.inc b/data/maps/Route8/connections.inc
deleted file mode 100644
index 864cc0831..000000000
--- a/data/maps/Route8/connections.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-Route8_MapConnectionsList: @ 8352ABC
- connection left, -10, MAP_SAFFRON_CITY
- connection right, 0, MAP_LAVENDER_TOWN
-
-Route8_MapConnections:: @ 8352AD4
- .4byte 2
- .4byte Route8_MapConnectionsList
diff --git a/data/maps/Route8/events.inc b/data/maps/Route8/events.inc
deleted file mode 100644
index 7492f0cda..000000000
--- a/data/maps/Route8/events.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-Route8_EventObjects:
- object_event 1, 22, 0, 62, 0, 14, 0, 3, 9, 17, 0, 1, 0, 6, 0, Route8_EventScript_1AA1D5, 0, 0, 0
- object_event 2, 32, 0, 55, 0, 15, 0, 3, 8, 17, 0, 1, 0, 3, 0, Route8_EventScript_1AA30B, 0, 0, 0
- object_event 3, 55, 0, 51, 0, 6, 0, 3, 1, 17, 0, 1, 0, 4, 0, Route8_EventScript_1AA251, 0, 0, 0
- object_event 4, 22, 0, 29, 0, 3, 0, 3, 9, 17, 0, 1, 0, 3, 0, Route8_EventScript_1AA11B, 0, 0, 0
- object_event 5, 55, 0, 29, 0, 4, 0, 3, 10, 17, 0, 1, 0, 6, 0, Route8_EventScript_1AA28F, 0, 0, 0
- object_event 6, 22, 0, 29, 0, 5, 0, 3, 9, 17, 0, 1, 0, 3, 0, Route8_EventScript_1AA159, 0, 0, 0
- object_event 7, 22, 0, 29, 0, 6, 0, 3, 10, 17, 0, 1, 0, 6, 0, Route8_EventScript_1AA197, 0, 0, 0
- object_event 8, 32, 0, 21, 0, 3, 0, 3, 1, 17, 0, 1, 0, 1, 0, Route8_EventScript_1AA2CD, 0, 0, 0
- object_event 9, 55, 0, 9, 0, 6, 0, 3, 10, 17, 0, 1, 0, 4, 0, Route8_EventScript_1AA213, 0, 0, 0
- object_event 10, 95, 0, 33, 0, 15, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route8_EventScript_1BDF13, 18, 0, 0
- object_event 11, 95, 0, 47, 0, 12, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route8_EventScript_1BDF13, 19, 0, 0
- object_event 12, 17, 0, 40, 0, 3, 0, 3, 8, 17, 0, 1, 0, 1, 0, Route8_EventScript_1AA349, 0, 0, 0
- object_event 13, 17, 0, 41, 0, 3, 0, 3, 8, 17, 0, 1, 0, 1, 0, Route8_EventScript_1AA38F, 0, 0, 0
- object_event 14, 53, 0, 14, 0, 16, 0, 3, 52, 37, 0, 1, 0, 1, 0, Route8_EventScript_1AA3D5, 0, 0, 0
- object_event 15, 53, 0, 24, 0, 17, 0, 3, 41, 85, 0, 1, 0, 1, 0, Route8_EventScript_1AA413, 0, 0, 0
-
-Route8_MapWarps:
- warp_def 13, 4, 0, 1, 291
- warp_def 7, 10, 3, 2, 5120
-
-Route8_MapBGEvents:
- bg_event 16, 5, 0, 0, 0, Route8_EventScript_167FC6
- bg_event 42, 10, 3, 7, 0, 136, 127, 1
- bg_event 38, 11, 3, 7, 0, 141, 128, 1
- bg_event 42, 15, 3, 7, 0, 138, 129, 1
-
-Route8_MapEvents::
- map_events Route8_EventObjects, Route8_MapWarps, 0x0, Route8_MapBGEvents
diff --git a/data/maps/Route8/header.inc b/data/maps/Route8/header.inc
deleted file mode 100644
index b4b9bec8d..000000000
--- a/data/maps/Route8/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route8:: @ 83508F0
- .4byte Route8_Layout @ 0x82EA948
- .4byte Route8_MapEvents @ 0x83B6CB0
- .4byte Route8_MapScripts @ 0x8167FC5
- .4byte Route8_MapConnections @ 0x8352AD4
- .2byte BGM_FRLG_ROUTE_3
- .2byte 96
- .byte 0x6c, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/Route8/map.json b/data/maps/Route8/map.json
new file mode 100644
index 000000000..cec23d53d
--- /dev/null
+++ b/data/maps/Route8/map.json
@@ -0,0 +1,276 @@
+{
+ "id": "MAP_ROUTE8",
+ "name": "Route8",
+ "layout": "LAYOUT_ROUTE8",
+ "music": "BGM_FRLG_ROUTE_3",
+ "region_map_section": "MAPSEC_ROUTE_8",
+ "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_SAFFRON_CITY",
+ "offset": -10,
+ "direction": "left"
+ },
+ {
+ "map": "MAP_LAVENDER_TOWN",
+ "offset": 0,
+ "direction": "right"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "22",
+ "x": 62,
+ "y": 14,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 6,
+ "script": "Route8_EventScript_1AA1D5",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "32",
+ "x": 55,
+ "y": 15,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route8_EventScript_1AA30B",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "55",
+ "x": 51,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route8_EventScript_1AA251",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "22",
+ "x": 29,
+ "y": 3,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route8_EventScript_1AA11B",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "55",
+ "x": 29,
+ "y": 4,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 6,
+ "script": "Route8_EventScript_1AA28F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "22",
+ "x": 29,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route8_EventScript_1AA159",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "22",
+ "x": 29,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 6,
+ "script": "Route8_EventScript_1AA197",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "32",
+ "x": 21,
+ "y": 3,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route8_EventScript_1AA2CD",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "55",
+ "x": 9,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route8_EventScript_1AA213",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 33,
+ "y": 15,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route8_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "95",
+ "x": 47,
+ "y": 12,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route8_EventScript_1BDF13",
+ "flag": "19"
+ },
+ {
+ "graphics_id": "17",
+ "x": 40,
+ "y": 3,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route8_EventScript_1AA349",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "17",
+ "x": 41,
+ "y": 3,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route8_EventScript_1AA38F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "53",
+ "x": 14,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "52",
+ "movement_range_x": 5,
+ "movement_range_y": 2,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route8_EventScript_1AA3D5",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "53",
+ "x": 24,
+ "y": 17,
+ "elevation": 3,
+ "movement_type": "41",
+ "movement_range_x": 5,
+ "movement_range_y": 5,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route8_EventScript_1AA413",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 13,
+ "y": 4,
+ "elevation": 0,
+ "dest_map": "MAP_UNDERGROUND_PATH_EAST_ENTRANCE",
+ "dest_warp_id": 1
+ },
+ {
+ "x": 7,
+ "y": 10,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE8_WEST_ENTRANCE",
+ "dest_warp_id": 2
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 16,
+ "y": 5,
+ "elevation": 0,
+ "script": "Route8_EventScript_167FC6"
+ },
+ {
+ "type": "hidden_item",
+ "x": 42,
+ "y": 10,
+ "elevation": 3,
+ "item": "ITEM_RAWST_BERRY",
+ "flag": "127",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 38,
+ "y": 11,
+ "elevation": 3,
+ "item": "ITEM_LUM_BERRY",
+ "flag": "128",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 42,
+ "y": 15,
+ "elevation": 3,
+ "item": "ITEM_LEPPA_BERRY",
+ "flag": "129",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file