Wash Yourself override

This commit is contained in:
ZioPao
2024-05-05 16:58:16 +02:00
parent 9478e0faa1
commit c8b6a8c5ed
2 changed files with 70 additions and 1 deletions

View File

@@ -11,7 +11,6 @@ local StaticData = require("TOC/StaticData")
TestFramework.registerTestModule("LocalPlayerController", "Setup", function()
local Tests = {}
function Tests.InitializePlayer()
local pl = getPlayer()
LocalPlayerController.InitializePlayer(true)
end
return Tests
@@ -154,6 +153,36 @@ TestFramework.registerTestModule("Various", "Player", function()
end)
TestFramework.registerTestModule("Various", "Visuals", function()
local Tests = {}
function Tests.AddBloodRightForearm()
local playerObj = getPlayer()
-- local wornItems = playerObj:getWornItems()
-- local limbName = "ForeArm_R"
-- local fullType = StaticData.AMPUTATION_CLOTHING_ITEM_BASE .. limbName
-- for i = 1, wornItems:size() do
-- local it = wornItems:get(i - 1)
-- if it then
-- local wornItem = wornItems:get(i - 1):getItem()
-- TOC_DEBUG.print(wornItem:getFullType())
-- if wornItem:getFullType() == fullType then
-- TOC_DEBUG.print("Found amputation item for " .. limbName)
-- -- change it here
-- wornItem:setBloodLevel
-- wornItem:getVisual():setTextureChoice(texId)
-- playerObj:resetModelNextFrame() -- necessary to update the model
-- return
-- end
-- end
-- end
end
return Tests
end)
--------------------------------------------------------------------------------------
if not getActivatedMods():contains("PerfTestFramework") or not isDebugEnabled() then return end