Skip to content

Commit

Permalink
feat: short death animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Jan 30, 2022
1 parent dbf3f74 commit 49dbf05
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions GodSeekerPlus/Lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions GodSeekerPlus/Lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Modules/NoSpellDamage": "取消法术伤害",
"Modules/P5Health": "五门血量",
"Modules/P5Teleport": "五门传送",
"Modules/ShortDeathAnimation": "短死亡动画",
"Modules/UnlockAllModes": "解锁所有模式",
"Modules/UnlockEternalOrdeal": "解锁无尽折磨",
"Modules/UnlockPantheons": "解锁万神殿",
Expand Down
30 changes: 30 additions & 0 deletions GodSeekerPlus/Modules/QoL/ShortDeathAnimation.cs
Original file line number Diff line number Diff line change
@@ -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);
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
+ **灰色王子短入场**:强制灰色王子使用短入场,如同上一次击败之的效果。
+ **记住束缚**:记住上次选择的束缚,效果与诸神堂中的难度选择一样。建议与门默认开始一起使用。
+ **五门传送**:允许对着用于解锁神居中庭屋顶的拉杆使用梦之钉来传送到圣巢万神殿旁边。
+ **短死亡动画**:当在 Boss 场景中时,跳过部分死亡动画。

- **限制**
+ **强制护符过载**:强制进入护符过载状态。
Expand Down

0 comments on commit 49dbf05

Please sign in to comment.