isaacscript-common 1.2.126 → 1.2.129
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/dist/cachedClasses.d.ts +37 -0
- package/dist/cachedClasses.lua +7 -0
- package/dist/callbacks/customRevive.lua +3 -2
- package/dist/callbacks/postCursedTeleport.lua +2 -5
- package/dist/callbacks/postEsauJr.lua +2 -2
- package/dist/callbacks/postNewRoomEarly.lua +2 -1
- package/dist/callbacks/postPlayerFatalDamage.lua +6 -6
- package/dist/callbacks/postSacrifice.lua +2 -1
- package/dist/callbacks/reorderedCallbacks.lua +2 -3
- package/dist/features/deployJSONRoom.lua +2 -8
- package/dist/features/disableSound.lua +2 -2
- package/dist/features/getCollectibleItemPoolType.lua +2 -1
- package/dist/features/runInNFrames.lua +2 -2
- package/dist/features/saveDataManager/main.lua +2 -1
- package/dist/functions/cards.d.ts +6 -0
- package/dist/functions/cards.lua +2 -3
- package/dist/functions/charge.lua +5 -5
- package/dist/functions/collectibleSet.lua +2 -1
- package/dist/functions/collectibles.d.ts +6 -0
- package/dist/functions/collectibles.lua +2 -11
- package/dist/functions/doors.lua +2 -3
- package/dist/functions/entity.lua +2 -1
- package/dist/functions/familiars.lua +2 -1
- package/dist/functions/gridEntity.lua +2 -8
- package/dist/functions/log.lua +2 -2
- package/dist/functions/map.d.ts +8 -2
- package/dist/functions/map.lua +9 -0
- package/dist/functions/pills.d.ts +4 -0
- package/dist/functions/pills.lua +2 -2
- package/dist/functions/player.lua +3 -8
- package/dist/functions/positionVelocity.lua +2 -1
- package/dist/functions/random.d.ts +4 -3
- package/dist/functions/revive.d.ts +1 -1
- package/dist/functions/revive.lua +2 -2
- package/dist/functions/rooms.d.ts +3 -2
- package/dist/functions/rooms.lua +4 -23
- package/dist/functions/seeds.lua +2 -1
- package/dist/functions/sound.lua +2 -1
- package/dist/functions/spawnCollectible.lua +2 -1
- package/dist/functions/stage.lua +2 -9
- package/dist/functions/trinketSet.lua +2 -1
- package/dist/functions/trinkets.d.ts +4 -0
- package/dist/functions/trinkets.lua +2 -4
- package/dist/functions/ui.lua +2 -1
- package/dist/functions/utils.lua +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.lua +8 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
local ____exports = {}
|
|
3
|
+
local ____cachedClasses = require("cachedClasses")
|
|
4
|
+
local itemConfig = ____cachedClasses.itemConfig
|
|
3
5
|
local ____constants = require("constants")
|
|
4
6
|
local TRINKET_GOLDEN_FLAG = ____constants.TRINKET_GOLDEN_FLAG
|
|
5
7
|
local ____trinketDescriptionMap = require("maps.trinketDescriptionMap")
|
|
@@ -18,7 +20,6 @@ local temporarilyRemoveTrinkets = ____trinketGive.temporarilyRemoveTrinkets
|
|
|
18
20
|
local ____utils = require("functions.utils")
|
|
19
21
|
local ____repeat = ____utils["repeat"]
|
|
20
22
|
function ____exports.getMaxTrinketType(self)
|
|
21
|
-
local itemConfig = Isaac.GetItemConfig()
|
|
22
23
|
return itemConfig:GetTrinkets().Size - 1
|
|
23
24
|
end
|
|
24
25
|
function ____exports.getOpenTrinketSlot(self, player)
|
|
@@ -43,7 +44,6 @@ function ____exports.getTrinkets(self, matchingSubType)
|
|
|
43
44
|
return getPickups(nil, PickupVariant.PICKUP_TRINKET, matchingSubType)
|
|
44
45
|
end
|
|
45
46
|
function ____exports.getTrinketDescription(self, trinketType)
|
|
46
|
-
local itemConfig = Isaac.GetItemConfig()
|
|
47
47
|
local defaultDescription = "Unknown"
|
|
48
48
|
if type(trinketType) ~= "number" then
|
|
49
49
|
return defaultDescription
|
|
@@ -59,7 +59,6 @@ function ____exports.getTrinketDescription(self, trinketType)
|
|
|
59
59
|
return itemConfigItem.Description
|
|
60
60
|
end
|
|
61
61
|
function ____exports.getTrinketName(self, trinketType)
|
|
62
|
-
local itemConfig = Isaac.GetItemConfig()
|
|
63
62
|
local defaultName = "Unknown"
|
|
64
63
|
if type(trinketType) ~= "number" then
|
|
65
64
|
return defaultName
|
|
@@ -101,7 +100,6 @@ function ____exports.smeltTrinket(self, player, trinketType, numTrinkets)
|
|
|
101
100
|
giveTrinketsBack(nil, player, trinketSituation)
|
|
102
101
|
end
|
|
103
102
|
function ____exports.trinketHasCacheFlag(self, trinketType, cacheFlag)
|
|
104
|
-
local itemConfig = Isaac.GetItemConfig()
|
|
105
103
|
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
106
104
|
if itemConfigItem == nil then
|
|
107
105
|
return false
|
package/dist/functions/ui.lua
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
local ____exports = {}
|
|
3
|
+
local ____cachedClasses = require("cachedClasses")
|
|
4
|
+
local game = ____cachedClasses.game
|
|
3
5
|
local ____constants = require("constants")
|
|
4
6
|
local UI_HEART_WIDTH = ____constants.UI_HEART_WIDTH
|
|
5
7
|
function ____exports.getHeartRowLength(self, player)
|
|
@@ -16,7 +18,6 @@ function ____exports.getScreenBottomRightPos(self)
|
|
|
16
18
|
return Vector(screenWidth, screenHeight)
|
|
17
19
|
end
|
|
18
20
|
function ____exports.getHeartsUIWidth(self)
|
|
19
|
-
local game = Game()
|
|
20
21
|
local level = game:GetLevel()
|
|
21
22
|
local curses = level:GetCurses()
|
|
22
23
|
local player = Isaac.GetPlayer()
|
package/dist/functions/utils.lua
CHANGED
|
@@ -5,6 +5,8 @@ local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
|
5
5
|
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
6
6
|
local __TS__StringSubstr = ____lualib.__TS__StringSubstr
|
|
7
7
|
local ____exports = {}
|
|
8
|
+
local ____cachedClasses = require("cachedClasses")
|
|
9
|
+
local game = ____cachedClasses.game
|
|
8
10
|
local HEX_STRING_LENGTH = 6
|
|
9
11
|
____exports.ensureAllCases = function(____, obj) return obj end
|
|
10
12
|
function ____exports.getEnumValues(self, transpiledEnum)
|
|
@@ -44,7 +46,6 @@ function ____exports.isLuaDebugEnabled(self)
|
|
|
44
46
|
return package ~= nil
|
|
45
47
|
end
|
|
46
48
|
function ____exports.onSetSeed(self)
|
|
47
|
-
local game = Game()
|
|
48
49
|
local seeds = game:GetSeeds()
|
|
49
50
|
local customRun = seeds:IsCustomRun()
|
|
50
51
|
local challenge = Isaac.GetChallenge()
|
package/dist/index.d.ts
CHANGED
package/dist/index.lua
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
local ____exports = {}
|
|
3
|
+
do
|
|
4
|
+
local ____export = require("cachedClasses")
|
|
5
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
6
|
+
if ____exportKey ~= "default" then
|
|
7
|
+
____exports[____exportKey] = ____exportValue
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
3
11
|
do
|
|
4
12
|
local ____reorderedCallbacks = require("callbacks.reorderedCallbacks")
|
|
5
13
|
local forceNewLevelCallback = ____reorderedCallbacks.forceNewLevelCallback
|