Handling WoundCleaning

This commit is contained in:
ZioPao
2023-12-29 23:24:49 -05:00
parent 2bf1631809
commit 4e4b771e41
9 changed files with 244 additions and 9 deletions

View File

@@ -1,3 +1,6 @@
local StaticData = require("TOC/StaticData")
-----------------------------------
local CommonMethods = {}
---@param val number
@@ -9,6 +12,11 @@ function CommonMethods.Normalize(val, min, max)
end
function CommonMethods.GetLimbNameFromBodyPart(bodyPart)
local bodyPartTypeStr = BodyPartType.ToString(bodyPart:getType())
return StaticData.LIMBS_IND_STR[bodyPartTypeStr]
end
---Returns the side for a certain limb or prosthesis
---@param name string
---@return string "L" or "R"