isaacscript-common 2.3.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cachedClasses.d.ts +6 -4
- package/cachedClasses.lua +24 -0
- package/callbacks/customRevive.lua +2 -0
- package/callbacks/itemPickup.lua +2 -0
- package/callbacks/postBombInitLate.lua +2 -0
- package/callbacks/postBoneSwing.lua +2 -0
- package/callbacks/postCollectibleInitFirst.lua +2 -0
- package/callbacks/postCursedTeleport.lua +2 -0
- package/callbacks/postCustomDoorEnter.lua +44 -0
- package/callbacks/postDoorRender.lua +2 -0
- package/callbacks/postDoorUpdate.lua +2 -0
- package/callbacks/postEffectInitLate.lua +2 -0
- package/callbacks/postEffectStateChanged.lua +2 -0
- package/callbacks/postEsauJr.lua +2 -0
- package/callbacks/postFamiliarInitLate.lua +2 -0
- package/callbacks/postFamiliarStateChanged.lua +2 -0
- package/callbacks/postFlip.lua +2 -0
- package/callbacks/postGreedModeWave.lua +2 -0
- package/callbacks/postGridEntity.lua +2 -0
- package/callbacks/postGridEntityCollision.lua +2 -0
- package/callbacks/postGridEntityRender.lua +2 -0
- package/callbacks/postHolyMantleRemoved.lua +2 -0
- package/callbacks/postKnifeInitLate.lua +2 -0
- package/callbacks/postLaserInitLate.lua +2 -0
- package/callbacks/postNPCInitLate.lua +2 -0
- package/callbacks/postNPCStateChanged.lua +2 -0
- package/callbacks/postNewRoomEarly.lua +2 -0
- package/callbacks/postPickupCollect.lua +2 -0
- package/callbacks/postPickupInitLate.lua +2 -0
- package/callbacks/postPickupStateChanged.lua +2 -0
- package/callbacks/postPitRender.lua +2 -0
- package/callbacks/postPitUpdate.lua +2 -0
- package/callbacks/postPlayerChangeHealth.lua +2 -0
- package/callbacks/postPlayerChangeType.lua +2 -0
- package/callbacks/postPlayerFatalDamage.lua +2 -0
- package/callbacks/postPlayerInitLate.lua +2 -0
- package/callbacks/postPlayerReordered.lua +2 -0
- package/callbacks/postPoopRender.lua +2 -0
- package/callbacks/postPoopUpdate.lua +2 -0
- package/callbacks/postPressurePlateRender.lua +2 -0
- package/callbacks/postPressurePlateUpdate.lua +2 -0
- package/callbacks/postProjectileInitLate.lua +2 -0
- package/callbacks/postPurchase.lua +2 -0
- package/callbacks/postRockRender.lua +2 -0
- package/callbacks/postRockUpdate.lua +2 -0
- package/callbacks/postRoomClearChanged.lua +2 -0
- package/callbacks/postSacrifice.lua +2 -0
- package/callbacks/postSlotDestroyed.d.ts +1 -0
- package/callbacks/postSlotDestroyed.lua +66 -0
- package/callbacks/postSlotInitUpdate.lua +2 -0
- package/callbacks/postSlotRender.lua +5 -21
- package/callbacks/postSpikesRender.lua +2 -0
- package/callbacks/postSpikesUpdate.lua +2 -0
- package/callbacks/postTNTRender.lua +2 -0
- package/callbacks/postTNTUpdate.lua +2 -0
- package/callbacks/postTearInitLate.lua +2 -0
- package/callbacks/postTearInitVeryLate.lua +2 -0
- package/callbacks/postTransformation.lua +2 -0
- package/callbacks/postTrinketBreak.lua +2 -0
- package/callbacks/preBerserkDeath.lua +2 -0
- package/callbacks/preNewLevel.lua +2 -0
- package/callbacks/reorderedCallbacks.lua +16 -0
- package/callbacks/subscriptions/postBombInitLate.lua +6 -0
- package/callbacks/subscriptions/postBoneSwing.lua +6 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
- package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
- package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
- package/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
- package/callbacks/subscriptions/postCustomRevive.lua +6 -0
- package/callbacks/subscriptions/postDoorRender.d.ts +1 -0
- package/callbacks/subscriptions/postDoorRender.lua +6 -0
- package/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
- package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
- package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
- package/callbacks/subscriptions/postEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
- package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFirstFlip.lua +6 -0
- package/callbacks/subscriptions/postFlip.lua +6 -0
- package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
- package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
- package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
- package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
- package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
- package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
- package/callbacks/subscriptions/postItemDischarged.lua +6 -0
- package/callbacks/subscriptions/postItemPickup.lua +6 -0
- package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
- package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
- package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
- package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
- package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
- package/callbacks/subscriptions/postPickupCollect.lua +6 -0
- package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
- package/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
- package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
- package/callbacks/subscriptions/postPitRender.d.ts +1 -0
- package/callbacks/subscriptions/postPitRender.lua +6 -0
- package/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPitUpdate.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPoopRender.d.ts +1 -0
- package/callbacks/subscriptions/postPoopRender.lua +6 -0
- package/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
- package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
- package/callbacks/subscriptions/postPurchase.lua +6 -0
- package/callbacks/subscriptions/postRockRender.d.ts +1 -0
- package/callbacks/subscriptions/postRockRender.lua +6 -0
- package/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postRockUpdate.lua +6 -0
- package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
- package/callbacks/subscriptions/postSacrifice.lua +6 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
- package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
- package/callbacks/subscriptions/postSlotInit.lua +6 -0
- package/callbacks/subscriptions/postSlotRender.lua +6 -0
- package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
- package/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesRender.lua +6 -0
- package/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
- package/callbacks/subscriptions/postTNTRender.d.ts +1 -0
- package/callbacks/subscriptions/postTNTRender.lua +6 -0
- package/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
- package/callbacks/subscriptions/postTearInitLate.lua +6 -0
- package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
- package/callbacks/subscriptions/postTransformation.lua +6 -0
- package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
- package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
- package/callbacks/subscriptions/preCustomRevive.lua +6 -0
- package/callbacks/subscriptions/preItemPickup.lua +6 -0
- package/callbacks/subscriptions/preNewLevel.lua +6 -0
- package/classes/DefaultMap.d.ts +70 -39
- package/classes/DefaultMap.lua +94 -43
- package/classes/ModUpgraded.d.ts +3 -3
- package/classes/ModUpgraded.lua +5 -0
- package/constants.lua +41 -0
- package/constantsFirstLast.lua +63 -0
- package/enums/HealthType.lua +3 -0
- package/enums/ModCallbackCustom.d.ts +1 -1
- package/enums/ModCallbackCustom.lua +6 -0
- package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
- package/enums/private/SerializationBrand.lua +5 -0
- package/features/characterHealthConversion.lua +6 -0
- package/features/characterStats.lua +17 -0
- package/features/debugDisplay/exports.d.ts +17 -0
- package/features/debugDisplay/exports.lua +90 -0
- package/features/debugDisplay/v.d.ts +17 -0
- package/features/deployJSONRoom.d.ts +1 -0
- package/features/deployJSONRoom.lua +56 -0
- package/features/disableInputs.lua +45 -0
- package/features/disableSound.lua +14 -0
- package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
- package/features/extraConsoleCommands/init.lua +16 -0
- package/features/extraConsoleCommands/listCommands.lua +172 -0
- package/features/fadeInRemover.lua +10 -0
- package/features/fastReset.lua +10 -0
- package/features/forgottenSwitch.lua +4 -0
- package/features/getCollectibleItemPoolType.lua +5 -0
- package/features/playerInventory.lua +18 -0
- package/features/ponyDetection.lua +4 -0
- package/features/preventCollectibleRotation.lua +9 -0
- package/features/runInNFrames.lua +50 -0
- package/features/saveDataManager/constants.lua +1 -0
- package/features/saveDataManager/exports.lua +115 -0
- package/features/saveDataManager/load.lua +12 -8
- package/features/saveDataManager/main.lua +16 -3
- package/features/saveDataManager/maps.lua +3 -0
- package/features/saveDataManager/merge.lua +53 -21
- package/features/saveDataManager/save.lua +12 -7
- package/features/sirenHelpers.lua +13 -0
- package/features/taintedLazarusPlayers.lua +11 -0
- package/featuresInitialized.lua +6 -0
- package/functions/array.d.ts +2 -0
- package/functions/array.lua +85 -0
- package/functions/benchmark.lua +6 -0
- package/functions/boss.lua +35 -0
- package/functions/cacheFlag.lua +4 -0
- package/functions/cards.lua +60 -0
- package/functions/challenges.lua +1 -0
- package/functions/character.lua +23 -0
- package/functions/charge.lua +39 -0
- package/functions/chargeBar.d.ts +1 -0
- package/functions/chargeBar.lua +4 -0
- package/functions/collectibleCacheFlag.lua +15 -0
- package/functions/collectibleSet.lua +3 -0
- package/functions/collectibleTag.lua +9 -0
- package/functions/collectibles.d.ts +6 -1
- package/functions/collectibles.lua +146 -2
- package/functions/color.lua +18 -0
- package/functions/debug.lua +18 -0
- package/functions/deepCopy.lua +60 -26
- package/functions/deepCopyTests.lua +8 -5
- package/functions/direction.d.ts +1 -0
- package/functions/direction.lua +22 -0
- package/functions/doors.d.ts +1 -0
- package/functions/doors.lua +58 -0
- package/functions/entity.d.ts +4 -4
- package/functions/entity.lua +94 -6
- package/functions/entitySpecific.d.ts +20 -20
- package/functions/entitySpecific.lua +182 -0
- package/functions/entityTypes.d.ts +1 -1
- package/functions/entityTypes.lua +1 -0
- package/functions/enums.d.ts +2 -0
- package/functions/enums.lua +62 -0
- package/functions/familiars.lua +52 -0
- package/functions/flag.lua +77 -0
- package/functions/flying.lua +10 -0
- package/functions/globals.lua +8 -10
- package/functions/gridEntity.lua +105 -0
- package/functions/gridEntitySpecific.d.ts +5 -0
- package/functions/gridEntitySpecific.lua +8 -0
- package/functions/input.lua +11 -0
- package/functions/isaacAPIClass.d.ts +4 -4
- package/functions/isaacAPIClass.lua +15 -3
- package/functions/jsonHelpers.lua +11 -0
- package/functions/jsonRoom.d.ts +2 -0
- package/functions/jsonRoom.lua +5 -0
- package/functions/kColor.lua +9 -0
- package/functions/language.lua +5 -0
- package/functions/log.lua +31 -3
- package/functions/map.lua +18 -0
- package/functions/math.lua +26 -0
- package/functions/npc.lua +24 -0
- package/functions/pickupVariants.d.ts +11 -11
- package/functions/pickupVariants.lua +11 -0
- package/functions/pickups.d.ts +9 -9
- package/functions/pickups.lua +67 -0
- package/functions/pills.lua +45 -0
- package/functions/player.lua +166 -0
- package/functions/playerDataStructures.lua +65 -0
- package/functions/playerHealth.d.ts +1 -0
- package/functions/playerHealth.lua +10 -0
- package/functions/playerIndex.d.ts +2 -0
- package/functions/playerIndex.lua +47 -0
- package/functions/pocketItems.lua +18 -0
- package/functions/positionVelocity.d.ts +3 -0
- package/functions/positionVelocity.lua +46 -0
- package/functions/random.d.ts +2 -0
- package/functions/random.lua +32 -0
- package/functions/revive.d.ts +2 -0
- package/functions/revive.lua +15 -0
- package/functions/rng.d.ts +1 -0
- package/functions/rng.lua +19 -0
- package/functions/roomData.lua +68 -0
- package/functions/roomGrid.lua +21 -0
- package/functions/roomShape.lua +22 -0
- package/functions/rooms.lua +100 -0
- package/functions/run.lua +5 -0
- package/functions/seeds.lua +4 -0
- package/functions/serialization.lua +6 -2
- package/functions/set.d.ts +1 -0
- package/functions/set.lua +22 -0
- package/functions/spawnCollectible.lua +24 -0
- package/functions/sprite.d.ts +2 -0
- package/functions/sprite.lua +25 -0
- package/functions/stage.lua +16 -0
- package/functions/string.lua +6 -0
- package/functions/table.d.ts +12 -0
- package/functions/table.lua +53 -0
- package/functions/tears.d.ts +1 -0
- package/functions/tears.lua +12 -0
- package/functions/transformations.lua +18 -0
- package/functions/trinketCacheFlag.lua +3 -0
- package/functions/trinketGive.lua +24 -0
- package/functions/trinkets.lua +52 -0
- package/functions/tstlClass.d.ts +34 -0
- package/functions/tstlClass.lua +63 -9
- package/functions/ui.d.ts +2 -0
- package/functions/ui.lua +16 -0
- package/functions/utils.d.ts +16 -0
- package/functions/utils.lua +108 -0
- package/functions/vector.lua +13 -16
- package/index.d.ts +1 -0
- package/initCustomCallbacks.lua +3 -0
- package/interfaces/ChargeBarSprites.d.ts +1 -0
- package/interfaces/private/TSTLClassMetatable.d.ts +2 -0
- package/lualib_bundle.lua +21 -34
- package/maps/cardMap.lua +1 -0
- package/maps/characterMap.lua +1 -0
- package/maps/defaultPlayerStatMap.lua +1 -0
- package/maps/gridEntityXMLMap.lua +2 -0
- package/maps/pillEffectMap.lua +1 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
- package/maps/roomTypeMap.lua +1 -0
- package/objects/LRoomShapeToRectangles.lua +2 -0
- package/objects/colors.lua +4 -0
- package/objects/oppositeDoorSlots.d.ts +4 -0
- package/objects/oppositeDoorSlots.lua +15 -0
- package/objects/roomShapeBounds.lua +2 -0
- package/objects/roomShapeLayoutSizes.lua +4 -0
- package/objects/roomShapeToBottomRightPosition.lua +2 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
- package/objects/roomShapeToTopLeftPosition.lua +2 -0
- package/objects/roomShapeVolumes.lua +3 -0
- package/package.json +2 -2
- package/patchErrorFunctions.lua +8 -0
- package/sets/bossSets.lua +23 -0
- package/sets/charactersWithNoRedHeartsSet.lua +2 -0
- package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
- package/sets/lostStyleCharactersSet.lua +2 -0
- package/types/AnyEntity.d.ts +10 -0
- package/types/PickingUpItem.lua +7 -0
- package/upgradeMod.d.ts +4 -4
- package/upgradeMod.lua +18 -0
|
@@ -4,128 +4,218 @@ local printEnabled = ____utils.printEnabled
|
|
|
4
4
|
local ____v = require("features.debugDisplay.v")
|
|
5
5
|
local v = ____v.default
|
|
6
6
|
local debugDisplayTextCallbacks = ____v.debugDisplayTextCallbacks
|
|
7
|
+
--- After using the "playerDisplay" console command, text will be drawn on each player for debugging
|
|
8
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
9
|
+
-- should be drawn.
|
|
7
10
|
function ____exports.setPlayerDisplay(self, textCallback)
|
|
8
11
|
debugDisplayTextCallbacks.player = textCallback
|
|
9
12
|
end
|
|
13
|
+
--- After using the "tearDisplay" console command, text will be drawn on each tear for debugging
|
|
14
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
15
|
+
-- should be drawn.
|
|
10
16
|
function ____exports.setTearDisplay(self, textCallback)
|
|
11
17
|
debugDisplayTextCallbacks.tear = textCallback
|
|
12
18
|
end
|
|
19
|
+
--- After using the "familiarDisplay" console command, text will be drawn on each familiar for
|
|
20
|
+
-- debugging purposes. Use this function to specify a callback function that will returns the string
|
|
21
|
+
-- that should be drawn.
|
|
13
22
|
function ____exports.setFamiliarDisplay(self, textCallback)
|
|
14
23
|
debugDisplayTextCallbacks.familiar = textCallback
|
|
15
24
|
end
|
|
25
|
+
--- After using the "bombDisplay" console command, text will be drawn on each bomb for debugging
|
|
26
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
27
|
+
-- should be drawn.
|
|
16
28
|
function ____exports.setBombDisplay(self, textCallback)
|
|
17
29
|
debugDisplayTextCallbacks.bomb = textCallback
|
|
18
30
|
end
|
|
31
|
+
--- After using the "pickupDisplay" console command, text will be drawn on each pickup for debugging
|
|
32
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
33
|
+
-- should be drawn.
|
|
19
34
|
function ____exports.setPickupDisplay(self, textCallback)
|
|
20
35
|
debugDisplayTextCallbacks.pickup = textCallback
|
|
21
36
|
end
|
|
37
|
+
--- After using the "slotDisplay" console command, text will be drawn on each slot for debugging
|
|
38
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
39
|
+
-- should be drawn.
|
|
22
40
|
function ____exports.setSlotDisplay(self, textCallback)
|
|
23
41
|
debugDisplayTextCallbacks.slot = textCallback
|
|
24
42
|
end
|
|
43
|
+
--- After using the "laserDisplay" console command, text will be drawn on each laser for debugging
|
|
44
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
45
|
+
-- should be drawn.
|
|
25
46
|
function ____exports.setLaserDisplay(self, textCallback)
|
|
26
47
|
debugDisplayTextCallbacks.laser = textCallback
|
|
27
48
|
end
|
|
49
|
+
--- After using the "knifeDisplay" console command, text will be drawn on each knife for debugging
|
|
50
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
51
|
+
-- should be drawn.
|
|
28
52
|
function ____exports.setKnifeDisplay(self, textCallback)
|
|
29
53
|
debugDisplayTextCallbacks.knife = textCallback
|
|
30
54
|
end
|
|
55
|
+
--- After using the "projectileDisplay" console command, text will be drawn on each projectile for
|
|
56
|
+
-- debugging purposes. Use this function to specify a callback function that will returns the string
|
|
57
|
+
-- that should be drawn.
|
|
31
58
|
function ____exports.setProjectileDisplay(self, textCallback)
|
|
32
59
|
debugDisplayTextCallbacks.projectile = textCallback
|
|
33
60
|
end
|
|
61
|
+
--- After using the "effectDisplay" console command, text will be drawn on each effect for debugging
|
|
62
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
63
|
+
-- should be drawn.
|
|
34
64
|
function ____exports.setEffectDisplay(self, textCallback)
|
|
35
65
|
debugDisplayTextCallbacks.effect = textCallback
|
|
36
66
|
end
|
|
67
|
+
--- After using the "npcDisplay" console command, text will be drawn on each NPC for debugging
|
|
68
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
69
|
+
-- should be drawn.
|
|
37
70
|
function ____exports.setNPCDisplay(self, textCallback)
|
|
38
71
|
debugDisplayTextCallbacks.npc = textCallback
|
|
39
72
|
end
|
|
73
|
+
--- After using the "rockDisplay" console command, text will be drawn on each rock for debugging
|
|
74
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
75
|
+
-- should be drawn.
|
|
40
76
|
function ____exports.setRockDisplay(self, textCallback)
|
|
41
77
|
debugDisplayTextCallbacks.rock = textCallback
|
|
42
78
|
end
|
|
79
|
+
--- After using the "pitDisplay" console command, text will be drawn on each pit for debugging
|
|
80
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
81
|
+
-- should be drawn.
|
|
43
82
|
function ____exports.setPitDisplay(self, textCallback)
|
|
44
83
|
debugDisplayTextCallbacks.pit = textCallback
|
|
45
84
|
end
|
|
85
|
+
--- After using the "spikesDisplay" console command, text will be drawn on each spikes for debugging
|
|
86
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
87
|
+
-- should be drawn.
|
|
46
88
|
function ____exports.setSpikesDisplay(self, textCallback)
|
|
47
89
|
debugDisplayTextCallbacks.spikes = textCallback
|
|
48
90
|
end
|
|
91
|
+
--- After using the "tntDisplay" console command, text will be drawn on each TNT for debugging
|
|
92
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
93
|
+
-- should be drawn.
|
|
49
94
|
function ____exports.setTNTDisplay(self, textCallback)
|
|
50
95
|
debugDisplayTextCallbacks.tnt = textCallback
|
|
51
96
|
end
|
|
97
|
+
--- After using the "poopDisplay" console command, text will be drawn on each poop for debugging
|
|
98
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
99
|
+
-- should be drawn.
|
|
52
100
|
function ____exports.setPoopDisplay(self, textCallback)
|
|
53
101
|
debugDisplayTextCallbacks.poop = textCallback
|
|
54
102
|
end
|
|
103
|
+
--- After using the "poopDisplay" console command, text will be drawn on each poop for debugging
|
|
104
|
+
-- purposes. Use this function to specify a callback function that will returns the string that
|
|
105
|
+
-- should be drawn.
|
|
55
106
|
function ____exports.setDoorDisplay(self, textCallback)
|
|
56
107
|
debugDisplayTextCallbacks.door = textCallback
|
|
57
108
|
end
|
|
109
|
+
--- After using the "pressurePlateDisplay" console command, text will be drawn on each pressure plate
|
|
110
|
+
-- for debugging purposes. Use this function to specify a callback function that will returns the
|
|
111
|
+
-- string that should be drawn.
|
|
58
112
|
function ____exports.setPressurePlateDisplay(self, textCallback)
|
|
59
113
|
debugDisplayTextCallbacks.pressurePlate = textCallback
|
|
60
114
|
end
|
|
115
|
+
--- Toggles the debug display for players. This is the function that runs when you use the
|
|
116
|
+
-- "playerDisplay" custom console command.
|
|
61
117
|
function ____exports.togglePlayerDisplay(self)
|
|
62
118
|
v.run.player = not v.run.player
|
|
63
119
|
printEnabled(nil, v.run.player, "player display")
|
|
64
120
|
end
|
|
121
|
+
--- Toggles the debug display for tears. This is the function that runs when you use the
|
|
122
|
+
-- "tearDisplay" custom console command.
|
|
65
123
|
function ____exports.toggleTearDisplay(self)
|
|
66
124
|
v.run.tear = not v.run.tear
|
|
67
125
|
printEnabled(nil, v.run.tear, "tear display")
|
|
68
126
|
end
|
|
127
|
+
--- Toggles the debug display for familiars. This is the function that runs when you use the
|
|
128
|
+
-- "familiarDisplay" custom console command.
|
|
69
129
|
function ____exports.toggleFamiliarDisplay(self)
|
|
70
130
|
v.run.familiar = not v.run.familiar
|
|
71
131
|
printEnabled(nil, v.run.familiar, "familiar display")
|
|
72
132
|
end
|
|
133
|
+
--- Toggles the debug display for bombs. This is the function that runs when you use the
|
|
134
|
+
-- "bombDisplay" custom console command.
|
|
73
135
|
function ____exports.toggleBombDisplay(self)
|
|
74
136
|
v.run.bomb = not v.run.bomb
|
|
75
137
|
printEnabled(nil, v.run.bomb, "bomb display")
|
|
76
138
|
end
|
|
139
|
+
--- Toggles the debug display for pickups. This is the function that runs when you use the
|
|
140
|
+
-- "pickupDisplay" custom console command.
|
|
77
141
|
function ____exports.togglePickupDisplay(self)
|
|
78
142
|
v.run.pickup = not v.run.pickup
|
|
79
143
|
printEnabled(nil, v.run.pickup, "pickup display")
|
|
80
144
|
end
|
|
145
|
+
--- Toggles the debug display for slots. This is the function that runs when you use the
|
|
146
|
+
-- "slotDisplay" custom console command.
|
|
81
147
|
function ____exports.toggleSlotDisplay(self)
|
|
82
148
|
v.run.slot = not v.run.slot
|
|
83
149
|
printEnabled(nil, v.run.slot, "slot display")
|
|
84
150
|
end
|
|
151
|
+
--- Toggles the debug display for lasers. This is the function that runs when you use the
|
|
152
|
+
-- "laserDisplay" custom console command.
|
|
85
153
|
function ____exports.toggleLaserDisplay(self)
|
|
86
154
|
v.run.laser = not v.run.laser
|
|
87
155
|
printEnabled(nil, v.run.laser, "laser display")
|
|
88
156
|
end
|
|
157
|
+
--- Toggles the debug display for knives. This is the function that runs when you use the
|
|
158
|
+
-- "knifeDisplay" custom console command.
|
|
89
159
|
function ____exports.toggleKnifeDisplay(self)
|
|
90
160
|
v.run.knife = not v.run.knife
|
|
91
161
|
printEnabled(nil, v.run.knife, "knife display")
|
|
92
162
|
end
|
|
163
|
+
--- Toggles the debug display for projectiles. This is the function that runs when you use the
|
|
164
|
+
-- "projectileDisplay" custom console command.
|
|
93
165
|
function ____exports.toggleProjectileDisplay(self)
|
|
94
166
|
v.run.projectile = not v.run.projectile
|
|
95
167
|
printEnabled(nil, v.run.projectile, "projectile display")
|
|
96
168
|
end
|
|
169
|
+
--- Toggles the debug display for effects. This is the function that runs when you use the
|
|
170
|
+
-- "effectDisplay" custom console command.
|
|
97
171
|
function ____exports.toggleEffectDisplay(self)
|
|
98
172
|
v.run.effect = not v.run.effect
|
|
99
173
|
printEnabled(nil, v.run.effect, "effect display")
|
|
100
174
|
end
|
|
175
|
+
--- Toggles the debug display for NPCs. This is the function that runs when you use the "npcDisplay"
|
|
176
|
+
-- custom console command.
|
|
101
177
|
function ____exports.toggleNPCDisplay(self)
|
|
102
178
|
v.run.npc = not v.run.npc
|
|
103
179
|
printEnabled(nil, v.run.npc, "NPC display")
|
|
104
180
|
end
|
|
181
|
+
--- Toggles the debug display for rocks. This is the function that runs when you use the
|
|
182
|
+
-- "rockDisplay" custom console command.
|
|
105
183
|
function ____exports.toggleRockDisplay(self)
|
|
106
184
|
v.run.rock = not v.run.rock
|
|
107
185
|
printEnabled(nil, v.run.rock, "rock display")
|
|
108
186
|
end
|
|
187
|
+
--- Toggles the debug display for pits. This is the function that runs when you use the "pitDisplay"
|
|
188
|
+
-- custom console command.
|
|
109
189
|
function ____exports.togglePitDisplay(self)
|
|
110
190
|
v.run.pit = not v.run.pit
|
|
111
191
|
printEnabled(nil, v.run.pit, "pit display")
|
|
112
192
|
end
|
|
193
|
+
--- Toggles the debug display for spikes. This is the function that runs when you use the
|
|
194
|
+
-- "spikesDisplay" custom console command.
|
|
113
195
|
function ____exports.toggleSpikesDisplay(self)
|
|
114
196
|
v.run.spikes = not v.run.spikes
|
|
115
197
|
printEnabled(nil, v.run.spikes, "spikes display")
|
|
116
198
|
end
|
|
199
|
+
--- Toggles the debug display for TNT. This is the function that runs when you use the "tntDisplay"
|
|
200
|
+
-- custom console command.
|
|
117
201
|
function ____exports.toggleTNTDisplay(self)
|
|
118
202
|
v.run.tnt = not v.run.tnt
|
|
119
203
|
printEnabled(nil, v.run.tnt, "TNT display")
|
|
120
204
|
end
|
|
205
|
+
--- Toggles the debug display for poop. This is the function that runs when you use the "poopDisplay"
|
|
206
|
+
-- custom console command.
|
|
121
207
|
function ____exports.togglePoopDisplay(self)
|
|
122
208
|
v.run.poop = not v.run.poop
|
|
123
209
|
printEnabled(nil, v.run.poop, "poop display")
|
|
124
210
|
end
|
|
211
|
+
--- Toggles the debug display for doors. This is the function that runs when you use the
|
|
212
|
+
-- "doorDisplay" custom console command.
|
|
125
213
|
function ____exports.toggleDoorDisplay(self)
|
|
126
214
|
v.run.door = not v.run.door
|
|
127
215
|
printEnabled(nil, v.run.door, "door display")
|
|
128
216
|
end
|
|
217
|
+
--- Toggles the debug display for pressure plates. This is the function that runs when you use the
|
|
218
|
+
-- "pressurePlateDisplay" custom console command.
|
|
129
219
|
function ____exports.togglePressurePlateDisplay(self)
|
|
130
220
|
v.run.pressurePlate = not v.run.pressurePlate
|
|
131
221
|
printEnabled(nil, v.run.pressurePlate, "pressure plate display")
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
3
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
4
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
5
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
6
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
7
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
8
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
9
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
10
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
11
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
12
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
13
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
14
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
15
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
16
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
17
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
18
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
2
19
|
declare const v: {
|
|
3
20
|
run: {
|
|
4
21
|
player: boolean;
|
|
@@ -94,6 +94,14 @@ function respawnPersistentEntities(self)
|
|
|
94
94
|
)
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
|
+
--- Helper function to remove all naturally spawning entities and grid entities from a room. Notably,
|
|
98
|
+
-- this will not remove players (1), tears (2), familiars (3), lasers (7), knives (8), projectiles
|
|
99
|
+
-- (9), blacklisted NPCs such as Dark Esau, charmed NPCs, friendly NPCs, persistent NPCs, most
|
|
100
|
+
-- effects (1000), doors, and walls.
|
|
101
|
+
--
|
|
102
|
+
-- @param fillWithDecorations Optional. Set to true to fill every grid tile with an invisible
|
|
103
|
+
-- decoration, which prevents vanilla entities in the room from
|
|
104
|
+
-- respawning the next time that the player enters. Default is false.
|
|
97
105
|
function ____exports.emptyRoom(self, fillWithDecorations)
|
|
98
106
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
99
107
|
local roomListIndex = getRoomListIndex(nil)
|
|
@@ -415,10 +423,33 @@ v = {level = {
|
|
|
415
423
|
function() return {} end
|
|
416
424
|
)
|
|
417
425
|
}}
|
|
426
|
+
---
|
|
427
|
+
-- @internal
|
|
418
428
|
function ____exports.deployJSONRoomInit(self, mod)
|
|
419
429
|
saveDataManager(nil, "deployJSONRoom", v)
|
|
420
430
|
mod:AddCallback(ModCallback.POST_NEW_ROOM, postNewRoom)
|
|
421
431
|
end
|
|
432
|
+
--- Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
433
|
+
-- Specifically, this will clear the current room of all entities and grid entities, and then spawn
|
|
434
|
+
-- all of the entries and grid entities in the provided JSON room.
|
|
435
|
+
--
|
|
436
|
+
-- This function is meant to be used in the PostNewRoom callback.
|
|
437
|
+
--
|
|
438
|
+
-- For example:
|
|
439
|
+
--
|
|
440
|
+
-- ```ts
|
|
441
|
+
--
|
|
442
|
+
-- import customRooms from "./customRooms";
|
|
443
|
+
--
|
|
444
|
+
-- const firstJSONRoom = customRooms.rooms.room[0];
|
|
445
|
+
-- deployJSONRoom(firstJSONRoom);
|
|
446
|
+
-- ```
|
|
447
|
+
--
|
|
448
|
+
-- @param jsonRoom The JSON room to deploy. *
|
|
449
|
+
-- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
450
|
+
-- `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
451
|
+
-- @param verbose Optional. If specified, will write entries to the "log.txt" file that describe
|
|
452
|
+
-- what the function is doing. Default is false.
|
|
422
453
|
function ____exports.deployJSONRoom(self, jsonRoom, seedOrRNG, verbose)
|
|
423
454
|
if seedOrRNG == nil then
|
|
424
455
|
seedOrRNG = getRandomSeed(nil)
|
|
@@ -445,6 +476,31 @@ function ____exports.deployJSONRoom(self, jsonRoom, seedOrRNG, verbose)
|
|
|
445
476
|
fixPitGraphics(nil)
|
|
446
477
|
fillRoomWithDecorations(nil)
|
|
447
478
|
end
|
|
479
|
+
--- Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
480
|
+
-- Specifically, this will clear the current room of all entities and grid entities, and then spawn
|
|
481
|
+
-- all of the entries and grid entities in one of the provided JSON rooms.
|
|
482
|
+
--
|
|
483
|
+
-- This function is meant to be used in the PostNewRoom callback.
|
|
484
|
+
--
|
|
485
|
+
-- Note that this function does not simply choose a random element in the provided array; it will
|
|
486
|
+
-- properly account for each room weight using the algorithm from:
|
|
487
|
+
-- https://stackoverflow.com/questions/1761626/weighted-random-numbers
|
|
488
|
+
--
|
|
489
|
+
-- For example:
|
|
490
|
+
--
|
|
491
|
+
-- ```ts
|
|
492
|
+
-- import customRooms from "./customRooms";
|
|
493
|
+
--
|
|
494
|
+
-- const jsonRooms = customRooms.rooms.room;
|
|
495
|
+
-- deployRandomJSONRoom(jsonRooms);
|
|
496
|
+
-- ```
|
|
497
|
+
--
|
|
498
|
+
-- @param jsonRooms An array of JSON rooms to randomly select from. In practice, this will be
|
|
499
|
+
-- something like.
|
|
500
|
+
-- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
501
|
+
-- `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
502
|
+
-- @param verbose Optional. If specified, will write entries to the "log.txt" file that describe
|
|
503
|
+
-- what the function is doing. Default is false.
|
|
448
504
|
function ____exports.deployRandomJSONRoom(self, jsonRooms, seedOrRNG, verbose)
|
|
449
505
|
if seedOrRNG == nil then
|
|
450
506
|
seedOrRNG = getRandomSeed(nil)
|
|
@@ -49,17 +49,31 @@ v = {run = {
|
|
|
49
49
|
disableInputsWithWhitelistMap = __TS__New(Map),
|
|
50
50
|
enableInputsWithBlacklistMap = __TS__New(Map)
|
|
51
51
|
}}
|
|
52
|
+
---
|
|
53
|
+
-- @internal
|
|
52
54
|
function ____exports.disableInputsInit(self, mod)
|
|
53
55
|
saveDataManager(nil, "disableInputs", v)
|
|
54
56
|
mod:AddCallback(ModCallback.INPUT_ACTION, isActionPressed, InputHook.IS_ACTION_PRESSED)
|
|
55
57
|
mod:AddCallback(ModCallback.INPUT_ACTION, isActionTriggered, InputHook.IS_ACTION_TRIGGERED)
|
|
56
58
|
mod:AddCallback(ModCallback.INPUT_ACTION, getActionValue, InputHook.GET_ACTION_VALUE)
|
|
57
59
|
end
|
|
60
|
+
--- Helper function to enable all inputs. Use this function to set things back to normal after having
|
|
61
|
+
-- used one of the other helper functions to disable inputs.
|
|
62
|
+
--
|
|
63
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
64
|
+
-- that multiple mod features can work in tandem.
|
|
58
65
|
function ____exports.enableAllInputs(self, key)
|
|
59
66
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
60
67
|
v.run.disableInputsWithWhitelistMap:delete(key)
|
|
61
68
|
v.run.enableInputsWithBlacklistMap:delete(key)
|
|
62
69
|
end
|
|
70
|
+
--- Helper function to disable all inputs. This is useful because `EntityPlayer.ControlsEnabled` can
|
|
71
|
+
-- be changed by the game under certain conditions.
|
|
72
|
+
--
|
|
73
|
+
-- Use the `enableAllInputs` helper function to set things back to normal.
|
|
74
|
+
--
|
|
75
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
76
|
+
-- that multiple mod features can work in tandem.
|
|
63
77
|
function ____exports.disableAllInputs(self, key)
|
|
64
78
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
65
79
|
v.run.disableInputsWithWhitelistMap:set(
|
|
@@ -68,20 +82,51 @@ function ____exports.disableAllInputs(self, key)
|
|
|
68
82
|
)
|
|
69
83
|
v.run.enableInputsWithBlacklistMap:delete(key)
|
|
70
84
|
end
|
|
85
|
+
--- Helper function to enable all inputs besides the ones provided. This is useful because
|
|
86
|
+
-- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
|
|
87
|
+
--
|
|
88
|
+
-- Use the `enableAllInputs` helper function to set things back to normal.
|
|
89
|
+
--
|
|
90
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
91
|
+
-- that multiple mod features can work in tandem.
|
|
92
|
+
-- @param blacklist A set of ButtonActions to disallow.
|
|
71
93
|
function ____exports.enableAllInputsExceptFor(self, key, blacklist)
|
|
72
94
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
73
95
|
v.run.disableInputsWithWhitelistMap:delete(key)
|
|
74
96
|
v.run.enableInputsWithBlacklistMap:set(key, blacklist)
|
|
75
97
|
end
|
|
98
|
+
--- Helper function to disable all inputs besides the ones provided. This is useful because
|
|
99
|
+
-- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
|
|
100
|
+
--
|
|
101
|
+
-- Use the `enableAllInputs` helper function to set things back to normal.
|
|
102
|
+
--
|
|
103
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
104
|
+
-- that multiple mod features can work in tandem.
|
|
105
|
+
-- @param whitelist A set of ButtonActions to allow.
|
|
76
106
|
function ____exports.disableAllInputsExceptFor(self, key, whitelist)
|
|
77
107
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
78
108
|
v.run.disableInputsWithWhitelistMap:set(key, whitelist)
|
|
79
109
|
v.run.enableInputsWithBlacklistMap:delete(key)
|
|
80
110
|
end
|
|
111
|
+
--- Helper function to disable only the inputs used for moving the character (or moving the cursor in
|
|
112
|
+
-- the UI). This is useful because `EntityPlayer.ControlsEnabled` can be changed by the game under
|
|
113
|
+
-- certain conditions.
|
|
114
|
+
--
|
|
115
|
+
-- Use the `enableAllInputs` helper function to set things back to normal.
|
|
116
|
+
--
|
|
117
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
118
|
+
-- that multiple mod features can work in tandem.
|
|
81
119
|
function ____exports.disableMovementInputs(self, key)
|
|
82
120
|
local moveActions = getMoveActions(nil)
|
|
83
121
|
____exports.enableAllInputsExceptFor(nil, key, moveActions)
|
|
84
122
|
end
|
|
123
|
+
--- Helper function to disable only the inputs used for shooting tears. This is useful because
|
|
124
|
+
-- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
|
|
125
|
+
--
|
|
126
|
+
-- Use the `enableAllInputs` helper function to set things back to normal.
|
|
127
|
+
--
|
|
128
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
129
|
+
-- that multiple mod features can work in tandem.
|
|
85
130
|
function ____exports.disableShootingInputs(self, key)
|
|
86
131
|
local shootActions = getShootActions(nil)
|
|
87
132
|
____exports.enableAllInputsExceptFor(nil, key, shootActions)
|
|
@@ -22,10 +22,18 @@ end
|
|
|
22
22
|
local FEATURE_NAME = "sound disabler"
|
|
23
23
|
local musicWasEnabled = false
|
|
24
24
|
v = {run = {disableSoundSet = __TS__New(Set)}}
|
|
25
|
+
---
|
|
26
|
+
-- @internal
|
|
25
27
|
function ____exports.disableSoundsInit(self, mod)
|
|
26
28
|
saveDataManager(nil, "disableSounds", v)
|
|
27
29
|
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
28
30
|
end
|
|
31
|
+
--- Helper function to stop muting all sound effects and music.
|
|
32
|
+
--
|
|
33
|
+
-- Use this function to set things back to normal after having used `disableAllSounds`.
|
|
34
|
+
--
|
|
35
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
36
|
+
-- that multiple mod features can work in tandem.
|
|
29
37
|
function ____exports.enableAllSound(self, key)
|
|
30
38
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
31
39
|
if not v.run.disableSoundSet:has(key) then
|
|
@@ -37,6 +45,12 @@ function ____exports.enableAllSound(self, key)
|
|
|
37
45
|
end
|
|
38
46
|
stopAllSoundEffects(nil)
|
|
39
47
|
end
|
|
48
|
+
--- Helper function to disable all sound effects and music (by constantly musting them).
|
|
49
|
+
--
|
|
50
|
+
-- Use the `enableAllSounds` helper function to set things back to normal.
|
|
51
|
+
--
|
|
52
|
+
-- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
|
|
53
|
+
-- that multiple mod features can work in tandem.
|
|
40
54
|
function ____exports.disableAllSound(self, key)
|
|
41
55
|
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
42
56
|
if v.run.disableSoundSet.size == 0 then
|
|
@@ -18,111 +18,201 @@ local toggleSlotDisplay = ____exports.toggleSlotDisplay
|
|
|
18
18
|
local toggleSpikesDisplay = ____exports.toggleSpikesDisplay
|
|
19
19
|
local toggleTearDisplay = ____exports.toggleTearDisplay
|
|
20
20
|
local toggleTNTDisplay = ____exports.toggleTNTDisplay
|
|
21
|
+
--- Toggles custom text to appear next to every spikes. Useful for debugging.
|
|
22
|
+
--
|
|
23
|
+
-- By default, the grid entity ID will be displayed. Use the `setSpikesDisplay` helper function to
|
|
24
|
+
-- assign the text that you want to appear.
|
|
21
25
|
function ____exports.spikesDisplay(self)
|
|
22
26
|
toggleSpikesDisplay(nil)
|
|
23
27
|
end
|
|
28
|
+
--- Toggles custom text to appear next to every bomb. Useful for debugging.
|
|
29
|
+
--
|
|
30
|
+
-- By default, the entity ID will be displayed. Use the `setBombDisplay` helper function to assign
|
|
31
|
+
-- the text that you want to appear.
|
|
24
32
|
function ____exports.bombDisplay(self)
|
|
25
33
|
toggleBombDisplay(nil)
|
|
26
34
|
end
|
|
35
|
+
--- Alias for the "bombDisplay" command.
|
|
27
36
|
function ____exports.bombsDisplay(self)
|
|
28
37
|
____exports.bombDisplay(nil)
|
|
29
38
|
end
|
|
39
|
+
--- Toggles custom text to appear next to every door. Useful for debugging.
|
|
40
|
+
--
|
|
41
|
+
-- By default, the grid entity ID will be displayed. Use the `setDoorDisplay` helper function to
|
|
42
|
+
-- assign the text that you want to appear.
|
|
30
43
|
function ____exports.doorDisplay(self)
|
|
31
44
|
toggleDoorDisplay(nil)
|
|
32
45
|
end
|
|
46
|
+
--- Alias for the "doorDisplay" command.
|
|
33
47
|
function ____exports.doorsDisplay(self)
|
|
34
48
|
____exports.doorDisplay(nil)
|
|
35
49
|
end
|
|
50
|
+
--- Toggles custom text to appear next to every effect. Useful for debugging.
|
|
51
|
+
--
|
|
52
|
+
-- By default, the entity ID will be displayed. Use the `setEffectDisplay` helper function to assign
|
|
53
|
+
-- the text that you want to appear.
|
|
36
54
|
function ____exports.effectDisplay(self)
|
|
37
55
|
toggleEffectDisplay(nil)
|
|
38
56
|
end
|
|
57
|
+
--- Alias for the "effectDisplay" command.
|
|
39
58
|
function ____exports.effectsDisplay(self)
|
|
40
59
|
____exports.effectDisplay(nil)
|
|
41
60
|
end
|
|
61
|
+
--- Toggles custom text to appear next to every familiar. Useful for debugging.
|
|
62
|
+
--
|
|
63
|
+
-- By default, the entity ID will be displayed. Use the `setFamiliarDisplay` helper function to
|
|
64
|
+
-- assign the text that you want to appear.
|
|
42
65
|
function ____exports.familiarDisplay(self)
|
|
43
66
|
toggleFamiliarDisplay(nil)
|
|
44
67
|
end
|
|
68
|
+
--- Alias for the "familiarDisplay" command.
|
|
45
69
|
function ____exports.familiarsDisplay(self)
|
|
46
70
|
____exports.familiarDisplay(nil)
|
|
47
71
|
end
|
|
72
|
+
--- Toggles custom text to appear next to every knife. Useful for debugging.
|
|
73
|
+
--
|
|
74
|
+
-- By default, the entity ID will be displayed. Use the `setKnifeDisplay` helper function to assign
|
|
75
|
+
-- the text that you want to appear.
|
|
48
76
|
function ____exports.knifeDisplay(self)
|
|
49
77
|
toggleKnifeDisplay(nil)
|
|
50
78
|
end
|
|
79
|
+
--- Alias for the "knifeDisplay" command.
|
|
51
80
|
function ____exports.knivesDisplay(self)
|
|
52
81
|
____exports.knifeDisplay(nil)
|
|
53
82
|
end
|
|
83
|
+
--- Toggles custom text to appear next to every laser. Useful for debugging.
|
|
84
|
+
--
|
|
85
|
+
-- By default, the entity ID will be displayed. Use the `setLaserDisplay` helper function to assign
|
|
86
|
+
-- the text that you want to appear.
|
|
54
87
|
function ____exports.laserDisplay(self)
|
|
55
88
|
toggleLaserDisplay(nil)
|
|
56
89
|
end
|
|
90
|
+
--- Alias for the "laserDisplay" command.
|
|
57
91
|
function ____exports.lasersDisplay(self)
|
|
58
92
|
____exports.laserDisplay(nil)
|
|
59
93
|
end
|
|
94
|
+
--- Toggles custom text to appear next to every NPC. Useful for debugging.
|
|
95
|
+
--
|
|
96
|
+
-- By default, the entity ID will be displayed. Use the `setNPCDisplay` helper function to assign
|
|
97
|
+
-- the text that you want to appear.
|
|
60
98
|
function ____exports.npcDisplay(self)
|
|
61
99
|
toggleNPCDisplay(nil)
|
|
62
100
|
end
|
|
101
|
+
--- Alias for the "npcDisplay" command.
|
|
63
102
|
function ____exports.npcsDisplay(self)
|
|
64
103
|
____exports.npcDisplay(nil)
|
|
65
104
|
end
|
|
105
|
+
--- Toggles custom text to appear next to every pickup. Useful for debugging.
|
|
106
|
+
--
|
|
107
|
+
-- By default, the entity ID will be displayed. Use the `setPickupDisplay` helper function to assign
|
|
108
|
+
-- the text that you want to appear.
|
|
66
109
|
function ____exports.pickupDisplay(self)
|
|
67
110
|
togglePickupDisplay(nil)
|
|
68
111
|
end
|
|
112
|
+
--- Alias for the "pickupDisplay" command.
|
|
69
113
|
function ____exports.pickupsDisplay(self)
|
|
70
114
|
____exports.pickupDisplay(nil)
|
|
71
115
|
end
|
|
116
|
+
--- Toggles custom text to appear next to every pit. Useful for debugging.
|
|
117
|
+
--
|
|
118
|
+
-- By default, the grid entity ID will be displayed. Use the `setPitDisplay` helper function to
|
|
119
|
+
-- assign the text that you want to appear.
|
|
72
120
|
function ____exports.pitDisplay(self)
|
|
73
121
|
togglePitDisplay(nil)
|
|
74
122
|
end
|
|
123
|
+
--- Alias for the "pitDisplay" command.
|
|
75
124
|
function ____exports.pitsDisplay(self)
|
|
76
125
|
____exports.pitDisplay(nil)
|
|
77
126
|
end
|
|
127
|
+
--- Toggles custom text to appear next to every player. Useful for debugging.
|
|
128
|
+
--
|
|
129
|
+
-- By default, the entity ID will be displayed. Use the `setPlayerDisplay` helper function to assign
|
|
130
|
+
-- the text that you want to appear.
|
|
78
131
|
function ____exports.playerDisplay(self)
|
|
79
132
|
togglePlayerDisplay(nil)
|
|
80
133
|
end
|
|
134
|
+
--- Alias for the "playerDisplay" command.
|
|
81
135
|
function ____exports.playersDisplay(self)
|
|
82
136
|
____exports.playerDisplay(nil)
|
|
83
137
|
end
|
|
138
|
+
--- Toggles custom text to appear next to every poop. Useful for debugging.
|
|
139
|
+
--
|
|
140
|
+
-- By default, the grid entity ID will be displayed. Use the `setPoopDisplay` helper function to
|
|
141
|
+
-- assign the text that you want to appear.
|
|
84
142
|
function ____exports.poopDisplay(self)
|
|
85
143
|
togglePoopDisplay(nil)
|
|
86
144
|
end
|
|
145
|
+
--- Alias for the "poopDisplay" command.
|
|
87
146
|
function ____exports.poopsDisplay(self)
|
|
88
147
|
____exports.poopDisplay(nil)
|
|
89
148
|
end
|
|
149
|
+
--- Toggles custom text to appear next to every pressure plate. Useful for debugging.
|
|
150
|
+
--
|
|
151
|
+
-- By default, the grid entity ID will be displayed. Use the `setPressurePlateDisplay` helper
|
|
152
|
+
-- function to assign the text that you want to appear.
|
|
90
153
|
function ____exports.pressurePlateDisplay(self)
|
|
91
154
|
togglePressurePlateDisplay(nil)
|
|
92
155
|
end
|
|
156
|
+
--- Alias for the "pressurePlateDisplay" command.
|
|
93
157
|
function ____exports.pressurePlatesDisplay(self)
|
|
94
158
|
____exports.pressurePlateDisplay(nil)
|
|
95
159
|
end
|
|
160
|
+
--- Toggles custom text to appear next to every projectile. Useful for debugging.
|
|
161
|
+
--
|
|
162
|
+
-- By default, the entity ID will be displayed. Use the `setProjectileDisplay` helper function to
|
|
163
|
+
-- assign the text that you want to appear.
|
|
96
164
|
function ____exports.projectileDisplay(self)
|
|
97
165
|
toggleProjectileDisplay(nil)
|
|
98
166
|
end
|
|
167
|
+
--- Alias for the "projectileDisplay" command.
|
|
99
168
|
function ____exports.projectilesDisplay(self)
|
|
100
169
|
____exports.projectileDisplay(nil)
|
|
101
170
|
end
|
|
171
|
+
--- Toggles custom text to appear next to every rock. Useful for debugging.
|
|
172
|
+
--
|
|
173
|
+
-- By default, the grid entity ID will be displayed. Use the `setRockDisplay` helper function to
|
|
174
|
+
-- assign the text that you want to appear.
|
|
102
175
|
function ____exports.rockDisplay(self)
|
|
103
176
|
toggleRockDisplay(nil)
|
|
104
177
|
end
|
|
178
|
+
--- Alias for the "rockDisplay" command.
|
|
105
179
|
function ____exports.rocksDisplay(self)
|
|
106
180
|
____exports.rockDisplay(nil)
|
|
107
181
|
end
|
|
182
|
+
--- Toggles custom text to appear next to every slot. Useful for debugging.
|
|
183
|
+
--
|
|
184
|
+
-- By default, the entity ID will be displayed. Use the `setSlotDisplay` helper function to assign
|
|
185
|
+
-- the text that you want to appear.
|
|
108
186
|
function ____exports.slotDisplay(self)
|
|
109
187
|
toggleSlotDisplay(nil)
|
|
110
188
|
end
|
|
189
|
+
--- Alias for the "slotDisplay" command.
|
|
111
190
|
function ____exports.slotsDisplay(self)
|
|
112
191
|
____exports.slotDisplay(nil)
|
|
113
192
|
end
|
|
193
|
+
--- Alias for the "spikesDisplay" command.
|
|
114
194
|
function ____exports.spikeDisplay(self)
|
|
115
195
|
____exports.spikesDisplay(nil)
|
|
116
196
|
end
|
|
197
|
+
--- Toggles custom text to appear next to every tear. Useful for debugging.
|
|
198
|
+
--
|
|
199
|
+
-- By default, the entity ID will be displayed. Use the `setTearDisplay` helper function to assign
|
|
200
|
+
-- the text that you want to appear.
|
|
117
201
|
function ____exports.tearDisplay(self)
|
|
118
202
|
toggleTearDisplay(nil)
|
|
119
203
|
end
|
|
204
|
+
--- Alias for the "tearDisplay" command.
|
|
120
205
|
function ____exports.tearsDisplay(self)
|
|
121
206
|
____exports.tearDisplay(nil)
|
|
122
207
|
end
|
|
208
|
+
--- Toggles custom text to appear next to every TNT. Useful for debugging.
|
|
209
|
+
--
|
|
210
|
+
-- By default, the grid entity ID will be displayed. Use the `setTNTDisplay` helper function to
|
|
211
|
+
-- assign the text that you want to appear.
|
|
123
212
|
function ____exports.tntDisplay(self)
|
|
124
213
|
toggleTNTDisplay(nil)
|
|
125
214
|
end
|
|
215
|
+
--- Alias for the "tntDisplay" command.
|
|
126
216
|
function ____exports.tntsDisplay(self)
|
|
127
217
|
____exports.tntDisplay(nil)
|
|
128
218
|
end
|