Added suyrgeonFactor (and ugly venom art)
This commit is contained in:
@@ -4,7 +4,7 @@ local AmputationHandler = require("TOC/Handlers/AmputationHandler")
|
||||
|
||||
local ClientRelayCommands = {}
|
||||
|
||||
---comment
|
||||
---Initialize Amputation Handler
|
||||
---@param limbName any
|
||||
---@param surgeonNum any
|
||||
---@return AmputationHandler
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
local CommonMethods = {}
|
||||
|
||||
---TODO This is useless
|
||||
---@param val number
|
||||
---@param min number
|
||||
---@param max number
|
||||
|
||||
@@ -130,10 +130,7 @@ end
|
||||
---Execute the amputation
|
||||
---@param damagePlayer boolean
|
||||
function AmputationHandler:execute(damagePlayer)
|
||||
|
||||
-- TODO Calculate surgeonStats
|
||||
-- TODO Cap it to a certain amount, it shouldn't be more than ...?
|
||||
local surgeonFactor = 1
|
||||
local surgeonFactor = self.surgeonPl:getPerkLevel(Perks.Doctor) * SandboxVars.TOC.SurgeonAbilityImportance
|
||||
|
||||
-- Set the data in modData
|
||||
local modDataHandler = ModDataHandler.GetInstance()
|
||||
|
||||
@@ -222,7 +222,7 @@ function PlayerHandler.UpdateCicatrization()
|
||||
TOC_DEBUG.print("updating cicatrization for " .. tostring(limbName))
|
||||
|
||||
if cicTime > 0 then
|
||||
cicTime = cicTime - (SandboxVars.TOC.CicatrizationSpeed)
|
||||
cicTime = cicTime - SandboxVars.TOC.CicatrizationSpeed
|
||||
modDataHandler:setCicatrizationTime(limbName, cicTime)
|
||||
TOC_DEBUG.print("new cicatrization time: " .. tostring(cicTime))
|
||||
if cicTime < 0 then
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Sandbox_EN = {
|
||||
Sandbox_TOC = "The Only Cure",
|
||||
Sandbox_TOC_CicatrizationSpeed = "Cicatrization Speed",
|
||||
Sandbox_TOC_SurgeonAbilityImportance = "Relevance of surgeon doctor ability",
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user