Added toggle for Zombie amputations

This commit is contained in:
ZioPao
2024-07-15 12:19:11 +02:00
parent 11622795e1
commit 940f5486aa
3 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
if not SandboxVars.TOC.EnableZombieAmputations then return end
require "lua_timers"
local ItemsController = require("TOC/Controllers/ItemsController")
@@ -39,8 +42,6 @@ local function PredicateAmputationItemRight(item)
return item:getType():contains("Amputation_") and item:getType():contains("_R")
end
---@param zombie IsoZombie
local function SpawnAmputation(zombie, side)
local index = ZombRand(1, #StaticData.PARTS_STR)