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

221 lines
5.7 KiB
JSON

{
"id": "MAP_ROUTE127",
"name": "Route127",
"layout": "LAYOUT_ROUTE127",
"music": "MUS_ROUTE120",
"region_map_section": "MAPSEC_ROUTE_127",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_OCEAN_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"map": "MAP_MOSSDEEP_CITY",
"offset": 0,
"direction": "up"
},
{
"map": "MAP_ROUTE128",
"offset": 0,
"direction": "down"
},
{
"map": "MAP_ROUTE126",
"offset": 0,
"direction": "left"
},
{
"map": "MAP_UNDERWATER_ROUTE127",
"offset": 0,
"direction": "dive"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 45,
"y": 42,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT_AND_RIGHT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route127_EventScript_Camden",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 18,
"y": 68,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_UP_LEFT_AND_RIGHT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "4",
"script": "Route127_EventScript_Donny",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 14,
"y": 6,
"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_ZINC",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_127_ZINC"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 64,
"y": 39,
"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_CARBOS",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_127_CARBOS"
},
{
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
"x": 42,
"y": 21,
"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": "0",
"script": "Route127_EventScript_Jonah",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
"x": 64,
"y": 19,
"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": "0",
"script": "Route127_EventScript_Roger",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
"x": 54,
"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": "0",
"script": "Route127_EventScript_Henry",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_5",
"x": 15,
"y": 23,
"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": "Route127_EventScript_Aidan",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BLACK_BELT",
"x": 63,
"y": 63,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route127_EventScript_Koji",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
"x": 12,
"y": 23,
"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": "Route127_EventScript_Athena",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 13,
"y": 20,
"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_ROUTE_127_RARE_CANDY"
}
],
"warp_events": [],
"coord_events": [],
"bg_events": [
{
"type": "secret_base",
"x": 59,
"y": 67,
"elevation": 0,
"secret_base_id": "SECRET_BASE_RED_CAVE4_1"
},
{
"type": "secret_base",
"x": 59,
"y": 72,
"elevation": 0,
"secret_base_id": "SECRET_BASE_YELLOW_CAVE3_2"
},
{
"type": "secret_base",
"x": 67,
"y": 63,
"elevation": 0,
"secret_base_id": "SECRET_BASE_YELLOW_CAVE4_1"
},
{
"type": "secret_base",
"x": 61,
"y": 21,
"elevation": 0,
"secret_base_id": "SECRET_BASE_YELLOW_CAVE3_3"
},
{
"type": "secret_base",
"x": 45,
"y": 24,
"elevation": 0,
"secret_base_id": "SECRET_BASE_YELLOW_CAVE1_3"
}
]
}