Fixes, placeholders, and getters\setters

This commit is contained in:
ZioPao
2023-11-14 01:17:46 +01:00
parent 46175908b1
commit 33299b0779
14 changed files with 80 additions and 33 deletions

View File

@@ -66,7 +66,7 @@ local CutLimbHandler = BaseHandler:derive("CutLimbHandler")
function CutLimbHandler:new(panel, bodyPart)
local o = BaseHandler.new(self, panel, bodyPart)
o.items.ITEMS = {}
o.limbName = BodyPartType.ToString(self.bodyPart:getType())
o.limbName = BodyPartType.ToString(bodyPart:getType())
TOC_DEBUG.print("init CutLimbHandler")
return o
end

View File

@@ -24,6 +24,8 @@ end
---@param worldObjects any
---@param test any
local function AddOvenContextMenu(playerNum, context, worldObjects, test)
if test then return true end
local pl = getSpecificPlayer(playerNum)
if not ModDataHandler.GetInstance():getIsAnyLimbCut() then return end