summaryrefslogtreecommitdiff
path: root/data/maps/Route10
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/Route10
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/Route10')
-rw-r--r--data/maps/Route10/connections.inc7
-rw-r--r--data/maps/Route10/events.inc31
-rw-r--r--data/maps/Route10/header.inc8
-rw-r--r--data/maps/Route10/map.json264
4 files changed, 264 insertions, 46 deletions
diff --git a/data/maps/Route10/connections.inc b/data/maps/Route10/connections.inc
deleted file mode 100644
index bd7b4787f..000000000
--- a/data/maps/Route10/connections.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-Route10_MapConnectionsList: @ 8352AFC
- connection down, 0, MAP_LAVENDER_TOWN
- connection left, 0, MAP_ROUTE9
-
-Route10_MapConnections:: @ 8352B14
- .4byte 2
- .4byte Route10_MapConnectionsList
diff --git a/data/maps/Route10/events.inc b/data/maps/Route10/events.inc
deleted file mode 100644
index 3f1ba88db..000000000
--- a/data/maps/Route10/events.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-Route10_EventObjects:
- object_event 1, 40, 0, 7, 0, 60, 0, 3, 1, 17, 0, 1, 0, 2, 0, Route10_EventScript_1A9FE5, 0, 0, 0
- object_event 2, 56, 0, 4, 0, 62, 0, 3, 1, 17, 0, 1, 0, 1, 0, Route10_EventScript_1AA09F, 0, 0, 0
- object_event 3, 52, 0, 15, 0, 70, 0, 3, 5, 18, 0, 1, 0, 2, 0, Route10_EventScript_1AA061, 0, 0, 0
- object_event 4, 56, 0, 4, 0, 68, 0, 3, 9, 17, 0, 1, 0, 2, 0, Route10_EventScript_1AA0DD, 0, 0, 0
- object_event 5, 52, 0, 13, 0, 44, 0, 3, 9, 17, 0, 1, 0, 5, 0, Route10_EventScript_1AA023, 0, 0, 0
- object_event 6, 40, 0, 9, 0, 27, 0, 3, 8, 17, 0, 1, 0, 2, 0, Route10_EventScript_1A9FA7, 0, 0, 0
- object_event 7, 95, 0, 10, 0, 20, 0, 0, 8, 17, 0, 0, 0, 0, 0, Route10_EventScript_1BDF13, 18, 0, 0
- object_event 8, 95, 0, 10, 0, 22, 0, 0, 8, 17, 0, 0, 0, 0, 0, Route10_EventScript_1BDF13, 19, 0, 0
- object_event 9, 95, 0, 10, 0, 24, 0, 0, 8, 17, 0, 0, 0, 0, 0, Route10_EventScript_1BDF13, 20, 0, 0
- object_event 10, 95, 0, 10, 0, 26, 0, 0, 8, 17, 0, 0, 0, 0, 0, Route10_EventScript_1BDF13, 21, 0, 0
-
-Route10_MapWarps:
- warp_def 8, 19, 3, 0, 337
- warp_def 8, 57, 3, 5, 337
- warp_def 7, 40, 3, 1, 351
- warp_def 13, 20, 0, 1, 5376
- warp_def 2, 37, 3, 3, 351
-
-Route10_MapBGEvents:
- bg_event 15, 59, 0, 0, 0, Route10_EventScript_167FE4
- bg_event 6, 42, 0, 0, 0, Route10_EventScript_167FED
- bg_event 7, 21, 0, 0, 0, Route10_EventScript_167FDB
- bg_event 10, 19, 0, 7, 0, 22, 9, 1
- bg_event 12, 40, 3, 7, 0, 35, 10, 1
- bg_event 6, 26, 3, 7, 0, 133, 126, 1
- bg_event 17, 29, 3, 7, 0, 140, 125, 1
- bg_event 20, 57, 3, 7, 0, 150, 151, 1
-
-Route10_MapEvents::
- map_events Route10_EventObjects, Route10_MapWarps, 0x0, Route10_MapBGEvents
diff --git a/data/maps/Route10/header.inc b/data/maps/Route10/header.inc
deleted file mode 100644
index 3557919fb..000000000
--- a/data/maps/Route10/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-Route10:: @ 8350928
- .4byte Route10_Layout @ 0x82EC3D0
- .4byte Route10_MapEvents @ 0x83B6FA0
- .4byte Route10_MapScripts @ 0x8167FD9
- .4byte Route10_MapConnections @ 0x8352B14
- .2byte BGM_FRLG_ROUTE_3
- .2byte 98
- .byte 0x6e, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/Route10/map.json b/data/maps/Route10/map.json
new file mode 100644
index 000000000..4314e572c
--- /dev/null
+++ b/data/maps/Route10/map.json
@@ -0,0 +1,264 @@
+{
+ "id": "MAP_ROUTE10",
+ "name": "Route10",
+ "layout": "LAYOUT_ROUTE10",
+ "music": "BGM_FRLG_ROUTE_3",
+ "region_map_section": "MAPSEC_ROUTE_10",
+ "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": "down"
+ },
+ {
+ "map": "MAP_ROUTE9",
+ "offset": 0,
+ "direction": "left"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "40",
+ "x": 7,
+ "y": 60,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route10_EventScript_1A9FE5",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "56",
+ "x": 4,
+ "y": 62,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "Route10_EventScript_1AA09F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "52",
+ "x": 15,
+ "y": 70,
+ "elevation": 3,
+ "movement_type": "5",
+ "movement_range_x": 2,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route10_EventScript_1AA061",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "56",
+ "x": 4,
+ "y": 68,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route10_EventScript_1AA0DD",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "52",
+ "x": 13,
+ "y": 44,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 5,
+ "script": "Route10_EventScript_1AA023",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "40",
+ "x": 9,
+ "y": 27,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "Route10_EventScript_1A9FA7",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 10,
+ "y": 20,
+ "elevation": 0,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route10_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "95",
+ "x": 10,
+ "y": 22,
+ "elevation": 0,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route10_EventScript_1BDF13",
+ "flag": "19"
+ },
+ {
+ "graphics_id": "95",
+ "x": 10,
+ "y": 24,
+ "elevation": 0,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route10_EventScript_1BDF13",
+ "flag": "20"
+ },
+ {
+ "graphics_id": "95",
+ "x": 10,
+ "y": 26,
+ "elevation": 0,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route10_EventScript_1BDF13",
+ "flag": "21"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 8,
+ "y": 19,
+ "elevation": 3,
+ "dest_map": "MAP_ROCK_TUNNEL_1F",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 8,
+ "y": 57,
+ "elevation": 3,
+ "dest_map": "MAP_ROCK_TUNNEL_1F",
+ "dest_warp_id": 5
+ },
+ {
+ "x": 7,
+ "y": 40,
+ "elevation": 3,
+ "dest_map": "MAP_POWER_PLANT",
+ "dest_warp_id": 1
+ },
+ {
+ "x": 13,
+ "y": 20,
+ "elevation": 0,
+ "dest_map": "MAP_ROUTE10_POKEMON_CENTER_1F",
+ "dest_warp_id": 1
+ },
+ {
+ "x": 2,
+ "y": 37,
+ "elevation": 3,
+ "dest_map": "MAP_POWER_PLANT",
+ "dest_warp_id": 3
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 15,
+ "y": 59,
+ "elevation": 0,
+ "script": "Route10_EventScript_167FE4"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 6,
+ "y": 42,
+ "elevation": 0,
+ "script": "Route10_EventScript_167FED"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 7,
+ "y": 21,
+ "elevation": 0,
+ "script": "Route10_EventScript_167FDB"
+ },
+ {
+ "type": "hidden_item",
+ "x": 10,
+ "y": 19,
+ "elevation": 0,
+ "item": "ITEM_SUPER_POTION",
+ "flag": "9",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 12,
+ "y": 40,
+ "elevation": 3,
+ "item": "ITEM_MAX_ETHER",
+ "flag": "10",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 6,
+ "y": 26,
+ "elevation": 3,
+ "item": "ITEM_CHERI_BERRY",
+ "flag": "126",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 17,
+ "y": 29,
+ "elevation": 3,
+ "item": "ITEM_PERSIM_BERRY",
+ "flag": "125",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 20,
+ "y": 57,
+ "elevation": 3,
+ "item": "ITEM_NANAB_BERRY",
+ "flag": "151",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file