diff --git a/42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua b/42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua index 5de989d..7d90b73 100644 --- a/42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua +++ b/42/media/lua/client/TOC-42/Handlers/ProsthesisHandler.lua @@ -23,6 +23,8 @@ end local og_ISUnequipAction_complete = ISUnequipAction.complete function ISUnequipAction:complete() + -- Horrendous workaround. For B42, as of now, it will basically happen two times, once with :perform and once with :complete. Shouldn't + -- matter for performance but it's really ugly. local isProst = ProsthesisHandler.SearchAndSetupProsthesis(self.item, false) local group if isProst then @@ -35,7 +37,4 @@ function ISUnequipAction:complete() group:setMultiItem("TOC_ArmProst", true) end - -- TODO RUN WORKAROUND FOR MULTI ITEM HERE!!!! - - end \ No newline at end of file diff --git a/common/media/lua/client/TOC/Controllers/LimitActionsController.lua b/common/media/lua/client/TOC/Controllers/LimitActionsController.lua index a7bb67e..a75f162 100644 --- a/common/media/lua/client/TOC/Controllers/LimitActionsController.lua +++ b/common/media/lua/client/TOC/Controllers/LimitActionsController.lua @@ -129,7 +129,7 @@ function ISBaseTimedAction:perform() -- First check level of perks. if already at max, skip - -- LocalPlayerController.playerObj:getPerkLevel(perkAmp) -- todo + local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username) local xp = self.maxTime / 100 @@ -143,7 +143,6 @@ function ISBaseTimedAction:perform() if dcInst:getIsCut(limbName) and dcInst:getIsVisible(limbName) then local side = CommonMethods.GetSide(limbName) - -- TODO Test it local xpObj = LocalPlayerController.playerObj:getXp() if xpObj:getLevel() < 10 then xpObj:AddXP(Perks["Side_" .. side], xp) diff --git a/common/media/lua/client/TOC/UI/Interactions/HealthPanelBaseHandler.lua b/common/media/lua/client/TOC/UI/Interactions/HealthPanelBaseHandler.lua index a95545a..78ced2a 100644 --- a/common/media/lua/client/TOC/UI/Interactions/HealthPanelBaseHandler.lua +++ b/common/media/lua/client/TOC/UI/Interactions/HealthPanelBaseHandler.lua @@ -118,7 +118,7 @@ function BaseHandler:toPlayerInventory(item, previousAction) if item:getContainer() ~= self:getDoctor():getInventory() then local action = ISInventoryTransferAction:new(self:getDoctor(), item, item:getContainer(), self:getDoctor():getInventory()) ISTimedActionQueue.addAfter(previousAction, action) - -- FIXME: ISHealthPanel.actions never gets cleared + -- FIX: ISHealthPanel.actions never gets cleared self.panel.actions = self.panel.actions or {} self.panel.actions[action] = self.bodyPart return action