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

166 lines
4.2 KiB
JSON

{
"id": "MAP_ROUTE105",
"name": "Route105",
"layout": "LAYOUT_ROUTE105",
"music": "MUS_ROUTE104",
"region_map_section": "MAPSEC_ROUTE_105",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"map": "MAP_ROUTE104",
"offset": 0,
"direction": "up"
},
{
"map": "MAP_ROUTE106",
"offset": 0,
"direction": "down"
},
{
"map": "MAP_UNDERWATER_ROUTE105",
"offset": 0,
"direction": "dive"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 19,
"y": 60,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "6",
"script": "Route105_EventScript_Luis",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 27,
"y": 36,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_LEFT_AND_RIGHT",
"movement_range_x": 7,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route105_EventScript_Dominik",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 8,
"y": 45,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_UP_AND_DOWN",
"movement_range_x": 0,
"movement_range_y": 7,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route105_EventScript_Beverly",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 19,
"y": 9,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_ROTATE_CLOCKWISE",
"movement_range_x": 0,
"movement_range_y": 5,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route105_EventScript_Imani",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 8,
"y": 73,
"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_IRON",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_105_IRON"
},
{
"graphics_id": "OBJ_EVENT_GFX_HIKER",
"x": 17,
"y": 48,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WALK_DOWN_AND_UP",
"movement_range_x": 0,
"movement_range_y": 7,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route105_EventScript_Foster",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_5",
"x": 4,
"y": 54,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 0,
"movement_range_y": 2,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route105_EventScript_Josue",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_HIKER",
"x": 4,
"y": 58,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 0,
"movement_range_y": 2,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "4",
"script": "Route105_EventScript_Andres",
"flag": "0"
}
],
"warp_events": [
{
"x": 9,
"y": 20,
"elevation": 0,
"dest_map": "MAP_ISLAND_CAVE",
"dest_warp_id": "0"
}
],
"coord_events": [],
"bg_events": [
{
"type": "hidden_item",
"x": 15,
"y": 68,
"elevation": 3,
"item": "ITEM_HEART_SCALE",
"flag": "FLAG_HIDDEN_ITEM_ROUTE_105_HEART_SCALE"
},
{
"type": "hidden_item",
"x": 5,
"y": 56,
"elevation": 3,
"item": "ITEM_BIG_PEARL",
"flag": "FLAG_HIDDEN_ITEM_ROUTE_105_BIG_PEARL"
}
]
}