isaacscript-common 1.2.95 → 1.2.98
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/callbacks/itemPickup.lua +1 -2
- package/dist/callbacks/postBombInitLate.lua +1 -3
- package/dist/callbacks/postBoneSwing.lua +1 -4
- package/dist/callbacks/postCursedTeleport.lua +1 -3
- package/dist/callbacks/postEffectInitLate.lua +1 -3
- package/dist/callbacks/postEsauJr.lua +1 -2
- package/dist/callbacks/postFamiliarInitLate.lua +1 -3
- package/dist/callbacks/postFlip.lua +1 -2
- package/dist/callbacks/postGridEntity.lua +1 -4
- package/dist/callbacks/postGridEntityCollision.lua +1 -6
- package/dist/callbacks/postKnifeInitLate.lua +1 -3
- package/dist/callbacks/postLaserInitLate.lua +1 -3
- package/dist/callbacks/postNPCInitLate.lua +1 -3
- package/dist/callbacks/postPickupCollect.lua +1 -3
- package/dist/callbacks/postPickupInitLate.lua +1 -3
- package/dist/callbacks/postPlayerChangeHealth.lua +15 -9
- package/dist/callbacks/postPlayerChangeType.lua +1 -3
- package/dist/callbacks/postPlayerFatalDamage.lua +1 -2
- package/dist/callbacks/postPlayerInitLate.lua +1 -3
- package/dist/callbacks/postPlayerReordered.lua +1 -2
- package/dist/callbacks/postProjectileInitLate.lua +1 -3
- package/dist/callbacks/postPurchase.lua +1 -6
- package/dist/callbacks/postSlotInitUpdate.lua +1 -3
- package/dist/callbacks/postSlotRenderBroken.lua +1 -3
- package/dist/callbacks/postTearInitLate.lua +1 -3
- package/dist/callbacks/postTearInitVeryLate.lua +1 -3
- package/dist/callbacks/postTransformation.lua +1 -4
- package/dist/callbacks/postTrinketBreak.lua +1 -2
- package/dist/callbacks/preNewLevel.lua +1 -3
- package/dist/callbacks/subscriptions/postBombInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postBoneSwing.lua +1 -2
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +1 -2
- package/dist/callbacks/subscriptions/postCustomRevive.lua +1 -2
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postEsauJr.lua +1 -2
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +1 -2
- package/dist/callbacks/subscriptions/postFirstFlip.lua +1 -2
- package/dist/callbacks/subscriptions/postFlip.lua +1 -2
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +1 -2
- package/dist/callbacks/subscriptions/postItemPickup.lua +1 -2
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +1 -2
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postPickupCollect.lua +1 -2
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postPurchase.lua +1 -2
- package/dist/callbacks/subscriptions/postSacrifice.lua +1 -2
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +1 -2
- package/dist/callbacks/subscriptions/postSlotInit.lua +1 -2
- package/dist/callbacks/subscriptions/postSlotRender.lua +1 -2
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +1 -2
- package/dist/callbacks/subscriptions/postTearInitLate.lua +1 -2
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +1 -2
- package/dist/callbacks/subscriptions/postTransformation.lua +1 -2
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +1 -2
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +1 -2
- package/dist/callbacks/subscriptions/preCustomRevive.lua +1 -2
- package/dist/callbacks/subscriptions/preItemPickup.lua +1 -2
- package/dist/callbacks/subscriptions/preNewLevel.lua +1 -2
- package/dist/constants.lua +1 -3
- package/dist/features/deployJSONRoom.lua +1 -6
- package/dist/features/disableInputs.lua +1 -5
- package/dist/features/getCollectibleItemPoolType.lua +1 -3
- package/dist/features/isPonyActive.lua +1 -3
- package/dist/features/preventCollectibleRotate.lua +1 -3
- package/dist/features/runInNFrames.lua +1 -4
- package/dist/features/saveDataManager/exports.lua +1 -3
- package/dist/features/saveDataManager/load.lua +1 -2
- package/dist/features/saveDataManager/main.lua +0 -2
- package/dist/features/saveDataManager/maps.lua +1 -3
- package/dist/features/saveDataManager/merge.lua +1 -4
- package/dist/features/saveDataManager/save.lua +1 -3
- package/dist/features/sirenHelpers.lua +1 -3
- package/dist/functions/array.lua +1 -8
- package/dist/functions/bitwise.d.ts +1 -0
- package/dist/functions/bitwise.lua +8 -0
- package/dist/functions/cards.lua +1 -2
- package/dist/functions/collectibleCacheFlag.lua +1 -6
- package/dist/functions/collectibleSet.lua +1 -3
- package/dist/functions/deepCopy.lua +1 -6
- package/dist/functions/deepCopyTests.lua +1 -5
- package/dist/functions/doors.lua +1 -6
- package/dist/functions/entity.lua +1 -6
- package/dist/functions/entitySpecific.lua +1 -2
- package/dist/functions/familiars.lua +1 -3
- package/dist/functions/flying.lua +1 -4
- package/dist/functions/globals.lua +1 -6
- package/dist/functions/gridEntity.lua +1 -7
- package/dist/functions/input.lua +1 -7
- package/dist/functions/jsonRoom.lua +1 -3
- package/dist/functions/log.lua +1 -6
- package/dist/functions/map.lua +1 -4
- package/dist/functions/math.d.ts +0 -1
- package/dist/functions/math.lua +12 -21
- package/dist/functions/npc.lua +1 -5
- package/dist/functions/player.d.ts +9 -0
- package/dist/functions/player.lua +37 -41
- package/dist/functions/playerHealth.lua +1 -3
- package/dist/functions/pocketItems.lua +1 -4
- package/dist/functions/positionVelocity.lua +1 -3
- package/dist/functions/rooms.lua +2 -10
- package/dist/functions/set.lua +1 -4
- package/dist/functions/string.lua +1 -4
- package/dist/functions/transformations.lua +1 -5
- package/dist/functions/trinketCacheFlag.lua +1 -5
- package/dist/functions/trinketSet.lua +1 -3
- package/dist/functions/utils.lua +1 -5
- package/dist/lualib_bundle.lua +1027 -1158
- package/dist/maps/cardDescriptionMap.lua +1 -3
- package/dist/maps/cardNameMap.lua +1 -3
- package/dist/maps/challengeNameMap.lua +1 -3
- package/dist/maps/collectibleDescriptionMap.lua +1 -3
- package/dist/maps/collectibleNameMap.lua +1 -3
- package/dist/maps/gridEntityTypeToBrokenStateMap.lua +1 -3
- package/dist/maps/gridEntityXMLMap.lua +1 -3
- package/dist/maps/pillEffectClassMap.lua +1 -3
- package/dist/maps/pillEffectNameMap.lua +1 -3
- package/dist/maps/pillEffectTypeMap.lua +1 -3
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +1 -3
- package/dist/maps/transformationNameMap.lua +1 -3
- package/dist/maps/trinketDescriptionMap.lua +1 -3
- package/dist/maps/trinketNameMap.lua +1 -3
- package/dist/patchErrorFunctions.lua +1 -4
- package/dist/sets/cards.lua +1 -3
- package/dist/types/DefaultMap.lua +1 -5
- package/dist/types/ModUpgraded.lua +1 -4
- package/dist/types/SerializationBrand.lua +1 -3
- package/dist/upgradeMod.lua +1 -2
- package/package.json +5 -5
package/dist/functions/npc.lua
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Set = ____lualib.Set
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
|
-
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
2
|
+
require("lualib_bundle");
|
|
7
3
|
local ____exports = {}
|
|
8
4
|
local NON_ALIVE_NPCS_TYPE_VARIANT, NON_ALIVE_NPCS_TYPE_VARIANT_SUBTYPE
|
|
9
5
|
local ____constants = require("constants")
|
|
@@ -81,6 +81,15 @@ export declare function getEffectsList(player: EntityPlayer): TemporaryEffect[];
|
|
|
81
81
|
* method.
|
|
82
82
|
*/
|
|
83
83
|
export declare function getFinalPlayer(): EntityPlayer;
|
|
84
|
+
/**
|
|
85
|
+
* Returns the number of red hearts that the player has, excluding any rotten hearts. For example,
|
|
86
|
+
* if the player has one full black heart, one full soul heart, and one half black heart, this
|
|
87
|
+
* function returns 3.
|
|
88
|
+
*
|
|
89
|
+
* This is different from the `EntityPlayer.GetHearts` method, since that returns a value that
|
|
90
|
+
* includes rotten hearts.
|
|
91
|
+
*/
|
|
92
|
+
export declare function getHearts(player: EntityPlayer): int;
|
|
84
93
|
/**
|
|
85
94
|
* Helper function that returns the type of the rightmost heart, not including golden hearts since
|
|
86
95
|
* they can't be damaged directly.
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Set = ____lualib.Set
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
|
-
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
6
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
-
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
8
|
-
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
9
|
-
local Map = ____lualib.Map
|
|
10
|
-
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
11
|
-
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
2
|
+
require("lualib_bundle");
|
|
12
3
|
local ____exports = {}
|
|
13
4
|
local getPlayerIndexCollectibleType, getAdjustedPlayerName, isTaintedModded, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
|
|
14
5
|
local ____constants = require("constants")
|
|
@@ -25,14 +16,13 @@ local ____array = require("functions.array")
|
|
|
25
16
|
local getLastElement = ____array.getLastElement
|
|
26
17
|
local sumArray = ____array.sumArray
|
|
27
18
|
local ____bitwise = require("functions.bitwise")
|
|
19
|
+
local countSetBits = ____bitwise.countSetBits
|
|
28
20
|
local getKBitOfN = ____bitwise.getKBitOfN
|
|
29
21
|
local getNumBitsOfN = ____bitwise.getNumBitsOfN
|
|
30
22
|
local ____collectibles = require("functions.collectibles")
|
|
31
23
|
local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
|
|
32
24
|
local ____collectibleSet = require("functions.collectibleSet")
|
|
33
25
|
local getCollectibleSet = ____collectibleSet.getCollectibleSet
|
|
34
|
-
local ____math = require("functions.math")
|
|
35
|
-
local countSetBits = ____math.countSetBits
|
|
36
26
|
local ____string = require("functions.string")
|
|
37
27
|
local stringContains = ____string.stringContains
|
|
38
28
|
local trimPrefix = ____string.trimPrefix
|
|
@@ -92,15 +82,15 @@ end
|
|
|
92
82
|
function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSoul)
|
|
93
83
|
local character = player:GetPlayerType()
|
|
94
84
|
repeat
|
|
95
|
-
local
|
|
96
|
-
local
|
|
97
|
-
if
|
|
85
|
+
local ____switch66 = character
|
|
86
|
+
local ____cond66 = ____switch66 == PlayerType.PLAYER_THESOUL
|
|
87
|
+
if ____cond66 then
|
|
98
88
|
do
|
|
99
89
|
return differentiateForgottenAndSoul and CollectibleType.COLLECTIBLE_SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
|
|
100
90
|
end
|
|
101
91
|
end
|
|
102
|
-
|
|
103
|
-
if
|
|
92
|
+
____cond66 = ____cond66 or ____switch66 == PlayerType.PLAYER_LAZARUS2_B
|
|
93
|
+
if ____cond66 then
|
|
104
94
|
do
|
|
105
95
|
return CollectibleType.COLLECTIBLE_INNER_EYE
|
|
106
96
|
end
|
|
@@ -128,39 +118,39 @@ end
|
|
|
128
118
|
function getAdjustedPlayerName(self, player)
|
|
129
119
|
local character = player:GetPlayerType()
|
|
130
120
|
repeat
|
|
131
|
-
local
|
|
132
|
-
local
|
|
133
|
-
if
|
|
121
|
+
local ____switch79 = character
|
|
122
|
+
local ____cond79 = ____switch79 == PlayerType.PLAYER_BLUEBABY or ____switch79 == PlayerType.PLAYER_BLUEBABY_B
|
|
123
|
+
if ____cond79 then
|
|
134
124
|
do
|
|
135
125
|
return "Blue Baby"
|
|
136
126
|
end
|
|
137
127
|
end
|
|
138
|
-
|
|
139
|
-
if
|
|
128
|
+
____cond79 = ____cond79 or ____switch79 == PlayerType.PLAYER_LAZARUS2
|
|
129
|
+
if ____cond79 then
|
|
140
130
|
do
|
|
141
131
|
return "Lazarus II"
|
|
142
132
|
end
|
|
143
133
|
end
|
|
144
|
-
|
|
145
|
-
if
|
|
134
|
+
____cond79 = ____cond79 or ____switch79 == PlayerType.PLAYER_BLACKJUDAS
|
|
135
|
+
if ____cond79 then
|
|
146
136
|
do
|
|
147
137
|
return "Dark Judas"
|
|
148
138
|
end
|
|
149
139
|
end
|
|
150
|
-
|
|
151
|
-
if
|
|
140
|
+
____cond79 = ____cond79 or ____switch79 == PlayerType.PLAYER_JACOB
|
|
141
|
+
if ____cond79 then
|
|
152
142
|
do
|
|
153
143
|
return "Jacob & Esau"
|
|
154
144
|
end
|
|
155
145
|
end
|
|
156
|
-
|
|
157
|
-
if
|
|
146
|
+
____cond79 = ____cond79 or ____switch79 == PlayerType.PLAYER_LAZARUS2_B
|
|
147
|
+
if ____cond79 then
|
|
158
148
|
do
|
|
159
149
|
return "Dead Tainted Lazarus"
|
|
160
150
|
end
|
|
161
151
|
end
|
|
162
|
-
|
|
163
|
-
if
|
|
152
|
+
____cond79 = ____cond79 or ____switch79 == PlayerType.PLAYER_JACOB2_B
|
|
153
|
+
if ____cond79 then
|
|
164
154
|
do
|
|
165
155
|
return "Dead Tainted Jacob"
|
|
166
156
|
end
|
|
@@ -297,8 +287,9 @@ function ____exports.getAzazelBrimstoneDistance(self, playerOrTearHeight)
|
|
|
297
287
|
return 32 - 2.5 * tearHeight
|
|
298
288
|
end
|
|
299
289
|
function ____exports.getBlackHearts(self, player)
|
|
300
|
-
local
|
|
301
|
-
|
|
290
|
+
local blackHeartsBitmask = player:GetBlackHearts()
|
|
291
|
+
local blackHeartBits = countSetBits(nil, blackHeartsBitmask)
|
|
292
|
+
return blackHeartBits * 2
|
|
302
293
|
end
|
|
303
294
|
function ____exports.getClosestPlayer(self, position)
|
|
304
295
|
local closestPlayer = nil
|
|
@@ -345,6 +336,11 @@ function ____exports.getFinalPlayer(self)
|
|
|
345
336
|
local players = ____exports.getPlayers(nil)
|
|
346
337
|
return getLastElement(nil, players)
|
|
347
338
|
end
|
|
339
|
+
function ____exports.getHearts(self, player)
|
|
340
|
+
local rottenHearts = player:GetRottenHearts()
|
|
341
|
+
local hearts = player:GetHearts()
|
|
342
|
+
return hearts - rottenHearts * 2
|
|
343
|
+
end
|
|
348
344
|
function ____exports.getLastHeart(self, player)
|
|
349
345
|
local hearts = player:GetHearts()
|
|
350
346
|
local effectiveMaxHearts = player:GetEffectiveMaxHearts()
|
|
@@ -584,9 +580,9 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
584
580
|
itemPool:RemoveCollectible(collectibleType)
|
|
585
581
|
end
|
|
586
582
|
repeat
|
|
587
|
-
local
|
|
588
|
-
local
|
|
589
|
-
if
|
|
583
|
+
local ____switch125 = activeSlot
|
|
584
|
+
local ____cond125 = ____switch125 == ActiveSlot.SLOT_PRIMARY
|
|
585
|
+
if ____cond125 then
|
|
590
586
|
do
|
|
591
587
|
if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
|
|
592
588
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -595,8 +591,8 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
595
591
|
break
|
|
596
592
|
end
|
|
597
593
|
end
|
|
598
|
-
|
|
599
|
-
if
|
|
594
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_SECONDARY
|
|
595
|
+
if ____cond125 then
|
|
600
596
|
do
|
|
601
597
|
if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
|
|
602
598
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -611,16 +607,16 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
611
607
|
break
|
|
612
608
|
end
|
|
613
609
|
end
|
|
614
|
-
|
|
615
|
-
if
|
|
610
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET
|
|
611
|
+
if ____cond125 then
|
|
616
612
|
do
|
|
617
613
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
618
614
|
player:SetActiveCharge(charge, activeSlot)
|
|
619
615
|
break
|
|
620
616
|
end
|
|
621
617
|
end
|
|
622
|
-
|
|
623
|
-
if
|
|
618
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET2
|
|
619
|
+
if ____cond125 then
|
|
624
620
|
do
|
|
625
621
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
626
622
|
break
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
-
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
2
|
+
require("lualib_bundle");
|
|
5
3
|
local ____exports = {}
|
|
6
4
|
local ____constants = require("constants")
|
|
7
5
|
local MAX_PLAYER_HEART_CONTAINERS = ____constants.MAX_PLAYER_HEART_CONTAINERS
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
4
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
5
|
-
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
2
|
+
require("lualib_bundle");
|
|
6
3
|
local ____exports = {}
|
|
7
4
|
local ____constants = require("constants")
|
|
8
5
|
local MAX_PLAYER_POCKET_ITEM_SLOTS = ____constants.MAX_PLAYER_POCKET_ITEM_SLOTS
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Map = ____lualib.Map
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
2
|
+
require("lualib_bundle");
|
|
5
3
|
local ____exports = {}
|
|
6
4
|
local ____constants = require("constants")
|
|
7
5
|
local DISTANCE_OF_GRID_TILE = ____constants.DISTANCE_OF_GRID_TILE
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
4
|
-
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
5
|
-
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
-
local Set = ____lualib.Set
|
|
8
|
-
local __TS__New = ____lualib.__TS__New
|
|
9
|
-
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
10
|
-
local Map = ____lualib.Map
|
|
2
|
+
require("lualib_bundle");
|
|
11
3
|
local ____exports = {}
|
|
12
4
|
local ____constants = require("constants")
|
|
13
5
|
local GENESIS_ROOM_SUBTYPE = ____constants.GENESIS_ROOM_SUBTYPE
|
|
@@ -214,7 +206,7 @@ function ____exports.inCrawlspace(self)
|
|
|
214
206
|
local room = game:GetRoom()
|
|
215
207
|
local roomType = room:GetType()
|
|
216
208
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
217
|
-
return roomType == RoomType.ROOM_DUNGEON and roomSubType
|
|
209
|
+
return roomType == RoomType.ROOM_DUNGEON and roomSubType == 0
|
|
218
210
|
end
|
|
219
211
|
function ____exports.inDevilsCrownTreasureRoom(self)
|
|
220
212
|
local roomDescriptor = ____exports.getCurrentRoomDescriptorReadOnly(nil)
|
package/dist/functions/set.lua
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Set = ____lualib.Set
|
|
4
|
-
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
5
|
-
local __TS__New = ____lualib.__TS__New
|
|
2
|
+
require("lualib_bundle");
|
|
6
3
|
local ____exports = {}
|
|
7
4
|
function ____exports.addSetsToSet(self, mainSet, ...)
|
|
8
5
|
local setsToAdd = {...}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local __TS__StringStartsWith = ____lualib.__TS__StringStartsWith
|
|
4
|
-
local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
5
|
-
local __TS__StringEndsWith = ____lualib.__TS__StringEndsWith
|
|
2
|
+
require("lualib_bundle");
|
|
6
3
|
local ____exports = {}
|
|
7
4
|
function ____exports.stringContains(self, ____string, searchString)
|
|
8
5
|
return (string.find(____string, searchString, nil, true) or 0) - 1 ~= -1
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Map = ____lualib.Map
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
|
-
local Set = ____lualib.Set
|
|
6
|
-
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
2
|
+
require("lualib_bundle");
|
|
7
3
|
local ____exports = {}
|
|
8
4
|
local ____transformationNameMap = require("maps.transformationNameMap")
|
|
9
5
|
local TRANSFORMATION_NAME_MAP = ____transformationNameMap.TRANSFORMATION_NAME_MAP
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Map = ____lualib.Map
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
|
-
local Set = ____lualib.Set
|
|
6
|
-
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
2
|
+
require("lualib_bundle");
|
|
7
3
|
local ____exports = {}
|
|
8
4
|
local ____math = require("functions.math")
|
|
9
5
|
local range = ____math.range
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Set = ____lualib.Set
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
2
|
+
require("lualib_bundle");
|
|
5
3
|
local ____exports = {}
|
|
6
4
|
local ____math = require("functions.math")
|
|
7
5
|
local range = ____math.range
|
package/dist/functions/utils.lua
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
-
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
5
|
-
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
6
|
-
local __TS__StringSubstr = ____lualib.__TS__StringSubstr
|
|
2
|
+
require("lualib_bundle");
|
|
7
3
|
local ____exports = {}
|
|
8
4
|
local HEX_STRING_LENGTH = 6
|
|
9
5
|
____exports.ensureAllCases = function(____, obj) return obj end
|