More basic stuff for prosthesis

This commit is contained in:
ZioPao
2023-11-10 19:00:21 +01:00
parent ca42c383d1
commit e8d4a37fdc
11 changed files with 125 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
local CommonMethods = {}
---Returns the side for a certain limb
---@param limbName string
---Returns the side for a certain limb or prosthesis
---@param name string
---@return string "L" or "R"
function CommonMethods.GetSide(limbName)
if string.find(limbName, "_L") then return "L" else return "R" end
function CommonMethods.GetSide(name)
if string.find(name, "_L") then return "L" else return "R" end
end
return CommonMethods