Skip to content

Commit

Permalink
feat: infinite grimm pufferfish
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Feb 18, 2022
1 parent 9e57dd3 commit 7d983ff
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GodSeekerPlus/GodSeekerPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>GodSeekerPlus</AssemblyTitle>
<Version>0.17.1</Version>
<Version>0.18.0</Version>
<Description>A Hollow Knight mod to enhance your Godhome experience</Description>
<Authors>Clazex</Authors>

Expand Down
1 change: 1 addition & 0 deletions GodSeekerPlus/Lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"Modules/ForceOvercharm": "Force Overcharm",
"Modules/GreyPrinceToggle": "Grey Prince Toggle",
"Modules/HalveDamage": "Halve Damage",
"Modules/InfiniteGrimmPufferfish": "Infinite Grimm Pufferfish",
"Modules/InfiniteRadianceClimbing": "Infinite Radiance Climbing",
"Modules/MemorizeBindings": "Memorize Bindings",
"Modules/NoFuryEffect": "No Fury Effect",
Expand Down
1 change: 1 addition & 0 deletions GodSeekerPlus/Lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"Modules/ForceOvercharm": "强制护符过载",
"Modules/GreyPrinceToggle": "灰色王子开关",
"Modules/HalveDamage": "伤害减半",
"Modules/InfiniteGrimmPufferfish": "无限格林河豚",
"Modules/InfiniteRadianceClimbing": "无限辐光爬梯",
"Modules/MemorizeBindings": "记住束缚",
"Modules/NoFuryEffect": "禁用亡怒效果",
Expand Down
47 changes: 47 additions & 0 deletions GodSeekerPlus/Modules/BossChallenge/InfiniteGrimmPufferfish.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
namespace GodSeekerPlus.Modules.BossChallenge;

[Category(nameof(BossChallenge))]
[ToggleableLevel(ToggleableLevel.ChangeScene)]
internal sealed class InfiniteGrimmPufferfish : Module {
private protected override void Load() =>
On.PlayMakerFSM.Start += ModifyFSM;

private protected override void Unload() =>
On.PlayMakerFSM.Start -= ModifyFSM;

private void ModifyFSM(On.PlayMakerFSM.orig_Start orig, PlayMakerFSM self) {
orig(self);

if (BossSequenceController.IsInSequence) {
return;
}

if (self is {
gameObject: {
scene.name: "GG_Grimm",
name: "Grimm Boss"
},
FsmName: "Control"
}) {
ModifyGrimmFSM(self);

Logger.LogDebug("Grimm FSM modified");
} else if (self is {
gameObject: {
scene.name: "GG_Grimm_Nightmare",
name: "Nightmare Grimm Boss"
},
FsmName: "Control"
}) {
ModifyNKGFSM(self);

Logger.LogDebug("NKG FSM modified");
}
}

private static void ModifyGrimmFSM(PlayMakerFSM fsm) =>
fsm.ChangeTransition("Out Pause", FsmEvent.Finished.Name, "Balloon Pos");

private static void ModifyNKGFSM(PlayMakerFSM fsm) =>
fsm.ChangeTransition("Out Pause", FsmEvent.Finished.Name, "Balloon Pos");
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Compatible with `Hollow Knight` 1.5.
+ **Force Arrive Animation**: Force the arrive animation to be played when fighting Vengefly King, Xero, Hive Knight and Enraged Guardian in Hall of Gods.
+ **Force Grey Prince Enter Type**: Force select enter type that Grey Prince use.
+ **Halve Damage**: Halve all the damage taken.
+ **Infinite Radiance Climbing**: Start Absolute Radiance boss fight from the end of Phase 2 and reset when starting final phase.
+ **Infinite Grimm Pufferfish**: When fighting in the Hall of Gods, make Troupe Master Grimm and Nightmare King Grimm only do pufferfish attack.
+ **Infinite Radiance Climbing**: When fighting in the Hall of Gods, starts Absolute Radiance boss fight from the end of Phase 2 and reset when starting final phase.
+ **P5 Health**: Reduce boss health in Ascended and Radiant difficulty to match with Attuned difficulty.

- **New Save Quickstart**:
Expand Down
3 changes: 2 additions & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
+ **强制入场动画**:在诸神堂中挑战复仇蝇之王,泽若,蜂巢骑士和暴怒守卫时强制播放入场动画。
+ **强制灰色王子入场类型**:强制选定灰色王子使用的入场类型。
+ **伤害减半**:将受到的所有伤害减半。
+ **无限辐光爬梯**:从第二阶段末尾开始无上辐光 Boss 战,并在开启最终阶段时重置。
+ **无限格林河豚**:在诸神堂中挑战时,使剧团团长格林和梦魇之王格林只进行河豚攻击。
+ **无限辐光爬梯**:在诸神堂中挑战时,从第二阶段末尾开始无上辐光 Boss 战,并在开启最终阶段时重置。
+ **五门血量**:将进升及辐辉难度下的 Boss 血量减少至与调谐难度相同。

- **新存档起步**
Expand Down

0 comments on commit 7d983ff

Please sign in to comment.