summaryrefslogtreecommitdiff
path: root/data/maps/Route20
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/Route20
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/Route20')
-rw-r--r--data/maps/Route20/connections.inc7
-rw-r--r--data/maps/Route20/events.inc24
-rw-r--r--data/maps/Route20/header.inc8
-rw-r--r--data/maps/Route20/map.json213
4 files changed, 213 insertions, 39 deletions
diff --git a/data/maps/Route20/connections.inc b/data/maps/Route20/connections.inc
deleted file mode 100644
index 36d679ff9..000000000
--- a/data/maps/Route20/connections.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-Route20_MapConnectionsList: @ 8352C48
- connection left, 0, MAP_CINNABAR_ISLAND
- connection right, -40, MAP_ROUTE19
-
-Route20_MapConnections:: @ 8352C60
- .4byte 2
- .4byte Route20_MapConnectionsList
diff --git a/data/maps/Route20/events.inc b/data/maps/Route20/events.inc
deleted file mode 100644
index 468c7d951..000000000
--- a/data/maps/Route20/events.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-Route20_EventObjects:
- object_event 1, 44, 0, 8, 0, 11, 0, 1, 13, 17, 0, 1, 0, 3, 0, Route20_EventScript_1AB83F, 0, 0, 0
- object_event 2, 40, 0, 16, 0, 14, 0, 3, 8, 17, 0, 1, 0, 1, 0, Route20_EventScript_1AB8F9, 0, 0, 0
- object_event 3, 44, 0, 34, 0, 7, 0, 1, 8, 17, 0, 1, 0, 4, 0, Route20_EventScript_1AB801, 0, 0, 0
- object_event 4, 26, 0, 43, 0, 9, 0, 3, 2, 17, 0, 1, 0, 1, 0, Route20_EventScript_1AB8BB, 0, 0, 0
- object_event 5, 43, 0, 23, 0, 10, 0, 1, 52, 69, 0, 1, 0, 1, 0, Route20_EventScript_1AB747, 0, 0, 0
- object_event 6, 40, 0, 73, 0, 16, 0, 3, 9, 17, 0, 1, 0, 2, 0, Route20_EventScript_1AB937, 0, 0, 0
- object_event 7, 43, 0, 111, 0, 9, 0, 1, 45, 53, 0, 1, 0, 1, 0, Route20_EventScript_1AB709, 0, 0, 0
- object_event 8, 43, 0, 106, 0, 11, 0, 1, 50, 53, 0, 1, 0, 1, 0, Route20_EventScript_1AB785, 0, 0, 0
- object_event 9, 44, 0, 93, 0, 10, 0, 1, 1, 17, 0, 1, 0, 5, 0, Route20_EventScript_1AB87D, 0, 0, 0
- object_event 10, 44, 0, 54, 0, 11, 0, 1, 1, 17, 0, 1, 0, 1, 0, Route20_EventScript_1AB7C3, 0, 0, 0
- object_event 11, 39, 0, 69, 0, 3, 0, 3, 5, 18, 0, 0, 0, 0, 0, Route20_EventScript_1ACE36, 0, 0, 0
-
-Route20_MapWarps:
- warp_def 60, 8, 3, 3, 339
- warp_def 72, 14, 3, 4, 339
-
-Route20_MapBGEvents:
- bg_event 68, 14, 0, 0, 0, Route20_EventScript_168280
- bg_event 64, 8, 0, 0, 0, Route20_EventScript_168280
- bg_event 23, 6, 3, 7, 0, 108, 153, 1
-
-Route20_MapEvents::
- map_events Route20_EventObjects, Route20_MapWarps, 0x0, Route20_MapBGEvents
diff --git a/data/maps/Route20/header.inc b/data/maps/Route20/header.inc
deleted file mode 100644
index 1b832f0cd..000000000
--- a/data/maps/Route20/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route20:: @ 8350A40
- .4byte Route20_Layout @ 0x82F5598
- .4byte Route20_MapEvents @ 0x83B7D34
- .4byte Route20_MapScripts @ 0x816823B
- .4byte Route20_MapConnections @ 0x8352C60
- .2byte BGM_FRLG_ROUTE_3
- .2byte 108
- .byte 0x78, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/Route20/map.json b/data/maps/Route20/map.json
new file mode 100644
index 000000000..80213fc07
--- /dev/null
+++ b/data/maps/Route20/map.json
@@ -0,0 +1,213 @@
+{
+ "id": "MAP_ROUTE20",
+ "name": "Route20",
+ "layout": "LAYOUT_ROUTE20",
+ "music": "BGM_FRLG_ROUTE_3",
+ "region_map_section": "MAPSEC_ROUTE_20",
+ "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_CINNABAR_ISLAND",
+ "offset": 0,
+ "direction": "left"
+ },
+ {
+ "map": "MAP_ROUTE19",
+ "offset": -40,
+ "direction": "right"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "44",
+ "x": 8,
+ "y": 11,
+ "elevation": 1,
+ "movement_type": "13",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route20_EventScript_1AB83F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "40",
+ "x": 16,
+ "y": 14,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB8F9",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "44",
+ "x": 34,
+ "y": 7,
+ "elevation": 1,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route20_EventScript_1AB801",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "26",
+ "x": 43,
+ "y": 9,
+ "elevation": 3,
+ "movement_type": "2",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB8BB",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "43",
+ "x": 23,
+ "y": 10,
+ "elevation": 1,
+ "movement_type": "52",
+ "movement_range_x": 5,
+ "movement_range_y": 4,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB747",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "40",
+ "x": 73,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route20_EventScript_1AB937",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "43",
+ "x": 111,
+ "y": 9,
+ "elevation": 1,
+ "movement_type": "45",
+ "movement_range_x": 5,
+ "movement_range_y": 3,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB709",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "43",
+ "x": 106,
+ "y": 11,
+ "elevation": 1,
+ "movement_type": "50",
+ "movement_range_x": 5,
+ "movement_range_y": 3,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB785",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "44",
+ "x": 93,
+ "y": 10,
+ "elevation": 1,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 5,
+ "script": "Route20_EventScript_1AB87D",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "44",
+ "x": 54,
+ "y": 11,
+ "elevation": 1,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route20_EventScript_1AB7C3",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "39",
+ "x": 69,
+ "y": 3,
+ "elevation": 3,
+ "movement_type": "5",
+ "movement_range_x": 2,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route20_EventScript_1ACE36",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 60,
+ "y": 8,
+ "elevation": 3,
+ "dest_map": "MAP_SEAFOAM_ISLANDS_1F",
+ "dest_warp_id": 3
+ },
+ {
+ "x": 72,
+ "y": 14,
+ "elevation": 3,
+ "dest_map": "MAP_SEAFOAM_ISLANDS_1F",
+ "dest_warp_id": 4
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 68,
+ "y": 14,
+ "elevation": 0,
+ "script": "Route20_EventScript_168280"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 64,
+ "y": 8,
+ "elevation": 0,
+ "script": "Route20_EventScript_168280"
+ },
+ {
+ "type": "hidden_item",
+ "x": 23,
+ "y": 6,
+ "elevation": 3,
+ "item": "ITEM_STARDUST",
+ "flag": "153",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file