Cicatrization visuals reimplemented

This commit is contained in:
ZioPao
2024-05-01 23:21:15 +02:00
parent c621a56f67
commit fa1d86ae7e
7 changed files with 123 additions and 24 deletions

View File

@@ -262,6 +262,9 @@ function LocalPlayerController.UpdateAmputations()
if cicTime <= 0 then
TOC_DEBUG.print(tostring(limbName) .. " is cicatrized")
dcInst:setIsCicatrized(limbName, true)
-- Set visual
local ItemsController = require("TOC/Controllers/ItemsController")
ItemsController.Player.OverrideAmputationItemVisuals(pl, limbName, true)
end
end
end
@@ -304,7 +307,6 @@ function LocalPlayerController.CanItemBeEquipped(itemObj, limbName)
return true
end
--- Drop all items from the affected limb
---@param limbName string
function LocalPlayerController.DropItemsAfterAmputation(limbName)