Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move heal locations data to their associated map.json #673

Merged
merged 7 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ld_script_ruby.txt
ld_script_sapphire.txt
sound/**/*.bin
sound/songs/midi/*.s
src/data/heal_locations.h
src/data/items.h
src/data/wild_encounters.h
src/data/region_map/region_map_entries.h
Expand Down
9 changes: 9 additions & 0 deletions data/maps/CeladonCity/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,5 +400,14 @@
"quantity": 1,
"underfoot": false
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_CELADON_CITY",
"x": 48,
"y": 12,
"respawn_map": "MAP_CELADON_CITY_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/CeladonCity_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CeladonCity_PokemonCenter_1F_MapScripts::
.byte 0

CeladonCity_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_CELADON_CITY
setrespawn HEAL_LOCATION_CELADON_CITY
end

CeladonCity_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/CeruleanCity/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_CERULEAN_CITY",
"x": 22,
"y": 20,
"respawn_map": "MAP_CERULEAN_CITY_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/CeruleanCity_Gym/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CeruleanCity_Gym_EventScript_MistyDefeated::
famechecker FAMECHECKER_MISTY, 1
setflag FLAG_DEFEATED_MISTY
setflag FLAG_BADGE02_GET
setrespawn SPAWN_CERULEAN_CITY
setrespawn HEAL_LOCATION_CERULEAN_CITY
set_gym_trainers 2
goto CeruleanCity_Gym_EventScript_GiveTM03
end
Expand Down
2 changes: 1 addition & 1 deletion data/maps/CeruleanCity_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CeruleanCity_PokemonCenter_1F_MapScripts::
.byte 0

CeruleanCity_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_CERULEAN_CITY
setrespawn HEAL_LOCATION_CERULEAN_CITY
end

CeruleanCity_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/CinnabarIsland/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "CinnabarIsland_EventScript_PokemonLabSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_CINNABAR_ISLAND",
"x": 14,
"y": 12,
"respawn_map": "MAP_CINNABAR_ISLAND_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/CinnabarIsland_Gym/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CinnabarIsland_Gym_EventScript_DefeatedBlaine::
famechecker FAMECHECKER_BLAINE, 1
setflag FLAG_DEFEATED_BLAINE
setflag FLAG_BADGE07_GET
setrespawn SPAWN_CINNABAR_ISLAND
setrespawn HEAL_LOCATION_CINNABAR_ISLAND
setvar VAR_MAP_SCENE_CINNABAR_ISLAND, 1
clearflag FLAG_HIDE_CINNABAR_BILL
set_gym_trainers 7
Expand Down
2 changes: 1 addition & 1 deletion data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CinnabarIsland_PokemonCenter_1F_MapScripts::
.byte 0

CinnabarIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_CINNABAR_ISLAND
setrespawn HEAL_LOCATION_CINNABAR_ISLAND
end

CinnabarIsland_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/FiveIsland/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "FiveIsland_EventScript_IslandSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_FIVE_ISLAND",
"x": 18,
"y": 7,
"respawn_map": "MAP_FIVE_ISLAND_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/FiveIsland_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FiveIsland_PokemonCenter_1F_MapScripts::
.byte 0

FiveIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_FIVE_ISLAND
setrespawn HEAL_LOCATION_FIVE_ISLAND
end

FiveIsland_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/FourIsland/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "FourIsland_EventScript_LoreleisHouseSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_FOUR_ISLAND",
"x": 18,
"y": 21,
"respawn_map": "MAP_FOUR_ISLAND_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/FourIsland_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FourIsland_PokemonCenter_1F_MapScripts::
.byte 0

FourIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_FOUR_ISLAND
setrespawn HEAL_LOCATION_FOUR_ISLAND
end

FourIsland_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/FuchsiaCity/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,5 +435,14 @@
"quantity": 1,
"underfoot": false
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_FUCHSIA_CITY",
"x": 25,
"y": 32,
"respawn_map": "MAP_FUCHSIA_CITY_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/FuchsiaCity_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FuchsiaCity_PokemonCenter_1F_MapScripts::
.byte 0

FuchsiaCity_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_FUCHSIA_CITY
setrespawn HEAL_LOCATION_FUCHSIA_CITY
end

FuchsiaCity_PokemonCenter_1F_EventScript_Nurse::
Expand Down
11 changes: 10 additions & 1 deletion data/maps/IndigoPlateau_Exterior/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,14 @@
}
],
"coord_events": [],
"bg_events": []
"bg_events": [],
"heal_locations": [
{
"id": "HEAL_LOCATION_INDIGO_PLATEAU",
"x": 11,
"y": 7,
"respawn_map": "MAP_INDIGO_PLATEAU_POKEMON_CENTER_1F",
"respawn_npc": 2
}
]
}
2 changes: 1 addition & 1 deletion data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ IndigoPlateau_PokemonCenter_1F_MapScripts::
.byte 0

IndigoPlateau_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_INDIGO_PLATEAU
setrespawn HEAL_LOCATION_INDIGO_PLATEAU
specialvar VAR_RESULT, IsNationalPokedexEnabled
call_if_eq VAR_RESULT, TRUE, IndigoPlateau_PokemonCenter_1F_EventScript_CheckBlockDoor
end
Expand Down
9 changes: 9 additions & 0 deletions data/maps/LavenderTown/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "LavenderTown_EventScript_VolunteerHouseSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_LAVENDER_TOWN",
"x": 6,
"y": 6,
"respawn_map": "MAP_LAVENDER_TOWN_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/LavenderTown_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LavenderTown_PokemonCenter_1F_MapScripts::
.byte 0

LavenderTown_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_LAVENDER_TOWN
setrespawn HEAL_LOCATION_LAVENDER_TOWN
end

LavenderTown_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/OneIsland/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "OneIsland_EventScript_PokemonNetCenterSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_ONE_ISLAND",
"x": 14,
"y": 6,
"respawn_map": "MAP_ONE_ISLAND_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/OneIsland_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ OneIsland_PokemonCenter_1F_EventScript_SetNetworkMachineOn::
return

OneIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_ONE_ISLAND
setrespawn HEAL_LOCATION_ONE_ISLAND
call_if_eq VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 6, OneIsland_PokemonCenter_1F_EventScript_SetCelioQuestDone
call_if_eq VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 0, OneIsland_PokemonCenter_1F_EventScript_SetBillCelioFirstMeetingPos
call_if_eq VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 2, OneIsland_PokemonCenter_1F_EventScript_SetBillCelioReadyToLeavePos
Expand Down
9 changes: 9 additions & 0 deletions data/maps/PalletTown/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "PalletTown_EventScript_TrainerTips"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_PALLET_TOWN",
"x": 6,
"y": 8,
"respawn_map": "MAP_PALLET_TOWN_PLAYERS_HOUSE_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/PalletTown_PlayersHouse_2F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PalletTown_PlayersHouse_2F_OnTransition::
end

PalletTown_PlayersHouse_2F_EventScript_SetRespawn::
setrespawn SPAWN_PALLET_TOWN
setrespawn HEAL_LOCATION_PALLET_TOWN
return

PalletTown_PlayersHouse_2F_OnWarp::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/PewterCity/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,14 @@
"quantity": 1,
"underfoot": false
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_PEWTER_CITY",
"x": 17,
"y": 26,
"respawn_map": "MAP_PEWTER_CITY_POKEMON_CENTER_1F",
"respawn_npc": 3
}
]
}
2 changes: 1 addition & 1 deletion data/maps/PewterCity_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PewterCity_PokemonCenter_1F_MapScripts::
.byte 0

PewterCity_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_PEWTER_CITY
setrespawn HEAL_LOCATION_PEWTER_CITY
end

PewterCity_PokemonCenter_1F_EventScript_Nurse::
Expand Down
2 changes: 1 addition & 1 deletion data/maps/PokemonLeague_HallOfFame/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PokemonLeague_HallOfFame_EventScript_EnterRoom::
delay 40
setvar VAR_TEMP_1, 1
call EventScript_SetDefeatedEliteFourFlagsVars
setrespawn SPAWN_PALLET_TOWN
setrespawn HEAL_LOCATION_PALLET_TOWN
fadescreenspeed FADE_TO_BLACK, 24
special EnterHallOfFame
waitstate
Expand Down
9 changes: 9 additions & 0 deletions data/maps/Route10/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,14 @@
"quantity": 1,
"underfoot": false
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_ROUTE10",
"x": 13,
"y": 21,
"respawn_map": "MAP_ROUTE10_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/Route10_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Route10_PokemonCenter_1F_MapScripts::

Route10_PokemonCenter_1F_OnTransition::
setworldmapflag FLAG_WORLD_MAP_ROUTE10_POKEMON_CENTER_1F
setrespawn SPAWN_ROUTE10
setrespawn HEAL_LOCATION_ROUTE10
end

Route10_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/Route4/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,14 @@
"quantity": 1,
"underfoot": false
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_ROUTE4",
"x": 12,
"y": 6,
"respawn_map": "MAP_ROUTE4_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/Route4_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Route4_PokemonCenter_1F_MapScripts::

Route4_PokemonCenter_1F_OnTransition::
setworldmapflag FLAG_WORLD_MAP_ROUTE4_POKEMON_CENTER_1F
setrespawn SPAWN_ROUTE4
setrespawn HEAL_LOCATION_ROUTE4
end

Route4_PokemonCenter_1F_EventScript_Boy::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/SaffronCity/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "SaffronCity_EventScript_TrainerFanClubSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_SAFFRON_CITY",
"x": 24,
"y": 39,
"respawn_map": "MAP_SAFFRON_CITY_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/SaffronCity_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SaffronCity_PokemonCenter_1F_MapScripts::
.byte 0

SaffronCity_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_SAFFRON_CITY
setrespawn HEAL_LOCATION_SAFFRON_CITY
end

SaffronCity_PokemonCenter_1F_EventScript_Nurse::
Expand Down
9 changes: 9 additions & 0 deletions data/maps/SevenIsland/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,14 @@
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "SevenIsland_EventScript_IslandSign"
}
],
"heal_locations": [
{
"id": "HEAL_LOCATION_SEVEN_ISLAND",
"x": 12,
"y": 4,
"respawn_map": "MAP_SEVEN_ISLAND_POKEMON_CENTER_1F",
"respawn_npc": 1
}
]
}
2 changes: 1 addition & 1 deletion data/maps/SevenIsland_PokemonCenter_1F/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SevenIsland_PokemonCenter_1F_MapScripts::
.byte 0

SevenIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_SEVEN_ISLAND
setrespawn HEAL_LOCATION_SEVEN_ISLAND
end

SevenIsland_PokemonCenter_1F_EventScript_Nurse::
Expand Down
Loading