sovereignx/data/maps/VictoryRoad_B2F/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

158 lines
4 KiB
JSON

{
"id": "MAP_VICTORY_ROAD_B2F",
"name": "VictoryRoad_B2F",
"layout": "LAYOUT_VICTORY_ROAD_B2F",
"music": "MUS_VICTORY_ROAD",
"region_map_section": "MAPSEC_VICTORY_ROAD",
"requires_flash": true,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_UNDERGROUND",
"allow_cycling": true,
"allow_escaping": true,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": null,
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
"x": 15,
"y": 6,
"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": "2",
"script": "VictoryRoad_B2F_EventScript_Vito",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
"x": 43,
"y": 14,
"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": "4",
"script": "VictoryRoad_B2F_EventScript_Owen",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
"x": 2,
"y": 17,
"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": "2",
"script": "VictoryRoad_B2F_EventScript_Caroline",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
"x": 35,
"y": 22,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "VictoryRoad_B2F_EventScript_Julie",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 13,
"y": 8,
"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_FULL_HEAL",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_VICTORY_ROAD_B2F_FULL_HEAL"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
"x": 25,
"y": 18,
"elevation": 4,
"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": "2",
"script": "VictoryRoad_B2F_EventScript_Dianne",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
"x": 25,
"y": 21,
"elevation": 4,
"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": "VictoryRoad_B2F_EventScript_Felix",
"flag": "0"
}
],
"warp_events": [
{
"x": 30,
"y": 25,
"elevation": 3,
"dest_map": "MAP_VICTORY_ROAD_B1F",
"dest_warp_id": "0"
},
{
"x": 43,
"y": 2,
"elevation": 3,
"dest_map": "MAP_VICTORY_ROAD_B1F",
"dest_warp_id": "3"
},
{
"x": 19,
"y": 12,
"elevation": 3,
"dest_map": "MAP_VICTORY_ROAD_B1F",
"dest_warp_id": "1"
},
{
"x": 5,
"y": 26,
"elevation": 3,
"dest_map": "MAP_VICTORY_ROAD_B1F",
"dest_warp_id": "6"
}
],
"coord_events": [],
"bg_events": [
{
"type": "hidden_item",
"x": 28,
"y": 5,
"elevation": 3,
"item": "ITEM_ELIXIR",
"flag": "FLAG_HIDDEN_ITEM_VICTORY_ROAD_B2F_ELIXIR"
},
{
"type": "hidden_item",
"x": 37,
"y": 1,
"elevation": 3,
"item": "ITEM_MAX_REPEL",
"flag": "FLAG_HIDDEN_ITEM_VICTORY_ROAD_B2F_MAX_REPEL"
}
]
}