Added another static table, cicatrization fixes, random bleeding when prost is equipped but isCicatrized is false
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user