diff --git a/GodSeekerPlus/Lang/en.json b/GodSeekerPlus/Lang/en.json index 298d523..f86bb46 100644 --- a/GodSeekerPlus/Lang/en.json +++ b/GodSeekerPlus/Lang/en.json @@ -33,6 +33,7 @@ "Modules/NoSpellDamage": "No Spell Damage", "Modules/P5Health": "P5 Health", "Modules/P5Teleport": "P5 Teleport", + "Modules/ShortDeathAnimation": "Short Death Animation", "Modules/UnlockAllModes": "Unlock All Modes", "Modules/UnlockEternalOrdeal": "Unlock Eternal Ordeal", "Modules/UnlockPantheons": "Unlock Pantheons", diff --git a/GodSeekerPlus/Lang/zh.json b/GodSeekerPlus/Lang/zh.json index 74ad3e7..2c8da68 100644 --- a/GodSeekerPlus/Lang/zh.json +++ b/GodSeekerPlus/Lang/zh.json @@ -33,6 +33,7 @@ "Modules/NoSpellDamage": "取消法术伤害", "Modules/P5Health": "五门血量", "Modules/P5Teleport": "五门传送", + "Modules/ShortDeathAnimation": "短死亡动画", "Modules/UnlockAllModes": "解锁所有模式", "Modules/UnlockEternalOrdeal": "解锁无尽折磨", "Modules/UnlockPantheons": "解锁万神殿", diff --git a/GodSeekerPlus/Modules/QoL/ShortDeathAnimation.cs b/GodSeekerPlus/Modules/QoL/ShortDeathAnimation.cs new file mode 100644 index 0000000..e10013a --- /dev/null +++ b/GodSeekerPlus/Modules/QoL/ShortDeathAnimation.cs @@ -0,0 +1,30 @@ +namespace GodSeekerPlus.Modules.QoL; + +[Category(nameof(QoL))] +[ToggleableLevel(ToggleableLevel.ReloadSave)] +[DefaultEnabled] +internal sealed class ShortDeathAnimation : Module { + private protected override void Load() => + On.PlayMakerFSM.Start += ModifyHeroDeathFSM; + + private protected override void Unload() => + On.PlayMakerFSM.Start -= ModifyHeroDeathFSM; + + private void ModifyHeroDeathFSM(On.PlayMakerFSM.orig_Start orig, PlayMakerFSM self) { + orig(self); + + if (self is { + gameObject.name: "Hero Death", + FsmName: "Hero Death Anim" + }) { + ModifyHeroDeathFSM(self); + + Logger.LogDebug("Hero Death FSM modified"); + } + } + + private static void ModifyHeroDeathFSM(PlayMakerFSM fsm) => + fsm.InsertAction("Bursting", new GGCheckIfBossScene() { + bossSceneEvent = FsmEvent.Finished + }, 5); +} diff --git a/README.md b/README.md index 1b2b386..7192079 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Compatible with `Hollow Knight` 1.5. + **Grey Prince Enter Short**: Force Grey Prince to use short enter, as when defeated last time. + **Memorize Bindings**: Memorize the Bindings selected last time, like difficulties in the Hall of Gods. Recommend using with Door Default Begin. + **P5 Teleport**: Allow using the Dream Nail towards the lever which is used to unlock Godhome Atrium Roof to teleport to beside the Pantheon of Hallownest. + + **Short Death Animation**: Skip part of the death animation when in boss scenes. - **Restrictions**: + **Force Overcharm**: Force entering the overcharmed state. diff --git a/README.zh.md b/README.zh.md index 647483b..10a23d9 100644 --- a/README.zh.md +++ b/README.zh.md @@ -32,6 +32,7 @@ + **灰色王子短入场**:强制灰色王子使用短入场,如同上一次击败之的效果。 + **记住束缚**:记住上次选择的束缚,效果与诸神堂中的难度选择一样。建议与门默认开始一起使用。 + **五门传送**:允许对着用于解锁神居中庭屋顶的拉杆使用梦之钉来传送到圣巢万神殿旁边。 + + **短死亡动画**:当在 Boss 场景中时,跳过部分死亡动画。 - **限制**: + **强制护符过载**:强制进入护符过载状态。