summaryrefslogtreecommitdiff
path: root/mods/perks/noPerkLimit.gsc
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2022-02-03 04:14:48 +0000
committerrafa_99 <raroma09@gmail.com>2022-02-03 04:14:48 +0000
commitd71d5b612366513c44ecaa3701c0e9693e78502d (patch)
tree03567cc1249f893ae3bde73fa1c21175969fbd0a /mods/perks/noPerkLimit.gsc
parente3b073b85ff0923b6fee3b95e3d8b5898b4a30c2 (diff)
Updated Mods
Diffstat (limited to 'mods/perks/noPerkLimit.gsc')
-rwxr-xr-xmods/perks/noPerkLimit.gsc12
1 files changed, 10 insertions, 2 deletions
diff --git a/mods/perks/noPerkLimit.gsc b/mods/perks/noPerkLimit.gsc
index 649df15..e6fbbab 100755
--- a/mods/perks/noPerkLimit.gsc
+++ b/mods/perks/noPerkLimit.gsc
@@ -26,7 +26,15 @@ onPlayerSpawned()
// Waits for the black preload screen to pass so it can load the mods
flag_wait( "initial_blackscreen_passed" );
- // Mod to Remove the Perk Limit
- level.perk_purchase_limit = 9;
+ // Mod sets a custom Perk Limit
+ thread setPerkLimit(l, 12);
}
}
+
+/*
+ * Function that update zombie perk limit
+ */
+setPerkLimit(l, numberOfPerks)
+{
+ l.perk_purchase_limit = numberOfPerks;
+}