-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: god tamer breast roll collider
- Loading branch information
Showing
5 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters