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)
--TOC_DEBUG.print("Override ISEquipWeaponAction")
if not twoHands then
HandleSpeedSpecificAction(action)
end
return action
end
local og_ISUnequipAction_new = ISUnequipAction.new -- local og_ISEquipWeaponAction_new = ISEquipWeaponAction.new
function ISUnequipAction:new(character, item, time) -- function ISEquipWeaponAction:new(character, item, time, primary, twoHands)
local action = og_ISUnequipAction_new(self, character, item, time) -- local action = og_ISEquipWeaponAction_new(self, character, item, time, primary, twoHands)
---@cast item InventoryItem -- TOC_DEBUG.print("Override ISEquipWeaponAction")
-- if not twoHands then
-- TOC_DEBUG.print("Not a two handed action, re-adding skip TOC")
-- HandleSpeedSpecificAction(action)
-- end
-- return action
-- end
-- 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. -- local og_ISUnequipAction_new = ISUnequipAction.new
if instanceof(item, 'HandWeapon') then -- function ISUnequipAction:new(character, item, time)
--print("Running handlespeedspecificaction") -- local action = og_ISUnequipAction_new(self, character, item, time)
HandleSpeedSpecificAction(action) -- ---@cast item InventoryItem
end
return action -- -- 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.
end -- if instanceof(item, 'HandWeapon') then
-- --print("Running handlespeedspecificaction")
-- HandleSpeedSpecificAction(action)
-- end
-- return action
-- end
------------------------------------------------------ ------------------------------------------------------
--- Normal cases --- Normal cases