Cleaning stuff

This commit is contained in:
ZioPao
2024-03-18 18:35:43 +01:00
parent 5180a2cbfb
commit afaceac86e
5 changed files with 95 additions and 61 deletions

View File

@@ -85,10 +85,10 @@ function CachedDataHandler.CalculateHighestAmputatedLimbs(username)
for k, _ in pairs(amputatedLimbs) do
local limbName = k
local index = CommonMethods.GetSide(limbName)
local side = CommonMethods.GetSide(limbName)
if dcInst:getIsCut(limbName) and dcInst:getIsVisible(limbName) then
TOC_DEBUG.print("Added Highest Amputation: " .. limbName)
CachedDataHandler.highestAmputatedLimbs[username][index] = limbName
CachedDataHandler.highestAmputatedLimbs[username][side] = limbName
end
end
end