isaacscript-common 1.2.292 → 2.0.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/README.md +2 -2
- package/dist/cachedClasses.d.ts +1 -1
- package/dist/cachedClasses.lua +0 -1
- package/dist/callbacks/customRevive.lua +13 -8
- package/dist/callbacks/itemPickup.lua +3 -1
- package/dist/callbacks/postBombInitLate.lua +3 -1
- package/dist/callbacks/postBoneSwing.lua +5 -2
- package/dist/callbacks/postCollectibleInitFirst.lua +4 -1
- package/dist/callbacks/postCursedTeleport.lua +16 -8
- package/dist/callbacks/postCustomDoorEnter.d.ts +1 -1
- package/dist/callbacks/postCustomDoorEnter.lua +16 -10
- package/dist/callbacks/postEffectInitLate.lua +3 -1
- package/dist/callbacks/postEffectStateChanged.lua +3 -1
- package/dist/callbacks/postEsauJr.lua +5 -2
- package/dist/callbacks/postFamiliarInitLate.lua +3 -1
- package/dist/callbacks/postFamiliarStateChanged.lua +3 -1
- package/dist/callbacks/postFlip.lua +9 -5
- package/dist/callbacks/postGreedModeWave.d.ts +1 -0
- package/dist/callbacks/postGreedModeWave.lua +32 -0
- package/dist/callbacks/postGreedWave.d.ts +1 -0
- package/dist/callbacks/postGreedWave.lua +31 -0
- package/dist/callbacks/postGridEntity.lua +4 -2
- package/dist/callbacks/postGridEntityCollision.lua +5 -2
- package/dist/callbacks/postHolyMantleRemoved.lua +3 -1
- package/dist/callbacks/postItemDischarged.lua +10 -5
- package/dist/callbacks/postKnifeInitLate.lua +3 -1
- package/dist/callbacks/postLaserInitLate.lua +3 -1
- package/dist/callbacks/postNPCInitLate.lua +3 -1
- package/dist/callbacks/postNPCStateChanged.lua +3 -1
- package/dist/callbacks/postNewRoomEarly.lua +7 -5
- package/dist/callbacks/postPickupCollect.lua +3 -1
- package/dist/callbacks/postPickupInitLate.lua +3 -1
- package/dist/callbacks/postPickupStateChanged.lua +3 -1
- package/dist/callbacks/postPlayerChangeHealth.lua +2 -2
- package/dist/callbacks/postPlayerFatalDamage.lua +4 -1
- package/dist/callbacks/postPlayerInitLate.lua +3 -1
- package/dist/callbacks/postPlayerReordered.lua +7 -6
- package/dist/callbacks/postProjectileInitLate.lua +3 -1
- package/dist/callbacks/postRoomClearChanged.lua +4 -3
- package/dist/callbacks/postSacrifice.lua +8 -4
- package/dist/callbacks/postSlotInitUpdate.lua +4 -2
- package/dist/callbacks/postSlotRender.lua +3 -1
- package/dist/callbacks/postTearInitLate.lua +3 -1
- package/dist/callbacks/postTearInitVeryLate.lua +3 -1
- package/dist/callbacks/postTransformation.lua +7 -12
- package/dist/callbacks/postTrinketBreak.lua +8 -3
- package/dist/callbacks/preBerserkDeath.lua +3 -2
- package/dist/callbacks/preNewLevel.lua +5 -3
- package/dist/callbacks/reorderedCallbacks.lua +7 -5
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts +3 -1
- package/dist/callbacks/subscriptions/postBoneSwing.lua +3 -3
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +5 -2
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +3 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +3 -3
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +5 -2
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +3 -3
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +4 -1
- package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postEffectStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -1
- package/dist/callbacks/subscriptions/postEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postFlip.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +4 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.lua +16 -0
- package/dist/callbacks/subscriptions/postGreedWave.d.ts +2 -0
- package/dist/callbacks/subscriptions/postGreedWave.lua +16 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +6 -2
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +16 -4
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postItemDischarged.lua +3 -3
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +6 -2
- package/dist/callbacks/subscriptions/postItemPickup.lua +3 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +6 -2
- package/dist/callbacks/subscriptions/postNPCStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +3 -3
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +6 -2
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +8 -4
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +4 -2
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPurchase.d.ts +6 -2
- package/dist/callbacks/subscriptions/postPurchase.lua +3 -3
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +3 -1
- package/dist/callbacks/subscriptions/postRoomClearChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -1
- package/dist/callbacks/subscriptions/postSacrifice.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +3 -3
- package/dist/callbacks/subscriptions/postTransformation.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +3 -3
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +5 -2
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +3 -3
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -1
- package/dist/callbacks/subscriptions/preCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +6 -2
- package/dist/callbacks/subscriptions/preItemPickup.lua +3 -3
- package/dist/callbacks/subscriptions/preNewLevel.d.ts +3 -1
- package/dist/callbacks/subscriptions/preNewLevel.lua +3 -3
- package/dist/classes/ModUpgraded.d.ts +5 -5
- package/dist/constants.d.ts +9 -43
- package/dist/constants.lua +16 -13
- package/dist/constantsMax.d.ts +16 -0
- package/dist/constantsMax.lua +27 -0
- package/dist/enums/CardType.lua +1 -1
- package/dist/enums/CollectiblePedestalType.lua +1 -1
- package/dist/enums/HealthType.d.ts +3 -3
- package/dist/enums/HealthType.lua +1 -2
- package/dist/enums/ModCallbacksCustom.d.ts +56 -48
- package/dist/enums/ModCallbacksCustom.lua +47 -46
- package/dist/enums/PillEffectClass.lua +1 -1
- package/dist/enums/PillEffectType.lua +1 -1
- package/dist/enums/PocketItemType.lua +1 -2
- package/dist/enums/SerializationType.lua +1 -2
- package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +1 -1
- package/dist/enums/private/CopyableIsaacAPIClassType.lua +2 -3
- package/dist/enums/private/SaveDataKeys.d.ts +4 -4
- package/dist/enums/private/SaveDataKeys.lua +5 -6
- package/dist/enums/private/SerializationBrand.d.ts +3 -4
- package/dist/enums/private/SerializationBrand.lua +2 -15
- package/dist/features/characterHealthConversion.d.ts +2 -2
- package/dist/features/characterHealthConversion.lua +8 -4
- package/dist/features/characterStats.d.ts +4 -4
- package/dist/features/characterStats.lua +3 -1
- package/dist/features/debugDisplay.lua +12 -11
- package/dist/features/deployJSONRoom.d.ts +3 -3
- package/dist/features/deployJSONRoom.lua +35 -21
- package/dist/features/disableInputs.d.ts +1 -1
- package/dist/features/disableInputs.lua +6 -3
- package/dist/features/disableSound.lua +3 -1
- package/dist/features/extraConsoleCommands/commands.d.ts +5 -3
- package/dist/features/extraConsoleCommands/commands.lua +96 -56
- package/dist/features/extraConsoleCommands/commandsDisplay.lua +0 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +1 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.lua +13 -10
- package/dist/features/extraConsoleCommands/init.lua +17 -9
- package/dist/features/extraConsoleCommands/v.lua +0 -1
- package/dist/features/fadeInRemover.lua +3 -2
- package/dist/features/fastReset.lua +7 -5
- package/dist/features/forgottenSwitch.lua +6 -3
- package/dist/features/getCollectibleItemPoolType.d.ts +1 -1
- package/dist/features/getCollectibleItemPoolType.lua +6 -2
- package/dist/features/isPonyActive.lua +5 -2
- package/dist/features/playerInventory.d.ts +1 -1
- package/dist/features/playerInventory.lua +7 -3
- package/dist/features/preventCollectibleRotate.d.ts +1 -1
- package/dist/features/preventCollectibleRotate.lua +9 -4
- package/dist/features/runInNFrames.lua +4 -2
- package/dist/features/saveDataManager/constants.lua +0 -1
- package/dist/features/saveDataManager/exports.d.ts +9 -8
- package/dist/features/saveDataManager/main.lua +11 -9
- package/dist/features/saveDataManager/maps.d.ts +5 -0
- package/dist/features/saveDataManager/merge.d.ts +1 -1
- package/dist/features/saveDataManager/merge.lua +2 -1
- package/dist/features/saveDataManager/serializationBrand.d.ts +1 -0
- package/dist/features/saveDataManager/serializationBrand.lua +17 -0
- package/dist/features/sirenHelpers.d.ts +1 -1
- package/dist/features/sirenHelpers.lua +5 -2
- package/dist/features/taintedLazarusPlayers.lua +6 -3
- package/dist/featuresInitialized.lua +0 -1
- package/dist/functions/array.d.ts +18 -2
- package/dist/functions/array.lua +29 -3
- package/dist/functions/bitwise.lua +0 -1
- package/dist/functions/boss.d.ts +1 -1
- package/dist/functions/boss.lua +12 -9
- package/dist/functions/cacheFlag.d.ts +2 -2
- package/dist/functions/cacheFlag.lua +0 -1
- package/dist/functions/cards.d.ts +9 -17
- package/dist/functions/cards.lua +22 -23
- package/dist/functions/challenges.d.ts +1 -1
- package/dist/functions/challenges.lua +0 -1
- package/dist/functions/character.d.ts +6 -4
- package/dist/functions/character.lua +16 -7
- package/dist/functions/charge.d.ts +1 -1
- package/dist/functions/charge.lua +14 -9
- package/dist/functions/chargeBar.lua +0 -1
- package/dist/functions/collectibleCacheFlag.d.ts +4 -4
- package/dist/functions/collectibleCacheFlag.lua +8 -5
- package/dist/functions/collectibleSet.d.ts +1 -1
- package/dist/functions/collectibleSet.lua +4 -5
- package/dist/functions/collectibleTag.d.ts +1 -2
- package/dist/functions/collectibleTag.lua +12 -10
- package/dist/functions/collectibles.d.ts +21 -28
- package/dist/functions/collectibles.lua +29 -26
- package/dist/functions/color.lua +9 -1
- package/dist/functions/debug.d.ts +12 -0
- package/dist/functions/debug.lua +3 -1
- package/dist/functions/deepCopy.d.ts +1 -1
- package/dist/functions/deepCopy.lua +4 -2
- package/dist/functions/direction.d.ts +4 -0
- package/dist/functions/direction.lua +17 -0
- package/dist/functions/doors.d.ts +12 -16
- package/dist/functions/doors.lua +34 -26
- package/dist/functions/easing.lua +0 -1
- package/dist/functions/entity.d.ts +4 -5
- package/dist/functions/entity.lua +4 -12
- package/dist/functions/entitySpecific.d.ts +35 -33
- package/dist/functions/entitySpecific.lua +20 -19
- package/dist/functions/enums.d.ts +70 -0
- package/dist/functions/enums.lua +71 -0
- package/dist/functions/familiars.d.ts +2 -2
- package/dist/functions/familiars.lua +0 -1
- package/dist/functions/flag.d.ts +42 -10
- package/dist/functions/flag.lua +31 -13
- package/dist/functions/flying.d.ts +2 -2
- package/dist/functions/flying.lua +20 -14
- package/dist/functions/globals.lua +5 -2
- package/dist/functions/gridEntity.d.ts +18 -16
- package/dist/functions/gridEntity.lua +39 -26
- package/dist/functions/input.d.ts +14 -4
- package/dist/functions/input.lua +38 -80
- package/dist/functions/jsonHelpers.d.ts +9 -7
- package/dist/functions/jsonHelpers.lua +0 -1
- package/dist/functions/kColor.lua +14 -3
- package/dist/functions/language.lua +9 -8
- package/dist/functions/log.d.ts +21 -15
- package/dist/functions/log.lua +61 -36
- package/dist/functions/math.d.ts +19 -8
- package/dist/functions/math.lua +33 -22
- package/dist/functions/mergeTests.lua +0 -1
- package/dist/functions/npc.d.ts +1 -1
- package/dist/functions/npc.lua +32 -16
- package/dist/functions/pickups.d.ts +10 -26
- package/dist/functions/pickups.lua +31 -29
- package/dist/functions/pills.d.ts +14 -13
- package/dist/functions/pills.lua +9 -3
- package/dist/functions/player.d.ts +11 -11
- package/dist/functions/player.lua +79 -66
- package/dist/functions/playerHealth.lua +19 -16
- package/dist/functions/playerIndex.d.ts +3 -3
- package/dist/functions/playerIndex.lua +9 -6
- package/dist/functions/pocketItems.d.ts +1 -1
- package/dist/functions/pocketItems.lua +21 -12
- package/dist/functions/positionVelocity.lua +4 -1
- package/dist/functions/random.d.ts +2 -3
- package/dist/functions/random.lua +0 -1
- package/dist/functions/revive.lua +18 -13
- package/dist/functions/roomData.d.ts +2 -2
- package/dist/functions/roomData.lua +11 -13
- package/dist/functions/roomGrid.d.ts +2 -2
- package/dist/functions/roomGrid.lua +0 -1
- package/dist/functions/roomShape.d.ts +2 -2
- package/dist/functions/rooms.d.ts +19 -14
- package/dist/functions/rooms.lua +42 -22
- package/dist/functions/run.d.ts +1 -1
- package/dist/functions/run.lua +3 -2
- package/dist/functions/seeds.d.ts +7 -0
- package/dist/functions/seeds.lua +7 -1
- package/dist/functions/sound.lua +4 -3
- package/dist/functions/spawnCollectible.d.ts +5 -5
- package/dist/functions/spawnCollectible.lua +7 -4
- package/dist/functions/sprite.d.ts +1 -1
- package/dist/functions/sprite.lua +3 -4
- package/dist/functions/stage.d.ts +4 -4
- package/dist/functions/stage.lua +3 -2
- package/dist/functions/string.d.ts +8 -1
- package/dist/functions/string.lua +10 -2
- package/dist/functions/tears.d.ts +4 -4
- package/dist/functions/tears.lua +0 -1
- package/dist/functions/transformations.d.ts +5 -3
- package/dist/functions/transformations.lua +31 -20
- package/dist/functions/trinketCacheFlag.d.ts +1 -1
- package/dist/functions/trinketCacheFlag.lua +8 -6
- package/dist/functions/trinketGive.d.ts +14 -3
- package/dist/functions/trinketGive.lua +46 -28
- package/dist/functions/trinketSet.d.ts +1 -1
- package/dist/functions/trinketSet.lua +4 -5
- package/dist/functions/trinkets.d.ts +8 -17
- package/dist/functions/trinkets.lua +17 -34
- package/dist/functions/ui.lua +7 -5
- package/dist/functions/utils.d.ts +1 -61
- package/dist/functions/utils.lua +3 -50
- package/dist/functions/vector.d.ts +1 -2
- package/dist/functions/vector.lua +8 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.lua +17 -34
- package/dist/initCustomCallbacks.lua +3 -1
- package/dist/initFeatures.lua +0 -1
- package/dist/lualib_bundle.lua +14 -1
- package/dist/maps/cardMap.d.ts +1 -1
- package/dist/maps/characterMap.d.ts +1 -1
- package/dist/maps/collectibleDescriptionMap.d.ts +1 -1
- package/dist/maps/collectibleNameMap.d.ts +1 -1
- package/dist/maps/defaultPlayerStatMap.d.ts +1 -1
- package/dist/maps/defaultPlayerStatMap.lua +8 -6
- package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
- package/dist/maps/gridEntityTypeToBrokenStateMap.lua +19 -12
- package/dist/maps/gridEntityXMLMap.d.ts +1 -1
- package/dist/maps/gridEntityXMLMap.lua +44 -34
- package/dist/maps/pillEffectMap.d.ts +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +7 -5
- package/dist/maps/roomTypeMap.d.ts +1 -1
- package/dist/maps/roomTypeMap.lua +37 -35
- package/dist/maps/trinketDescriptionMap.d.ts +1 -1
- package/dist/maps/trinketNameMap.d.ts +1 -1
- package/dist/objects/LRoomShapeToRectangles.d.ts +1 -1
- package/dist/objects/LRoomShapeToRectangles.lua +6 -5
- package/dist/objects/callbackRegisterFunctions.d.ts +2 -2
- package/dist/objects/callbackRegisterFunctions.lua +3 -1
- package/dist/objects/cardDescriptions.d.ts +1 -1
- package/dist/objects/cardDescriptions.lua +89 -90
- package/dist/objects/cardNames.d.ts +1 -1
- package/dist/objects/cardNames.lua +89 -90
- package/dist/objects/cardTypes.d.ts +3 -4
- package/dist/objects/cardTypes.lua +102 -104
- package/dist/objects/challengeNames.d.ts +1 -1
- package/dist/objects/challengeNames.lua +48 -48
- package/dist/objects/characterNames.d.ts +1 -1
- package/dist/objects/characterNames.lua +44 -44
- package/dist/objects/coinSubTypeToValue.d.ts +1 -1
- package/dist/objects/coinSubTypeToValue.lua +10 -8
- package/dist/objects/colors.lua +0 -1
- package/dist/objects/directionNames.d.ts +1 -1
- package/dist/objects/directionNames.lua +2 -1
- package/dist/objects/directionToDegrees.d.ts +1 -1
- package/dist/objects/directionToDegrees.lua +2 -1
- package/dist/objects/directionToVector.d.ts +1 -1
- package/dist/objects/directionToVector.lua +2 -1
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts +5 -0
- package/dist/objects/doorSlotFlagToDoorSlot.lua +16 -0
- package/dist/objects/doorSlotToDirection.d.ts +1 -1
- package/dist/objects/doorSlotToDirection.lua +11 -10
- package/dist/objects/isaacAPIClassTypeToBrand.lua +1 -2
- package/dist/objects/isaacAPIClassTypeToCopyFunction.lua +1 -2
- package/dist/objects/pillEffectClasses.d.ts +3 -4
- package/dist/objects/pillEffectClasses.lua +55 -57
- package/dist/objects/pillEffectNames.d.ts +1 -1
- package/dist/objects/pillEffectNames.lua +52 -53
- package/dist/objects/pillEffectTypes.d.ts +3 -4
- package/dist/objects/pillEffectTypes.lua +54 -56
- package/dist/objects/roomShapeBounds.d.ts +1 -1
- package/dist/objects/roomShapeBounds.lua +14 -16
- package/dist/objects/roomShapeLayoutSizes.d.ts +1 -1
- package/dist/objects/roomShapeLayoutSizes.lua +14 -14
- package/dist/objects/roomShapeToBottomRightPosition.d.ts +1 -1
- package/dist/objects/roomShapeToBottomRightPosition.lua +14 -16
- package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
- package/dist/objects/roomShapeToDoorSlots.lua +35 -33
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +2 -2
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +68 -66
- package/dist/objects/roomShapeToGridWidth.d.ts +1 -1
- package/dist/objects/roomShapeToGridWidth.lua +14 -14
- package/dist/objects/roomShapeToTopLeftPosition.d.ts +1 -1
- package/dist/objects/roomShapeToTopLeftPosition.lua +14 -14
- package/dist/objects/roomShapeVolumes.d.ts +1 -1
- package/dist/objects/roomShapeVolumes.lua +14 -14
- package/dist/objects/roomTypeNames.d.ts +1 -1
- package/dist/objects/roomTypeNames.lua +32 -32
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +1 -2
- package/dist/objects/stageTypeToLetter.d.ts +1 -1
- package/dist/objects/stageTypeToLetter.lua +8 -7
- package/dist/objects/transformationNames.d.ts +1 -1
- package/dist/objects/transformationNames.lua +16 -17
- package/dist/patchErrorFunctions.lua +1 -2
- package/dist/sets/LRoomShapesSet.d.ts +1 -1
- package/dist/sets/LRoomShapesSet.lua +3 -1
- package/dist/sets/bossSets.lua +241 -211
- package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +1 -1
- package/dist/sets/charactersThatStartWithAnActiveItemSet.lua +13 -11
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +1 -1
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -1
- package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +1 -1
- package/dist/sets/charactersWithFreeDevilDealsSet.lua +3 -1
- package/dist/sets/charactersWithNoRedHeartsSet.d.ts +1 -1
- package/dist/sets/charactersWithNoRedHeartsSet.lua +10 -8
- package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +1 -1
- package/dist/sets/charactersWithNoSoulHeartsSet.lua +7 -5
- package/dist/sets/chestPickupVariantsSet.d.ts +1 -1
- package/dist/sets/chestPickupVariantsSet.lua +14 -12
- package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +1 -1
- package/dist/sets/familiarsThatShootPlayerTearsSet.lua +2 -0
- package/dist/sets/lostStyleCharactersSet.d.ts +1 -1
- package/dist/sets/lostStyleCharactersSet.lua +7 -5
- package/dist/sets/redHeartSubTypesSet.d.ts +1 -1
- package/dist/sets/redHeartSubTypesSet.lua +3 -1
- package/dist/sets/sinEntityTypesSet.d.ts +1 -1
- package/dist/sets/sinEntityTypesSet.lua +9 -7
- package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +1 -1
- package/dist/sets/singleUseActiveCollectibleTypesSet.lua +10 -8
- package/dist/sets/storyBossesSet.d.ts +1 -1
- package/dist/sets/storyBossesSet.lua +15 -13
- package/dist/types/AddCallbackParameterCustom.d.ts +123 -0
- package/dist/types/AddCallbackParameterCustom.lua +4 -0
- package/dist/types/AddCallbackParametersCustom.d.ts +120 -277
- package/dist/types/AnyEntity.lua +0 -1
- package/dist/types/CollectibleIndex.lua +0 -1
- package/dist/types/EntityTypeNonNPC.lua +0 -1
- package/dist/types/JSONDoor.lua +0 -1
- package/dist/types/JSONEntity.lua +0 -1
- package/dist/types/JSONRoom.lua +0 -1
- package/dist/types/JSONRooms.lua +0 -1
- package/dist/types/JSONSpawn.lua +0 -1
- package/dist/types/PickingUpItem.d.ts +1 -1
- package/dist/types/PickingUpItem.lua +5 -3
- package/dist/types/PlayerHealth.d.ts +1 -1
- package/dist/types/PlayerHealth.lua +0 -1
- package/dist/types/PlayerIndex.lua +0 -1
- package/dist/types/PocketItemDescription.d.ts +1 -1
- package/dist/types/PocketItemDescription.lua +0 -1
- package/dist/types/Primitive.lua +0 -1
- package/dist/types/TrinketSituation.d.ts +1 -1
- package/dist/types/TrinketSituation.lua +0 -1
- package/dist/types/private/IsaacAPIClass.lua +0 -1
- package/dist/types/private/SaveData.lua +0 -1
- package/dist/types/private/SerializedIsaacAPIClass.lua +0 -1
- package/dist/types/private/TSTLClass.lua +0 -1
- package/dist/types/private/TSTLClassMetatable.lua +0 -1
- package/dist/upgradeMod.d.ts +1 -1
- package/package.json +9 -6
|
@@ -35,40 +35,6 @@
|
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
export declare const ensureAllCases: (obj: never) => never;
|
|
38
|
-
export declare function getDirectionName(direction: Direction): string | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* TypeScriptToLua will transpile TypeScript enums to Lua tables that have a double mapping. Thus,
|
|
41
|
-
* when you iterate over them, you will get both the names of the enums and the values of the enums,
|
|
42
|
-
* in a random order. If all you need are the keys of an enum, use this helper function.
|
|
43
|
-
*
|
|
44
|
-
* This function will return the enum keys in a sorted order, which may not necessarily be the same
|
|
45
|
-
* order as which they were declared in.
|
|
46
|
-
*
|
|
47
|
-
* This function will work properly for both number enums and string enums. (Reverse mappings are
|
|
48
|
-
* not created for string enums.)
|
|
49
|
-
*
|
|
50
|
-
* For a more in depth explanation, see:
|
|
51
|
-
* https://isaacscript.github.io/docs/gotchas#iterating-over-enums
|
|
52
|
-
*/
|
|
53
|
-
export declare function getEnumKeys<T>(transpiledEnum: T): string[];
|
|
54
|
-
/**
|
|
55
|
-
* TypeScriptToLua will transpile TypeScript enums to Lua tables that have a double mapping. Thus,
|
|
56
|
-
* when you iterate over them, you will get both the names of the enums and the values of the enums,
|
|
57
|
-
* in a random order. If all you need are the values of an enum, use this helper function.
|
|
58
|
-
*
|
|
59
|
-
* This function will return the enum values in a sorted order, which may not necessarily be the
|
|
60
|
-
* same order as which they were declared in.
|
|
61
|
-
*
|
|
62
|
-
* This function will work properly for both number enums and string enums. (Reverse mappings are
|
|
63
|
-
* not created for string enums.)
|
|
64
|
-
*
|
|
65
|
-
* For a more in depth explanation, see:
|
|
66
|
-
* https://isaacscript.github.io/docs/gotchas#iterating-over-enums
|
|
67
|
-
*
|
|
68
|
-
* You can also use this function for vanilla enums, which can make code easier to read than using
|
|
69
|
-
* `pairs` or `Object.values`.
|
|
70
|
-
*/
|
|
71
|
-
export declare function getEnumValues<T>(transpiledEnum: T): Array<T[keyof T]>;
|
|
72
38
|
/**
|
|
73
39
|
* Helper function to log what is happening in functions that recursively move through nested data
|
|
74
40
|
* structures.
|
|
@@ -80,18 +46,6 @@ export declare function getTraversalDescription(key: unknown, traversalDescripti
|
|
|
80
46
|
* @param hexString A hex string like "#ffffff" or "ffffff". (The "#" character is optional.)
|
|
81
47
|
*/
|
|
82
48
|
export declare function hexToKColor(hexString: string, alpha: float): KColor;
|
|
83
|
-
/**
|
|
84
|
-
* Players can boot the game with an launch option called "--luadebug", which will enable additional
|
|
85
|
-
* functionality that is considered to be unsafe. For more information about this flag, see the
|
|
86
|
-
* wiki: https://bindingofisaacrebirth.fandom.com/wiki/Launch_Options
|
|
87
|
-
*
|
|
88
|
-
* When this flag is enabled, the global environment will be slightly different. The differences are
|
|
89
|
-
* documented here: https://wofsauge.github.io/IsaacDocs/rep/Globals.html
|
|
90
|
-
*
|
|
91
|
-
* This function uses the `package` global variable as a proxy to determine if the "--luadebug" flag
|
|
92
|
-
* is enabled or not.
|
|
93
|
-
*/
|
|
94
|
-
export declare function isLuaDebugEnabled(): boolean;
|
|
95
49
|
/**
|
|
96
50
|
* Since this is a UI element, we do not want to draw it in water reflections. `renderOffset` will
|
|
97
51
|
* be a non-zero value in reflections.
|
|
@@ -112,7 +66,7 @@ export declare function printEnabled(enabled: boolean, description: string): voi
|
|
|
112
66
|
* ```ts
|
|
113
67
|
* const player = Isaac.GetPlayer();
|
|
114
68
|
* repeat(10, () => {
|
|
115
|
-
* player.AddCollectible(CollectibleType.
|
|
69
|
+
* player.AddCollectible(CollectibleType.STEVEN);
|
|
116
70
|
* });
|
|
117
71
|
* ```
|
|
118
72
|
*
|
|
@@ -136,17 +90,3 @@ export declare function repeat(n: int, func: (i: int) => void): void;
|
|
|
136
90
|
* This function does not actually do anything. (It is an "empty" function.)
|
|
137
91
|
*/
|
|
138
92
|
export declare function todo(): void;
|
|
139
|
-
/**
|
|
140
|
-
* Helper function to check every value of a custom enum for -1. This is helpful as a run-time check
|
|
141
|
-
* because many methods of the Isaac class return -1 if they fail.
|
|
142
|
-
*
|
|
143
|
-
* Example:
|
|
144
|
-
* ```ts
|
|
145
|
-
* enum EntityTypeCustom {
|
|
146
|
-
* FOO = Isaac.GetEntityTypeByName("Foo"),
|
|
147
|
-
* }
|
|
148
|
-
*
|
|
149
|
-
* validateCustomEnum("EntityTypeCustom", EntityTypeCustom);
|
|
150
|
-
* ```
|
|
151
|
-
*/
|
|
152
|
-
export declare function validateCustomEnum(transpiledEnumName: string, transpiledEnum: unknown): void;
|
package/dist/functions/utils.lua
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
3
2
|
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
4
3
|
local __TS__StringSubstr = ____lualib.__TS__StringSubstr
|
|
5
|
-
local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
6
|
-
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
7
4
|
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local RenderMode = ____isaac_2Dtypescript_2Ddefinitions.RenderMode
|
|
8
7
|
local ____cachedClasses = require("cachedClasses")
|
|
9
8
|
local game = ____cachedClasses.game
|
|
10
|
-
local ____directionNames = require("objects.directionNames")
|
|
11
|
-
local DIRECTION_NAMES = ____directionNames.DIRECTION_NAMES
|
|
12
9
|
local HEX_STRING_LENGTH = 6
|
|
13
10
|
____exports.ensureAllCases = function(____, obj) return obj end
|
|
14
|
-
function ____exports.getDirectionName(self, direction)
|
|
15
|
-
return DIRECTION_NAMES[direction]
|
|
16
|
-
end
|
|
17
|
-
function ____exports.getEnumKeys(self, transpiledEnum)
|
|
18
|
-
local enumKeys = {}
|
|
19
|
-
for key in pairs(transpiledEnum) do
|
|
20
|
-
if type(key) == "string" then
|
|
21
|
-
enumKeys[#enumKeys + 1] = key
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
__TS__ArraySort(enumKeys)
|
|
25
|
-
return enumKeys
|
|
26
|
-
end
|
|
27
|
-
function ____exports.getEnumValues(self, transpiledEnum)
|
|
28
|
-
local enumValues = {}
|
|
29
|
-
for key, value in pairs(transpiledEnum) do
|
|
30
|
-
if type(key) == "string" then
|
|
31
|
-
enumValues[#enumValues + 1] = value
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
__TS__ArraySort(enumValues)
|
|
35
|
-
return enumValues
|
|
36
|
-
end
|
|
37
11
|
function ____exports.getTraversalDescription(self, key, traversalDescription)
|
|
38
12
|
if traversalDescription ~= "" then
|
|
39
13
|
traversalDescription = traversalDescription .. " --> "
|
|
@@ -64,13 +38,10 @@ function ____exports.hexToKColor(self, hexString, alpha)
|
|
|
64
38
|
local base = 255
|
|
65
39
|
return KColor(R / base, G / base, B / base, alpha)
|
|
66
40
|
end
|
|
67
|
-
function ____exports.isLuaDebugEnabled(self)
|
|
68
|
-
return package ~= nil
|
|
69
|
-
end
|
|
70
41
|
function ____exports.isReflectionRender(self)
|
|
71
42
|
local room = game:GetRoom()
|
|
72
43
|
local renderMode = room:GetRenderMode()
|
|
73
|
-
return renderMode == RenderMode.
|
|
44
|
+
return renderMode == RenderMode.WATER_REFLECT
|
|
74
45
|
end
|
|
75
46
|
function ____exports.printConsole(self, msg)
|
|
76
47
|
Isaac.ConsoleOutput(msg .. "\n")
|
|
@@ -90,22 +61,4 @@ ____exports["repeat"] = function(self, n, func)
|
|
|
90
61
|
end
|
|
91
62
|
function ____exports.todo(self)
|
|
92
63
|
end
|
|
93
|
-
function ____exports.validateCustomEnum(self, transpiledEnumName, transpiledEnum)
|
|
94
|
-
local customEnumType = type(transpiledEnum)
|
|
95
|
-
if customEnumType ~= "table" then
|
|
96
|
-
return
|
|
97
|
-
end
|
|
98
|
-
local ____table = transpiledEnum
|
|
99
|
-
local keys = __TS__ArrayFilter(
|
|
100
|
-
__TS__ObjectKeys(____table),
|
|
101
|
-
function(____, key) return type(key) == "string" end
|
|
102
|
-
)
|
|
103
|
-
__TS__ArraySort(keys)
|
|
104
|
-
for ____, key in ipairs(keys) do
|
|
105
|
-
local value = ____table[key]
|
|
106
|
-
if value == -1 then
|
|
107
|
-
error((("Failed to find: " .. transpiledEnumName) .. ".") .. key)
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
64
|
return ____exports
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
1
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
2
|
+
import { Direction } from "isaac-typescript-definitions";
|
|
3
3
|
import { SerializationType } from "../enums/SerializationType";
|
|
4
4
|
declare type SerializedVector = LuaTable<string, unknown> & {
|
|
5
5
|
__serializedVectorBrand: unknown;
|
|
@@ -18,7 +18,6 @@ interface CopyVectorReturn {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function copyVector<V extends Vector | SerializedVector, S extends SerializationType>(vector: V, serializationType: S): CopyVectorReturn[S];
|
|
20
20
|
export declare function copyVector<V extends Vector | SerializedVector>(vector: V): CopyVectorReturn[SerializationType.NONE];
|
|
21
|
-
export declare function directionToVector(direction: Direction): Vector;
|
|
22
21
|
/**
|
|
23
22
|
* Used to determine is the given table is a serialized `Vector` object created by the save data
|
|
24
23
|
* manager and/or the `deepCopy` function.
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local OBJECT_NAME
|
|
3
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
4
|
+
local Direction = ____isaac_2Dtypescript_2Ddefinitions.Direction
|
|
4
5
|
local ____SerializationBrand = require("enums.private.SerializationBrand")
|
|
5
6
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
6
7
|
local ____SerializationType = require("enums.SerializationType")
|
|
7
8
|
local SerializationType = ____SerializationType.SerializationType
|
|
8
|
-
local ____directionToVector = require("objects.directionToVector")
|
|
9
|
-
local DIRECTION_TO_VECTOR = ____directionToVector.DIRECTION_TO_VECTOR
|
|
10
9
|
local ____isaacAPIClass = require("functions.isaacAPIClass")
|
|
11
10
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
12
11
|
local isIsaacAPIClassOfType = ____isaacAPIClass.isIsaacAPIClassOfType
|
|
@@ -61,6 +60,12 @@ function ____exports.copyVector(self, vector, serializationType)
|
|
|
61
60
|
OBJECT_NAME,
|
|
62
61
|
table.unpack(KEYS)
|
|
63
62
|
))
|
|
63
|
+
if x == nil then
|
|
64
|
+
error(("Failed to deserialize a " .. OBJECT_NAME) .. " object since the provided object did not have a value for: x")
|
|
65
|
+
end
|
|
66
|
+
if y == nil then
|
|
67
|
+
error(("Failed to deserialize a " .. OBJECT_NAME) .. " object since the provided object did not have a value for: y")
|
|
68
|
+
end
|
|
64
69
|
return Vector(x, y)
|
|
65
70
|
end
|
|
66
71
|
end
|
|
@@ -71,9 +76,6 @@ function ____exports.copyVector(self, vector, serializationType)
|
|
|
71
76
|
end
|
|
72
77
|
until true
|
|
73
78
|
end
|
|
74
|
-
function ____exports.directionToVector(self, direction)
|
|
75
|
-
return DIRECTION_TO_VECTOR[direction]
|
|
76
|
-
end
|
|
77
79
|
function ____exports.isSerializedVector(self, object)
|
|
78
80
|
local objectType = type(object)
|
|
79
81
|
if objectType ~= "table" then
|
package/dist/index.d.ts
CHANGED
|
@@ -4,13 +4,9 @@ export { forceNewLevelCallback, forceNewRoomCallback, } from "./callbacks/reorde
|
|
|
4
4
|
export * from "./classes/DefaultMap";
|
|
5
5
|
export * from "./classes/ModUpgraded";
|
|
6
6
|
export * from "./constants";
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./enums/CollectiblePedestalType";
|
|
7
|
+
export * from "./constantsMax";
|
|
9
8
|
export * from "./enums/HealthType";
|
|
10
|
-
export * from "./enums/ItemConfigTag";
|
|
11
9
|
export * from "./enums/ModCallbacksCustom";
|
|
12
|
-
export * from "./enums/PillEffectClass";
|
|
13
|
-
export * from "./enums/PillEffectType";
|
|
14
10
|
export * from "./enums/PocketItemType";
|
|
15
11
|
export * from "./enums/SerializationType";
|
|
16
12
|
export { registerCharacterHealthConversion } from "./features/characterHealthConversion";
|
|
@@ -49,10 +45,12 @@ export * from "./functions/color";
|
|
|
49
45
|
export * from "./functions/debug";
|
|
50
46
|
export { deepCopy } from "./functions/deepCopy";
|
|
51
47
|
export { deepCopyTests } from "./functions/deepCopyTests";
|
|
48
|
+
export * from "./functions/direction";
|
|
52
49
|
export * from "./functions/doors";
|
|
53
50
|
export * from "./functions/easing";
|
|
54
51
|
export * from "./functions/entity";
|
|
55
52
|
export * from "./functions/entitySpecific";
|
|
53
|
+
export * from "./functions/enums";
|
|
56
54
|
export * from "./functions/familiars";
|
|
57
55
|
export * from "./functions/flag";
|
|
58
56
|
export * from "./functions/flying";
|
|
@@ -109,7 +107,7 @@ export * from "./maps/characterMap";
|
|
|
109
107
|
export * from "./maps/pillEffectMap";
|
|
110
108
|
export * from "./maps/roomTypeMap";
|
|
111
109
|
export * from "./objects/colors";
|
|
112
|
-
export * from "./types/
|
|
110
|
+
export * from "./types/AddCallbackParameterCustom";
|
|
113
111
|
export * from "./types/AnyEntity";
|
|
114
112
|
export * from "./types/CollectibleIndex";
|
|
115
113
|
export * from "./types/JSONDoor";
|
package/dist/index.lua
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
do
|
|
4
3
|
local ____export = require("cachedClasses")
|
|
@@ -47,15 +46,7 @@ do
|
|
|
47
46
|
end
|
|
48
47
|
end
|
|
49
48
|
do
|
|
50
|
-
local ____export = require("
|
|
51
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
52
|
-
if ____exportKey ~= "default" then
|
|
53
|
-
____exports[____exportKey] = ____exportValue
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
do
|
|
58
|
-
local ____export = require("enums.CollectiblePedestalType")
|
|
49
|
+
local ____export = require("constantsMax")
|
|
59
50
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
60
51
|
if ____exportKey ~= "default" then
|
|
61
52
|
____exports[____exportKey] = ____exportValue
|
|
@@ -70,14 +61,6 @@ do
|
|
|
70
61
|
end
|
|
71
62
|
end
|
|
72
63
|
end
|
|
73
|
-
do
|
|
74
|
-
local ____export = require("enums.ItemConfigTag")
|
|
75
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
76
|
-
if ____exportKey ~= "default" then
|
|
77
|
-
____exports[____exportKey] = ____exportValue
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
64
|
do
|
|
82
65
|
local ____export = require("enums.ModCallbacksCustom")
|
|
83
66
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -86,22 +69,6 @@ do
|
|
|
86
69
|
end
|
|
87
70
|
end
|
|
88
71
|
end
|
|
89
|
-
do
|
|
90
|
-
local ____export = require("enums.PillEffectClass")
|
|
91
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
92
|
-
if ____exportKey ~= "default" then
|
|
93
|
-
____exports[____exportKey] = ____exportValue
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
do
|
|
98
|
-
local ____export = require("enums.PillEffectType")
|
|
99
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
100
|
-
if ____exportKey ~= "default" then
|
|
101
|
-
____exports[____exportKey] = ____exportValue
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
72
|
do
|
|
106
73
|
local ____export = require("enums.PocketItemType")
|
|
107
74
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -406,6 +373,14 @@ do
|
|
|
406
373
|
local deepCopyTests = ____deepCopyTests.deepCopyTests
|
|
407
374
|
____exports.deepCopyTests = deepCopyTests
|
|
408
375
|
end
|
|
376
|
+
do
|
|
377
|
+
local ____export = require("functions.direction")
|
|
378
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
379
|
+
if ____exportKey ~= "default" then
|
|
380
|
+
____exports[____exportKey] = ____exportValue
|
|
381
|
+
end
|
|
382
|
+
end
|
|
383
|
+
end
|
|
409
384
|
do
|
|
410
385
|
local ____export = require("functions.doors")
|
|
411
386
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -438,6 +413,14 @@ do
|
|
|
438
413
|
end
|
|
439
414
|
end
|
|
440
415
|
end
|
|
416
|
+
do
|
|
417
|
+
local ____export = require("functions.enums")
|
|
418
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
419
|
+
if ____exportKey ~= "default" then
|
|
420
|
+
____exports[____exportKey] = ____exportValue
|
|
421
|
+
end
|
|
422
|
+
end
|
|
423
|
+
end
|
|
441
424
|
do
|
|
442
425
|
local ____export = require("functions.familiars")
|
|
443
426
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local ____customRevive = require("callbacks.customRevive")
|
|
4
3
|
local customReviveCallbacksInit = ____customRevive.customReviveCallbacksInit
|
|
@@ -26,6 +25,8 @@ local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged
|
|
|
26
25
|
local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
|
|
27
26
|
local ____postFlip = require("callbacks.postFlip")
|
|
28
27
|
local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
|
|
28
|
+
local ____postGreedModeWave = require("callbacks.postGreedModeWave")
|
|
29
|
+
local postGreedModeWaveCallbackInit = ____postGreedModeWave.postGreedModeWaveCallbackInit
|
|
29
30
|
local ____postGridEntity = require("callbacks.postGridEntity")
|
|
30
31
|
local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
|
|
31
32
|
local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
|
|
@@ -98,6 +99,7 @@ function ____exports.initCustomCallbacks(self, mod)
|
|
|
98
99
|
postFamiliarInitLateCallbackInit(nil, mod)
|
|
99
100
|
postFamiliarStateChangedCallbackInit(nil, mod)
|
|
100
101
|
postFlipCallbacksInit(nil, mod)
|
|
102
|
+
postGreedModeWaveCallbackInit(nil, mod)
|
|
101
103
|
postGridEntityCallbacksInit(nil, mod)
|
|
102
104
|
postGridEntityCollisionInit(nil, mod)
|
|
103
105
|
postHolyMantleRemovedCallbackInit(nil, mod)
|
package/dist/initFeatures.lua
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local ____characterHealthConversion = require("features.characterHealthConversion")
|
|
4
3
|
local characterHealthConversionInit = ____characterHealthConversion.characterHealthConversionInit
|
package/dist/lualib_bundle.lua
CHANGED
|
@@ -2083,10 +2083,23 @@ local function __TS__SourceMapTraceBack(fileName, sourceMap)
|
|
|
2083
2083
|
"(%S+)%.lua:(%d+)",
|
|
2084
2084
|
function(file, line) return replacer(nil, file .. ".lua", file .. ".ts", line) end
|
|
2085
2085
|
)
|
|
2086
|
+
local function stringReplacer(____, file, line)
|
|
2087
|
+
local fileSourceMap = _G.__TS__sourcemap[file]
|
|
2088
|
+
if fileSourceMap and fileSourceMap[line] then
|
|
2089
|
+
local chunkName = string.match(file, "%[string \"([^\"]+)\"%]")
|
|
2090
|
+
local sourceName = string.gsub(chunkName, ".lua$", ".ts")
|
|
2091
|
+
local data = fileSourceMap[line]
|
|
2092
|
+
if type(data) == "number" then
|
|
2093
|
+
return (sourceName .. ":") .. tostring(data)
|
|
2094
|
+
end
|
|
2095
|
+
return (tostring(data.file) .. ":") .. tostring(data.line)
|
|
2096
|
+
end
|
|
2097
|
+
return (file .. ":") .. line
|
|
2098
|
+
end
|
|
2086
2099
|
result = string.gsub(
|
|
2087
2100
|
result,
|
|
2088
2101
|
"(%[string \"[^\"]+\"%]):(%d+)",
|
|
2089
|
-
function(file, line) return
|
|
2102
|
+
function(file, line) return stringReplacer(nil, file, line) end
|
|
2090
2103
|
)
|
|
2091
2104
|
return result
|
|
2092
2105
|
end
|
package/dist/maps/cardMap.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { CollectibleType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const DEFAULT_COLLECTIBLE_DESCRIPTION = "Unknown";
|
|
3
3
|
export declare const COLLECTIBLE_DESCRIPTION_MAP: ReadonlyMap<CollectibleType, string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { CacheFlag } from "isaac-typescript-definitions";
|
|
2
2
|
/** The default fire delay is represented in the tear stat, not the `MaxFireDelay` value. */
|
|
3
3
|
export declare const DEFAULT_PLAYER_STAT_MAP: ReadonlyMap<CacheFlag, number>;
|
|
@@ -2,21 +2,23 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
5
7
|
local ____tears = require("functions.tears")
|
|
6
8
|
local getTearsStat = ____tears.getTearsStat
|
|
7
9
|
local DEFAULT_MAX_FIRE_DELAY = 10
|
|
8
10
|
____exports.DEFAULT_PLAYER_STAT_MAP = __TS__New(
|
|
9
11
|
Map,
|
|
10
12
|
{
|
|
11
|
-
{CacheFlag.
|
|
13
|
+
{CacheFlag.DAMAGE, 3.5},
|
|
12
14
|
{
|
|
13
|
-
CacheFlag.
|
|
15
|
+
CacheFlag.FIRE_DELAY,
|
|
14
16
|
getTearsStat(nil, DEFAULT_MAX_FIRE_DELAY)
|
|
15
17
|
},
|
|
16
|
-
{CacheFlag.
|
|
17
|
-
{CacheFlag.
|
|
18
|
-
{CacheFlag.
|
|
19
|
-
{CacheFlag.
|
|
18
|
+
{CacheFlag.SHOT_SPEED, 1},
|
|
19
|
+
{CacheFlag.RANGE, 6.5},
|
|
20
|
+
{CacheFlag.SPEED, 1},
|
|
21
|
+
{CacheFlag.LUCK, 0}
|
|
20
22
|
}
|
|
21
23
|
)
|
|
22
24
|
return ____exports
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { GridEntityType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const GRID_ENTITY_TYPE_TO_BROKEN_STATE_MAP: ReadonlyMap<GridEntityType, int>;
|
|
@@ -2,18 +2,25 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
7
|
+
local LockState = ____isaac_2Dtypescript_2Ddefinitions.LockState
|
|
8
|
+
local PoopState = ____isaac_2Dtypescript_2Ddefinitions.PoopState
|
|
9
|
+
local RockState = ____isaac_2Dtypescript_2Ddefinitions.RockState
|
|
10
|
+
local SpiderWebState = ____isaac_2Dtypescript_2Ddefinitions.SpiderWebState
|
|
11
|
+
local TNTState = ____isaac_2Dtypescript_2Ddefinitions.TNTState
|
|
5
12
|
____exports.GRID_ENTITY_TYPE_TO_BROKEN_STATE_MAP = __TS__New(Map, {
|
|
6
|
-
{GridEntityType.
|
|
7
|
-
{GridEntityType.
|
|
8
|
-
{GridEntityType.
|
|
9
|
-
{GridEntityType.
|
|
10
|
-
{GridEntityType.
|
|
11
|
-
{GridEntityType.
|
|
12
|
-
{GridEntityType.
|
|
13
|
-
{GridEntityType.
|
|
14
|
-
{GridEntityType.
|
|
15
|
-
{GridEntityType.
|
|
16
|
-
{GridEntityType.
|
|
17
|
-
{GridEntityType.
|
|
13
|
+
{GridEntityType.ROCK, RockState.BROKEN},
|
|
14
|
+
{GridEntityType.ROCK_TINTED, RockState.BROKEN},
|
|
15
|
+
{GridEntityType.ROCK_BOMB, RockState.BROKEN},
|
|
16
|
+
{GridEntityType.ROCK_ALT, RockState.BROKEN},
|
|
17
|
+
{GridEntityType.SPIDER_WEB, SpiderWebState.BROKEN},
|
|
18
|
+
{GridEntityType.LOCK, LockState.UNLOCKED},
|
|
19
|
+
{GridEntityType.TNT, TNTState.EXPLODED},
|
|
20
|
+
{GridEntityType.POOP, PoopState.COMPLETELY_DESTROYED},
|
|
21
|
+
{GridEntityType.ROCK_SUPER_SPECIAL, RockState.BROKEN},
|
|
22
|
+
{GridEntityType.ROCK_SPIKED, RockState.BROKEN},
|
|
23
|
+
{GridEntityType.ROCK_ALT_2, RockState.BROKEN},
|
|
24
|
+
{GridEntityType.ROCK_GOLD, RockState.BROKEN}
|
|
18
25
|
})
|
|
19
26
|
return ____exports
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { GridEntityType, GridEntityXMLType } from "isaac-typescript-definitions";
|
|
2
2
|
/**
|
|
3
3
|
* This maps the GridEntityXMLType (i.e. the type contained in the room XML/STB file) to the
|
|
4
4
|
* GridEntityType and the variant used by the game.
|
|
@@ -2,40 +2,50 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local CrawlSpaceVariant = ____isaac_2Dtypescript_2Ddefinitions.CrawlSpaceVariant
|
|
7
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
8
|
+
local GridEntityXMLType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityXMLType
|
|
9
|
+
local PitVariant = ____isaac_2Dtypescript_2Ddefinitions.PitVariant
|
|
10
|
+
local PoopGridEntityVariant = ____isaac_2Dtypescript_2Ddefinitions.PoopGridEntityVariant
|
|
11
|
+
local PressurePlateVariant = ____isaac_2Dtypescript_2Ddefinitions.PressurePlateVariant
|
|
12
|
+
local RockVariant = ____isaac_2Dtypescript_2Ddefinitions.RockVariant
|
|
13
|
+
local StatueVariant = ____isaac_2Dtypescript_2Ddefinitions.StatueVariant
|
|
14
|
+
local TrapdoorVariant = ____isaac_2Dtypescript_2Ddefinitions.TrapdoorVariant
|
|
5
15
|
____exports.GRID_ENTITY_XML_MAP = __TS__New(Map, {
|
|
6
|
-
{
|
|
7
|
-
{
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
{
|
|
11
|
-
{
|
|
12
|
-
{
|
|
13
|
-
{
|
|
14
|
-
{
|
|
15
|
-
{
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
16
|
+
{GridEntityXMLType.ROCK, {GridEntityType.ROCK, RockVariant.NORMAL}},
|
|
17
|
+
{GridEntityXMLType.ROCK_BOMB, {GridEntityType.ROCK_BOMB, 0}},
|
|
18
|
+
{GridEntityXMLType.ROCK_ALT, {GridEntityType.ROCK_ALT, 0}},
|
|
19
|
+
{GridEntityXMLType.ROCK_TINTED, {GridEntityType.ROCK_TINTED, 0}},
|
|
20
|
+
{GridEntityXMLType.ROCK_ALT_2, {GridEntityType.ROCK_ALT_2, 0}},
|
|
21
|
+
{GridEntityXMLType.ROCK_EVENT, {GridEntityType.ROCK_ALT_2, RockVariant.EVENT}},
|
|
22
|
+
{GridEntityXMLType.ROCK_SPIKED, {GridEntityType.ROCK_SPIKED, 0}},
|
|
23
|
+
{GridEntityXMLType.ROCK_GOLD, {GridEntityType.ROCK_GOLD, 0}},
|
|
24
|
+
{GridEntityXMLType.TNT, {GridEntityType.TNT, 0}},
|
|
25
|
+
{GridEntityXMLType.POOP_RED, {GridEntityType.POOP, PoopGridEntityVariant.RED}},
|
|
26
|
+
{GridEntityXMLType.POOP_RAINBOW, {GridEntityType.POOP, PoopGridEntityVariant.RAINBOW}},
|
|
27
|
+
{GridEntityXMLType.POOP_CORN, {GridEntityType.POOP, PoopGridEntityVariant.CORN}},
|
|
28
|
+
{GridEntityXMLType.POOP_GOLDEN, {GridEntityType.POOP, PoopGridEntityVariant.GOLDEN}},
|
|
29
|
+
{GridEntityXMLType.POOP_BLACK, {GridEntityType.POOP, PoopGridEntityVariant.BLACK}},
|
|
30
|
+
{GridEntityXMLType.POOP_WHITE, {GridEntityType.POOP, PoopGridEntityVariant.WHITE}},
|
|
31
|
+
{GridEntityXMLType.POOP, {GridEntityType.POOP, PoopGridEntityVariant.NORMAL}},
|
|
32
|
+
{GridEntityXMLType.POOP_CHARMING, {GridEntityType.POOP, PoopGridEntityVariant.CHARMING}},
|
|
33
|
+
{GridEntityXMLType.BLOCK, {GridEntityType.BLOCK, 0}},
|
|
34
|
+
{GridEntityXMLType.PILLAR, {GridEntityType.PILLAR, 0}},
|
|
35
|
+
{GridEntityXMLType.SPIKES, {GridEntityType.SPIKES, 0}},
|
|
36
|
+
{GridEntityXMLType.SPIKES_ON_OFF, {GridEntityType.SPIKES_ON_OFF, 0}},
|
|
37
|
+
{GridEntityXMLType.SPIDER_WEB, {GridEntityType.SPIDER_WEB, 0}},
|
|
38
|
+
{GridEntityXMLType.WALL, {GridEntityType.WALL, 0}},
|
|
39
|
+
{GridEntityXMLType.PIT, {GridEntityType.PIT, PitVariant.NORMAL}},
|
|
40
|
+
{GridEntityXMLType.FISSURE_SPAWNER, {GridEntityType.PIT, PitVariant.FISSURE_SPAWNER}},
|
|
41
|
+
{GridEntityXMLType.PIT_EVENT, {GridEntityType.PIT, PitVariant.NORMAL}},
|
|
42
|
+
{GridEntityXMLType.LOCK, {GridEntityType.LOCK, 0}},
|
|
43
|
+
{GridEntityXMLType.PRESSURE_PLATE, {GridEntityType.PRESSURE_PLATE, PressurePlateVariant.PRESSURE_PLATE}},
|
|
44
|
+
{GridEntityXMLType.STATUE_DEVIL, {GridEntityType.STATUE, StatueVariant.DEVIL}},
|
|
45
|
+
{GridEntityXMLType.STATUE_ANGEL, {GridEntityType.STATUE, StatueVariant.ANGEL}},
|
|
46
|
+
{GridEntityXMLType.TELEPORTER, {GridEntityType.TELEPORTER, 0}},
|
|
47
|
+
{GridEntityXMLType.TRAPDOOR, {GridEntityType.TRAPDOOR, TrapdoorVariant.NORMAL}},
|
|
48
|
+
{GridEntityXMLType.CRAWL_SPACE, {GridEntityType.CRAWL_SPACE, CrawlSpaceVariant.NORMAL}},
|
|
49
|
+
{GridEntityXMLType.GRAVITY, {GridEntityType.GRAVITY, 0}}
|
|
40
50
|
})
|
|
41
51
|
return ____exports
|
|
@@ -2,12 +2,14 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
5
7
|
____exports.DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0
|
|
6
8
|
____exports.ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP = __TS__New(Map, {
|
|
7
|
-
{RoomShape.
|
|
8
|
-
{RoomShape.
|
|
9
|
-
{RoomShape.
|
|
10
|
-
{RoomShape.
|
|
11
|
-
{RoomShape.
|
|
9
|
+
{RoomShape.IH, 30},
|
|
10
|
+
{RoomShape.IV, 4},
|
|
11
|
+
{RoomShape.IIV, 4},
|
|
12
|
+
{RoomShape.IIH, 56},
|
|
13
|
+
{RoomShape.LTL, 13}
|
|
12
14
|
})
|
|
13
15
|
return ____exports
|