Fixed Tests

This commit is contained in:
ZioPao
2023-11-09 10:35:02 +01:00
parent 60a7f1b996
commit 9095d11f41
4 changed files with 19 additions and 17 deletions

View File

@@ -1,14 +1,13 @@
local StaticData = require("TOC_StaticData")
local CommonMethods = require("TOC_Common")
---------------------------
--- Submodule to handle spawning the correct items after certain actions (ie: cutting a hand)
---@class ItemsHandler
local ItemsHandler = {}
---Returns the correct index for the textures of the amputation
---@param isCicatrized boolean
---@return number
@@ -47,6 +46,7 @@ end
function ItemsHandler.RemoveClothingItem(playerObj, clothingItem)
if clothingItem and instanceof(clothingItem, "InventoryItem") then
playerObj:removeWornItem(clothingItem)
playerObj:getInventory():Remove(clothingItem) -- Can be a InventoryItem too.. I guess? todo check it
print("TOC: found and deleted " .. tostring(clothingItem))
return true