summaryrefslogtreecommitdiff
path: root/data/maps/BattleFrontier_BattlePyramidTop
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-02-04 21:36:18 -0600
committerGitHub <noreply@github.com>2019-02-04 21:36:18 -0600
commitb0ee1009759ed1c46da81b1fb8410e2b75e42bb2 (patch)
treeceee3e124b987b8dd24cb3a7bba85d4effe1ef5d /data/maps/BattleFrontier_BattlePyramidTop
parent646533cfa3c8c42aee3efedaadfe49e495b64892 (diff)
parentd4125fef9bc9adb95c7a5fb5b8be903b34adc510 (diff)
Merge pull request #543 from pret/mapdata
Convert map data to JSON
Diffstat (limited to 'data/maps/BattleFrontier_BattlePyramidTop')
-rw-r--r--data/maps/BattleFrontier_BattlePyramidTop/events.inc10
-rw-r--r--data/maps/BattleFrontier_BattlePyramidTop/header.inc15
-rw-r--r--data/maps/BattleFrontier_BattlePyramidTop/map.json57
3 files changed, 57 insertions, 25 deletions
diff --git a/data/maps/BattleFrontier_BattlePyramidTop/events.inc b/data/maps/BattleFrontier_BattlePyramidTop/events.inc
deleted file mode 100644
index fbf4941ca..000000000
--- a/data/maps/BattleFrontier_BattlePyramidTop/events.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-BattleFrontier_BattlePyramidTop_EventObjects: @ 853C7C0
- object_event 1, EVENT_OBJ_GFX_HIKER, 0, 17, 11, 6, MOVEMENT_TYPE_FACE_DOWN, 1, 1, 0, 3, BattleFrontier_BattlePyramidTop_EventScript_2551D0, 0
- object_event 2, EVENT_OBJ_GFX_BRANDON, 0, 17, 7, 0, MOVEMENT_TYPE_FACE_UP, 1, 1, 0, 0, 0x0, 0
-
-BattleFrontier_BattlePyramidTop_MapCoordEvents: @ 853C7F0
- coord_event 17, 9, 4, VAR_TEMP_2, 0, BattleFrontier_BattlePyramidTop_EventScript_255256
-
-BattleFrontier_BattlePyramidTop_MapEvents:: @ 853C800
- map_events BattleFrontier_BattlePyramidTop_EventObjects, 0x0, BattleFrontier_BattlePyramidTop_MapCoordEvents, 0x0
-
diff --git a/data/maps/BattleFrontier_BattlePyramidTop/header.inc b/data/maps/BattleFrontier_BattlePyramidTop/header.inc
deleted file mode 100644
index d58e1fe81..000000000
--- a/data/maps/BattleFrontier_BattlePyramidTop/header.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-BattleFrontier_BattlePyramidTop: @ 8485430
- .4byte BattleFrontier_BattlePyramidTop_Layout
- .4byte BattleFrontier_BattlePyramidTop_MapEvents
- .4byte BattleFrontier_BattlePyramidTop_MapScripts
- .4byte 0x0
- .2byte 65535
- .2byte 378
- .byte MAPSEC_BATTLE_FRONTIER
- .byte 0
- .byte WEATHER_NONE
- .byte MAP_TYPE_INDOOR
- .2byte 0
- map_header_flags allow_bike=0, allow_escape_rope=0, allow_run=1, show_map_name=0
- .byte MAP_BATTLE_SCENE_NORMAL
-
diff --git a/data/maps/BattleFrontier_BattlePyramidTop/map.json b/data/maps/BattleFrontier_BattlePyramidTop/map.json
new file mode 100644
index 000000000..09fe56ef1
--- /dev/null
+++ b/data/maps/BattleFrontier_BattlePyramidTop/map.json
@@ -0,0 +1,57 @@
+{
+ "id": "MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP",
+ "name": "BattleFrontier_BattlePyramidTop",
+ "layout": "LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP",
+ "music": "65535",
+ "region_map_section": "MAPSEC_BATTLE_FRONTIER",
+ "requires_flash": false,
+ "weather": "WEATHER_NONE",
+ "map_type": "MAP_TYPE_INDOOR",
+ "allow_bike": false,
+ "allow_escape_rope": false,
+ "allow_running": true,
+ "show_map_name": false,
+ "battle_scene": "MAP_BATTLE_SCENE_NORMAL",
+ "connections": null,
+ "object_events": [
+ {
+ "graphics_id": "EVENT_OBJ_GFX_HIKER",
+ "x": 17,
+ "y": 11,
+ "elevation": 6,
+ "movement_type": "MOVEMENT_TYPE_FACE_DOWN",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 3,
+ "script": "BattleFrontier_BattlePyramidTop_EventScript_2551D0",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "EVENT_OBJ_GFX_BRANDON",
+ "x": 17,
+ "y": 7,
+ "elevation": 0,
+ "movement_type": "MOVEMENT_TYPE_FACE_UP",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "0x0",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [],
+ "coord_events": [
+ {
+ "type": "trigger",
+ "x": 17,
+ "y": 9,
+ "elevation": 4,
+ "var": "VAR_TEMP_2",
+ "var_value": 0,
+ "script": "BattleFrontier_BattlePyramidTop_EventScript_255256"
+ }
+ ],
+ "bg_events": []
+} \ No newline at end of file