Skip to content

Commit f846697

Browse files
committed
v0.0.0.1
1 parent 9df147b commit f846697

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

PlayerJumpPatch.dll

0 Bytes
Binary file not shown.

PlayerJumpPatch/PlayerJumpPatch.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace PlayerJumpPatch
77
{
8-
[BepInPlugin(ModId, ModName, "0.0.0.0")]
8+
[BepInPlugin(ModId, ModName, "0.0.0.1")]
99
[BepInProcess("Rounds.exe")]
1010
public class PlayerJumpPatch : BaseUnityPlugin
1111
{
@@ -97,4 +97,15 @@ private static bool Prefix(PlayerJump __instance, bool forceJump = false, float
9797

9898

9999
}
100+
101+
// postfix CharacterStatModifiers ResetStats to make sure that the number of jumps is reset properly
102+
[HarmonyPatch(typeof(CharacterStatModifiers), "ResetStats")]
103+
class CharacterStatModifiersPatchResetStats
104+
{
105+
private static void Postfix(CharacterStatModifiers __instance)
106+
{
107+
((CharacterData)Traverse.Create(__instance).Field("data").GetValue()).jumps = 1;
108+
109+
}
110+
}
100111
}

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PlayerJumpPatch",
3-
"version_number": "0.0.0",
3+
"version_number": "0.0.1",
44
"website_url": "https://github.com/Rounds-Modding/PlayerJumpPatch",
55
"description": "Patches the erroneous PlayerJump.Jump function in the base game",
66
"dependencies": [

0 commit comments

Comments
 (0)