isaacscript-common 2.3.1 → 3.1.0
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/cachedClasses.d.ts +6 -4
- package/cachedClasses.lua +24 -0
- package/callbacks/customRevive.lua +2 -0
- package/callbacks/itemPickup.lua +2 -0
- package/callbacks/postBombInitLate.lua +2 -0
- package/callbacks/postBoneSwing.lua +2 -0
- package/callbacks/postCollectibleInitFirst.lua +2 -0
- package/callbacks/postCursedTeleport.lua +2 -0
- package/callbacks/postCustomDoorEnter.lua +44 -0
- package/callbacks/postDoorRender.lua +2 -0
- package/callbacks/postDoorUpdate.lua +2 -0
- package/callbacks/postEffectInitLate.lua +2 -0
- package/callbacks/postEffectStateChanged.lua +2 -0
- package/callbacks/postEsauJr.lua +2 -0
- package/callbacks/postFamiliarInitLate.lua +2 -0
- package/callbacks/postFamiliarStateChanged.lua +2 -0
- package/callbacks/postFlip.lua +2 -0
- package/callbacks/postGreedModeWave.lua +2 -0
- package/callbacks/postGridEntity.lua +2 -0
- package/callbacks/postGridEntityCollision.lua +2 -0
- package/callbacks/postGridEntityRender.lua +2 -0
- package/callbacks/postHolyMantleRemoved.lua +2 -0
- package/callbacks/postKnifeInitLate.lua +2 -0
- package/callbacks/postLaserInitLate.lua +2 -0
- package/callbacks/postNPCInitLate.lua +2 -0
- package/callbacks/postNPCStateChanged.lua +2 -0
- package/callbacks/postNewRoomEarly.lua +2 -0
- package/callbacks/postPickupCollect.lua +2 -0
- package/callbacks/postPickupInitLate.lua +2 -0
- package/callbacks/postPickupStateChanged.lua +2 -0
- package/callbacks/postPitRender.lua +2 -0
- package/callbacks/postPitUpdate.lua +2 -0
- package/callbacks/postPlayerChangeHealth.lua +2 -0
- package/callbacks/postPlayerChangeType.lua +2 -0
- package/callbacks/postPlayerFatalDamage.lua +2 -0
- package/callbacks/postPlayerInitLate.lua +2 -0
- package/callbacks/postPlayerReordered.lua +2 -0
- package/callbacks/postPoopRender.lua +2 -0
- package/callbacks/postPoopUpdate.lua +2 -0
- package/callbacks/postPressurePlateRender.lua +2 -0
- package/callbacks/postPressurePlateUpdate.lua +2 -0
- package/callbacks/postProjectileInitLate.lua +2 -0
- package/callbacks/postPurchase.lua +2 -0
- package/callbacks/postRockRender.lua +2 -0
- package/callbacks/postRockUpdate.lua +2 -0
- package/callbacks/postRoomClearChanged.lua +2 -0
- package/callbacks/postSacrifice.lua +2 -0
- package/callbacks/postSlotDestroyed.d.ts +1 -0
- package/callbacks/postSlotDestroyed.lua +66 -0
- package/callbacks/postSlotInitUpdate.lua +2 -0
- package/callbacks/postSlotRender.lua +5 -21
- package/callbacks/postSpikesRender.lua +2 -0
- package/callbacks/postSpikesUpdate.lua +2 -0
- package/callbacks/postTNTRender.lua +2 -0
- package/callbacks/postTNTUpdate.lua +2 -0
- package/callbacks/postTearInitLate.lua +2 -0
- package/callbacks/postTearInitVeryLate.lua +2 -0
- package/callbacks/postTransformation.lua +2 -0
- package/callbacks/postTrinketBreak.lua +2 -0
- package/callbacks/preBerserkDeath.lua +2 -0
- package/callbacks/preNewLevel.lua +2 -0
- package/callbacks/reorderedCallbacks.lua +16 -0
- package/callbacks/subscriptions/postBombInitLate.lua +6 -0
- package/callbacks/subscriptions/postBoneSwing.lua +6 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
- package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
- package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
- package/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
- package/callbacks/subscriptions/postCustomRevive.lua +6 -0
- package/callbacks/subscriptions/postDoorRender.d.ts +1 -0
- package/callbacks/subscriptions/postDoorRender.lua +6 -0
- package/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
- package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
- package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
- package/callbacks/subscriptions/postEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
- package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFirstFlip.lua +6 -0
- package/callbacks/subscriptions/postFlip.lua +6 -0
- package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
- package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
- package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
- package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
- package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
- package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
- package/callbacks/subscriptions/postItemDischarged.lua +6 -0
- package/callbacks/subscriptions/postItemPickup.lua +6 -0
- package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
- package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
- package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
- package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
- package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
- package/callbacks/subscriptions/postPickupCollect.lua +6 -0
- package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
- package/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
- package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
- package/callbacks/subscriptions/postPitRender.d.ts +1 -0
- package/callbacks/subscriptions/postPitRender.lua +6 -0
- package/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPitUpdate.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPoopRender.d.ts +1 -0
- package/callbacks/subscriptions/postPoopRender.lua +6 -0
- package/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
- package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
- package/callbacks/subscriptions/postPurchase.lua +6 -0
- package/callbacks/subscriptions/postRockRender.d.ts +1 -0
- package/callbacks/subscriptions/postRockRender.lua +6 -0
- package/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postRockUpdate.lua +6 -0
- package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
- package/callbacks/subscriptions/postSacrifice.lua +6 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
- package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
- package/callbacks/subscriptions/postSlotInit.lua +6 -0
- package/callbacks/subscriptions/postSlotRender.lua +6 -0
- package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
- package/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesRender.lua +6 -0
- package/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
- package/callbacks/subscriptions/postTNTRender.d.ts +1 -0
- package/callbacks/subscriptions/postTNTRender.lua +6 -0
- package/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
- package/callbacks/subscriptions/postTearInitLate.lua +6 -0
- package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
- package/callbacks/subscriptions/postTransformation.lua +6 -0
- package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
- package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
- package/callbacks/subscriptions/preCustomRevive.lua +6 -0
- package/callbacks/subscriptions/preItemPickup.lua +6 -0
- package/callbacks/subscriptions/preNewLevel.lua +6 -0
- package/classes/DefaultMap.d.ts +70 -39
- package/classes/DefaultMap.lua +94 -43
- package/classes/ModUpgraded.d.ts +3 -3
- package/classes/ModUpgraded.lua +5 -0
- package/constants.lua +41 -0
- package/constantsFirstLast.lua +63 -0
- package/enums/HealthType.lua +3 -0
- package/enums/ModCallbackCustom.d.ts +1 -1
- package/enums/ModCallbackCustom.lua +6 -0
- package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
- package/enums/private/SerializationBrand.lua +5 -0
- package/features/characterHealthConversion.lua +6 -0
- package/features/characterStats.lua +17 -0
- package/features/debugDisplay/exports.d.ts +17 -0
- package/features/debugDisplay/exports.lua +90 -0
- package/features/debugDisplay/v.d.ts +17 -0
- package/features/deployJSONRoom.d.ts +1 -0
- package/features/deployJSONRoom.lua +56 -0
- package/features/disableInputs.lua +45 -0
- package/features/disableSound.lua +14 -0
- package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
- package/features/extraConsoleCommands/init.lua +16 -0
- package/features/extraConsoleCommands/listCommands.lua +172 -0
- package/features/fadeInRemover.lua +10 -0
- package/features/fastReset.lua +10 -0
- package/features/forgottenSwitch.lua +4 -0
- package/features/getCollectibleItemPoolType.lua +5 -0
- package/features/playerInventory.lua +18 -0
- package/features/ponyDetection.lua +4 -0
- package/features/preventCollectibleRotation.lua +9 -0
- package/features/runInNFrames.lua +50 -0
- package/features/saveDataManager/constants.lua +1 -0
- package/features/saveDataManager/exports.lua +115 -0
- package/features/saveDataManager/load.lua +12 -8
- package/features/saveDataManager/main.lua +16 -3
- package/features/saveDataManager/maps.lua +3 -0
- package/features/saveDataManager/merge.lua +53 -21
- package/features/saveDataManager/save.lua +12 -7
- package/features/sirenHelpers.lua +13 -0
- package/features/taintedLazarusPlayers.lua +11 -0
- package/featuresInitialized.lua +6 -0
- package/functions/array.d.ts +2 -0
- package/functions/array.lua +85 -0
- package/functions/benchmark.lua +6 -0
- package/functions/boss.lua +35 -0
- package/functions/cacheFlag.lua +4 -0
- package/functions/cards.lua +60 -0
- package/functions/challenges.lua +1 -0
- package/functions/character.lua +23 -0
- package/functions/charge.lua +39 -0
- package/functions/chargeBar.d.ts +1 -0
- package/functions/chargeBar.lua +4 -0
- package/functions/collectibleCacheFlag.lua +15 -0
- package/functions/collectibleSet.lua +3 -0
- package/functions/collectibleTag.lua +9 -0
- package/functions/collectibles.d.ts +6 -1
- package/functions/collectibles.lua +146 -2
- package/functions/color.lua +18 -0
- package/functions/debug.lua +18 -0
- package/functions/deepCopy.lua +60 -26
- package/functions/deepCopyTests.lua +8 -5
- package/functions/direction.d.ts +1 -0
- package/functions/direction.lua +22 -0
- package/functions/doors.d.ts +1 -0
- package/functions/doors.lua +58 -0
- package/functions/entity.d.ts +4 -4
- package/functions/entity.lua +94 -6
- package/functions/entitySpecific.d.ts +20 -20
- package/functions/entitySpecific.lua +182 -0
- package/functions/entityTypes.d.ts +1 -1
- package/functions/entityTypes.lua +1 -0
- package/functions/enums.d.ts +2 -0
- package/functions/enums.lua +62 -0
- package/functions/familiars.lua +52 -0
- package/functions/flag.lua +77 -0
- package/functions/flying.lua +10 -0
- package/functions/globals.lua +8 -10
- package/functions/gridEntity.lua +105 -0
- package/functions/gridEntitySpecific.d.ts +5 -0
- package/functions/gridEntitySpecific.lua +8 -0
- package/functions/input.lua +11 -0
- package/functions/isaacAPIClass.d.ts +4 -4
- package/functions/isaacAPIClass.lua +15 -3
- package/functions/jsonHelpers.lua +11 -0
- package/functions/jsonRoom.d.ts +2 -0
- package/functions/jsonRoom.lua +5 -0
- package/functions/kColor.lua +9 -0
- package/functions/language.lua +5 -0
- package/functions/log.lua +31 -3
- package/functions/map.lua +18 -0
- package/functions/math.lua +26 -0
- package/functions/npc.lua +24 -0
- package/functions/pickupVariants.d.ts +11 -11
- package/functions/pickupVariants.lua +11 -0
- package/functions/pickups.d.ts +9 -9
- package/functions/pickups.lua +67 -0
- package/functions/pills.lua +45 -0
- package/functions/player.lua +166 -0
- package/functions/playerDataStructures.lua +65 -0
- package/functions/playerHealth.d.ts +1 -0
- package/functions/playerHealth.lua +10 -0
- package/functions/playerIndex.d.ts +2 -0
- package/functions/playerIndex.lua +47 -0
- package/functions/pocketItems.lua +18 -0
- package/functions/positionVelocity.d.ts +3 -0
- package/functions/positionVelocity.lua +46 -0
- package/functions/random.d.ts +2 -0
- package/functions/random.lua +32 -0
- package/functions/revive.d.ts +2 -0
- package/functions/revive.lua +15 -0
- package/functions/rng.d.ts +1 -0
- package/functions/rng.lua +19 -0
- package/functions/roomData.lua +68 -0
- package/functions/roomGrid.lua +21 -0
- package/functions/roomShape.lua +22 -0
- package/functions/rooms.lua +100 -0
- package/functions/run.lua +5 -0
- package/functions/seeds.lua +4 -0
- package/functions/serialization.lua +6 -2
- package/functions/set.d.ts +1 -0
- package/functions/set.lua +22 -0
- package/functions/spawnCollectible.lua +24 -0
- package/functions/sprite.d.ts +2 -0
- package/functions/sprite.lua +25 -0
- package/functions/stage.lua +16 -0
- package/functions/string.lua +6 -0
- package/functions/table.d.ts +12 -0
- package/functions/table.lua +53 -0
- package/functions/tears.d.ts +1 -0
- package/functions/tears.lua +12 -0
- package/functions/transformations.lua +18 -0
- package/functions/trinketCacheFlag.lua +3 -0
- package/functions/trinketGive.lua +24 -0
- package/functions/trinkets.lua +52 -0
- package/functions/tstlClass.d.ts +34 -0
- package/functions/tstlClass.lua +63 -9
- package/functions/ui.d.ts +2 -0
- package/functions/ui.lua +16 -0
- package/functions/utils.d.ts +16 -0
- package/functions/utils.lua +108 -0
- package/functions/vector.lua +13 -16
- package/index.d.ts +1 -0
- package/initCustomCallbacks.lua +3 -0
- package/interfaces/ChargeBarSprites.d.ts +1 -0
- package/interfaces/private/TSTLClassMetatable.d.ts +2 -0
- package/lualib_bundle.lua +21 -34
- package/maps/cardMap.lua +1 -0
- package/maps/characterMap.lua +1 -0
- package/maps/defaultPlayerStatMap.lua +1 -0
- package/maps/gridEntityXMLMap.lua +2 -0
- package/maps/pillEffectMap.lua +1 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
- package/maps/roomTypeMap.lua +1 -0
- package/objects/LRoomShapeToRectangles.lua +2 -0
- package/objects/colors.lua +4 -0
- package/objects/oppositeDoorSlots.d.ts +4 -0
- package/objects/oppositeDoorSlots.lua +15 -0
- package/objects/roomShapeBounds.lua +2 -0
- package/objects/roomShapeLayoutSizes.lua +4 -0
- package/objects/roomShapeToBottomRightPosition.lua +2 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
- package/objects/roomShapeToTopLeftPosition.lua +2 -0
- package/objects/roomShapeVolumes.lua +3 -0
- package/package.json +2 -2
- package/patchErrorFunctions.lua +8 -0
- package/sets/bossSets.lua +23 -0
- package/sets/charactersWithNoRedHeartsSet.lua +2 -0
- package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
- package/sets/lostStyleCharactersSet.lua +2 -0
- package/types/AnyEntity.d.ts +10 -0
- package/types/PickingUpItem.lua +7 -0
- package/upgradeMod.d.ts +4 -4
- package/upgradeMod.lua +18 -0
package/sets/bossSets.lua
CHANGED
|
@@ -37,6 +37,7 @@ local SatanVariant = ____isaac_2Dtypescript_2Ddefinitions.SatanVariant
|
|
|
37
37
|
local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
|
|
38
38
|
local WarVariant = ____isaac_2Dtypescript_2Ddefinitions.WarVariant
|
|
39
39
|
local WidowVariant = ____isaac_2Dtypescript_2Ddefinitions.WidowVariant
|
|
40
|
+
--- Contains just the bosses in Basement (not e.g. Burning Basement).
|
|
40
41
|
local BASEMENT_BOSSES_SET = __TS__New(
|
|
41
42
|
Set,
|
|
42
43
|
{
|
|
@@ -56,6 +57,7 @@ local BASEMENT_BOSSES_SET = __TS__New(
|
|
|
56
57
|
tostring(EntityType.BABY_PLUM) .. ".0"
|
|
57
58
|
}
|
|
58
59
|
)
|
|
60
|
+
--- Contains just the bosses in Cellar (not e.g. Burning Basement).
|
|
59
61
|
local CELLAR_BOSSES_SET = __TS__New(
|
|
60
62
|
Set,
|
|
61
63
|
{
|
|
@@ -72,6 +74,7 @@ local CELLAR_BOSSES_SET = __TS__New(
|
|
|
72
74
|
tostring(EntityType.BABY_PLUM) .. ".0"
|
|
73
75
|
}
|
|
74
76
|
)
|
|
77
|
+
--- Contains just the bosses in Burning Basement (not e.g. Cellar).
|
|
75
78
|
local BURNING_BASEMENT_BOSSES_SET = __TS__New(
|
|
76
79
|
Set,
|
|
77
80
|
{
|
|
@@ -92,6 +95,7 @@ local BURNING_BASEMENT_BOSSES_SET = __TS__New(
|
|
|
92
95
|
tostring(EntityType.BABY_PLUM) .. ".0"
|
|
93
96
|
}
|
|
94
97
|
)
|
|
98
|
+
--- Contains just the bosses in Downpour (not e.g. Burning Basement).
|
|
95
99
|
local DOWNPOUR_BOSSES_SET = __TS__New(
|
|
96
100
|
Set,
|
|
97
101
|
{
|
|
@@ -101,6 +105,7 @@ local DOWNPOUR_BOSSES_SET = __TS__New(
|
|
|
101
105
|
tostring(EntityType.MIN_MIN) .. ".0"
|
|
102
106
|
}
|
|
103
107
|
)
|
|
108
|
+
--- Contains just the bosses in Dross (not e.g. Burning Basement).
|
|
104
109
|
local DROSS_BOSSES_SET = __TS__New(
|
|
105
110
|
Set,
|
|
106
111
|
{
|
|
@@ -129,6 +134,7 @@ __TS__SparseArrayPush(
|
|
|
129
134
|
____array_0,
|
|
130
135
|
__TS__Spread(DROSS_BOSSES_SET:values())
|
|
131
136
|
)
|
|
137
|
+
--- The set of unique bosses for Basement, Cellar, and so on.
|
|
132
138
|
local ALL_BASEMENT_BOSSES_SET = __TS__New(
|
|
133
139
|
____Set_1,
|
|
134
140
|
{__TS__SparseArraySpread(____array_0)}
|
|
@@ -140,6 +146,7 @@ local BASEMENT_STAGE_TYPE_TO_BOSS_SET_MAP = __TS__New(Map, {
|
|
|
140
146
|
{StageType.REPENTANCE, DOWNPOUR_BOSSES_SET},
|
|
141
147
|
{StageType.REPENTANCE_B, DROSS_BOSSES_SET}
|
|
142
148
|
})
|
|
149
|
+
--- Contains just the bosses in Caves (not e.g. Flooded Caves).
|
|
143
150
|
local CAVES_BOSSES_SET = __TS__New(
|
|
144
151
|
Set,
|
|
145
152
|
{
|
|
@@ -160,6 +167,7 @@ local CAVES_BOSSES_SET = __TS__New(
|
|
|
160
167
|
tostring(EntityType.BUMBINO) .. ".0"
|
|
161
168
|
}
|
|
162
169
|
)
|
|
170
|
+
--- Contains just the bosses in Catacombs (not e.g. Flooded Caves).
|
|
163
171
|
local CATACOMBS_BOSSES_SET = __TS__New(
|
|
164
172
|
Set,
|
|
165
173
|
{
|
|
@@ -181,6 +189,7 @@ local CATACOMBS_BOSSES_SET = __TS__New(
|
|
|
181
189
|
tostring(EntityType.BUMBINO) .. ".0"
|
|
182
190
|
}
|
|
183
191
|
)
|
|
192
|
+
--- Contains just the bosses in Flooded Caves (not e.g. Catacombs).
|
|
184
193
|
local FLOODED_CAVES_BOSSES_SET = __TS__New(
|
|
185
194
|
Set,
|
|
186
195
|
{
|
|
@@ -203,6 +212,7 @@ local FLOODED_CAVES_BOSSES_SET = __TS__New(
|
|
|
203
212
|
tostring(EntityType.BUMBINO) .. ".0"
|
|
204
213
|
}
|
|
205
214
|
)
|
|
215
|
+
--- Contains just the bosses in Mines (not e.g. Flooded Caves).
|
|
206
216
|
local MINES_BOSSES_SET = __TS__New(
|
|
207
217
|
Set,
|
|
208
218
|
{
|
|
@@ -212,6 +222,7 @@ local MINES_BOSSES_SET = __TS__New(
|
|
|
212
222
|
tostring(EntityType.GIDEON) .. ".0"
|
|
213
223
|
}
|
|
214
224
|
)
|
|
225
|
+
--- Contains just the bosses in Ashpit (not e.g. Flooded Caves).
|
|
215
226
|
local ASHPIT_BOSSES_SET = __TS__New(
|
|
216
227
|
Set,
|
|
217
228
|
{
|
|
@@ -240,6 +251,7 @@ __TS__SparseArrayPush(
|
|
|
240
251
|
____array_2,
|
|
241
252
|
__TS__Spread(ASHPIT_BOSSES_SET:values())
|
|
242
253
|
)
|
|
254
|
+
--- The set of unique bosses for Caves, Catacombs, and so on.
|
|
243
255
|
local ALL_CAVES_BOSSES_SET = __TS__New(
|
|
244
256
|
____Set_3,
|
|
245
257
|
{__TS__SparseArraySpread(____array_2)}
|
|
@@ -251,6 +263,7 @@ local CAVES_STAGE_TYPE_TO_BOSS_SET_MAP = __TS__New(Map, {
|
|
|
251
263
|
{StageType.REPENTANCE, MINES_BOSSES_SET},
|
|
252
264
|
{StageType.REPENTANCE_B, ASHPIT_BOSSES_SET}
|
|
253
265
|
})
|
|
266
|
+
--- Contains just the bosses in Depths (not e.g. Dank Depths).
|
|
254
267
|
local DEPTHS_BOSSES_SET = __TS__New(
|
|
255
268
|
Set,
|
|
256
269
|
{
|
|
@@ -268,6 +281,7 @@ local DEPTHS_BOSSES_SET = __TS__New(
|
|
|
268
281
|
tostring(EntityType.REAP_CREEP) .. ".0"
|
|
269
282
|
}
|
|
270
283
|
)
|
|
284
|
+
--- Contains just the bosses in Necropolis (not e.g. Dank Depths).
|
|
271
285
|
local NECROPOLIS_BOSSES_SET = __TS__New(
|
|
272
286
|
Set,
|
|
273
287
|
{
|
|
@@ -284,6 +298,7 @@ local NECROPOLIS_BOSSES_SET = __TS__New(
|
|
|
284
298
|
tostring(EntityType.SISTERS_VIS) .. ".0"
|
|
285
299
|
}
|
|
286
300
|
)
|
|
301
|
+
--- Contains just the bosses in Dank Depths (not e.g. Necropolis).
|
|
287
302
|
local DANK_DEPTHS_BOSSES_SET = __TS__New(
|
|
288
303
|
Set,
|
|
289
304
|
{
|
|
@@ -301,6 +316,7 @@ local DANK_DEPTHS_BOSSES_SET = __TS__New(
|
|
|
301
316
|
tostring(EntityType.REAP_CREEP) .. ".0"
|
|
302
317
|
}
|
|
303
318
|
)
|
|
319
|
+
--- Contains just the bosses in Mausoleum (not e.g. Dank Depths).
|
|
304
320
|
local MAUSOLEUM_BOSSES_SET = __TS__New(
|
|
305
321
|
Set,
|
|
306
322
|
{
|
|
@@ -309,6 +325,7 @@ local MAUSOLEUM_BOSSES_SET = __TS__New(
|
|
|
309
325
|
tostring(EntityType.HERETIC) .. ".0"
|
|
310
326
|
}
|
|
311
327
|
)
|
|
328
|
+
--- Contains just the bosses in Gehenna (not e.g. Dank Depths).
|
|
312
329
|
local GEHENNA_BOSSES_SET = __TS__New(
|
|
313
330
|
Set,
|
|
314
331
|
{
|
|
@@ -335,6 +352,7 @@ __TS__SparseArrayPush(
|
|
|
335
352
|
____array_4,
|
|
336
353
|
__TS__Spread(GEHENNA_BOSSES_SET:values())
|
|
337
354
|
)
|
|
355
|
+
--- The set of unique bosses for Depths, Necropolis, and so on.
|
|
338
356
|
local ALL_DEPTHS_BOSSES_SET = __TS__New(
|
|
339
357
|
____Set_5,
|
|
340
358
|
{__TS__SparseArraySpread(____array_4)}
|
|
@@ -346,6 +364,7 @@ local DEPTHS_STAGE_TYPE_TO_BOSS_SET_MAP = __TS__New(Map, {
|
|
|
346
364
|
{StageType.REPENTANCE, MAUSOLEUM_BOSSES_SET},
|
|
347
365
|
{StageType.REPENTANCE_B, GEHENNA_BOSSES_SET}
|
|
348
366
|
})
|
|
367
|
+
--- Contains just the bosses in Womb (not e.g. Scarred Womb).
|
|
349
368
|
local WOMB_BOSSES_SET = __TS__New(
|
|
350
369
|
Set,
|
|
351
370
|
{
|
|
@@ -363,6 +382,7 @@ local WOMB_BOSSES_SET = __TS__New(
|
|
|
363
382
|
tostring(EntityType.MATRIARCH) .. ".0"
|
|
364
383
|
}
|
|
365
384
|
)
|
|
385
|
+
--- Contains just the bosses in Utero (not e.g. Scarred Womb).
|
|
366
386
|
local UTERO_BOSSES_SET = __TS__New(
|
|
367
387
|
Set,
|
|
368
388
|
{
|
|
@@ -379,6 +399,7 @@ local UTERO_BOSSES_SET = __TS__New(
|
|
|
379
399
|
tostring(EntityType.HEADLESS_HORSEMAN) .. ".0"
|
|
380
400
|
}
|
|
381
401
|
)
|
|
402
|
+
--- Contains just the bosses in Scarred Womb (not e.g. Utero).
|
|
382
403
|
local SCARRED_WOMB_BOSSES_SET = __TS__New(
|
|
383
404
|
Set,
|
|
384
405
|
{
|
|
@@ -397,6 +418,7 @@ local SCARRED_WOMB_BOSSES_SET = __TS__New(
|
|
|
397
418
|
tostring(EntityType.MATRIARCH) .. ".0"
|
|
398
419
|
}
|
|
399
420
|
)
|
|
421
|
+
--- Contains just the bosses in Corpse (not e.g. Scarred Womb).
|
|
400
422
|
local CORPSE_BOSSES_SET = __TS__New(
|
|
401
423
|
Set,
|
|
402
424
|
{
|
|
@@ -424,6 +446,7 @@ __TS__SparseArrayPush(
|
|
|
424
446
|
____array_6,
|
|
425
447
|
__TS__Spread(GEHENNA_BOSSES_SET:values())
|
|
426
448
|
)
|
|
449
|
+
--- The set of unique bosses for Depths, Necropolis, and so on.
|
|
427
450
|
local ALL_WOMB_BOSSES_SET = __TS__New(
|
|
428
451
|
____Set_7,
|
|
429
452
|
{__TS__SparseArraySpread(____array_6)}
|
|
@@ -4,6 +4,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
7
|
+
--- The set of characters where red heart containers will be turned into soul hearts (e.g. Blue
|
|
8
|
+
-- Baby). This includes The Lost and Tainted Lost. This does not include Keeper or Tainted Keeper.
|
|
7
9
|
____exports.CHARACTERS_WITH_NO_RED_HEARTS_SET = __TS__New(Set, {
|
|
8
10
|
PlayerType.BLUE_BABY,
|
|
9
11
|
PlayerType.THE_LOST,
|
|
@@ -4,6 +4,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
7
|
+
--- The set of characters where soul hearts will be automatically stripped away (e.g. Bethany). This
|
|
8
|
+
-- includes The Lost and Tainted Lost.
|
|
7
9
|
____exports.CHARACTERS_WITH_NO_SOUL_HEARTS_SET = __TS__New(Set, {
|
|
8
10
|
PlayerType.THE_LOST,
|
|
9
11
|
PlayerType.KEEPER,
|
|
@@ -4,6 +4,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
7
|
+
--- This is the set of characters that look like The Lost and play the "LostDeath" animation when
|
|
8
|
+
-- they die.
|
|
7
9
|
____exports.LOST_STYLE_CHARACTERS_SET = __TS__New(Set, {
|
|
8
10
|
PlayerType.THE_LOST,
|
|
9
11
|
PlayerType.THE_SOUL,
|
package/types/AnyEntity.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
3
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
4
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
5
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
6
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
7
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
8
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
9
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
10
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
11
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
2
12
|
export declare type AnyEntity = Entity | EntityBomb | EntityEffect | EntityFamiliar | EntityKnife | EntityLaser | EntityNPC | EntityPickup | EntityPlayer | EntityProjectile | EntityTear;
|
package/types/PickingUpItem.lua
CHANGED
|
@@ -7,20 +7,27 @@ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
|
7
7
|
local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
|
|
8
8
|
local DEFAULT_ITEM_TYPE = ItemType.NULL
|
|
9
9
|
local DEFAULT_SUB_TYPE = CollectibleType.NULL
|
|
10
|
+
---
|
|
11
|
+
-- @internal
|
|
10
12
|
function ____exports.newPickingUpItem(self)
|
|
11
13
|
return {itemType = DEFAULT_ITEM_TYPE, subType = DEFAULT_SUB_TYPE}
|
|
12
14
|
end
|
|
15
|
+
---
|
|
16
|
+
-- @internal
|
|
13
17
|
function ____exports.resetPickingUpItem(self, pickingUpItem)
|
|
14
18
|
pickingUpItem.itemType = DEFAULT_ITEM_TYPE
|
|
15
19
|
pickingUpItem.subType = DEFAULT_SUB_TYPE
|
|
16
20
|
end
|
|
17
21
|
local COLLECTIBLE_ITEM_TYPES = __TS__New(Set, {ItemType.PASSIVE, ItemType.ACTIVE, ItemType.FAMILIAR})
|
|
22
|
+
--- Helper function to narrow the type of `PickingUpItem`.
|
|
18
23
|
function ____exports.pickingUpItemIsNull(self, pickingUpItem)
|
|
19
24
|
return pickingUpItem.itemType == ItemType.NULL
|
|
20
25
|
end
|
|
26
|
+
--- Helper function to narrow the type of `PickingUpItem`.
|
|
21
27
|
function ____exports.pickingUpItemIsCollectible(self, pickingUpItem)
|
|
22
28
|
return COLLECTIBLE_ITEM_TYPES:has(pickingUpItem.itemType)
|
|
23
29
|
end
|
|
30
|
+
--- Helper function to narrow the type of `PickingUpItem`.
|
|
24
31
|
function ____exports.pickingUpItemIsTrinket(self, pickingUpItem)
|
|
25
32
|
return pickingUpItem.itemType == ItemType.TRINKET
|
|
26
33
|
end
|
package/upgradeMod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { ModUpgraded } from "./classes/ModUpgraded";
|
|
3
3
|
/**
|
|
4
|
-
* Use this function to enable the custom callbacks and other optional
|
|
5
|
-
* `isaacscript-common`.
|
|
4
|
+
* Use this function to enable the {@link ModCallbackCustom custom callbacks} and other optional
|
|
5
|
+
* features provided by `isaacscript-common`.
|
|
6
6
|
*
|
|
7
7
|
* For example:
|
|
8
8
|
*
|
|
@@ -10,10 +10,10 @@ import { ModUpgraded } from "./classes/ModUpgraded";
|
|
|
10
10
|
* const modVanilla = RegisterMod("My Mod", 1);
|
|
11
11
|
* const mod = upgradeMod(modVanilla);
|
|
12
12
|
*
|
|
13
|
-
* // Subscribe to vanilla callbacks
|
|
13
|
+
* // Subscribe to vanilla callbacks.
|
|
14
14
|
* mod.AddCallback(ModCallback.POST_UPDATE, postUpdate);
|
|
15
15
|
*
|
|
16
|
-
* // Subscribe to custom callbacks
|
|
16
|
+
* // Subscribe to custom callbacks.
|
|
17
17
|
* mod.AddCallbackCustom(ModCallbackCustom.POST_ITEM_PICKUP, postItemPickup);
|
|
18
18
|
* ```
|
|
19
19
|
*
|
package/upgradeMod.lua
CHANGED
|
@@ -17,6 +17,24 @@ local initFeaturesMajor = ____initFeatures.initFeaturesMajor
|
|
|
17
17
|
local initFeaturesMinor = ____initFeatures.initFeaturesMinor
|
|
18
18
|
local ____patchErrorFunctions = require("patchErrorFunctions")
|
|
19
19
|
local patchErrorFunction = ____patchErrorFunctions.patchErrorFunction
|
|
20
|
+
--- Use this function to enable the {@link ModCallbackCustomcustom callbacks} and other optional
|
|
21
|
+
-- features provided by `isaacscript-common`.
|
|
22
|
+
--
|
|
23
|
+
-- For example:
|
|
24
|
+
--
|
|
25
|
+
-- ```ts
|
|
26
|
+
-- const modVanilla = RegisterMod("My Mod", 1);
|
|
27
|
+
-- const mod = upgradeMod(modVanilla);
|
|
28
|
+
--
|
|
29
|
+
-- // Subscribe to vanilla callbacks.
|
|
30
|
+
-- mod.AddCallback(ModCallback.POST_UPDATE, postUpdate);
|
|
31
|
+
--
|
|
32
|
+
-- // Subscribe to custom callbacks.
|
|
33
|
+
-- mod.AddCallbackCustom(ModCallbackCustom.POST_ITEM_PICKUP, postItemPickup);
|
|
34
|
+
-- ```
|
|
35
|
+
--
|
|
36
|
+
-- @param modVanilla The mod object returned by the `RegisterMod` function.
|
|
37
|
+
-- @returns The upgraded mod object.
|
|
20
38
|
function ____exports.upgradeMod(self, modVanilla)
|
|
21
39
|
patchErrorFunction(nil)
|
|
22
40
|
local mod = __TS__New(ModUpgraded, modVanilla)
|