summaryrefslogtreecommitdiff
path: root/data/maps/PowerPlant
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/PowerPlant
parent4b98d7d07a681279022cec9f082071a374ddbdb9 (diff)
convert map data to json
Diffstat (limited to 'data/maps/PowerPlant')
-rw-r--r--data/maps/PowerPlant/events.inc23
-rw-r--r--data/maps/PowerPlant/header.inc8
-rw-r--r--data/maps/PowerPlant/map.json179
3 files changed, 179 insertions, 31 deletions
diff --git a/data/maps/PowerPlant/events.inc b/data/maps/PowerPlant/events.inc
deleted file mode 100644
index fcdaab532..000000000
--- a/data/maps/PowerPlant/events.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-PowerPlant_EventObjects:
- object_event 1, 92, 0, 7, 0, 27, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1BE91C, 410, 0, 0
- object_event 2, 92, 0, 40, 0, 22, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1BE929, 411, 0, 0
- object_event 3, 92, 0, 46, 0, 37, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1BE936, 412, 0, 0
- object_event 4, 92, 0, 45, 0, 4, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1BE943, 413, 0, 0
- object_event 5, 92, 0, 26, 0, 22, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1BE950, 414, 0, 0
- object_event 6, 136, 0, 5, 0, 11, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_1637B8, 93, 0, 0
- object_event 7, 92, 0, 36, 0, 5, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_16388D, 134, 0, 0
- object_event 8, 92, 0, 30, 0, 38, 0, 3, 8, 17, 0, 0, 0, 0, 0, PowerPlant_EventScript_16382F, 133, 0, 0
-
-PowerPlant_MapWarps:
- warp_def 4, 39, 3, 2, 796
- warp_def 5, 38, 3, 2, 796
- warp_def 6, 39, 3, 2, 796
- warp_def 1, 11, 3, 4, 796
- warp_def 0, 13, 3, 2, 796
-
-PowerPlant_MapBGEvents:
- bg_event 29, 16, 3, 7, 0, 37, 27, 1
- bg_event 8, 12, 3, 7, 0, 96, 28, 1
-
-PowerPlant_MapEvents::
- map_events PowerPlant_EventObjects, PowerPlant_MapWarps, 0x0, PowerPlant_MapBGEvents
diff --git a/data/maps/PowerPlant/header.inc b/data/maps/PowerPlant/header.inc
deleted file mode 100644
index 530e24a98..000000000
--- a/data/maps/PowerPlant/header.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-PowerPlant:: @ 834FC78
- .4byte PowerPlant_Layout @ 0x8318EC0
- .4byte PowerPlant_MapEvents @ 0x83B285C
- .4byte PowerPlant_MapScripts @ 0x8163764
- .4byte NULL
- .2byte BGM_FRLG_POKEMON_MANSION
- .2byte 168
- .byte 0x8e, 0x00, 0x00, 0x08, 0x00, 0x07, 0x00, 0x03
diff --git a/data/maps/PowerPlant/map.json b/data/maps/PowerPlant/map.json
new file mode 100644
index 000000000..bc65392c2
--- /dev/null
+++ b/data/maps/PowerPlant/map.json
@@ -0,0 +1,179 @@
+{
+ "id": "MAP_POWER_PLANT",
+ "name": "PowerPlant",
+ "layout": "LAYOUT_POWER_PLANT",
+ "music": "BGM_FRLG_POKEMON_MANSION",
+ "region_map_section": "MAPSEC_POWER_PLANT",
+ "requires_flash": false,
+ "weather": "WEATHER_0",
+ "map_type": "MAP_TYPE_8",
+ "unknown_18": 0,
+ "unknown_19": 7,
+ "elevator_flag": 0,
+ "battle_scene": "BATTLE_SCENE_3",
+ "connections": null,
+ "object_events": [
+ {
+ "graphics_id": "92",
+ "x": 7,
+ "y": 27,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1BE91C",
+ "flag": "410"
+ },
+ {
+ "graphics_id": "92",
+ "x": 40,
+ "y": 22,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1BE929",
+ "flag": "411"
+ },
+ {
+ "graphics_id": "92",
+ "x": 46,
+ "y": 37,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1BE936",
+ "flag": "412"
+ },
+ {
+ "graphics_id": "92",
+ "x": 45,
+ "y": 4,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1BE943",
+ "flag": "413"
+ },
+ {
+ "graphics_id": "92",
+ "x": 26,
+ "y": 22,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1BE950",
+ "flag": "414"
+ },
+ {
+ "graphics_id": "136",
+ "x": 5,
+ "y": 11,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_1637B8",
+ "flag": "93"
+ },
+ {
+ "graphics_id": "92",
+ "x": 36,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_16388D",
+ "flag": "134"
+ },
+ {
+ "graphics_id": "92",
+ "x": 30,
+ "y": 38,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "PowerPlant_EventScript_16382F",
+ "flag": "133"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 4,
+ "y": 39,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE10",
+ "dest_warp_id": 2
+ },
+ {
+ "x": 5,
+ "y": 38,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE10",
+ "dest_warp_id": 2
+ },
+ {
+ "x": 6,
+ "y": 39,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE10",
+ "dest_warp_id": 2
+ },
+ {
+ "x": 1,
+ "y": 11,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE10",
+ "dest_warp_id": 4
+ },
+ {
+ "x": 0,
+ "y": 13,
+ "elevation": 3,
+ "dest_map": "MAP_ROUTE10",
+ "dest_warp_id": 2
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "hidden_item",
+ "x": 29,
+ "y": 16,
+ "elevation": 3,
+ "item": "ITEM_MAX_ELIXIR",
+ "flag": "27",
+ "unknown": 1
+ },
+ {
+ "type": "hidden_item",
+ "x": 8,
+ "y": 12,
+ "elevation": 3,
+ "item": "ITEM_THUNDER_STONE",
+ "flag": "28",
+ "unknown": 1
+ }
+ ]
+} \ No newline at end of file