Added another static table, cicatrization fixes, random bleeding when prost is equipped but isCicatrized is false

This commit is contained in:
ZioPao
2023-11-16 18:58:43 +01:00
parent 18cae1de98
commit 43cf52cd02
5 changed files with 88 additions and 8 deletions

View File

@@ -2,9 +2,10 @@ local ModDataHandler = require("TOC/Handlers/ModDataHandler")
---@class SurgeryHandler
---@field type string
---@field limbName string
local SurgeryHandler = {}
function SurgeryHandler:new(type)
function SurgeryHandler:new(type, limbName)
local o = {}
setmetatable(o, self)
self.__index = self
@@ -12,15 +13,23 @@ function SurgeryHandler:new(type)
-- TODO use getjob for this
o.type = type
o.limbName = limbName
return o
end
-- TODO Should we consider stitching as "operating?"
function SurgeryHandler:execute()
if self.type == "needle" then
-- TODO
end
if self.type == "oven" then
ModDataHandler.GetInstance():setIsCauterized(self.limbName, true)
end
end