Added suyrgeonFactor (and ugly venom art)

This commit is contained in:
ZioPao
2023-11-21 02:04:30 +01:00
parent 55a4f9fdb4
commit 8a3b0bb190
7 changed files with 13 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ local AmputationHandler = require("TOC/Handlers/AmputationHandler")
local ClientRelayCommands = {}
---comment
---Initialize Amputation Handler
---@param limbName any
---@param surgeonNum any
---@return AmputationHandler

View File

@@ -1,6 +1,5 @@
local CommonMethods = {}
---TODO This is useless
---@param val number
---@param min number
---@param max number

View File

@@ -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()

View File

@@ -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

View File

@@ -1,5 +1,6 @@
Sandbox_EN = {
Sandbox_TOC = "The Only Cure",
Sandbox_TOC_CicatrizationSpeed = "Cicatrization Speed",
Sandbox_TOC_SurgeonAbilityImportance = "Relevance of surgeon doctor ability",
}