Disabled some non-functioning overrides

This commit is contained in:
ZioPao
2024-10-12 19:17:46 +02:00
parent 6b79ebf003
commit 54c5958715

View File

@@ -30,29 +30,32 @@ function ISDetachItemHotbar:new(character, item)
return action return action
end end
local og_ISEquipWeaponAction_new = ISEquipWeaponAction.new -- TODO This pile of shit is unberable. I'll just leave it like this for now.
function ISEquipWeaponAction:new(character, item, time, primary, twoHands)
local action = og_ISEquipWeaponAction_new(self, character, item, time, primary, twoHands) -- local og_ISEquipWeaponAction_new = ISEquipWeaponAction.new
-- function ISEquipWeaponAction:new(character, item, time, primary, twoHands)
-- local action = og_ISEquipWeaponAction_new(self, character, item, time, primary, twoHands)
-- TOC_DEBUG.print("Override ISEquipWeaponAction") -- TOC_DEBUG.print("Override ISEquipWeaponAction")
if not twoHands then -- if not twoHands then
HandleSpeedSpecificAction(action) -- TOC_DEBUG.print("Not a two handed action, re-adding skip TOC")
end -- HandleSpeedSpecificAction(action)
return action -- end
end -- return action
-- end
local og_ISUnequipAction_new = ISUnequipAction.new -- local og_ISUnequipAction_new = ISUnequipAction.new
function ISUnequipAction:new(character, item, time) -- function ISUnequipAction:new(character, item, time)
local action = og_ISUnequipAction_new(self, character, item, time) -- local action = og_ISUnequipAction_new(self, character, item, time)
---@cast item InventoryItem -- ---@cast item InventoryItem
-- For some reason (I have no clue why), if we re-run the method it breaks basically every unequip clothing action. Not for weapons though. -- -- For some reason (I have no clue why), if we re-run the method it breaks basically every unequip clothing action. Not for weapons though.
if instanceof(item, 'HandWeapon') then -- if instanceof(item, 'HandWeapon') then
--print("Running handlespeedspecificaction") -- --print("Running handlespeedspecificaction")
HandleSpeedSpecificAction(action) -- HandleSpeedSpecificAction(action)
end -- end
return action -- return action
end -- end
------------------------------------------------------ ------------------------------------------------------
--- Normal cases --- Normal cases