isaacscript-common 1.2.176 → 1.2.177
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 +0 -1
- package/dist/callbacks/postBombInitLate.lua +0 -1
- package/dist/callbacks/postBoneSwing.lua +0 -1
- package/dist/callbacks/postCursedTeleport.lua +0 -1
- package/dist/callbacks/postCustomDoorEnter.lua +0 -1
- package/dist/callbacks/postEffectInitLate.lua +0 -1
- package/dist/callbacks/postEsauJr.lua +0 -1
- package/dist/callbacks/postFamiliarInitLate.lua +0 -1
- package/dist/callbacks/postFlip.lua +0 -1
- package/dist/callbacks/postGridEntity.lua +0 -1
- package/dist/callbacks/postGridEntityCollision.lua +0 -1
- package/dist/callbacks/postKnifeInitLate.lua +0 -1
- package/dist/callbacks/postLaserInitLate.lua +0 -1
- package/dist/callbacks/postNPCInitLate.lua +0 -1
- package/dist/callbacks/postPickupCollect.lua +0 -1
- package/dist/callbacks/postPickupInitLate.lua +0 -1
- package/dist/callbacks/postPlayerChangeHealth.lua +0 -1
- package/dist/callbacks/postPlayerChangeType.lua +0 -1
- package/dist/callbacks/postPlayerFatalDamage.lua +0 -1
- package/dist/callbacks/postPlayerInitLate.lua +0 -1
- package/dist/callbacks/postPlayerReordered.lua +0 -1
- package/dist/callbacks/postProjectileInitLate.lua +0 -1
- package/dist/callbacks/postPurchase.lua +0 -1
- package/dist/callbacks/postSlotInitUpdate.lua +0 -1
- package/dist/callbacks/postSlotRender.lua +0 -1
- package/dist/callbacks/postTearInitLate.lua +0 -1
- package/dist/callbacks/postTearInitVeryLate.lua +0 -1
- package/dist/callbacks/postTransformation.lua +0 -1
- package/dist/callbacks/postTrinketBreak.lua +0 -1
- package/dist/callbacks/preNewLevel.lua +0 -1
- package/dist/callbacks/subscriptions/postBombInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postBoneSwing.lua +0 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +0 -1
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +0 -1
- package/dist/callbacks/subscriptions/postCustomRevive.lua +0 -1
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postEsauJr.lua +0 -1
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +0 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +0 -1
- package/dist/callbacks/subscriptions/postFlip.lua +0 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +0 -1
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +0 -1
- package/dist/callbacks/subscriptions/postItemPickup.lua +0 -1
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +0 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postPickupCollect.lua +0 -1
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +0 -1
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postPurchase.lua +0 -1
- package/dist/callbacks/subscriptions/postSacrifice.lua +0 -1
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +0 -1
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +0 -1
- package/dist/callbacks/subscriptions/postSlotInit.lua +0 -1
- package/dist/callbacks/subscriptions/postSlotRender.lua +0 -1
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +0 -1
- package/dist/callbacks/subscriptions/postTearInitLate.lua +0 -1
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +0 -1
- package/dist/callbacks/subscriptions/postTransformation.lua +0 -1
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +0 -1
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +0 -1
- package/dist/callbacks/subscriptions/preCustomRevive.lua +0 -1
- package/dist/callbacks/subscriptions/preItemPickup.lua +0 -1
- package/dist/callbacks/subscriptions/preNewLevel.lua +0 -1
- package/dist/callbacks/subscriptions/roomClearChange.lua +0 -1
- package/dist/classes/DefaultMap.lua +0 -1
- package/dist/classes/ModUpgraded.lua +0 -1
- package/dist/classes/null.lua +0 -1
- package/dist/constants.lua +0 -1
- package/dist/enums/private/SerializationBrand.lua +0 -1
- package/dist/features/collectiblesSeen.lua +0 -1
- package/dist/features/deployJSONRoom.lua +0 -1
- package/dist/features/disableInputs.lua +0 -1
- package/dist/features/disableSound.lua +0 -1
- package/dist/features/extraConsoleCommands/commands.lua +0 -1
- package/dist/features/extraConsoleCommands/init.lua +0 -1
- package/dist/features/getCollectibleItemPoolType.lua +0 -1
- package/dist/features/isPonyActive.lua +0 -1
- package/dist/features/playerInventory.lua +0 -1
- package/dist/features/preventCollectibleRotate.lua +0 -1
- package/dist/features/runInNFrames.lua +0 -1
- package/dist/features/saveDataManager/exports.lua +0 -1
- package/dist/features/saveDataManager/load.lua +0 -1
- package/dist/features/saveDataManager/main.lua +0 -1
- package/dist/features/saveDataManager/maps.lua +0 -1
- package/dist/features/saveDataManager/merge.lua +0 -1
- package/dist/features/saveDataManager/save.lua +0 -1
- package/dist/features/sirenHelpers.lua +0 -1
- package/dist/features/taintedLazarusPlayers.lua +0 -1
- package/dist/functions/array.lua +0 -1
- package/dist/functions/cards.lua +0 -1
- package/dist/functions/collectibleCacheFlag.lua +0 -1
- package/dist/functions/collectibleSet.lua +0 -1
- package/dist/functions/deepCopy.lua +0 -1
- package/dist/functions/deepCopyTests.lua +0 -1
- package/dist/functions/doors.lua +0 -1
- package/dist/functions/entity.lua +0 -1
- package/dist/functions/entitySpecific.lua +0 -1
- package/dist/functions/familiars.lua +0 -1
- package/dist/functions/flying.lua +1 -2
- package/dist/functions/globals.lua +0 -1
- package/dist/functions/gridEntity.lua +0 -1
- package/dist/functions/input.lua +0 -1
- package/dist/functions/jsonRoom.lua +0 -1
- package/dist/functions/log.lua +0 -1
- package/dist/functions/map.lua +0 -1
- package/dist/functions/math.lua +0 -1
- package/dist/functions/npc.lua +0 -1
- package/dist/functions/pickups.lua +0 -1
- package/dist/functions/player.lua +0 -1
- package/dist/functions/playerDataStructures.lua +0 -1
- package/dist/functions/playerHealth.lua +0 -1
- package/dist/functions/pocketItems.lua +0 -1
- package/dist/functions/positionVelocity.lua +0 -1
- package/dist/functions/rooms.lua +0 -1
- package/dist/functions/set.lua +0 -1
- package/dist/functions/string.lua +0 -1
- package/dist/functions/transformations.lua +0 -1
- package/dist/functions/trinketCacheFlag.lua +0 -1
- package/dist/functions/trinketSet.lua +0 -1
- package/dist/functions/utils.lua +0 -1
- package/dist/lualib_bundle.lua +83 -49
- package/dist/maps/cardMap.lua +0 -1
- package/dist/maps/characterMap.lua +0 -1
- package/dist/maps/collectibleDescriptionMap.lua +0 -1
- package/dist/maps/collectibleNameMap.lua +0 -1
- package/dist/maps/gridEntityTypeToBrokenStateMap.lua +0 -1
- package/dist/maps/gridEntityXMLMap.lua +0 -1
- package/dist/maps/pillEffectMap.lua +0 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +0 -1
- package/dist/maps/roomTypeMap.lua +0 -1
- package/dist/maps/trinketDescriptionMap.lua +0 -1
- package/dist/maps/trinketNameMap.lua +0 -1
- package/dist/patchErrorFunctions.lua +0 -1
- package/dist/upgradeMod.lua +0 -1
- package/package.json +2 -2
package/dist/functions/array.lua
CHANGED
package/dist/functions/cards.lua
CHANGED
package/dist/functions/doors.lua
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____lualib = require("lualib_bundle")
|
|
3
2
|
local Set = ____lualib.Set
|
|
4
3
|
local __TS__New = ____lualib.__TS__New
|
|
@@ -18,7 +17,7 @@ local FLYING_CHARACTERS = __TS__New(Set, {
|
|
|
18
17
|
PlayerType.PLAYER_THESOUL_B
|
|
19
18
|
})
|
|
20
19
|
local FLYING_TRINKETS = __TS__New(Set, {TrinketType.TRINKET_BAT_WING, TrinketType.TRINKET_AZAZELS_STUMP})
|
|
21
|
-
local FLYING_NULL_ITEMS = {NullItemID.ID_REVERSE_SUN, NullItemID.ID_SPIRIT_SHACKLES_SOUL}
|
|
20
|
+
local FLYING_NULL_ITEMS = {NullItemID.ID_REVERSE_SUN, NullItemID.ID_SPIRIT_SHACKLES_SOUL, NullItemID.ID_LOST_CURSE}
|
|
22
21
|
function ____exports.getFlyingCollectibles(self, pruneConditionalItems)
|
|
23
22
|
local collectiblesWithFlyingCacheFlag = getCollectiblesForCacheFlag(nil, CacheFlag.CACHE_FLYING)
|
|
24
23
|
local collectiblesWithAllCacheFlag = getCollectiblesForCacheFlag(nil, CacheFlag.CACHE_ALL)
|
package/dist/functions/input.lua
CHANGED
package/dist/functions/log.lua
CHANGED
package/dist/functions/map.lua
CHANGED
package/dist/functions/math.lua
CHANGED
package/dist/functions/npc.lua
CHANGED
package/dist/functions/rooms.lua
CHANGED
package/dist/functions/set.lua
CHANGED
package/dist/functions/utils.lua
CHANGED
package/dist/lualib_bundle.lua
CHANGED
|
@@ -115,6 +115,88 @@ local function __TS__ArrayFindIndex(arr, callbackFn)
|
|
|
115
115
|
return -1
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
local function __TS__ArrayPush(arr, ...)
|
|
119
|
+
local items = {...}
|
|
120
|
+
for ____, item in ipairs(items) do
|
|
121
|
+
arr[#arr + 1] = item
|
|
122
|
+
end
|
|
123
|
+
return #arr
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
local __TS__Iterator
|
|
127
|
+
do
|
|
128
|
+
local function iteratorGeneratorStep(self)
|
|
129
|
+
local co = self.____coroutine
|
|
130
|
+
local status, value = coroutine.resume(co)
|
|
131
|
+
if not status then
|
|
132
|
+
error(value, 0)
|
|
133
|
+
end
|
|
134
|
+
if coroutine.status(co) == "dead" then
|
|
135
|
+
return
|
|
136
|
+
end
|
|
137
|
+
return true, value
|
|
138
|
+
end
|
|
139
|
+
local function iteratorIteratorStep(self)
|
|
140
|
+
local result = self:next()
|
|
141
|
+
if result.done then
|
|
142
|
+
return
|
|
143
|
+
end
|
|
144
|
+
return true, result.value
|
|
145
|
+
end
|
|
146
|
+
local function iteratorStringStep(self, index)
|
|
147
|
+
index = index + 1
|
|
148
|
+
if index > #self then
|
|
149
|
+
return
|
|
150
|
+
end
|
|
151
|
+
return index, string.sub(self, index, index)
|
|
152
|
+
end
|
|
153
|
+
function __TS__Iterator(iterable)
|
|
154
|
+
if type(iterable) == "string" then
|
|
155
|
+
return iteratorStringStep, iterable, 0
|
|
156
|
+
elseif iterable.____coroutine ~= nil then
|
|
157
|
+
return iteratorGeneratorStep, iterable
|
|
158
|
+
elseif iterable[Symbol.iterator] then
|
|
159
|
+
local iterator = iterable[Symbol.iterator](iterable)
|
|
160
|
+
return iteratorIteratorStep, iterator
|
|
161
|
+
else
|
|
162
|
+
return ipairs(iterable)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
local __TS__ArrayFrom
|
|
168
|
+
do
|
|
169
|
+
local function arrayLikeStep(self, index)
|
|
170
|
+
index = index + 1
|
|
171
|
+
if index > self.length then
|
|
172
|
+
return
|
|
173
|
+
end
|
|
174
|
+
return index, self[index]
|
|
175
|
+
end
|
|
176
|
+
local function arrayLikeIterator(arr)
|
|
177
|
+
if type(arr.length) == "number" then
|
|
178
|
+
return arrayLikeStep, arr, 0
|
|
179
|
+
end
|
|
180
|
+
return __TS__Iterator(arr)
|
|
181
|
+
end
|
|
182
|
+
function __TS__ArrayFrom(arrayLike, mapFn, thisArg)
|
|
183
|
+
local result = {}
|
|
184
|
+
if mapFn == nil then
|
|
185
|
+
for ____, v in arrayLikeIterator(arrayLike) do
|
|
186
|
+
__TS__ArrayPush(result, v)
|
|
187
|
+
end
|
|
188
|
+
else
|
|
189
|
+
for i, v in arrayLikeIterator(arrayLike) do
|
|
190
|
+
__TS__ArrayPush(
|
|
191
|
+
result,
|
|
192
|
+
mapFn(thisArg, v, i - 1)
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
return result
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
118
200
|
local function __TS__ArrayIncludes(self, searchElement, fromIndex)
|
|
119
201
|
if fromIndex == nil then
|
|
120
202
|
fromIndex = 0
|
|
@@ -194,14 +276,6 @@ local function __TS__ArrayMap(arr, callbackfn)
|
|
|
194
276
|
return newArray
|
|
195
277
|
end
|
|
196
278
|
|
|
197
|
-
local function __TS__ArrayPush(arr, ...)
|
|
198
|
-
local items = {...}
|
|
199
|
-
for ____, item in ipairs(items) do
|
|
200
|
-
arr[#arr + 1] = item
|
|
201
|
-
end
|
|
202
|
-
return #arr
|
|
203
|
-
end
|
|
204
|
-
|
|
205
279
|
local function __TS__ArrayReduce(arr, callbackFn, ...)
|
|
206
280
|
local len = #arr
|
|
207
281
|
local k = 0
|
|
@@ -1158,47 +1232,6 @@ local function __TS__InstanceOfObject(value)
|
|
|
1158
1232
|
return valueType == "table" or valueType == "function"
|
|
1159
1233
|
end
|
|
1160
1234
|
|
|
1161
|
-
local __TS__Iterator
|
|
1162
|
-
do
|
|
1163
|
-
local function iteratorGeneratorStep(self)
|
|
1164
|
-
local co = self.____coroutine
|
|
1165
|
-
local status, value = coroutine.resume(co)
|
|
1166
|
-
if not status then
|
|
1167
|
-
error(value, 0)
|
|
1168
|
-
end
|
|
1169
|
-
if coroutine.status(co) == "dead" then
|
|
1170
|
-
return
|
|
1171
|
-
end
|
|
1172
|
-
return true, value
|
|
1173
|
-
end
|
|
1174
|
-
local function iteratorIteratorStep(self)
|
|
1175
|
-
local result = self:next()
|
|
1176
|
-
if result.done then
|
|
1177
|
-
return
|
|
1178
|
-
end
|
|
1179
|
-
return true, result.value
|
|
1180
|
-
end
|
|
1181
|
-
local function iteratorStringStep(self, index)
|
|
1182
|
-
index = index + 1
|
|
1183
|
-
if index > #self then
|
|
1184
|
-
return
|
|
1185
|
-
end
|
|
1186
|
-
return index, string.sub(self, index, index)
|
|
1187
|
-
end
|
|
1188
|
-
function __TS__Iterator(iterable)
|
|
1189
|
-
if type(iterable) == "string" then
|
|
1190
|
-
return iteratorStringStep, iterable, 0
|
|
1191
|
-
elseif iterable.____coroutine ~= nil then
|
|
1192
|
-
return iteratorGeneratorStep, iterable
|
|
1193
|
-
elseif iterable[Symbol.iterator] then
|
|
1194
|
-
local iterator = iterable[Symbol.iterator](iterable)
|
|
1195
|
-
return iteratorIteratorStep, iterator
|
|
1196
|
-
else
|
|
1197
|
-
return ipairs(iterable)
|
|
1198
|
-
end
|
|
1199
|
-
end
|
|
1200
|
-
end
|
|
1201
|
-
|
|
1202
1235
|
local Map
|
|
1203
1236
|
do
|
|
1204
1237
|
Map = __TS__Class()
|
|
@@ -2372,6 +2405,7 @@ return {
|
|
|
2372
2405
|
__TS__ArrayForEach = __TS__ArrayForEach,
|
|
2373
2406
|
__TS__ArrayFind = __TS__ArrayFind,
|
|
2374
2407
|
__TS__ArrayFindIndex = __TS__ArrayFindIndex,
|
|
2408
|
+
__TS__ArrayFrom = __TS__ArrayFrom,
|
|
2375
2409
|
__TS__ArrayIncludes = __TS__ArrayIncludes,
|
|
2376
2410
|
__TS__ArrayIndexOf = __TS__ArrayIndexOf,
|
|
2377
2411
|
__TS__ArrayIsArray = __TS__ArrayIsArray,
|
package/dist/maps/cardMap.lua
CHANGED
package/dist/upgradeMod.lua
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.177",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"isaacscript-tsconfig": "^1.1.8",
|
|
31
31
|
"typedoc": "^0.22.13",
|
|
32
32
|
"typescript": "4.6.2",
|
|
33
|
-
"typescript-to-lua": "^1.4.
|
|
33
|
+
"typescript-to-lua": "^1.4.1"
|
|
34
34
|
}
|
|
35
35
|
}
|