isaacscript-common 1.2.142 → 1.2.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,8 @@ local ____exports = {}
|
|
|
8
8
|
local newPlayerInventory, useItemD4, postPlayerInit, postItemPickup, v
|
|
9
9
|
local ____featuresInitialized = require("featuresInitialized")
|
|
10
10
|
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
11
|
+
local ____array = require("functions.array")
|
|
12
|
+
local copyArray = ____array.copyArray
|
|
11
13
|
local ____collectibleSet = require("functions.collectibleSet")
|
|
12
14
|
local getCollectibleSet = ____collectibleSet.getCollectibleSet
|
|
13
15
|
local ____player = require("functions.player")
|
|
@@ -68,6 +70,7 @@ end
|
|
|
68
70
|
function ____exports.getPlayerInventory(self, player)
|
|
69
71
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
70
72
|
local playerIndex = getPlayerIndex(nil, player)
|
|
71
|
-
|
|
73
|
+
local inventory = v.run.playersInventory:getAndSetDefault(playerIndex, player)
|
|
74
|
+
return copyArray(nil, inventory)
|
|
72
75
|
end
|
|
73
76
|
return ____exports
|
package/dist/upgradeMod.lua
CHANGED
|
@@ -85,6 +85,8 @@ local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolT
|
|
|
85
85
|
local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
|
|
86
86
|
local ____isPonyActive = require("features.isPonyActive")
|
|
87
87
|
local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
|
|
88
|
+
local ____playerInventory = require("features.playerInventory")
|
|
89
|
+
local playerInventoryInit = ____playerInventory.playerInventoryInit
|
|
88
90
|
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
89
91
|
local preventCollectibleRotateInit = ____preventCollectibleRotate.preventCollectibleRotateInit
|
|
90
92
|
local ____runInNFrames = require("features.runInNFrames")
|
|
@@ -146,6 +148,7 @@ function initFeatures(self, mod)
|
|
|
146
148
|
runInNFramesInit(nil, mod)
|
|
147
149
|
sirenHelpersInit(nil, mod)
|
|
148
150
|
isPonyActiveInit(nil, mod)
|
|
151
|
+
playerInventoryInit(nil, mod)
|
|
149
152
|
end
|
|
150
153
|
function ____exports.upgradeMod(self, modVanilla, verbose)
|
|
151
154
|
if verbose == nil then
|