This commit is contained in:
Pao
2023-01-30 18:16:02 +01:00
parent 18ceeb0cb5
commit 3afedacbb3
11 changed files with 23 additions and 120 deletions

View File

@@ -26,7 +26,7 @@ local function OverrideFancyHandwork()
end
--ISInventoryPaneContextMenu.transferIfNeeded(self.chr, item)
-- If we already have the item equipped
-- If we already have the item equipped
if (primary and primary == item) or (secondary and secondary == item) then
ISTimedActionQueue.add(ISUnequipAction:new(self.chr, item, 20))
equip = false
@@ -38,7 +38,7 @@ local function OverrideFancyHandwork()
if primary and isForceDropHeavyItem(primary) then
ISTimedActionQueue.add(ISUnequipAction:new(self.chr, primary, 50))
----- treat "equip" as if we have something equipped from here down
equip = false
equip = false
end
if mod then
-- If we still have something equipped in secondary, unequip
@@ -71,8 +71,6 @@ local function OverrideFancyHandwork()
getPlayerData(self.chr:getPlayerNum()).playerInventory:refreshBackpacks()
end
local og_FHSwapHandsAction = FHSwapHandsAction.start
function FHSwapHandsAction:start()
@@ -105,5 +103,4 @@ local function OverrideFancyHandwork()
end
Events.OnGameStart.Add(OverrideFancyHandwork)
Events.OnGameStart.Add(OverrideFancyHandwork)