Skip to content

Commit 5c1bd3a

Browse files
committed
Add optional versus/survival Give() for modifiers
1 parent 9d66204 commit 5c1bd3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CobwebAPI/API/Modifiers.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ public static Modifier Get(string Id)
5050
return ModifierManagerGetNonMaxedSurvivalModsPatch.Mods.Where(m => m != null && m.data.key == Id).First();
5151
}
5252

53-
public static void Give(string id, int level)
53+
public static void Give(string id, int level, bool survival, bool versus)
5454
{
5555
var mod = Get(id);
56-
mod.levelInSurvival = level;
56+
if (survival)
57+
mod.levelInSurvival = level;
58+
if (versus)
59+
mod.levelInVersus = level;
5760
}
5861

5962
[HarmonyPatch(typeof(ModifierManager), "GetNonMaxedSurvivalMods")]

0 commit comments

Comments
 (0)