Working MP :)

This commit is contained in:
ZioPao
2023-11-13 21:12:36 +01:00
parent 627e480d07
commit 4fb19ae5a6
5 changed files with 28 additions and 10 deletions

View File

@@ -103,10 +103,10 @@ end
function CutLimbHandler:perform(previousAction, itemType)
--local item = self:getItemOfType(self.items.ITEMS, itemType)
--previousAction = self:toPlayerInventory(item, previousAction)
-- TODO This is broken like this!
local limbName = BodyPartType.ToString(self.bodyPart:getType())
TOC_DEBUG.print("perform CutLimbHandler on " .. limbName)
local action = CutLimbAction:new(self:getPatient(), self:getDoctor(), limbName)
local action = CutLimbAction:new(self:getDoctor(),self:getPatient(), limbName)
ISTimedActionQueue.add(action)
end