Fix reloading harpooner
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-- luacheck: globals Character MyModGlobal Timer
|
-- luacheck: globals Character MyModGlobal Timer
|
||||||
local cursormacroer = require("Cyka.cursormacroer")
|
-- luacheck: max line length 420
|
||||||
local utils = require("Cyka.utils")
|
local utils = require("Cyka.utils")
|
||||||
local dump = require("Cyka.dump")
|
local dump = require("Cyka.dump")
|
||||||
|
|
||||||
@@ -156,7 +156,9 @@ local function tryReloadSlot(slot, preferMinCondition)
|
|||||||
-- Be partially loaded
|
-- Be partially loaded
|
||||||
local nowHave = #inventorySlot.slot.items
|
local nowHave = #inventorySlot.slot.items
|
||||||
if nowHave >= permissible then
|
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
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@@ -6,8 +6,8 @@ local LOAD_MAP = {
|
|||||||
weldingtool = { weldingfueltank = 1 },
|
weldingtool = { weldingfueltank = 1 },
|
||||||
revolver = { revolverround = 999 },
|
revolver = { revolverround = 999 },
|
||||||
harpooncoilrifle = {
|
harpooncoilrifle = {
|
||||||
spear = 1,
|
spear = 999,
|
||||||
batterycell = 999
|
batterycell = 1
|
||||||
},
|
},
|
||||||
anechoicdivingsuit = { oxygentank = 1, },
|
anechoicdivingsuit = { oxygentank = 1, },
|
||||||
handheldsonar = { batterycell = 1 },
|
handheldsonar = { batterycell = 1 },
|
||||||
|
Reference in New Issue
Block a user