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