Some fixes and a compat function for older versions
This commit is contained in:
@@ -79,13 +79,16 @@ function CheckIfItemIsAmputatedLimb(item)
|
||||
local item_full_type = item:getFullType()
|
||||
|
||||
local sides = {"Left", "Right"}
|
||||
local limbs_to_check = {"Hand", "Forearm", "Arm"}
|
||||
local limbs_to_check = {"Hand", "LowerArm", "UpperArm"}
|
||||
|
||||
local is_amputated_limb = false
|
||||
|
||||
for _, part_name in ipairs(limbs_to_check) do
|
||||
for _, part in ipairs(limbs_to_check) do
|
||||
for _, side in ipairs(sides) do
|
||||
local check_name = "TOC.Arm" .. side .. "_no" .. part_name
|
||||
|
||||
local part_name = side .. "_" .. part
|
||||
|
||||
local check_name = "TOC.Amputation_" .. part_name
|
||||
print(check_name)
|
||||
if item_full_type == check_name then
|
||||
is_amputated_limb = true
|
||||
|
||||
Reference in New Issue
Block a user