isaacscript-common 1.2.174 → 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.d.ts +6 -7
- package/dist/classes/null.lua +5 -6
- package/dist/constants.d.ts +10 -10
- package/dist/constants.lua +3 -4
- package/dist/enums/private/SerializationBrand.lua +0 -1
- package/dist/features/collectiblesSeen.d.ts +6 -0
- package/dist/features/collectiblesSeen.lua +42 -0
- package/dist/features/deployJSONRoom.lua +2 -2
- package/dist/features/disableInputs.lua +0 -1
- package/dist/features/disableSound.lua +0 -1
- package/dist/features/extraConsoleCommands/commands.d.ts +11 -11
- package/dist/features/extraConsoleCommands/commands.lua +23 -23
- package/dist/features/extraConsoleCommands/init.lua +6 -7
- package/dist/features/getCollectibleItemPoolType.lua +0 -1
- package/dist/features/isPonyActive.lua +0 -1
- package/dist/features/playerInventory.d.ts +10 -2
- package/dist/features/playerInventory.lua +51 -16
- package/dist/features/preventCollectibleRotate.lua +0 -1
- package/dist/features/runInNFrames.lua +0 -1
- package/dist/features/saveDataManager/constants.d.ts +1 -1
- package/dist/features/saveDataManager/constants.lua +1 -1
- package/dist/features/saveDataManager/exports.d.ts +6 -6
- package/dist/features/saveDataManager/exports.lua +4 -5
- 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 +5 -4
- package/dist/features/saveDataManager/save.lua +0 -1
- package/dist/features/sirenHelpers.lua +0 -1
- package/dist/features/taintedLazarusPlayers.lua +0 -1
- package/dist/featuresInitialized.d.ts +1 -1
- package/dist/featuresInitialized.lua +3 -3
- package/dist/functions/array.d.ts +39 -39
- package/dist/functions/array.lua +79 -80
- package/dist/functions/cards.d.ts +3 -3
- package/dist/functions/cards.lua +7 -8
- package/dist/functions/charge.d.ts +11 -11
- package/dist/functions/charge.lua +13 -13
- package/dist/functions/collectibleCacheFlag.lua +0 -1
- package/dist/functions/collectibleSet.lua +0 -1
- package/dist/functions/collectibles.d.ts +53 -15
- package/dist/functions/collectibles.lua +44 -21
- package/dist/functions/color.d.ts +2 -2
- package/dist/functions/color.lua +6 -6
- package/dist/functions/deepCopy.d.ts +0 -3
- package/dist/functions/deepCopy.lua +5 -23
- package/dist/functions/deepCopyTests.lua +0 -1
- package/dist/functions/doors.d.ts +8 -8
- package/dist/functions/doors.lua +16 -17
- package/dist/functions/entity.d.ts +13 -14
- package/dist/functions/entity.lua +27 -35
- 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.d.ts +1 -1
- package/dist/functions/gridEntity.lua +5 -6
- package/dist/functions/input.lua +0 -1
- package/dist/functions/jsonHelpers.d.ts +7 -7
- package/dist/functions/jsonHelpers.lua +10 -11
- package/dist/functions/jsonRoom.lua +0 -1
- package/dist/functions/log.d.ts +21 -21
- package/dist/functions/log.lua +75 -75
- package/dist/functions/map.lua +0 -1
- package/dist/functions/math.d.ts +1 -1
- package/dist/functions/math.lua +3 -4
- package/dist/functions/npc.lua +0 -1
- package/dist/functions/pickups.lua +0 -1
- package/dist/functions/player.d.ts +6 -8
- package/dist/functions/player.lua +22 -30
- package/dist/functions/playerDataStructures.lua +0 -1
- package/dist/functions/playerHealth.d.ts +1 -1
- package/dist/functions/playerHealth.lua +20 -21
- package/dist/functions/pocketItems.lua +0 -1
- package/dist/functions/positionVelocity.d.ts +3 -0
- package/dist/functions/positionVelocity.lua +19 -6
- package/dist/functions/random.d.ts +7 -7
- package/dist/functions/revive.d.ts +5 -5
- package/dist/functions/revive.lua +8 -8
- package/dist/functions/roomData.d.ts +96 -0
- package/dist/functions/roomData.lua +57 -0
- package/dist/functions/rooms.d.ts +1 -96
- package/dist/functions/rooms.lua +30 -76
- package/dist/functions/set.d.ts +2 -2
- package/dist/functions/set.lua +7 -8
- package/dist/functions/string.lua +0 -1
- package/dist/functions/transformations.lua +0 -1
- package/dist/functions/trinketCacheFlag.d.ts +4 -4
- package/dist/functions/trinketCacheFlag.lua +3 -3
- package/dist/functions/trinketGive.d.ts +7 -7
- package/dist/functions/trinketGive.lua +27 -27
- package/dist/functions/trinketSet.lua +0 -1
- package/dist/functions/trinkets.d.ts +2 -2
- package/dist/functions/trinkets.lua +6 -6
- package/dist/functions/ui.d.ts +13 -13
- package/dist/functions/ui.lua +28 -28
- package/dist/functions/utils.d.ts +6 -0
- package/dist/functions/utils.lua +7 -1
- package/dist/functions/vector.d.ts +2 -0
- package/dist/functions/vector.lua +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.lua +13 -0
- 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.d.ts +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +1 -2
- 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/types/CollectibleIndex.d.ts +15 -0
- package/dist/types/CollectibleIndex.lua +3 -0
- package/dist/upgradeMod.lua +3 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./enums/PillEffectClass";
|
|
|
13
13
|
export * from "./enums/PillEffectType";
|
|
14
14
|
export * from "./enums/PocketItemType";
|
|
15
15
|
export * from "./enums/SerializationType";
|
|
16
|
+
export { isCollectiblePreviouslySeen } from "./features/collectiblesSeen";
|
|
16
17
|
export { deployJSONRoom, deployRandomJSONRoom, emptyRoom, } from "./features/deployJSONRoom";
|
|
17
18
|
export { disableAllInputs, disableAllInputsExceptFor, disableMovementInputs, disableShootingInputs, enableAllInputs, enableAllInputsExceptFor, } from "./features/disableInputs";
|
|
18
19
|
export { disableAllSound, enableAllSound } from "./features/disableSound";
|
|
@@ -64,6 +65,7 @@ export * from "./functions/pocketItems";
|
|
|
64
65
|
export * from "./functions/positionVelocity";
|
|
65
66
|
export * from "./functions/random";
|
|
66
67
|
export * from "./functions/revive";
|
|
68
|
+
export * from "./functions/roomData";
|
|
67
69
|
export * from "./functions/rooms";
|
|
68
70
|
export * from "./functions/run";
|
|
69
71
|
export * from "./functions/seeds";
|
|
@@ -90,6 +92,7 @@ export * from "./maps/roomTypeMap";
|
|
|
90
92
|
export * from "./objects/directionNames";
|
|
91
93
|
export * from "./types/AddCallbackParametersCustom";
|
|
92
94
|
export * from "./types/AnyEntity";
|
|
95
|
+
export * from "./types/CollectibleIndex";
|
|
93
96
|
export * from "./types/JSONDoor";
|
|
94
97
|
export * from "./types/JSONEntity";
|
|
95
98
|
export * from "./types/JSONRoom";
|
package/dist/index.lua
CHANGED
|
@@ -118,6 +118,11 @@ do
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
|
+
do
|
|
122
|
+
local ____collectiblesSeen = require("features.collectiblesSeen")
|
|
123
|
+
local isCollectiblePreviouslySeen = ____collectiblesSeen.isCollectiblePreviouslySeen
|
|
124
|
+
____exports.isCollectiblePreviouslySeen = isCollectiblePreviouslySeen
|
|
125
|
+
end
|
|
121
126
|
do
|
|
122
127
|
local ____deployJSONRoom = require("features.deployJSONRoom")
|
|
123
128
|
local deployJSONRoom = ____deployJSONRoom.deployJSONRoom
|
|
@@ -514,6 +519,14 @@ do
|
|
|
514
519
|
end
|
|
515
520
|
end
|
|
516
521
|
end
|
|
522
|
+
do
|
|
523
|
+
local ____export = require("functions.roomData")
|
|
524
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
525
|
+
if ____exportKey ~= "default" then
|
|
526
|
+
____exports[____exportKey] = ____exportValue
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
end
|
|
517
530
|
do
|
|
518
531
|
local ____export = require("functions.rooms")
|
|
519
532
|
for ____exportKey, ____exportValue in pairs(____export) do
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
export declare const DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0;
|
|
2
3
|
/**
|
|
3
4
|
* Only used for special room shapes where the top left wall grid index is not equal to
|
|
4
5
|
* `DEFAULT_TOP_LEFT_WALL_GRID_INDEX`.
|
|
5
6
|
*/
|
|
6
7
|
export declare const ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP: ReadonlyMap<RoomShape, int>;
|
|
7
|
-
export declare const DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____lualib = require("lualib_bundle")
|
|
3
2
|
local Map = ____lualib.Map
|
|
4
3
|
local __TS__New = ____lualib.__TS__New
|
|
5
4
|
local ____exports = {}
|
|
5
|
+
____exports.DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0
|
|
6
6
|
____exports.ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP = __TS__New(Map, {
|
|
7
7
|
{RoomShape.ROOMSHAPE_IH, 30},
|
|
8
8
|
{RoomShape.ROOMSHAPE_IV, 4},
|
|
@@ -10,5 +10,4 @@ ____exports.ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP = __TS__New(Map, {
|
|
|
10
10
|
{RoomShape.ROOMSHAPE_IIH, 56},
|
|
11
11
|
{RoomShape.ROOMSHAPE_LTL, 13}
|
|
12
12
|
})
|
|
13
|
-
____exports.DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0
|
|
14
13
|
return ____exports
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CollectibleIndex is a specific type of string; see the documentation for the
|
|
3
|
+
* [[`getCollectibleIndex`]] function. Mods can signify that data structures handle collectibles by
|
|
4
|
+
* using this type.
|
|
5
|
+
*
|
|
6
|
+
* Example:
|
|
7
|
+
* ```
|
|
8
|
+
* const collectiblesNameMap = new Map<CollectibleIndex, string>();
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* This type is branded for extra type safety.
|
|
12
|
+
*/
|
|
13
|
+
export declare type CollectibleIndex = string & {
|
|
14
|
+
__collectibleIndexBrand: unknown;
|
|
15
|
+
};
|
package/dist/upgradeMod.lua
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____lualib = require("lualib_bundle")
|
|
3
2
|
local __TS__New = ____lualib.__TS__New
|
|
4
3
|
local ____exports = {}
|
|
@@ -77,6 +76,8 @@ local ____roomClearChange = require("callbacks.roomClearChange")
|
|
|
77
76
|
local roomClearChangeCallbackInit = ____roomClearChange.roomClearChangeCallbackInit
|
|
78
77
|
local ____ModUpgraded = require("classes.ModUpgraded")
|
|
79
78
|
local ModUpgraded = ____ModUpgraded.ModUpgraded
|
|
79
|
+
local ____collectiblesSeen = require("features.collectiblesSeen")
|
|
80
|
+
local collectiblesSeenInit = ____collectiblesSeen.collectiblesSeenInit
|
|
80
81
|
local ____deployJSONRoom = require("features.deployJSONRoom")
|
|
81
82
|
local deployJSONRoomInit = ____deployJSONRoom.deployJSONRoomInit
|
|
82
83
|
local ____disableInputs = require("features.disableInputs")
|
|
@@ -155,6 +156,7 @@ function initFeatures(self, mod)
|
|
|
155
156
|
isPonyActiveInit(nil, mod)
|
|
156
157
|
playerInventoryInit(nil, mod)
|
|
157
158
|
taintedLazarusPlayersInit(nil, mod)
|
|
159
|
+
collectiblesSeenInit(nil, mod)
|
|
158
160
|
end
|
|
159
161
|
function ____exports.upgradeMod(self, modVanilla, verbose)
|
|
160
162
|
if verbose == nil then
|
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",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"isaac-typescript-definitions": "^1.0.371",
|
|
29
|
-
"isaacscript-lint": "^1.0.
|
|
29
|
+
"isaacscript-lint": "^1.0.93",
|
|
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
|
}
|