From c4dfc6fec0344c1258f44eba5e0daeb8acc12c07 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 30 Mar 2025 23:29:26 +0200 Subject: [PATCH] Fix reloading harpooner --- QuickStackToBag/Lua/Cyka/quickreload.lua | 6 ++++-- QuickStackToBag/Lua/Cyka/quickreload_loadmap.lua | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/QuickStackToBag/Lua/Cyka/quickreload.lua b/QuickStackToBag/Lua/Cyka/quickreload.lua index 890183f..48f4d5a 100644 --- a/QuickStackToBag/Lua/Cyka/quickreload.lua +++ b/QuickStackToBag/Lua/Cyka/quickreload.lua @@ -1,5 +1,5 @@ -- luacheck: globals Character MyModGlobal Timer -local cursormacroer = require("Cyka.cursormacroer") +-- luacheck: max line length 420 local utils = require("Cyka.utils") local dump = require("Cyka.dump") @@ -156,7 +156,9 @@ local function tryReloadSlot(slot, preferMinCondition) -- Be partially loaded local nowHave = #inventorySlot.slot.items if nowHave >= permissible then - -- MyModGlobal.debugPrint(string.format("Moved %d items to load %s", nowHave, tostring(ititem.Prefab.Identifier.Value))) + -- MyModGlobal.debugPrint(string.format( + -- "Finished processing item: %s. Current slot has reached the permissible limit of %d items.", + -- tostring(ititem.Prefab.Identifier.Value), permissible)) break end diff --git a/QuickStackToBag/Lua/Cyka/quickreload_loadmap.lua b/QuickStackToBag/Lua/Cyka/quickreload_loadmap.lua index c42adf3..f4a816b 100644 --- a/QuickStackToBag/Lua/Cyka/quickreload_loadmap.lua +++ b/QuickStackToBag/Lua/Cyka/quickreload_loadmap.lua @@ -6,8 +6,8 @@ local LOAD_MAP = { weldingtool = { weldingfueltank = 1 }, revolver = { revolverround = 999 }, harpooncoilrifle = { - spear = 1, - batterycell = 999 + spear = 999, + batterycell = 1 }, anechoicdivingsuit = { oxygentank = 1, }, handheldsonar = { batterycell = 1 },