mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
intro skip not unconditional
This commit is contained in:
parent
0f5c77ef4b
commit
34ad41bd53
1 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,8 @@ extern SaveContext gSaveContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegisterSkipIntro() {
|
void RegisterSkipIntro() {
|
||||||
REGISTER_VB_SHOULD(VB_PLAY_TRANSITION_CS, {
|
bool shouldRegister = CVarGetInteger(CVAR_ENHANCEMENT("TimeSavers.SkipCutscene.Intro"), 0) || IS_RANDO;
|
||||||
|
COND_VB_SHOULD(VB_PLAY_TRANSITION_CS, shouldRegister, {
|
||||||
// If we're playing rando and if starting age is adult and/or overworld spawns are shuffled we need to skip
|
// If we're playing rando and if starting age is adult and/or overworld spawns are shuffled we need to skip
|
||||||
// the cutscene regardless of the enhancement being on.
|
// the cutscene regardless of the enhancement being on.
|
||||||
bool adultStart = gSaveContext.linkAge == LINK_AGE_ADULT;
|
bool adultStart = gSaveContext.linkAge == LINK_AGE_ADULT;
|
||||||
|
@ -46,4 +47,5 @@ void RegisterSkipIntro() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static RegisterShipInitFunc initFunc(RegisterSkipIntro);
|
static RegisterShipInitFunc initFunc(RegisterSkipIntro,
|
||||||
|
{ CVAR_ENHANCEMENT("TimeSavers.SkipCutscene.Intro"), "IS_RANDO" });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue