From f973b774a273b4c9d3453c9a69bfc6caea913a49 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 12 Nov 2023 06:00:10 +0100 Subject: [PATCH] removed some useless warnings --- media/lua/client/TOC/Handlers/ItemsHandler.lua | 1 + media/lua/client/TOC/Handlers/PlayerHandler.lua | 2 ++ media/lua/client/TOC/Handlers/ProsthesisHandler.lua | 2 ++ 3 files changed, 5 insertions(+) diff --git a/media/lua/client/TOC/Handlers/ItemsHandler.lua b/media/lua/client/TOC/Handlers/ItemsHandler.lua index f5e6f55..09bac36 100644 --- a/media/lua/client/TOC/Handlers/ItemsHandler.lua +++ b/media/lua/client/TOC/Handlers/ItemsHandler.lua @@ -102,6 +102,7 @@ end local og_ISInventoryPane_refreshContainer = ISInventoryPane.refreshContainer ---Get the list of items for the container and remove the reference to the amputation items +---@diagnostic disable-next-line: duplicate-set-field function ISInventoryPane:refreshContainer() og_ISInventoryPane_refreshContainer(self) if TOC_DEBUG.disablePaneMod then return end diff --git a/media/lua/client/TOC/Handlers/PlayerHandler.lua b/media/lua/client/TOC/Handlers/PlayerHandler.lua index cb2fed0..2d8a541 100644 --- a/media/lua/client/TOC/Handlers/PlayerHandler.lua +++ b/media/lua/client/TOC/Handlers/PlayerHandler.lua @@ -142,6 +142,7 @@ Events.OnPlayerGetDamage.Add(PlayerHandler.CheckInfection) local og_ISBaseTimedAction_adjustMaxTime = ISBaseTimedAction.adjustMaxTime --- Adjust time +---@diagnostic disable-next-line: duplicate-set-field function ISBaseTimedAction:adjustMaxTime(maxTime) local time = og_ISBaseTimedAction_adjustMaxTime(self, maxTime) local modDataHandler = ModDataHandler.GetInstance() @@ -164,6 +165,7 @@ end local og_ISBaseTimedAction_perform = ISBaseTimedAction.perform --- After each action, level up perks +---@diagnostic disable-next-line: duplicate-set-field function ISBaseTimedAction:perform() og_ISBaseTimedAction_perform(self) diff --git a/media/lua/client/TOC/Handlers/ProsthesisHandler.lua b/media/lua/client/TOC/Handlers/ProsthesisHandler.lua index f90d214..f169a7f 100644 --- a/media/lua/client/TOC/Handlers/ProsthesisHandler.lua +++ b/media/lua/client/TOC/Handlers/ProsthesisHandler.lua @@ -33,6 +33,7 @@ end --* Overrides *-- +---@diagnostic disable-next-line: duplicate-set-field function ISWearClothing:isValid() local bodyLocation = self.item:getBodyLocation() if not string.contains(bodyLocation, "TOC_ArmProst") then @@ -43,6 +44,7 @@ function ISWearClothing:isValid() end local og_ISClothingExtraAction_isValid = ISClothingExtraAction.isValid +---@diagnostic disable-next-line: duplicate-set-field function ISClothingExtraAction:isValid() local bodyLocation = self.item:getBodyLocation()