mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Discover adult/child spawn when using Song of Time to switch age.
This commit is contained in:
parent
5a5242ff1a
commit
5ffb7fbe5b
1 changed files with 7 additions and 0 deletions
|
@ -99,6 +99,13 @@ void SwitchAge() {
|
||||||
gSaveContext.nextTransitionType = TRANS_TYPE_FADE_BLACK_FAST;
|
gSaveContext.nextTransitionType = TRANS_TYPE_FADE_BLACK_FAST;
|
||||||
gPlayState->linkAgeOnLoad ^= 1;
|
gPlayState->linkAgeOnLoad ^= 1;
|
||||||
|
|
||||||
|
// Discover adult/child spawns
|
||||||
|
if (gPlayState->linkAgeOnLoad == LINK_AGE_ADULT) {
|
||||||
|
Entrance_SetEntranceDiscovered(ENTR_HYRULE_FIELD_10, false);
|
||||||
|
} else {
|
||||||
|
Entrance_SetEntranceDiscovered(ENTR_LINKS_HOUSE_CHILD_SPAWN, false);
|
||||||
|
}
|
||||||
|
|
||||||
static HOOK_ID hookId = 0;
|
static HOOK_ID hookId = 0;
|
||||||
hookId = REGISTER_VB_SHOULD(VB_INFLICT_VOID_DAMAGE, {
|
hookId = REGISTER_VB_SHOULD(VB_INFLICT_VOID_DAMAGE, {
|
||||||
*should = false;
|
*should = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue