Skip to content

Commit

Permalink
feat: god tamer breast roll collider
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Jun 13, 2022
1 parent a83303a commit 0abb2c8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions GodSeekerPlus/Modules/Bugfix/GodTamerBeastRollCollider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace GodSeekerPlus.Modules.Bugfix;

[ToggleableLevel(ToggleableLevel.ChangeScene)]
internal sealed class GodTamerBeastRollCollider : Module {
private protected override void Load() =>
On.PlayMakerFSM.Start += ModifyLobsterFSM;

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

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

if (self is {
gameObject: {
scene.name: "GG_God_Tamer",
name: "Lobster"
},
FsmName: "Control"
}) {
ModifyLobsterFSM(self);

Logger.LogDebug("God Tamer Beast roll collider fixed");
}
}

private static void ModifyLobsterFSM(PlayMakerFSM fsm) =>
fsm.AddAction("Idle", fsm.GetAction("Spit Recover", 2));
}

1 change: 1 addition & 0 deletions GodSeekerPlus/Resources/Lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"Modules/FastSuperDash": "Fast Super Dash",
"Modules/ForceArriveAnimation": "Force Arrive Animation",
"Modules/ForceGreyPrinceEnterType": "Force Grey Prince Enter Type",
"Modules/GodTamerBeastRollCollider": "God Tamer Beast Roll Collider",
"Modules/GreyPrinceNailSlamCollider": "Grey Prince Nail Slam Collider",
"Modules/GreyPrinceToggle": "Grey Prince Toggle",
"Modules/HalveDamage": "Halve Damage",
Expand Down
1 change: 1 addition & 0 deletions GodSeekerPlus/Resources/Lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"Modules/FastSuperDash": "快速超级冲刺",
"Modules/ForceArriveAnimation": "强制入场动画",
"Modules/ForceGreyPrinceEnterType": "强制灰色王子入场类型",
"Modules/GodTamerBeastRollCollider": "神之驯服者野兽滚动碰撞箱",
"Modules/GreyPrinceNailSlamCollider": "灰色王子骨钉猛击碰撞箱",
"Modules/GreyPrinceToggle": "灰色王子开关",
"Modules/HalveDamage": "伤害减半",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Compatible with `Hollow Knight` 1.5.
- **Bugfix**:
+ **Camera Keep Rumbling**: Prevent camera from keeping rumbling after scene transitions in Godhome.
+ **Crossing Ooma**: Prevent Ooma from spawning explosive jellies across scenes.
+ **God Tamer Beast Roll Collider**: Prevent God Tamer's Beast's collider from not restoring after rolling.
+ **Grey Prince Nail Slam Collider**: Prevent Grey Prince's nail slam collider from not disappearing when staggered.
+ **Transition Death**: Prevent from continuing pantheon challenges after death upon scene transitions.

Expand Down
1 change: 1 addition & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- **Bug 修复**:
+ **屏幕保持震动**:阻止屏幕在进行神居中的场景转换后保持震动。
+ **穿越欧玛**:阻止欧玛跨场景生成爆炸水母。
+ **神之驯服者野兽滚动碰撞箱**:阻止神之驯服者的野兽的碰撞箱在滚动后不复原。
+ **灰色王子骨钉猛击碰撞箱**:阻止灰色王子硬直时骨钉猛击碰撞箱不消失。
+ **场景转换死亡**:阻止在场景转换时死亡后继续万神殿挑战。

Expand Down

0 comments on commit 0abb2c8

Please sign in to comment.