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
|
@@ -3,6 +3,8 @@ local Set = ____lualib.Set
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local postRender, v
|
|
6
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
6
8
|
local ____cachedClasses = require("cachedClasses")
|
|
7
9
|
local musicManager = ____cachedClasses.musicManager
|
|
8
10
|
local ____featuresInitialized = require("featuresInitialized")
|
|
@@ -22,7 +24,7 @@ local musicWasEnabled = false
|
|
|
22
24
|
v = {run = {disableSoundSet = __TS__New(Set)}}
|
|
23
25
|
function ____exports.disableSoundsInit(self, mod)
|
|
24
26
|
saveDataManager(nil, "disableSounds", v)
|
|
25
|
-
mod:AddCallback(
|
|
27
|
+
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
26
28
|
end
|
|
27
29
|
function ____exports.enableAllSound(self, key)
|
|
28
30
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
@@ -155,8 +155,8 @@ export declare function grid2(): void;
|
|
|
155
155
|
/** Alias for the "hearts" command. */
|
|
156
156
|
export declare function h(params: string): void;
|
|
157
157
|
/**
|
|
158
|
-
* Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use
|
|
159
|
-
*
|
|
158
|
+
* Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
159
|
+
* numbers to remove hearts.)
|
|
160
160
|
*/
|
|
161
161
|
export declare function hearts(params: string): void;
|
|
162
162
|
/** Alias for the "debug 6" command. */
|
|
@@ -203,7 +203,7 @@ export declare function listGrid(params: string): void;
|
|
|
203
203
|
* specific `GridEntityType`.
|
|
204
204
|
*/
|
|
205
205
|
export declare function listGridAll(params: string): void;
|
|
206
|
-
/**
|
|
206
|
+
/** Alias for the "1hp" command. */
|
|
207
207
|
export declare function lowHP(): void;
|
|
208
208
|
/** Alias for "debug 9". */
|
|
209
209
|
export declare function luck(): void;
|
|
@@ -218,6 +218,8 @@ export declare function mh(params: string): void;
|
|
|
218
218
|
export declare function miniboss(): void;
|
|
219
219
|
/** Alias for the "disablecurses" command. */
|
|
220
220
|
export declare function noCurses(): void;
|
|
221
|
+
/** Sets every NPC in the room to 1 HP. */
|
|
222
|
+
export declare function oneHP(): void;
|
|
221
223
|
/**
|
|
222
224
|
* Gives a pill with the specified pill effect. Accepts either the effect ID or the partial name of
|
|
223
225
|
* the effect.
|
|
@@ -2,13 +2,28 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
4
4
|
local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
5
|
+
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
5
6
|
local ____exports = {}
|
|
7
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
|
+
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
9
|
+
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
10
|
+
local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
|
|
11
|
+
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
12
|
+
local Direction = ____isaac_2Dtypescript_2Ddefinitions.Direction
|
|
13
|
+
local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
|
|
14
|
+
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
15
|
+
local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
|
|
16
|
+
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
6
17
|
local ____cachedClasses = require("cachedClasses")
|
|
7
18
|
local game = ____cachedClasses.game
|
|
8
19
|
local sfxManager = ____cachedClasses.sfxManager
|
|
9
20
|
local ____constants = require("constants")
|
|
10
|
-
local
|
|
11
|
-
local
|
|
21
|
+
local MAX_ROOM_TYPE = ____constants.MAX_ROOM_TYPE
|
|
22
|
+
local MAX_STAGE = ____constants.MAX_STAGE
|
|
23
|
+
local MAX_VANILLA_CHARACTER = ____constants.MAX_VANILLA_CHARACTER
|
|
24
|
+
local ____constantsMax = require("constantsMax")
|
|
25
|
+
local MAX_CARD = ____constantsMax.MAX_CARD
|
|
26
|
+
local MAX_PILL_EFFECT = ____constantsMax.MAX_PILL_EFFECT
|
|
12
27
|
local ____HealthType = require("enums.HealthType")
|
|
13
28
|
local HealthType = ____HealthType.HealthType
|
|
14
29
|
local ____cards = require("functions.cards")
|
|
@@ -17,6 +32,9 @@ local ____character = require("functions.character")
|
|
|
17
32
|
local getCharacterName = ____character.getCharacterName
|
|
18
33
|
local ____entitySpecific = require("functions.entitySpecific")
|
|
19
34
|
local getNPCs = ____entitySpecific.getNPCs
|
|
35
|
+
local ____enums = require("functions.enums")
|
|
36
|
+
local getEnumValues = ____enums.getEnumValues
|
|
37
|
+
local getLastEnumValue = ____enums.getLastEnumValue
|
|
20
38
|
local ____log = require("functions.log")
|
|
21
39
|
local logEffects = ____log.logEffects
|
|
22
40
|
local logRoom = ____log.logRoom
|
|
@@ -29,6 +47,7 @@ local spawnCard = ____pickups.spawnCard
|
|
|
29
47
|
local spawnPill = ____pickups.spawnPill
|
|
30
48
|
local spawnTrinket = ____pickups.spawnTrinket
|
|
31
49
|
local ____pills = require("functions.pills")
|
|
50
|
+
local getHorsePillColor = ____pills.getHorsePillColor
|
|
32
51
|
local getPillEffectName = ____pills.getPillEffectName
|
|
33
52
|
local ____player = require("functions.player")
|
|
34
53
|
local getPlayerName = ____player.getPlayerName
|
|
@@ -42,6 +61,8 @@ local changeRoom = ____rooms.changeRoom
|
|
|
42
61
|
local getRoomGridIndexesForType = ____rooms.getRoomGridIndexesForType
|
|
43
62
|
local ____run = require("functions.run")
|
|
44
63
|
local restart = ____run.restart
|
|
64
|
+
local ____trinkets = require("functions.trinkets")
|
|
65
|
+
local getGoldenTrinketType = ____trinkets.getGoldenTrinketType
|
|
45
66
|
local ____utils = require("functions.utils")
|
|
46
67
|
local printConsole = ____utils.printConsole
|
|
47
68
|
local printEnabled = ____utils.printEnabled
|
|
@@ -91,7 +112,13 @@ function ____exports.hearts(self, params)
|
|
|
91
112
|
addHeart(nil, params, HealthType.RED)
|
|
92
113
|
end
|
|
93
114
|
function ____exports.iAmError(self)
|
|
94
|
-
changeRoom(nil,
|
|
115
|
+
changeRoom(nil, GridRoom.ERROR)
|
|
116
|
+
end
|
|
117
|
+
function ____exports.oneHP(self)
|
|
118
|
+
for ____, npc in ipairs(getNPCs(nil)) do
|
|
119
|
+
npc.HitPoints = 1
|
|
120
|
+
end
|
|
121
|
+
printConsole(nil, "Set every NPC to 1 HP.")
|
|
95
122
|
end
|
|
96
123
|
function ____exports.soulHearts(self, params)
|
|
97
124
|
addHeart(nil, params, HealthType.SOUL)
|
|
@@ -122,10 +149,13 @@ function ____exports.addCharges(self, params)
|
|
|
122
149
|
local activeSlotString, chargeString = table.unpack(args)
|
|
123
150
|
local activeSlot = tonumber(activeSlotString)
|
|
124
151
|
if activeSlot == nil then
|
|
125
|
-
printConsole(
|
|
152
|
+
printConsole(
|
|
153
|
+
nil,
|
|
154
|
+
"The provided slot number is invalid: " .. tostring(activeSlotString)
|
|
155
|
+
)
|
|
126
156
|
return
|
|
127
157
|
end
|
|
128
|
-
if activeSlot < ActiveSlot.
|
|
158
|
+
if activeSlot < ActiveSlot.PRIMARY or activeSlot > ActiveSlot.POCKET_SINGLE_USE then
|
|
129
159
|
printConsole(
|
|
130
160
|
nil,
|
|
131
161
|
"The provided slot number is invalid: " .. tostring(activeSlot)
|
|
@@ -150,19 +180,19 @@ function ____exports.angel(self)
|
|
|
150
180
|
devilAngel(nil, false)
|
|
151
181
|
end
|
|
152
182
|
function ____exports.ascent(self)
|
|
153
|
-
game:SetStateFlag(GameStateFlag.
|
|
154
|
-
game:SetStateFlag(GameStateFlag.
|
|
183
|
+
game:SetStateFlag(GameStateFlag.BACKWARDS_PATH_INIT, true)
|
|
184
|
+
game:SetStateFlag(GameStateFlag.BACKWARDS_PATH, true)
|
|
155
185
|
printConsole(nil, "Set Ascent flags.")
|
|
156
186
|
end
|
|
157
187
|
function ____exports.bedroom(self)
|
|
158
|
-
local cleanBedroomGridIndexes = getRoomGridIndexesForType(nil, RoomType.
|
|
188
|
+
local cleanBedroomGridIndexes = getRoomGridIndexesForType(nil, RoomType.CLEAN_BEDROOM)
|
|
159
189
|
if #cleanBedroomGridIndexes > 0 then
|
|
160
|
-
warpToRoomType(nil, RoomType.
|
|
190
|
+
warpToRoomType(nil, RoomType.CLEAN_BEDROOM)
|
|
161
191
|
return
|
|
162
192
|
end
|
|
163
|
-
local dirtyBedroomGridIndexes = getRoomGridIndexesForType(nil, RoomType.
|
|
193
|
+
local dirtyBedroomGridIndexes = getRoomGridIndexesForType(nil, RoomType.DIRTY_BEDROOM)
|
|
164
194
|
if #dirtyBedroomGridIndexes > 0 then
|
|
165
|
-
warpToRoomType(nil, RoomType.
|
|
195
|
+
warpToRoomType(nil, RoomType.DIRTY_BEDROOM)
|
|
166
196
|
return
|
|
167
197
|
end
|
|
168
198
|
printConsole(nil, "There are no Clean Bedrooms or Dirty Bedrooms on this floor.")
|
|
@@ -171,7 +201,7 @@ function ____exports.bh(self, params)
|
|
|
171
201
|
____exports.blackHearts(nil, params)
|
|
172
202
|
end
|
|
173
203
|
function ____exports.blackMarket(self)
|
|
174
|
-
changeRoom(nil,
|
|
204
|
+
changeRoom(nil, GridRoom.BLACK_MARKET)
|
|
175
205
|
end
|
|
176
206
|
function ____exports.bloodCharges(self, params)
|
|
177
207
|
local charges = 1
|
|
@@ -219,10 +249,10 @@ function ____exports.boneHearts(self, params)
|
|
|
219
249
|
addHeart(nil, params, HealthType.BONE)
|
|
220
250
|
end
|
|
221
251
|
function ____exports.boss(self)
|
|
222
|
-
warpToRoomType(nil, RoomType.
|
|
252
|
+
warpToRoomType(nil, RoomType.BOSS)
|
|
223
253
|
end
|
|
224
254
|
function ____exports.bossRush(self)
|
|
225
|
-
changeRoom(nil,
|
|
255
|
+
changeRoom(nil, GridRoom.BOSS_RUSH)
|
|
226
256
|
end
|
|
227
257
|
function ____exports.brokenHearts(self, params)
|
|
228
258
|
addHeart(nil, params, HealthType.BROKEN)
|
|
@@ -242,7 +272,7 @@ function ____exports.card(self, params)
|
|
|
242
272
|
end
|
|
243
273
|
cardNum = match[2]
|
|
244
274
|
else
|
|
245
|
-
if num
|
|
275
|
+
if num <= Card.NULL or num > MAX_CARD then
|
|
246
276
|
printConsole(
|
|
247
277
|
nil,
|
|
248
278
|
"Invalid card sub-type: " .. tostring(num)
|
|
@@ -266,7 +296,7 @@ function ____exports.cards(self)
|
|
|
266
296
|
do
|
|
267
297
|
local x = 0
|
|
268
298
|
while x <= 12 do
|
|
269
|
-
if cardType ==
|
|
299
|
+
if cardType == MAX_CARD then
|
|
270
300
|
return
|
|
271
301
|
end
|
|
272
302
|
local position = gridCoordinatesToWorldPosition(nil, x, y)
|
|
@@ -297,7 +327,7 @@ function ____exports.characterCommand(self, params)
|
|
|
297
327
|
end
|
|
298
328
|
character = match[2]
|
|
299
329
|
else
|
|
300
|
-
if num < 0 or num
|
|
330
|
+
if num < 0 or num > MAX_VANILLA_CHARACTER then
|
|
301
331
|
printConsole(
|
|
302
332
|
nil,
|
|
303
333
|
"Invalid player sub-type: " .. tostring(num)
|
|
@@ -317,7 +347,7 @@ function ____exports.charge(self, params)
|
|
|
317
347
|
____exports.addCharges(nil, params)
|
|
318
348
|
end
|
|
319
349
|
function ____exports.cleanBedroom(self)
|
|
320
|
-
warpToRoomType(nil, RoomType.
|
|
350
|
+
warpToRoomType(nil, RoomType.CLEAN_BEDROOM)
|
|
321
351
|
end
|
|
322
352
|
function ____exports.coin(self, params)
|
|
323
353
|
local numCoins = 1
|
|
@@ -350,11 +380,11 @@ function ____exports.crawlspace(self)
|
|
|
350
380
|
end
|
|
351
381
|
function ____exports.d20(self)
|
|
352
382
|
local player = Isaac.GetPlayer()
|
|
353
|
-
useActiveItemTemp(nil, player, CollectibleType.
|
|
383
|
+
useActiveItemTemp(nil, player, CollectibleType.D20)
|
|
354
384
|
end
|
|
355
385
|
function ____exports.d6(self)
|
|
356
386
|
local player = Isaac.GetPlayer()
|
|
357
|
-
useActiveItemTemp(nil, player, CollectibleType.
|
|
387
|
+
useActiveItemTemp(nil, player, CollectibleType.D6)
|
|
358
388
|
end
|
|
359
389
|
function ____exports.damage(self)
|
|
360
390
|
v.run.maxDamage = not v.run.maxDamage
|
|
@@ -364,7 +394,7 @@ function ____exports.dd(self)
|
|
|
364
394
|
____exports.devil(nil)
|
|
365
395
|
end
|
|
366
396
|
function ____exports.dirtyBedroom(self)
|
|
367
|
-
warpToRoomType(nil, RoomType.
|
|
397
|
+
warpToRoomType(nil, RoomType.DIRTY_BEDROOM)
|
|
368
398
|
end
|
|
369
399
|
function ____exports.disableCurses(self)
|
|
370
400
|
v.persistent.disableCurses = not v.persistent.disableCurses
|
|
@@ -374,7 +404,7 @@ function ____exports.down(self, params)
|
|
|
374
404
|
movePlayer(nil, params, Direction.DOWN)
|
|
375
405
|
end
|
|
376
406
|
function ____exports.dungeon(self)
|
|
377
|
-
changeRoom(nil,
|
|
407
|
+
changeRoom(nil, GridRoom.DUNGEON)
|
|
378
408
|
end
|
|
379
409
|
function ____exports.effects(self)
|
|
380
410
|
local player = Isaac.GetPlayer()
|
|
@@ -463,7 +493,7 @@ function ____exports.left(self, params)
|
|
|
463
493
|
movePlayer(nil, params, Direction.LEFT)
|
|
464
494
|
end
|
|
465
495
|
function ____exports.library(self)
|
|
466
|
-
warpToRoomType(nil, RoomType.
|
|
496
|
+
warpToRoomType(nil, RoomType.LIBRARY)
|
|
467
497
|
end
|
|
468
498
|
function ____exports.list(self, params)
|
|
469
499
|
listEntities(nil, params, false)
|
|
@@ -478,10 +508,7 @@ function ____exports.listGridAll(self, params)
|
|
|
478
508
|
listGridEntities(nil, params, true)
|
|
479
509
|
end
|
|
480
510
|
function ____exports.lowHP(self)
|
|
481
|
-
|
|
482
|
-
npc.HitPoints = 1
|
|
483
|
-
end
|
|
484
|
-
printConsole(nil, "Set every NPC to 1 HP.")
|
|
511
|
+
____exports.oneHP(nil)
|
|
485
512
|
end
|
|
486
513
|
function ____exports.luck(self)
|
|
487
514
|
Isaac.ExecuteCommand("debug 9")
|
|
@@ -493,7 +520,7 @@ function ____exports.mh(self, params)
|
|
|
493
520
|
____exports.maxHearts(nil, params)
|
|
494
521
|
end
|
|
495
522
|
function ____exports.miniboss(self)
|
|
496
|
-
warpToRoomType(nil, RoomType.
|
|
523
|
+
warpToRoomType(nil, RoomType.MINI_BOSS)
|
|
497
524
|
end
|
|
498
525
|
function ____exports.noCurses(self)
|
|
499
526
|
____exports.disableCurses(nil)
|
|
@@ -513,7 +540,7 @@ function ____exports.pill(self, params)
|
|
|
513
540
|
end
|
|
514
541
|
pillEffect = match[2]
|
|
515
542
|
else
|
|
516
|
-
if num <
|
|
543
|
+
if num < 0 or num > MAX_PILL_EFFECT then
|
|
517
544
|
printConsole(
|
|
518
545
|
nil,
|
|
519
546
|
"Invalid pill effect ID: " .. tostring(num)
|
|
@@ -530,6 +557,7 @@ function ____exports.pill(self, params)
|
|
|
530
557
|
)
|
|
531
558
|
end
|
|
532
559
|
function ____exports.pills(self)
|
|
560
|
+
local maxPillColor = getLastEnumValue(nil, PillColor)
|
|
533
561
|
local pillColor = 1
|
|
534
562
|
local horse = false
|
|
535
563
|
do
|
|
@@ -538,17 +566,17 @@ function ____exports.pills(self)
|
|
|
538
566
|
do
|
|
539
567
|
local x = 0
|
|
540
568
|
while x <= 12 do
|
|
541
|
-
if pillColor ==
|
|
569
|
+
if pillColor == maxPillColor then
|
|
542
570
|
if horse then
|
|
543
571
|
return
|
|
544
572
|
end
|
|
545
573
|
horse = true
|
|
546
574
|
pillColor = 1
|
|
547
575
|
end
|
|
548
|
-
local horsePillColor = pillColor
|
|
549
|
-
local
|
|
576
|
+
local horsePillColor = getHorsePillColor(nil, pillColor)
|
|
577
|
+
local pillColorToUse = horse and horsePillColor or pillColor
|
|
550
578
|
local position = gridCoordinatesToWorldPosition(nil, x, y)
|
|
551
|
-
spawnPill(nil,
|
|
579
|
+
spawnPill(nil, pillColorToUse, position)
|
|
552
580
|
pillColor = pillColor + 1
|
|
553
581
|
x = x + 1
|
|
554
582
|
end
|
|
@@ -558,7 +586,7 @@ function ____exports.pills(self)
|
|
|
558
586
|
end
|
|
559
587
|
end
|
|
560
588
|
function ____exports.planetarium(self)
|
|
561
|
-
warpToRoomType(nil, RoomType.
|
|
589
|
+
warpToRoomType(nil, RoomType.PLANETARIUM)
|
|
562
590
|
end
|
|
563
591
|
function ____exports.playSound(self, params)
|
|
564
592
|
____exports.sound(nil, params)
|
|
@@ -574,7 +602,7 @@ function ____exports.pocket(self, params)
|
|
|
574
602
|
return
|
|
575
603
|
end
|
|
576
604
|
local player = Isaac.GetPlayer()
|
|
577
|
-
player:SetPocketActiveItem(num, ActiveSlot.
|
|
605
|
+
player:SetPocketActiveItem(num, ActiveSlot.POCKET)
|
|
578
606
|
end
|
|
579
607
|
function ____exports.poopMana(self, params)
|
|
580
608
|
local charges = 1
|
|
@@ -631,21 +659,20 @@ function ____exports.s(self, params)
|
|
|
631
659
|
return
|
|
632
660
|
end
|
|
633
661
|
local minStage = 1
|
|
634
|
-
|
|
635
|
-
if stage < minStage or stage > maxStage then
|
|
662
|
+
if stage < minStage or stage > MAX_STAGE then
|
|
636
663
|
printConsole(
|
|
637
664
|
nil,
|
|
638
|
-
((("Invalid stage number; must be between " .. tostring(minStage)) .. " and ") .. tostring(
|
|
665
|
+
((("Invalid stage number; must be between " .. tostring(minStage)) .. " and ") .. tostring(MAX_STAGE)) .. "."
|
|
639
666
|
)
|
|
640
667
|
return
|
|
641
668
|
end
|
|
642
669
|
Isaac.ExecuteCommand(("stage " .. tostring(stage)) .. stageTypeLetter)
|
|
643
670
|
end
|
|
644
671
|
function ____exports.sacrifice(self)
|
|
645
|
-
warpToRoomType(nil, RoomType.
|
|
672
|
+
warpToRoomType(nil, RoomType.SACRIFICE)
|
|
646
673
|
end
|
|
647
674
|
function ____exports.secret(self)
|
|
648
|
-
warpToRoomType(nil, RoomType.
|
|
675
|
+
warpToRoomType(nil, RoomType.SECRET)
|
|
649
676
|
end
|
|
650
677
|
function ____exports.seedStick(self)
|
|
651
678
|
local seeds = game:GetSeeds()
|
|
@@ -673,10 +700,14 @@ function ____exports.setCharges(self, params)
|
|
|
673
700
|
local activeSlotString, chargeString = table.unpack(args)
|
|
674
701
|
local activeSlot = tonumber(activeSlotString)
|
|
675
702
|
if activeSlot == nil then
|
|
676
|
-
printConsole(
|
|
703
|
+
printConsole(
|
|
704
|
+
nil,
|
|
705
|
+
"The provided slot number is invalid: " .. tostring(activeSlotString)
|
|
706
|
+
)
|
|
677
707
|
return
|
|
678
708
|
end
|
|
679
|
-
|
|
709
|
+
local activeSlots = getEnumValues(nil, ActiveSlot)
|
|
710
|
+
if not __TS__ArrayIncludes(activeSlots, activeSlot) then
|
|
680
711
|
printConsole(
|
|
681
712
|
nil,
|
|
682
713
|
"The provided slot number is invalid: " .. tostring(activeSlot)
|
|
@@ -685,7 +716,10 @@ function ____exports.setCharges(self, params)
|
|
|
685
716
|
end
|
|
686
717
|
local chargeNum = tonumber(chargeString)
|
|
687
718
|
if chargeNum == nil then
|
|
688
|
-
printConsole(
|
|
719
|
+
printConsole(
|
|
720
|
+
nil,
|
|
721
|
+
"The provided charge amount is invalid: " .. tostring(chargeString)
|
|
722
|
+
)
|
|
689
723
|
return
|
|
690
724
|
end
|
|
691
725
|
if chargeNum < 0 then
|
|
@@ -711,12 +745,18 @@ function ____exports.setPosition(self, params)
|
|
|
711
745
|
local xString, yString = table.unpack(args)
|
|
712
746
|
local x = tonumber(xString)
|
|
713
747
|
if x == nil then
|
|
714
|
-
printConsole(
|
|
748
|
+
printConsole(
|
|
749
|
+
nil,
|
|
750
|
+
"That is an invalid x value: " .. tostring(xString)
|
|
751
|
+
)
|
|
715
752
|
return
|
|
716
753
|
end
|
|
717
754
|
local y = tonumber(yString)
|
|
718
755
|
if y == nil then
|
|
719
|
-
printConsole(
|
|
756
|
+
printConsole(
|
|
757
|
+
nil,
|
|
758
|
+
"That is an invalid y value: " .. tostring(yString)
|
|
759
|
+
)
|
|
720
760
|
return
|
|
721
761
|
end
|
|
722
762
|
local player = Isaac.GetPlayer()
|
|
@@ -727,11 +767,11 @@ function ____exports.sh(self, params)
|
|
|
727
767
|
____exports.soulHearts(nil, params)
|
|
728
768
|
end
|
|
729
769
|
function ____exports.shop(self)
|
|
730
|
-
warpToRoomType(nil, RoomType.
|
|
770
|
+
warpToRoomType(nil, RoomType.SHOP)
|
|
731
771
|
end
|
|
732
772
|
function ____exports.smelt(self)
|
|
733
773
|
local player = Isaac.GetPlayer()
|
|
734
|
-
useActiveItemTemp(nil, player, CollectibleType.
|
|
774
|
+
useActiveItemTemp(nil, player, CollectibleType.SMELTER)
|
|
735
775
|
end
|
|
736
776
|
function ____exports.soulCharges(self, params)
|
|
737
777
|
local charges = 1
|
|
@@ -764,7 +804,7 @@ function ____exports.spawnGoldenTrinket(self, params)
|
|
|
764
804
|
printConsole(nil, "That is an invalid trinket type: " .. params)
|
|
765
805
|
return
|
|
766
806
|
end
|
|
767
|
-
local goldenTrinketType = trinketType
|
|
807
|
+
local goldenTrinketType = getGoldenTrinketType(nil, trinketType)
|
|
768
808
|
local room = game:GetRoom()
|
|
769
809
|
local centerPos = room:GetCenterPos()
|
|
770
810
|
spawnTrinket(nil, goldenTrinketType, centerPos)
|
|
@@ -775,24 +815,24 @@ function ____exports.speed(self)
|
|
|
775
815
|
if v.run.maxSpeed and not player.CanFly then
|
|
776
816
|
local numEternalHearts = player:GetEternalHearts()
|
|
777
817
|
if numEternalHearts == 0 then
|
|
778
|
-
player:AddCollectible(CollectibleType.
|
|
818
|
+
player:AddCollectible(CollectibleType.FATE)
|
|
779
819
|
player:AddEternalHearts(-1)
|
|
780
820
|
else
|
|
781
821
|
player:AddEternalHearts(-1)
|
|
782
|
-
player:AddCollectible(CollectibleType.
|
|
822
|
+
player:AddCollectible(CollectibleType.FATE)
|
|
783
823
|
end
|
|
784
824
|
end
|
|
785
|
-
player:AddCacheFlags(CacheFlag.
|
|
825
|
+
player:AddCacheFlags(CacheFlag.SPEED)
|
|
786
826
|
player:EvaluateItems()
|
|
787
827
|
printEnabled(nil, v.run.maxSpeed, "max speed")
|
|
788
828
|
end
|
|
789
829
|
function ____exports.superSecret(self)
|
|
790
|
-
warpToRoomType(nil, RoomType.
|
|
830
|
+
warpToRoomType(nil, RoomType.SUPER_SECRET)
|
|
791
831
|
end
|
|
792
832
|
function ____exports.tears(self)
|
|
793
833
|
v.run.maxTears = not v.run.maxTears
|
|
794
834
|
local player = Isaac.GetPlayer()
|
|
795
|
-
player:AddCacheFlags(CacheFlag.
|
|
835
|
+
player:AddCacheFlags(CacheFlag.FIRE_DELAY)
|
|
796
836
|
player:EvaluateItems()
|
|
797
837
|
printEnabled(nil, v.run.maxDamage, "debug tear-rate")
|
|
798
838
|
end
|
|
@@ -800,10 +840,10 @@ function ____exports.trapdoorCommand(self)
|
|
|
800
840
|
spawnTrapdoorOrCrawlspace(nil, true)
|
|
801
841
|
end
|
|
802
842
|
function ____exports.treasure(self)
|
|
803
|
-
warpToRoomType(nil, RoomType.
|
|
843
|
+
warpToRoomType(nil, RoomType.TREASURE)
|
|
804
844
|
end
|
|
805
845
|
function ____exports.ultraSecret(self)
|
|
806
|
-
warpToRoomType(nil, RoomType.
|
|
846
|
+
warpToRoomType(nil, RoomType.ULTRA_SECRET)
|
|
807
847
|
end
|
|
808
848
|
function ____exports.up(self, params)
|
|
809
849
|
movePlayer(nil, params, Direction.UP)
|
|
@@ -823,7 +863,7 @@ function ____exports.warp(self, params)
|
|
|
823
863
|
end
|
|
824
864
|
roomType = match[2]
|
|
825
865
|
else
|
|
826
|
-
if num < 1 or num
|
|
866
|
+
if num < 1 or num > MAX_ROOM_TYPE then
|
|
827
867
|
printConsole(
|
|
828
868
|
nil,
|
|
829
869
|
"Invalid room type: " .. tostring(num)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Direction, RoomType } from "isaac-typescript-definitions";
|
|
2
2
|
import { HealthType } from "../../enums/HealthType";
|
|
3
3
|
export declare function addHeart(params: string, healthType: HealthType): void;
|
|
4
4
|
export declare function devilAngel(useDevil: boolean): void;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
4
|
+
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
5
|
+
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
3
6
|
local ____cachedClasses = require("cachedClasses")
|
|
4
7
|
local game = ____cachedClasses.game
|
|
5
8
|
local ____HealthType = require("enums.HealthType")
|
|
6
9
|
local HealthType = ____HealthType.HealthType
|
|
10
|
+
local ____direction = require("functions.direction")
|
|
11
|
+
local directionToVector = ____direction.directionToVector
|
|
7
12
|
local ____gridEntity = require("functions.gridEntity")
|
|
8
13
|
local spawnGridWithVariant = ____gridEntity.spawnGridWithVariant
|
|
9
14
|
local ____log = require("functions.log")
|
|
@@ -19,8 +24,6 @@ local changeRoom = ____rooms.changeRoom
|
|
|
19
24
|
local getRoomGridIndexesForType = ____rooms.getRoomGridIndexesForType
|
|
20
25
|
local ____utils = require("functions.utils")
|
|
21
26
|
local printConsole = ____utils.printConsole
|
|
22
|
-
local ____vector = require("functions.vector")
|
|
23
|
-
local directionToVector = ____vector.directionToVector
|
|
24
27
|
local ____roomTypeNames = require("objects.roomTypeNames")
|
|
25
28
|
local DEFAULT_ROOM_TYPE_NAME = ____roomTypeNames.DEFAULT_ROOM_TYPE_NAME
|
|
26
29
|
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
@@ -40,12 +43,12 @@ function ____exports.addHeart(self, params, healthType)
|
|
|
40
43
|
end
|
|
41
44
|
function ____exports.devilAngel(self, useDevil)
|
|
42
45
|
local level = game:GetLevel()
|
|
43
|
-
local devilAngelRoomData = getRoomData(nil,
|
|
46
|
+
local devilAngelRoomData = getRoomData(nil, GridRoom.DEVIL)
|
|
44
47
|
if devilAngelRoomData ~= nil then
|
|
45
48
|
local roomType = devilAngelRoomData.Type
|
|
46
|
-
local conflictingType = useDevil and RoomType.
|
|
49
|
+
local conflictingType = useDevil and RoomType.ANGEL or RoomType.DEVIL
|
|
47
50
|
if roomType == conflictingType then
|
|
48
|
-
local roomDescriptor = getRoomDescriptor(nil,
|
|
51
|
+
local roomDescriptor = getRoomDescriptor(nil, GridRoom.DEVIL)
|
|
49
52
|
roomDescriptor.Data = nil
|
|
50
53
|
end
|
|
51
54
|
end
|
|
@@ -54,7 +57,7 @@ function ____exports.devilAngel(self, useDevil)
|
|
|
54
57
|
else
|
|
55
58
|
level:InitializeDevilAngelRoom(true, false)
|
|
56
59
|
end
|
|
57
|
-
changeRoom(nil,
|
|
60
|
+
changeRoom(nil, GridRoom.DEVIL)
|
|
58
61
|
end
|
|
59
62
|
function ____exports.listEntities(self, params, includeBackgroundEffects)
|
|
60
63
|
local entityTypeFilter
|
|
@@ -100,7 +103,7 @@ function ____exports.spawnTrapdoorOrCrawlspace(self, trapdoor)
|
|
|
100
103
|
local player = Isaac.GetPlayer()
|
|
101
104
|
local position = room:FindFreeTilePosition(player.Position, 0)
|
|
102
105
|
local gridIndex = room:GetGridIndex(position)
|
|
103
|
-
local gridEntityType = trapdoor and GridEntityType.
|
|
106
|
+
local gridEntityType = trapdoor and GridEntityType.TRAPDOOR or GridEntityType.CRAWL_SPACE
|
|
104
107
|
spawnGridWithVariant(nil, gridEntityType, 0, gridIndex)
|
|
105
108
|
end
|
|
106
109
|
function ____exports.warpToRoomType(self, roomType)
|
|
@@ -112,11 +115,11 @@ function ____exports.warpToRoomType(self, roomType)
|
|
|
112
115
|
)
|
|
113
116
|
end
|
|
114
117
|
local gridIndexes = getRoomGridIndexesForType(nil, roomType)
|
|
115
|
-
|
|
118
|
+
local firstGridIndex = gridIndexes[1]
|
|
119
|
+
if firstGridIndex == nil then
|
|
116
120
|
printConsole(nil, ("There are no " .. roomTypeName) .. "s on this floor.")
|
|
117
121
|
return
|
|
118
122
|
end
|
|
119
|
-
local firstGridIndex = gridIndexes[1]
|
|
120
123
|
changeRoom(nil, firstGridIndex)
|
|
121
124
|
printConsole(
|
|
122
125
|
nil,
|
|
@@ -3,6 +3,13 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local featureEnabled, postUpdate, evaluateCacheFireDelay, evaluateCacheSpeed, entityTakeDmgPlayer, postCurseEval, executeCmd, postFireTear, commandFunctionsMap, initialized
|
|
6
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
|
+
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
8
|
+
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
9
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
10
|
+
local LevelCurse = ____isaac_2Dtypescript_2Ddefinitions.LevelCurse
|
|
11
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
12
|
+
local TearVariant = ____isaac_2Dtypescript_2Ddefinitions.TearVariant
|
|
6
13
|
local ____constants = require("constants")
|
|
7
14
|
local MAX_SPEED_STAT = ____constants.MAX_SPEED_STAT
|
|
8
15
|
local ____map = require("functions.map")
|
|
@@ -21,7 +28,7 @@ end
|
|
|
21
28
|
function postUpdate(self)
|
|
22
29
|
if v.run.spamBloodRights then
|
|
23
30
|
local player = Isaac.GetPlayer()
|
|
24
|
-
player:UseActiveItem(CollectibleType.
|
|
31
|
+
player:UseActiveItem(CollectibleType.BLOOD_RIGHTS)
|
|
25
32
|
end
|
|
26
33
|
end
|
|
27
34
|
function evaluateCacheFireDelay(self, player)
|
|
@@ -41,7 +48,7 @@ function entityTakeDmgPlayer(self)
|
|
|
41
48
|
return nil
|
|
42
49
|
end
|
|
43
50
|
function postCurseEval(self, curses)
|
|
44
|
-
return v.persistent.disableCurses and LevelCurse.
|
|
51
|
+
return v.persistent.disableCurses and LevelCurse.NONE or curses
|
|
45
52
|
end
|
|
46
53
|
function executeCmd(self, command, params)
|
|
47
54
|
local resultTuple = getMapPartialMatch(nil, command, commandFunctionsMap)
|
|
@@ -67,13 +74,13 @@ initialized = false
|
|
|
67
74
|
function ____exports.enableExtraConsoleCommands(self, mod)
|
|
68
75
|
initialized = true
|
|
69
76
|
saveDataManager(nil, "extraConsoleCommands", v, featureEnabled)
|
|
70
|
-
mod:AddCallback(
|
|
71
|
-
mod:AddCallback(
|
|
72
|
-
mod:AddCallback(
|
|
73
|
-
mod:AddCallback(
|
|
74
|
-
mod:AddCallback(
|
|
75
|
-
mod:AddCallback(
|
|
76
|
-
mod:AddCallback(
|
|
77
|
+
mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
|
|
78
|
+
mod:AddCallback(ModCallback.EVALUATE_CACHE, evaluateCacheFireDelay, CacheFlag.FIRE_DELAY)
|
|
79
|
+
mod:AddCallback(ModCallback.EVALUATE_CACHE, evaluateCacheSpeed, CacheFlag.SPEED)
|
|
80
|
+
mod:AddCallback(ModCallback.ENTITY_TAKE_DMG, entityTakeDmgPlayer, EntityType.PLAYER)
|
|
81
|
+
mod:AddCallback(ModCallback.POST_CURSE_EVAL, postCurseEval)
|
|
82
|
+
mod:AddCallback(ModCallback.EXECUTE_CMD, executeCmd)
|
|
83
|
+
mod:AddCallback(ModCallback.POST_FIRE_TEAR, postFireTear)
|
|
77
84
|
end
|
|
78
85
|
function ____exports.addConsoleCommand(self, commandName, commandFunction)
|
|
79
86
|
if not initialized then
|
|
@@ -93,6 +100,7 @@ function ____exports.removeConsoleCommand(self, commandName)
|
|
|
93
100
|
end
|
|
94
101
|
commandFunctionsMap:delete(commandName)
|
|
95
102
|
end
|
|
103
|
+
commandFunctionsMap:set("1hp", commands.oneHP)
|
|
96
104
|
commandFunctionsMap:set("addcharges", commands.addCharges)
|
|
97
105
|
commandFunctionsMap:set("angel", commands.angel)
|
|
98
106
|
commandFunctionsMap:set("ascent", commands.ascent)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local postRender, shouldRemoveFadeIn, FADE_IN_SPEED, enabled, v
|
|
3
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
4
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
4
5
|
local ____cachedClasses = require("cachedClasses")
|
|
5
6
|
local game = ____cachedClasses.game
|
|
6
7
|
local ____featuresInitialized = require("featuresInitialized")
|
|
@@ -31,7 +32,7 @@ function ____exports.fadeInRemoverInit(self, mod)
|
|
|
31
32
|
v,
|
|
32
33
|
function() return false end
|
|
33
34
|
)
|
|
34
|
-
mod:AddCallback(
|
|
35
|
+
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
35
36
|
end
|
|
36
37
|
function ____exports.removeFadeIn(self)
|
|
37
38
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|