Readded translations, finalized folder struct

This commit is contained in:
ZioPao
2025-03-31 19:57:27 +02:00
parent 729e3b62e7
commit db6f315f89
65 changed files with 789 additions and 423 deletions

View File

@@ -0,0 +1,21 @@
local ProsthesisHandler = require("TOC/Handlers/ProsthesisHandler") -- declared in common
local og_ISClothingExtraAction_isValid = ISClothingExtraAction.isValid
---@diagnostic disable-next-line: duplicate-set-field
function ISClothingExtraAction:isValid()
local isEquippable = og_ISClothingExtraAction_isValid(self)
-- self.extra is a string, not the item
local testItem = instanceItem(self.extra)
return ProsthesisHandler.Validate(testItem, isEquippable)
end
local og_ISClothingExtraAction_perform = ISClothingExtraAction.perform
function ISClothingExtraAction:perform()
local extraItem = instanceItem(self.extra)
ProsthesisHandler.SearchAndSetupProsthesis(extraItem, true)
og_ISClothingExtraAction_perform(self)
end