Skip to content

Commit

Permalink
fix: Bug with Q001 start VR tutorial not tracking parry count
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanin9 committed Jan 13, 2025
1 parent b2e50de commit 66fa32c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion scripting/NGPlusBugfixing.reds
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,18 @@ public class NGPlusEP1StatusListener extends ScriptableSystem {
NGPlusEP1StatusListener.ApplyRandomEncounterDisabler(this.m_questsSystem);
}
}
}
}

// Fix for a bug in Q001 start where `disable_tutorials` would mess parry tracking up
@replaceMethod(DefaultTransition)
protected const final func TutorialAddFact(scriptInterface: ref<StateGameScriptInterface>, factName: CName, add: Int32) -> Void {
let val: Int32;
let questSystem: ref<QuestsSystem> = scriptInterface.GetQuestsSystem();
let newGamePlusSystem = GameInstance.GetNewGamePlusSystem();
if questSystem.GetFact(n"disable_tutorials") == 0 || newGamePlusSystem.IsInNewGamePlusPrologue() {
val = questSystem.GetFact(factName) + add;
questSystem.SetFact(factName, val);
}
}
2 changes: 1 addition & 1 deletion wolvenkit/custom_refs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ base\localization\en-us\new_game_plus\subtitles\q001\q001_restored_subtitles.jso
base\localization\en-us\new_game_plus\subtitles\q101\q101_restored_subtitles.json
base\localization\en-us\new_game_plus\subtitles\q116\q116_restored_subtitles.json
base\localization\en-us\new_game_plus\subtitles\subtitles.json
base\open_world\passenger\phases\thepassenger.questphase
base\quest\side_quests\sq032\scenes\lipsync\en\sq032_00_sickness\johnny.anims
base\quest\side_quests\sq032\scenes\lipsync\en\sq032_00_sickness\v.anims
mod\quest\changedQuests\NewGamePlus_act_1.questphase
Expand Down Expand Up @@ -63,6 +62,7 @@ mod\quest\newgameplus\RestoreHUD.questphase
mod\quest\newgameplus\SetBandageOutfit.questphase
mod\quest\newgameplus\setplayerprogression.questphase
mod\quest\newgameplus\SetPlayerProgression.questphase
mod\quest\newgameplus\vrtutorialhack\q000vrtutorial.questphase
mod\quest\newgameplus\vrTutorialHack\Q000VRTutorial.questphase
mod\quest\newgameplus\vrtutorialhack\vrtutorialforq001start.questphase
mod\quest\newgameplus\vrTutorialHack\VRTutorialForQ001Start.questphase
Expand Down
Loading

0 comments on commit 66fa32c

Please sign in to comment.