isaacscript-common 4.5.1 → 4.5.2
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.
- package/features/registerHotkey.lua +1 -1
- package/functions/rng.lua +1 -2
- package/initFeatures.lua +3 -0
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ hotkeyFunctionMap = __TS__New(Map)
|
|
|
30
30
|
keyPressedMap = __TS__New(DefaultMap, false)
|
|
31
31
|
---
|
|
32
32
|
-- @internal
|
|
33
|
-
function ____exports.
|
|
33
|
+
function ____exports.registerHotkeyInit(self, mod)
|
|
34
34
|
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
35
35
|
end
|
|
36
36
|
function ____exports.registerHotkey(self, keyboard, func)
|
package/functions/rng.lua
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__TypeOf = ____lualib.__TS__TypeOf
|
|
3
|
-
local __TS__ObjectValues = ____lualib.__TS__ObjectValues
|
|
4
3
|
local ____exports = {}
|
|
5
4
|
local RECOMMENDED_SHIFT_IDX, OBJECT_NAME
|
|
6
5
|
local ____cachedClasses = require("cachedClasses")
|
|
@@ -123,7 +122,7 @@ function ____exports.setAllRNGToSeed(self, object, seed)
|
|
|
123
122
|
if not isTable(nil, object) then
|
|
124
123
|
error("Failed to iterate over the object containing RNG objects since the type of the provided object was: " .. __TS__TypeOf(object))
|
|
125
124
|
end
|
|
126
|
-
for
|
|
125
|
+
for _key, value in pairs(object) do
|
|
127
126
|
if ____exports.isRNG(nil, value) then
|
|
128
127
|
____exports.setSeed(nil, value, seed)
|
|
129
128
|
end
|
package/initFeatures.lua
CHANGED
|
@@ -27,6 +27,8 @@ local ____ponyDetection = require("features.ponyDetection")
|
|
|
27
27
|
local ponyDetectionInit = ____ponyDetection.ponyDetectionInit
|
|
28
28
|
local ____preventCollectibleRotation = require("features.preventCollectibleRotation")
|
|
29
29
|
local preventCollectibleRotationInit = ____preventCollectibleRotation.preventCollectibleRotationInit
|
|
30
|
+
local ____registerHotkey = require("features.registerHotkey")
|
|
31
|
+
local registerHotkeyInit = ____registerHotkey.registerHotkeyInit
|
|
30
32
|
local ____roomClearFrame = require("features.roomClearFrame")
|
|
31
33
|
local roomClearFrameInit = ____roomClearFrame.roomClearFrameInit
|
|
32
34
|
local ____runInNFrames = require("features.runInNFrames")
|
|
@@ -54,6 +56,7 @@ function ____exports.initFeaturesMinor(self, mod)
|
|
|
54
56
|
playerInventoryInit(nil, mod)
|
|
55
57
|
ponyDetectionInit(nil, mod)
|
|
56
58
|
preventCollectibleRotationInit(nil, mod)
|
|
59
|
+
registerHotkeyInit(nil, mod)
|
|
57
60
|
roomClearFrameInit(nil, mod)
|
|
58
61
|
sirenHelpersInit(nil, mod)
|
|
59
62
|
stageHistoryInit(nil, mod)
|