Readded translations, finalized folder struct
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
local LimitActionsController = require("TOC/Controllers/LimitActionsController") -- declared in common
|
||||
|
||||
local og_ISClothingExtraAction_isValid = ISClothingExtraAction.isValid
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
function ISClothingExtraAction:isValid()
|
||||
return LimitActionsController.WrapClothingAction(self, og_ISClothingExtraAction_isValid, instanceItem(self.extra))
|
||||
end
|
||||
21
42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua
Normal file
21
42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua
Normal 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
|
||||
|
||||
8
42/mod.info
Normal file
8
42/mod.info
Normal file
@@ -0,0 +1,8 @@
|
||||
name=The Only Cure
|
||||
poster=poster.png
|
||||
description=You've been bitten. You have only two choices.
|
||||
id=TheOnlyCure
|
||||
icon=icon.png
|
||||
url=https://github.com/ZioPao/The-Only-Cure
|
||||
modversion=2.2
|
||||
versionMin=42.6
|
||||
Reference in New Issue
Block a user