summaryrefslogtreecommitdiff
path: root/data/maps/ThreeIsland_BondBridge
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/ThreeIsland_BondBridge
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/ThreeIsland_BondBridge')
-rw-r--r--data/maps/ThreeIsland_BondBridge/connections.inc6
-rw-r--r--data/maps/ThreeIsland_BondBridge/events.inc24
-rw-r--r--data/maps/ThreeIsland_BondBridge/header.inc8
-rw-r--r--data/maps/ThreeIsland_BondBridge/map.json200
4 files changed, 200 insertions, 38 deletions
diff --git a/data/maps/ThreeIsland_BondBridge/connections.inc b/data/maps/ThreeIsland_BondBridge/connections.inc
deleted file mode 100644
index ccbb788ec..000000000
--- a/data/maps/ThreeIsland_BondBridge/connections.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-ThreeIsland_BondBridge_MapConnectionsList: @ 8352D58
- connection right, 0, MAP_THREE_ISLAND
-
-ThreeIsland_BondBridge_MapConnections:: @ 8352D64
- .4byte 1
- .4byte ThreeIsland_BondBridge_MapConnectionsList
diff --git a/data/maps/ThreeIsland_BondBridge/events.inc b/data/maps/ThreeIsland_BondBridge/events.inc
deleted file mode 100644
index 015d463ac..000000000
--- a/data/maps/ThreeIsland_BondBridge/events.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-ThreeIsland_BondBridge_EventObjects:
- object_event 1, 28, 0, 27, 0, 10, 0, 3, 2, 17, 0, 1, 0, 5, 0, ThreeIsland_BondBridge_EventScript_1ABF65, 0, 0, 0
- object_event 2, 28, 0, 68, 0, 10, 0, 3, 9, 17, 0, 1, 0, 2, 0, ThreeIsland_BondBridge_EventScript_1ABFA3, 0, 0, 0
- object_event 3, 37, 0, 33, 0, 13, 0, 3, 10, 17, 0, 1, 0, 1, 0, ThreeIsland_BondBridge_EventScript_1ABFE1, 0, 0, 0
- object_event 4, 37, 0, 50, 0, 11, 0, 3, 27, 18, 0, 1, 0, 1, 0, ThreeIsland_BondBridge_EventScript_1AC01F, 0, 0, 0
- object_event 5, 44, 0, 36, 0, 4, 0, 1, 1, 17, 0, 1, 0, 1, 0, ThreeIsland_BondBridge_EventScript_1AC05D, 0, 0, 0
- object_event 6, 17, 0, 77, 0, 5, 0, 3, 8, 17, 0, 1, 0, 1, 0, ThreeIsland_BondBridge_EventScript_1AC09B, 0, 0, 0
- object_event 7, 17, 0, 78, 0, 5, 0, 3, 8, 17, 0, 1, 0, 1, 0, ThreeIsland_BondBridge_EventScript_1AC0E1, 0, 0, 0
- object_event 8, 95, 0, 72, 0, 8, 0, 3, 1, 17, 0, 0, 0, 0, 0, ThreeIsland_BondBridge_EventScript_1BDF13, 18, 0, 0
- object_event 9, 95, 0, 86, 0, 13, 0, 3, 1, 17, 0, 0, 0, 0, 0, ThreeIsland_BondBridge_EventScript_1BDF13, 19, 0, 0
-
-ThreeIsland_BondBridge_MapWarps:
- warp_def 12, 6, 3, 0, 365
- warp_def 13, 6, 3, 0, 365
-
-ThreeIsland_BondBridge_MapBGEvents:
- bg_event 14, 7, 0, 0, 0, ThreeIsland_BondBridge_EventScript_168777
- bg_event 61, 5, 0, 7, 0, 84, 165, 1
- bg_event 44, 12, 3, 7, 0, 106, 166, 1
- bg_event 33, 7, 3, 7, 0, 108, 167, 1
- bg_event 91, 9, 0, 0, 0, ThreeIsland_BondBridge_EventScript_168780
-
-ThreeIsland_BondBridge_MapEvents::
- map_events ThreeIsland_BondBridge_EventObjects, ThreeIsland_BondBridge_MapWarps, 0x0, ThreeIsland_BondBridge_MapBGEvents
diff --git a/data/maps/ThreeIsland_BondBridge/header.inc b/data/maps/ThreeIsland_BondBridge/header.inc
deleted file mode 100644
index 43c5f0c30..000000000
--- a/data/maps/ThreeIsland_BondBridge/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-ThreeIsland_BondBridge:: @ 8350B58
- .4byte ThreeIsland_BondBridge_Layout @ 0x8327BDC
- .4byte ThreeIsland_BondBridge_MapEvents @ 0x83B8A9C
- .4byte ThreeIsland_BondBridge_MapScripts @ 0x8168776
- .4byte ThreeIsland_BondBridge_MapConnections @ 0x8352D64
- .2byte BGM_FRLG_ROUTE_3
- .2byte 240
- .byte 0x99, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/ThreeIsland_BondBridge/map.json b/data/maps/ThreeIsland_BondBridge/map.json
new file mode 100644
index 000000000..2afa51258
--- /dev/null
+++ b/data/maps/ThreeIsland_BondBridge/map.json
@@ -0,0 +1,200 @@
+{
+ "id": "MAP_THREE_ISLAND_BOND_BRIDGE",
+ "name": "ThreeIsland_BondBridge",
+ "layout": "LAYOUT_THREE_ISLAND_BOND_BRIDGE",
+ "music": "BGM_FRLG_ROUTE_3",
+ "region_map_section": "MAPSEC_BOND_BRIDGE",
+ "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_THREE_ISLAND",
+ "offset": 0,
+ "direction": "right"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "28",
+ "x": 27,
+ "y": 10,
+ "elevation": 3,
+ "movement_type": "2",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 5,
+ "script": "ThreeIsland_BondBridge_EventScript_1ABF65",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "28",
+ "x": 68,
+ "y": 10,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 2,
+ "script": "ThreeIsland_BondBridge_EventScript_1ABFA3",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "37",
+ "x": 33,
+ "y": 13,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "ThreeIsland_BondBridge_EventScript_1ABFE1",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "37",
+ "x": 50,
+ "y": 11,
+ "elevation": 3,
+ "movement_type": "27",
+ "movement_range_x": 2,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "ThreeIsland_BondBridge_EventScript_1AC01F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "44",
+ "x": 36,
+ "y": 4,
+ "elevation": 1,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "ThreeIsland_BondBridge_EventScript_1AC05D",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "17",
+ "x": 77,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "ThreeIsland_BondBridge_EventScript_1AC09B",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "17",
+ "x": 78,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 1,
+ "trainer_sight_or_berry_tree_id": 1,
+ "script": "ThreeIsland_BondBridge_EventScript_1AC0E1",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "95",
+ "x": 72,
+ "y": 8,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "ThreeIsland_BondBridge_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "95",
+ "x": 86,
+ "y": 13,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "ThreeIsland_BondBridge_EventScript_1BDF13",
+ "flag": "19"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 12,
+ "y": 6,
+ "elevation": 3,
+ "dest_map": "MAP_THREE_ISLAND_BERRY_FOREST",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 13,
+ "y": 6,
+ "elevation": 3,
+ "dest_map": "MAP_THREE_ISLAND_BERRY_FOREST",
+ "dest_warp_id": 0
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 14,
+ "y": 7,
+ "elevation": 0,
+ "script": "ThreeIsland_BondBridge_EventScript_168777"
+ },
+ {
+ "type": "hidden_item",
+ "x": 61,
+ "y": 5,
+ "elevation": 0,
+ "item": "ITEM_MAX_REPEL",
+ "flag": "165",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 44,
+ "y": 12,
+ "elevation": 3,
+ "item": "ITEM_PEARL",
+ "flag": "166",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 33,
+ "y": 7,
+ "elevation": 3,
+ "item": "ITEM_STARDUST",
+ "flag": "167",
+ "unknown": 1
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 91,
+ "y": 9,
+ "elevation": 0,
+ "script": "ThreeIsland_BondBridge_EventScript_168780"
+ }
+ ]
+} \ No newline at end of file