sovereignx/data/maps/MtPyre_2F/map.json
psf bf8b09b1b6
Item Ball refactor / Pluralize item names for giveitem and finditem (#3942)
* Emptied out item_ball_scripts
Added GetObjectEventTrainerRangeFromTemplate
Added Common_EventScript_FindItem

* Replaced trainer_sight_or_berry_tree_id with item constant
Replaced scripts with Common_EventScript_FindItem

* Renamed to GetItemBallIdAndAmountFromTemplate
Moved to item_ball.c

* Updated ObjectEventTemplate

* Updated inc files to support plural item names

* Refactored CopyItemNameHandlePlural to handle all items

* Change failsafe in GetItemBallIdFromTemplate to be ITEM_NONE + 1 instead of ITEMS_COUNT

* Converted spaces to tabs
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415663
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415525
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415409
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415130

* Added warning on object_event macro to prevent silent failure
Reverted global.fieldmap to original state, per feedback

---------

Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2024-01-14 21:35:45 +01:00

161 lines
4.1 KiB
JSON

{
"id": "MAP_MT_PYRE_2F",
"name": "MtPyre_2F",
"layout": "LAYOUT_MT_PYRE_2F",
"music": "MUS_MT_PYRE",
"region_map_section": "MAPSEC_MT_PYRE",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_INDOOR",
"allow_cycling": false,
"allow_escaping": false,
"allow_running": false,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": null,
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_MANIAC",
"x": 3,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "MtPyre_2F_EventScript_Mark",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 0,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "ITEM_ULTRA_BALL",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_MT_PYRE_2F_ULTRA_BALL"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_1",
"x": 9,
"y": 3,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "MtPyre_2F_EventScript_Woman",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_POKEFAN_M",
"x": 12,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "MtPyre_2F_EventScript_PokefanM",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_4",
"x": 2,
"y": 9,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "MtPyre_2F_EventScript_Dez",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_4",
"x": 3,
"y": 9,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "MtPyre_2F_EventScript_Luke",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BLACK_BELT",
"x": 6,
"y": 9,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "MtPyre_2F_EventScript_Zander",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_HEX_MANIAC",
"x": 6,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "MtPyre_2F_EventScript_Leah",
"flag": "0"
}
],
"warp_events": [
{
"x": 2,
"y": 1,
"elevation": 3,
"dest_map": "MAP_MT_PYRE_1F",
"dest_warp_id": "4"
},
{
"x": 10,
"y": 1,
"elevation": 3,
"dest_map": "MAP_MT_PYRE_3F",
"dest_warp_id": "0"
},
{
"x": 10,
"y": 12,
"elevation": 3,
"dest_map": "MAP_MT_PYRE_3F",
"dest_warp_id": "4"
},
{
"x": 6,
"y": 12,
"elevation": 3,
"dest_map": "MAP_MT_PYRE_3F",
"dest_warp_id": "5"
},
{
"x": 11,
"y": 9,
"elevation": 3,
"dest_map": "MAP_MT_PYRE_1F",
"dest_warp_id": "5"
}
],
"coord_events": [],
"bg_events": []
}