summaryrefslogtreecommitdiff
path: root/data/maps/Route9
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/Route9
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/Route9')
-rw-r--r--data/maps/Route9/connections.inc7
-rw-r--r--data/maps/Route9/events.inc22
-rw-r--r--data/maps/Route9/header.inc8
-rw-r--r--data/maps/Route9/map.json222
4 files changed, 222 insertions, 37 deletions
diff --git a/data/maps/Route9/connections.inc b/data/maps/Route9/connections.inc
deleted file mode 100644
index 6e4cb62e2..000000000
--- a/data/maps/Route9/connections.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-Route9_MapConnectionsList: @ 8352ADC
- connection left, -10, MAP_CERULEAN_CITY
- connection right, 0, MAP_ROUTE10
-
-Route9_MapConnections:: @ 8352AF4
- .4byte 2
- .4byte Route9_MapConnectionsList
diff --git a/data/maps/Route9/events.inc b/data/maps/Route9/events.inc
deleted file mode 100644
index 3e027e71b..000000000
--- a/data/maps/Route9/events.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-Route9_EventObjects:
- object_event 1, 40, 0, 14, 0, 10, 0, 3, 9, 17, 0, 1, 0, 3, 0, Route9_EventScript_1A9E71, 0, 0, 0
- object_event 2, 56, 0, 20, 0, 17, 0, 3, 15, 17, 0, 1, 0, 4, 0, Route9_EventScript_1A9F69, 0, 0, 0
- object_event 3, 56, 0, 61, 0, 16, 0, 3, 8, 17, 0, 1, 0, 1, 0, Route9_EventScript_1A9EED, 0, 0, 0
- object_event 4, 39, 0, 26, 0, 7, 0, 3, 1, 17, 0, 1, 0, 3, 0, Route9_EventScript_1A9DF5, 0, 0, 0
- object_event 5, 20, 0, 26, 0, 1, 0, 3, 8, 17, 0, 1, 0, 2, 0, Route9_EventScript_1A9D79, 0, 0, 0
- object_event 6, 20, 0, 49, 0, 7, 0, 3, 10, 17, 0, 1, 0, 3, 0, Route9_EventScript_1A9DB7, 0, 0, 0
- object_event 7, 56, 0, 53, 0, 2, 0, 3, 5, 19, 0, 1, 0, 1, 0, Route9_EventScript_1A9F2B, 0, 0, 0
- object_event 8, 40, 0, 60, 0, 9, 0, 3, 10, 17, 0, 1, 0, 4, 0, Route9_EventScript_1A9EAF, 0, 0, 0
- object_event 9, 39, 0, 36, 0, 6, 0, 3, 10, 17, 0, 1, 0, 5, 0, Route9_EventScript_1A9E33, 0, 0, 0
- object_event 10, 95, 0, 2, 0, 8, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route9_EventScript_1BDF13, 18, 0, 0
- object_event 11, 92, 0, 12, 0, 17, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route9_EventScript_1BE6B9, 363, 0, 0
- object_event 12, 92, 0, 65, 0, 17, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route9_EventScript_1BEAFD, 450, 0, 0
-
-Route9_MapBGEvents:
- bg_event 29, 7, 0, 0, 0, Route9_EventScript_167FD0
- bg_event 15, 7, 0, 7, 0, 34, 6, 1
- bg_event 63, 2, 3, 7, 0, 68, 123, 1
- bg_event 48, 2, 3, 7, 0, 134, 150, 1
-
-Route9_MapEvents::
- map_events Route9_EventObjects, 0x0, 0x0, Route9_MapBGEvents
diff --git a/data/maps/Route9/header.inc b/data/maps/Route9/header.inc
deleted file mode 100644
index 0066c2e2f..000000000
--- a/data/maps/Route9/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route9:: @ 835090C
- .4byte Route9_Layout @ 0x82EB4AC
- .4byte Route9_MapEvents @ 0x83B6E14
- .4byte Route9_MapScripts @ 0x8167FCF
- .4byte Route9_MapConnections @ 0x8352AF4
- .2byte BGM_FRLG_ROUTE_3
- .2byte 97
- .byte 0x6d, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/Route9/map.json b/data/maps/Route9/map.json
new file mode 100644
index 000000000..72877fc69
--- /dev/null
+++ b/data/maps/Route9/map.json
@@ -0,0 +1,222 @@
+{
+ "id": "MAP_ROUTE9",
+ "name": "Route9",
+ "layout": "LAYOUT_ROUTE9",
+ "music": "BGM_FRLG_ROUTE_3",
+ "region_map_section": "MAPSEC_ROUTE_9",
+ "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_CERULEAN_CITY",
+ "offset": -10,
+ "direction": "left"
+ },
+ {
+ "map": "MAP_ROUTE10",
+ "offset": 0,
+ "direction": "right"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "40",
+ "x": 14,
+ "y": 10,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route9_EventScript_1A9E71",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "56",
+ "x": 20,
+ "y": 17,
+ "elevation": 3,
+ "movement_type": "15",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route9_EventScript_1A9F69",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "56",
+ "x": 61,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route9_EventScript_1A9EED",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "39",
+ "x": 26,
+ "y": 7,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route9_EventScript_1A9DF5",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "20",
+ "x": 26,
+ "y": 1,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route9_EventScript_1A9D79",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "20",
+ "x": 49,
+ "y": 7,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "Route9_EventScript_1A9DB7",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "56",
+ "x": 53,
+ "y": 2,
+ "elevation": 3,
+ "movement_type": "5",
+ "movement_range_x": 3,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route9_EventScript_1A9F2B",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "40",
+ "x": 60,
+ "y": 9,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 4,
+ "script": "Route9_EventScript_1A9EAF",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "39",
+ "x": 36,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 5,
+ "script": "Route9_EventScript_1A9E33",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 2,
+ "y": 8,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route9_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "92",
+ "x": 12,
+ "y": 17,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route9_EventScript_1BE6B9",
+ "flag": "363"
+ },
+ {
+ "graphics_id": "92",
+ "x": 65,
+ "y": 17,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route9_EventScript_1BEAFD",
+ "flag": "450"
+ }
+ ],
+ "warp_events": [],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 29,
+ "y": 7,
+ "elevation": 0,
+ "script": "Route9_EventScript_167FD0"
+ },
+ {
+ "type": "hidden_item",
+ "x": 15,
+ "y": 7,
+ "elevation": 0,
+ "item": "ITEM_ETHER",
+ "flag": "6",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 63,
+ "y": 2,
+ "elevation": 3,
+ "item": "ITEM_RARE_CANDY",
+ "flag": "123",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 48,
+ "y": 2,
+ "elevation": 3,
+ "item": "ITEM_CHESTO_BERRY",
+ "flag": "150",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file