bf8b09b1b6
* 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>
191 lines
5 KiB
JSON
191 lines
5 KiB
JSON
{
|
|
"id": "MAP_GRANITE_CAVE_B2F",
|
|
"name": "GraniteCave_B2F",
|
|
"layout": "LAYOUT_GRANITE_CAVE_B2F",
|
|
"music": "MUS_PETALBURG_WOODS",
|
|
"region_map_section": "MAPSEC_GRANITE_CAVE",
|
|
"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_ITEM_BALL",
|
|
"x": 4,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
|
"movement_range_x": 0,
|
|
"movement_range_y": 0,
|
|
"trainer_type": "TRAINER_TYPE_NONE",
|
|
"trainer_sight_or_berry_tree_id": "ITEM_REPEL",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_GRANITE_CAVE_B2F_REPEL"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 29,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
|
"movement_range_x": 0,
|
|
"movement_range_y": 0,
|
|
"trainer_type": "TRAINER_TYPE_NONE",
|
|
"trainer_sight_or_berry_tree_id": "ITEM_RARE_CANDY",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_GRANITE_CAVE_B2F_RARE_CANDY"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 5,
|
|
"y": 14,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_11"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 3,
|
|
"y": 14,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_12"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 2,
|
|
"y": 16,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_13"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 7,
|
|
"y": 12,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_14"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 4,
|
|
"y": 22,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_15"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 6,
|
|
"y": 22,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_16"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 3,
|
|
"y": 21,
|
|
"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": "0",
|
|
"script": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_17"
|
|
}
|
|
],
|
|
"warp_events": [
|
|
{
|
|
"x": 29,
|
|
"y": 13,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_GRANITE_CAVE_B1F",
|
|
"dest_warp_id": "2"
|
|
},
|
|
{
|
|
"x": 28,
|
|
"y": 21,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_GRANITE_CAVE_B1F",
|
|
"dest_warp_id": "3"
|
|
},
|
|
{
|
|
"x": 8,
|
|
"y": 5,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_GRANITE_CAVE_B1F",
|
|
"dest_warp_id": "4"
|
|
},
|
|
{
|
|
"x": 12,
|
|
"y": 3,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_GRANITE_CAVE_B1F",
|
|
"dest_warp_id": "5"
|
|
},
|
|
{
|
|
"x": 29,
|
|
"y": 2,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_GRANITE_CAVE_B1F",
|
|
"dest_warp_id": "6"
|
|
}
|
|
],
|
|
"coord_events": [],
|
|
"bg_events": [
|
|
{
|
|
"type": "hidden_item",
|
|
"x": 28,
|
|
"y": 6,
|
|
"elevation": 3,
|
|
"item": "ITEM_EVERSTONE",
|
|
"flag": "FLAG_HIDDEN_ITEM_GRANITE_CAVE_B2F_EVERSTONE_1"
|
|
},
|
|
{
|
|
"type": "hidden_item",
|
|
"x": 15,
|
|
"y": 11,
|
|
"elevation": 3,
|
|
"item": "ITEM_EVERSTONE",
|
|
"flag": "FLAG_HIDDEN_ITEM_GRANITE_CAVE_B2F_EVERSTONE_2"
|
|
}
|
|
]
|
|
}
|