Skip to content

Commit

Permalink
prevent death cubes from shooting infinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
Septikai committed Apr 11, 2024
1 parent 7e9215c commit 47afda3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions InfiniteAmmo/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ internal class InfiniteAmmoPatch
{
public static bool Prefix(Weapon __instance, ref float __result)
{
if (__instance is DeathCube) return true;
__result = __instance.maxAmmo;
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion InfiniteAmmo/mw.mod.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ incompatibilities = []

[metadata]
id = "me.septikai.infiniteammo"
version = "1.3.0"
version = "1.3.1"
title = "InfiniteAmmo"
authors = [
"Septikai"
Expand Down

0 comments on commit 47afda3

Please sign in to comment.