Fix reloading harpooner
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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 },
|
||||
|
Reference in New Issue
Block a user