summaryrefslogtreecommitdiff
path: root/data/maps/Route12
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/Route12
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/Route12')
-rw-r--r--data/maps/Route12/connections.inc8
-rw-r--r--data/maps/Route12/events.inc31
-rw-r--r--data/maps/Route12/header.inc8
-rw-r--r--data/maps/Route12/map.json289
4 files changed, 289 insertions, 47 deletions
diff --git a/data/maps/Route12/connections.inc b/data/maps/Route12/connections.inc
deleted file mode 100644
index ec99ba53b..000000000
--- a/data/maps/Route12/connections.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route12_MapConnectionsList: @ 8352B3C
- connection up, 0, MAP_LAVENDER_TOWN
- connection down, -48, MAP_ROUTE13
- connection left, 60, MAP_ROUTE11
-
-Route12_MapConnections:: @ 8352B60
- .4byte 3
- .4byte Route12_MapConnectionsList
diff --git a/data/maps/Route12/events.inc b/data/maps/Route12/events.inc
deleted file mode 100644
index bfb2acbbf..000000000
--- a/data/maps/Route12/events.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-Route12_EventObjects:
- object_event 1, 57, 0, 17, 0, 32, 0, 3, 13, 17, 0, 1, 0, 1, 0, Route12_EventScript_1AA451, 0, 0, 0
- object_event 2, 57, 0, 9, 0, 40, 0, 3, 14, 17, 0, 1, 0, 1, 0, Route12_EventScript_1AA48F, 0, 0, 0
- object_event 3, 57, 0, 16, 0, 47, 0, 3, 17, 17, 0, 1, 0, 4, 0, Route12_EventScript_1AA4CD, 0, 0, 0
- object_event 4, 57, 0, 13, 0, 59, 0, 3, 13, 17, 0, 1, 0, 1, 0, Route12_EventScript_1AA50B, 0, 0, 0
- object_event 5, 109, 0, 14, 0, 70, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route12_EventScript_168014, 84, 0, 0
- object_event 6, 26, 0, 13, 0, 92, 0, 3, 37, 68, 0, 1, 0, 1, 0, Route12_EventScript_1AA587, 0, 0, 0
- object_event 7, 39, 0, 10, 0, 99, 0, 3, 8, 17, 0, 1, 0, 1, 0, Route12_EventScript_1AA5C5, 0, 0, 0
- object_event 8, 57, 0, 18, 0, 108, 0, 3, 14, 17, 0, 1, 0, 1, 0, Route12_EventScript_1AA549, 0, 0, 0
- object_event 9, 95, 0, 11, 0, 100, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route12_EventScript_1BDF13, 18, 0, 0
- object_event 10, 92, 0, 18, 0, 36, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route12_EventScript_1BE7B0, 382, 0, 0
- object_event 11, 92, 0, 9, 0, 101, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route12_EventScript_1BE7BD, 383, 0, 0
- object_event 12, 29, 0, 19, 0, 64, 0, 3, 10, 17, 0, 1, 0, 0, 0, Route12_EventScript_1AA649, 0, 0, 0
- object_event 13, 25, 0, 19, 0, 63, 0, 3, 10, 17, 0, 1, 0, 0, 0, Route12_EventScript_1AA603, 0, 0, 0
- object_event 14, 95, 0, 12, 0, 111, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route12_EventScript_1BDF13, 19, 0, 0
-
-Route12_MapWarps:
- warp_def 12, 86, 0, 1, 5890
- warp_def 14, 15, 3, 0, 5888
- warp_def 15, 15, 3, 1, 5888
- warp_def 14, 21, 3, 2, 5888
-
-Route12_MapBGEvents:
- bg_event 17, 13, 0, 0, 0, Route12_EventScript_1680A3
- bg_event 15, 69, 0, 0, 0, Route12_EventScript_1680AC
- bg_event 18, 57, 3, 7, 0, 21, 42, 1
- bg_event 14, 70, 3, 7, 0, 200, 131, 129
- bg_event 9, 116, 3, 7, 0, 68, 130, 1
-
-Route12_MapEvents::
- map_events Route12_EventObjects, Route12_MapWarps, 0x0, Route12_MapBGEvents
diff --git a/data/maps/Route12/header.inc b/data/maps/Route12/header.inc
deleted file mode 100644
index 882794915..000000000
--- a/data/maps/Route12/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route12:: @ 8350960
- .4byte Route12_Layout @ 0x82EE5D8
- .4byte Route12_MapEvents @ 0x83B72DC
- .4byte Route12_MapScripts @ 0x8168000
- .4byte Route12_MapConnections @ 0x8352B60
- .2byte BGM_FRLG_ROUTE_11
- .2byte 100
- .byte 0x70, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/Route12/map.json b/data/maps/Route12/map.json
new file mode 100644
index 000000000..2b4da6469
--- /dev/null
+++ b/data/maps/Route12/map.json
@@ -0,0 +1,289 @@
+{
+ "id": "MAP_ROUTE12",
+ "name": "Route12",
+ "layout": "LAYOUT_ROUTE12",
+ "music": "BGM_FRLG_ROUTE_11",
+ "region_map_section": "MAPSEC_ROUTE_12",
+ "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_LAVENDER_TOWN",
+ "offset": 0,
+ "direction": "up"
+ },
+ {
+ "map": "MAP_ROUTE13",
+ "offset": -48,
+ "direction": "down"
+ },
+ {
+ "map": "MAP_ROUTE11",
+ "offset": 60,
+ "direction": "left"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "57",
+ "x": 17,
+ "y": 32,
+ "elevation": 3,
+ "movement_type": "13",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA451",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "57",
+ "x": 9,
+ "y": 40,
+ "elevation": 3,
+ "movement_type": "14",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA48F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "57",
+ "x": 16,
+ "y": 47,
+ "elevation": 3,
+ "movement_type": "17",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route12_EventScript_1AA4CD",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "57",
+ "x": 13,
+ "y": 59,
+ "elevation": 3,
+ "movement_type": "13",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA50B",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "109",
+ "x": 14,
+ "y": 70,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_168014",
+ "flag": "84"
+ },
+ {
+ "graphics_id": "26",
+ "x": 13,
+ "y": 92,
+ "elevation": 3,
+ "movement_type": "37",
+ "movement_range_x": 4,
+ "movement_range_y": 4,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA587",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "39",
+ "x": 10,
+ "y": 99,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA5C5",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "57",
+ "x": 18,
+ "y": 108,
+ "elevation": 3,
+ "movement_type": "14",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route12_EventScript_1AA549",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 11,
+ "y": 100,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "92",
+ "x": 18,
+ "y": 36,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1BE7B0",
+ "flag": "382"
+ },
+ {
+ "graphics_id": "92",
+ "x": 9,
+ "y": 101,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1BE7BD",
+ "flag": "383"
+ },
+ {
+ "graphics_id": "29",
+ "x": 19,
+ "y": 64,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1AA649",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "25",
+ "x": 19,
+ "y": 63,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1AA603",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 12,
+ "y": 111,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route12_EventScript_1BDF13",
+ "flag": "19"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 12,
+ "y": 86,
+ "elevation": 0,
+ "dest_map": "MAP_ROUTE12_FISHING_HOUSE",
+ "dest_warp_id": 1
+ },
+ {
+ "x": 14,
+ "y": 15,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE12_NORTH_ENTRANCE_1F",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 15,
+ "y": 15,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE12_NORTH_ENTRANCE_1F",
+ "dest_warp_id": 1
+ },
+ {
+ "x": 14,
+ "y": 21,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE12_NORTH_ENTRANCE_1F",
+ "dest_warp_id": 2
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 17,
+ "y": 13,
+ "elevation": 0,
+ "script": "Route12_EventScript_1680A3"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 15,
+ "y": 69,
+ "elevation": 0,
+ "script": "Route12_EventScript_1680AC"
+ },
+ {
+ "type": "hidden_item",
+ "x": 18,
+ "y": 57,
+ "elevation": 3,
+ "item": "ITEM_HYPER_POTION",
+ "flag": "42",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 14,
+ "y": 70,
+ "elevation": 3,
+ "item": "ITEM_LEFTOVERS",
+ "flag": "131",
+ "unknown": 129
+ },
+ {
+ "type": "hidden_item",
+ "x": 9,
+ "y": 116,
+ "elevation": 3,
+ "item": "ITEM_RARE_CANDY",
+ "flag": "130",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file