summaryrefslogtreecommitdiff
path: root/data/maps/SevenIsland
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/SevenIsland
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/SevenIsland')
-rw-r--r--data/maps/SevenIsland/connections.inc7
-rw-r--r--data/maps/SevenIsland/events.inc16
-rw-r--r--data/maps/SevenIsland/header.inc8
-rw-r--r--data/maps/SevenIsland/map.json107
4 files changed, 107 insertions, 31 deletions
diff --git a/data/maps/SevenIsland/connections.inc b/data/maps/SevenIsland/connections.inc
deleted file mode 100644
index 37634bef6..000000000
--- a/data/maps/SevenIsland/connections.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-SevenIsland_MapConnectionsList: @ 83529A8
- connection up, -48, MAP_SEVEN_ISLAND_TRAINERTOWER
- connection down, 0, MAP_SEVEN_ISLAND_SEVAULTCANYON_ENTRANCE
-
-SevenIsland_MapConnections:: @ 83529C0
- .4byte 2
- .4byte SevenIsland_MapConnectionsList
diff --git a/data/maps/SevenIsland/events.inc b/data/maps/SevenIsland/events.inc
deleted file mode 100644
index ec2915745..000000000
--- a/data/maps/SevenIsland/events.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-SevenIsland_EventObjects:
- object_event 1, 41, 0, 7, 0, 18, 0, 3, 9, 17, 0, 0, 0, 0, 0, SevenIsland_EventScript_1C4B56, 0, 0, 0
- object_event 2, 35, 0, 9, 0, 7, 0, 3, 13, 17, 0, 0, 0, 0, 0, SevenIsland_EventScript_167EC6, 0, 0, 0
- object_event 3, 55, 0, 15, 0, 5, 0, 3, 2, 17, 0, 0, 0, 0, 0, SevenIsland_EventScript_167ECF, 0, 0, 0
-
-SevenIsland_MapWarps:
- warp_def 11, 9, 0, 0, 7936
- warp_def 5, 9, 0, 0, 7938
- warp_def 12, 3, 0, 0, 7939
- warp_def 16, 13, 3, 0, 7942
-
-SevenIsland_MapBGEvents:
- bg_event 17, 9, 0, 0, 0, SevenIsland_EventScript_167EBD
-
-SevenIsland_MapEvents::
- map_events SevenIsland_EventObjects, SevenIsland_MapWarps, 0x0, SevenIsland_MapBGEvents
diff --git a/data/maps/SevenIsland/header.inc b/data/maps/SevenIsland/header.inc
deleted file mode 100644
index e9e478fd1..000000000
--- a/data/maps/SevenIsland/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-SevenIsland:: @ 83507F4
- .4byte SevenIsland_Layout @ 0x8323D48
- .4byte SevenIsland_MapEvents @ 0x83B657C
- .4byte SevenIsland_MapScripts @ 0x8167EB3
- .4byte SevenIsland_MapConnections @ 0x83529C0
- .2byte BGM_FRLG_ISLAND_SIX
- .2byte 235
- .byte 0x94, 0x00, 0x02, 0x01, 0x01, 0x06, 0x00, 0x00
diff --git a/data/maps/SevenIsland/map.json b/data/maps/SevenIsland/map.json
new file mode 100644
index 000000000..dd9a59fa6
--- /dev/null
+++ b/data/maps/SevenIsland/map.json
@@ -0,0 +1,107 @@
+{
+ "id": "MAP_SEVEN_ISLAND",
+ "name": "SevenIsland",
+ "layout": "LAYOUT_SEVEN_ISLAND",
+ "music": "BGM_FRLG_ISLAND_SIX",
+ "region_map_section": "MAPSEC_SEVEN_ISLAND",
+ "requires_flash": false,
+ "weather": "WEATHER_2",
+ "map_type": "MAP_TYPE_1",
+ "unknown_18": 1,
+ "unknown_19": 6,
+ "elevator_flag": 0,
+ "battle_scene": "BATTLE_SCENE_0",
+ "connections": [
+ {
+ "map": "MAP_SEVEN_ISLAND_TRAINER_TOWER",
+ "offset": -48,
+ "direction": "up"
+ },
+ {
+ "map": "MAP_SEVEN_ISLAND_SEVAULT_CANYON_ENTRANCE",
+ "offset": 0,
+ "direction": "down"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "41",
+ "x": 7,
+ "y": 18,
+ "elevation": 3,
+ "movement_type": "9",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "SevenIsland_EventScript_1C4B56",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "35",
+ "x": 9,
+ "y": 7,
+ "elevation": 3,
+ "movement_type": "13",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "SevenIsland_EventScript_167EC6",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "55",
+ "x": 15,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "2",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "SevenIsland_EventScript_167ECF",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 11,
+ "y": 9,
+ "elevation": 0,
+ "dest_map": "MAP_SEVEN_ISLAND_HOUSE_ROOM1",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 5,
+ "y": 9,
+ "elevation": 0,
+ "dest_map": "MAP_SEVEN_ISLAND_MART",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 12,
+ "y": 3,
+ "elevation": 0,
+ "dest_map": "MAP_SEVEN_ISLAND_POKEMON_CENTER_1F",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 16,
+ "y": 13,
+ "elevation": 3,
+ "dest_map": "MAP_SEVEN_ISLAND_HARBOR",
+ "dest_warp_id": 0
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 17,
+ "y": 9,
+ "elevation": 0,
+ "script": "SevenIsland_EventScript_167EBD"
+ }
+ ]
+} \ No newline at end of file