isaacscript-common 1.2.137 → 1.2.140

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.
Files changed (81) hide show
  1. package/dist/callbacks/postPlayerChangeHealth.lua +4 -64
  2. package/dist/constants.d.ts +2 -0
  3. package/dist/features/deployJSONRoom.lua +11 -22
  4. package/dist/features/disableInputs.lua +6 -20
  5. package/dist/features/disableSound.lua +4 -12
  6. package/dist/features/extraConsoleCommands/commands.d.ts +185 -13
  7. package/dist/features/extraConsoleCommands/commands.lua +491 -77
  8. package/dist/features/extraConsoleCommands/init.lua +72 -9
  9. package/dist/features/extraConsoleCommands/v.d.ts +5 -1
  10. package/dist/features/extraConsoleCommands/v.lua +7 -1
  11. package/dist/features/forgottenSwitch.lua +3 -8
  12. package/dist/features/getCollectibleItemPoolType.lua +4 -9
  13. package/dist/features/isPonyActive.lua +3 -8
  14. package/dist/features/preventCollectibleRotate.lua +3 -8
  15. package/dist/features/runInNFrames.lua +6 -20
  16. package/dist/features/saveDataManager/constants.d.ts +3 -0
  17. package/dist/features/saveDataManager/constants.lua +5 -0
  18. package/dist/features/saveDataManager/exports.lua +9 -18
  19. package/dist/features/saveDataManager/load.lua +4 -3
  20. package/dist/features/saveDataManager/main.lua +4 -10
  21. package/dist/features/saveDataManager/merge.lua +2 -2
  22. package/dist/features/saveDataManager/save.lua +3 -1
  23. package/dist/features/sirenHelpers.lua +4 -8
  24. package/dist/featuresInitialized.d.ts +1 -1
  25. package/dist/featuresInitialized.lua +5 -0
  26. package/dist/functions/cards.lua +12 -18
  27. package/dist/functions/challenges.lua +3 -2
  28. package/dist/functions/collectibles.lua +8 -14
  29. package/dist/functions/deepCopy.lua +2 -2
  30. package/dist/functions/log.lua +3 -0
  31. package/dist/functions/map.d.ts +4 -1
  32. package/dist/functions/map.lua +5 -1
  33. package/dist/functions/pills.lua +10 -15
  34. package/dist/functions/player.d.ts +4 -2
  35. package/dist/functions/player.lua +37 -81
  36. package/dist/functions/playerHealth.d.ts +3 -0
  37. package/dist/functions/playerHealth.lua +142 -0
  38. package/dist/functions/rooms.lua +4 -5
  39. package/dist/functions/transformations.lua +3 -3
  40. package/dist/functions/trinkets.lua +8 -14
  41. package/dist/index.d.ts +2 -0
  42. package/dist/index.lua +16 -0
  43. package/dist/maps/cardDescriptionMap.d.ts +4 -1
  44. package/dist/maps/cardDescriptionMap.lua +103 -102
  45. package/dist/maps/cardNameMap.d.ts +4 -1
  46. package/dist/maps/cardNameMap.lua +103 -102
  47. package/dist/maps/cardTypeMap.d.ts +3 -1
  48. package/dist/maps/cardTypeMap.lua +102 -102
  49. package/dist/maps/challengeNameMap.d.ts +4 -1
  50. package/dist/maps/challengeNameMap.lua +50 -50
  51. package/dist/maps/characterNameMap.d.ts +5 -0
  52. package/dist/maps/characterNameMap.lua +49 -0
  53. package/dist/maps/collectibleDescriptionMap.d.ts +1 -0
  54. package/dist/maps/collectibleDescriptionMap.lua +1 -0
  55. package/dist/maps/collectibleNameMap.d.ts +1 -0
  56. package/dist/maps/collectibleNameMap.lua +1 -0
  57. package/dist/maps/pillEffectClassMap.d.ts +4 -1
  58. package/dist/maps/pillEffectClassMap.lua +56 -55
  59. package/dist/maps/pillEffectNameMap.d.ts +4 -1
  60. package/dist/maps/pillEffectNameMap.lua +55 -55
  61. package/dist/maps/pillEffectTypeMap.d.ts +4 -1
  62. package/dist/maps/pillEffectTypeMap.lua +55 -55
  63. package/dist/maps/roomTypeMap.d.ts +3 -0
  64. package/dist/maps/roomTypeMap.lua +43 -0
  65. package/dist/maps/roomTypeNameMap.d.ts +5 -0
  66. package/dist/maps/roomTypeNameMap.lua +37 -0
  67. package/dist/maps/transformationNameMap.d.ts +4 -1
  68. package/dist/maps/transformationNameMap.lua +19 -20
  69. package/dist/maps/trinketDescriptionMap.d.ts +1 -0
  70. package/dist/maps/trinketDescriptionMap.lua +1 -0
  71. package/dist/maps/trinketNameMap.d.ts +1 -0
  72. package/dist/maps/trinketNameMap.lua +1 -0
  73. package/dist/types/CardType.d.ts +10 -8
  74. package/dist/types/CardType.lua +9 -7
  75. package/dist/types/HealthType.d.ts +4 -2
  76. package/dist/types/HealthType.lua +3 -1
  77. package/dist/types/PillEffectClass.d.ts +11 -5
  78. package/dist/types/PillEffectClass.lua +8 -5
  79. package/dist/types/PillEffectType.d.ts +10 -4
  80. package/dist/types/PillEffectType.lua +7 -4
  81. package/package.json +1 -1
@@ -3,16 +3,14 @@ local ____lualib = require("lualib_bundle")
3
3
  local Map = ____lualib.Map
4
4
  local __TS__New = ____lualib.__TS__New
5
5
  local ____exports = {}
6
- local hasSubscriptions, postPEffectUpdateReordered, getCurrentHealthValue, v
6
+ local hasSubscriptions, postPEffectUpdateReordered, v
7
7
  local ____exports = require("features.saveDataManager.exports")
8
8
  local saveDataManager = ____exports.saveDataManager
9
9
  local ____player = require("functions.player")
10
- local getBlackHearts = ____player.getBlackHearts
11
- local getHearts = ____player.getHearts
12
10
  local getPlayerIndex = ____player.getPlayerIndex
13
- local getSoulHearts = ____player.getSoulHearts
11
+ local ____playerHealth = require("functions.playerHealth")
12
+ local getPlayerHealthType = ____playerHealth.getPlayerHealthType
14
13
  local ____utils = require("functions.utils")
15
- local ensureAllCases = ____utils.ensureAllCases
16
14
  local getEnumValues = ____utils.getEnumValues
17
15
  local ____DefaultMap = require("types.DefaultMap")
18
16
  local DefaultMap = ____DefaultMap.DefaultMap
@@ -34,7 +32,7 @@ function postPEffectUpdateReordered(self, player)
34
32
  local playerHealthMap = v.run.playersHealthMap:getAndSetDefault(playerIndex)
35
33
  for ____, healthType in ipairs(getEnumValues(nil, HealthType)) do
36
34
  local storedHealthValue = playerHealthMap:get(healthType)
37
- local currentHealthValue = getCurrentHealthValue(nil, player, healthType)
35
+ local currentHealthValue = getPlayerHealthType(nil, player, healthType)
38
36
  playerHealthMap:set(healthType, currentHealthValue)
39
37
  if storedHealthValue ~= nil and storedHealthValue ~= currentHealthValue then
40
38
  local amount = currentHealthValue - storedHealthValue
@@ -42,64 +40,6 @@ function postPEffectUpdateReordered(self, player)
42
40
  end
43
41
  end
44
42
  end
45
- function getCurrentHealthValue(self, player, healthType)
46
- repeat
47
- local ____switch11 = healthType
48
- local ____cond11 = ____switch11 == HealthType.RED
49
- if ____cond11 then
50
- do
51
- return getHearts(nil, player)
52
- end
53
- end
54
- ____cond11 = ____cond11 or ____switch11 == HealthType.SOUL
55
- if ____cond11 then
56
- do
57
- return getSoulHearts(nil, player)
58
- end
59
- end
60
- ____cond11 = ____cond11 or ____switch11 == HealthType.ETERNAL
61
- if ____cond11 then
62
- do
63
- return player:GetEternalHearts()
64
- end
65
- end
66
- ____cond11 = ____cond11 or ____switch11 == HealthType.BLACK
67
- if ____cond11 then
68
- do
69
- return getBlackHearts(nil, player)
70
- end
71
- end
72
- ____cond11 = ____cond11 or ____switch11 == HealthType.GOLDEN
73
- if ____cond11 then
74
- do
75
- return player:GetGoldenHearts()
76
- end
77
- end
78
- ____cond11 = ____cond11 or ____switch11 == HealthType.BONE
79
- if ____cond11 then
80
- do
81
- return player:GetBoneHearts()
82
- end
83
- end
84
- ____cond11 = ____cond11 or ____switch11 == HealthType.ROTTEN
85
- if ____cond11 then
86
- do
87
- return player:GetRottenHearts()
88
- end
89
- end
90
- ____cond11 = ____cond11 or ____switch11 == HealthType.MAX_HEARTS
91
- if ____cond11 then
92
- do
93
- return player:GetMaxHearts()
94
- end
95
- end
96
- do
97
- do
98
- return ensureAllCases(nil, healthType)
99
- end
100
- end
101
- until true
102
- end
103
43
  v = {run = {playersHealthMap = __TS__New(
104
44
  DefaultMap,
105
45
  function() return __TS__New(Map) end
@@ -126,6 +126,8 @@ export declare const PILL_COLOR_MASK = 2047;
126
126
  export declare const SINGLE_USE_ACTIVE_COLLECTIBLE_TYPES: ReadonlySet<CollectibleType>;
127
127
  export declare const STORY_BOSSES: ReadonlySet<EntityType>;
128
128
  /**
129
+ * Add this to a `TrinketType` to get the corresponding golden trinket type.
130
+ *
129
131
  * In vanilla, this is part of the `TrinketType` enum, but we implement it as a constant in
130
132
  * IsaacScript since it is not a real trinket type.
131
133
  *
@@ -6,11 +6,11 @@ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
6
  local Map = ____lualib.Map
7
7
  local __TS__Iterator = ____lualib.__TS__Iterator
8
8
  local ____exports = {}
9
- local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, initialized, v
9
+ local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, v
10
10
  local ____cachedClasses = require("cachedClasses")
11
11
  local game = ____cachedClasses.game
12
- local ____errors = require("errors")
13
- local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
12
+ local ____featuresInitialized = require("featuresInitialized")
13
+ local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
14
14
  local ____entity = require("functions.entity")
15
15
  local removeAllMatchingEntities = ____entity.removeAllMatchingEntities
16
16
  local ____entitySpecific = require("functions.entitySpecific")
@@ -80,10 +80,7 @@ function respawnPersistentEntities(self)
80
80
  end
81
81
  end
82
82
  function ____exports.emptyRoom(self, fillWithDecorations)
83
- if not initialized then
84
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
85
- error(msg)
86
- end
83
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
87
84
  local roomListIndex = getRoomListIndex(nil)
88
85
  v.level.deployedRoomListIndexes:add(roomListIndex)
89
86
  removeAllBombs(nil)
@@ -103,10 +100,10 @@ function removeSpecificNPCs(self)
103
100
  for ____, npc in ipairs(getNPCs(nil)) do
104
101
  do
105
102
  if NPC_TYPES_TO_NOT_REMOVE:has(npc.Type) then
106
- goto __continue27
103
+ goto __continue24
107
104
  end
108
105
  if npc:HasEntityFlags(EntityFlag.FLAG_CHARM) or npc:HasEntityFlags(EntityFlag.FLAG_FRIENDLY) or npc:HasEntityFlags(EntityFlag.FLAG_PERSISTENT) then
109
- goto __continue27
106
+ goto __continue24
110
107
  end
111
108
  npc:ClearEntityFlags(EntityFlag.FLAG_APPEAR)
112
109
  npc:Remove()
@@ -115,7 +112,7 @@ function removeSpecificNPCs(self)
115
112
  room:SetGridPath(gridIndex, 0)
116
113
  end
117
114
  end
118
- ::__continue27::
115
+ ::__continue24::
119
116
  end
120
117
  end
121
118
  function fillRoomWithDecorations(self)
@@ -127,7 +124,7 @@ function fillRoomWithDecorations(self)
127
124
  do
128
125
  local existingGridEntity = room:GetGridEntity(gridIndex)
129
126
  if existingGridEntity ~= nil then
130
- goto __continue33
127
+ goto __continue30
131
128
  end
132
129
  local position = room:GetGridPosition(gridIndex)
133
130
  local decoration = Isaac.GridSpawn(GridEntityType.GRID_DECORATION, 0, position, true)
@@ -136,7 +133,7 @@ function fillRoomWithDecorations(self)
136
133
  end
137
134
  __TS__ArrayPush(decorationGridIndexes, gridIndex)
138
135
  end
139
- ::__continue33::
136
+ ::__continue30::
140
137
  end
141
138
  end
142
139
  function spawnAllEntities(self, jsonRoom, seed, verbose)
@@ -391,7 +388,6 @@ end
391
388
  FEATURE_NAME = "JSON room deployer"
392
389
  NPC_TYPES_TO_NOT_REMOVE = __TS__New(Set, {EntityType.ENTITY_DARK_ESAU})
393
390
  PERSISTENT_ENTITY_TYPES = __TS__New(Set, {EntityType.ENTITY_WALL_HUGGER})
394
- initialized = false
395
391
  v = {level = {
396
392
  deployedRoomListIndexes = __TS__New(Set),
397
393
  roomToPersistentEntitiesMap = __TS__New(
@@ -404,7 +400,6 @@ v = {level = {
404
400
  )
405
401
  }}
406
402
  function ____exports.deployJSONRoomInit(self, mod)
407
- initialized = true
408
403
  saveDataManager(nil, "deployJSONRoom", v)
409
404
  mod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, postNewRoom)
410
405
  end
@@ -415,10 +410,7 @@ function ____exports.deployJSONRoom(self, jsonRoom, seed, verbose)
415
410
  if verbose == nil then
416
411
  verbose = false
417
412
  end
418
- if not initialized then
419
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
420
- error(msg)
421
- end
413
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
422
414
  if verbose then
423
415
  log("Starting to empty the room of entities and grid entities.")
424
416
  end
@@ -444,10 +436,7 @@ function ____exports.deployRandomJSONRoom(self, jsonRooms, seed, verbose)
444
436
  if verbose == nil then
445
437
  verbose = false
446
438
  end
447
- if not initialized then
448
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
449
- error(msg)
450
- end
439
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
451
440
  local randomJSONRoom = getRandomJSONRoom(nil, jsonRooms, seed, verbose)
452
441
  if verbose then
453
442
  log((((((("Randomly chose JSON room " .. randomJSONRoom["$"].type) .. ".") .. randomJSONRoom["$"].variant) .. ".") .. randomJSONRoom["$"].subtype) .. " with name: ") .. randomJSONRoom["$"].name)
@@ -6,8 +6,8 @@ local __TS__Iterator = ____lualib.__TS__Iterator
6
6
  local Set = ____lualib.Set
7
7
  local ____exports = {}
8
8
  local isActionPressed, isActionTriggered, getActionValue, getReturnValue, v
9
- local ____errors = require("errors")
10
- local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
9
+ local ____featuresInitialized = require("featuresInitialized")
10
+ local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
11
11
  local ____input = require("functions.input")
12
12
  local getMoveActions = ____input.getMoveActions
13
13
  local getShootActions = ____input.getShootActions
@@ -43,31 +43,23 @@ function getReturnValue(self, buttonAction, booleanCallback)
43
43
  return nil
44
44
  end
45
45
  local FEATURE_NAME = "input disabler"
46
- local initialized = false
47
46
  v = {run = {
48
47
  disableInputsWithWhitelistMap = __TS__New(Map),
49
48
  enableInputsWithBlacklistMap = __TS__New(Map)
50
49
  }}
51
50
  function ____exports.disableInputsInit(self, mod)
52
- initialized = true
53
51
  saveDataManager(nil, "disableInputs", v)
54
52
  mod:AddCallback(ModCallbacks.MC_INPUT_ACTION, isActionPressed, InputHook.IS_ACTION_PRESSED)
55
53
  mod:AddCallback(ModCallbacks.MC_INPUT_ACTION, isActionTriggered, InputHook.IS_ACTION_TRIGGERED)
56
54
  mod:AddCallback(ModCallbacks.MC_INPUT_ACTION, getActionValue, InputHook.GET_ACTION_VALUE)
57
55
  end
58
56
  function ____exports.enableAllInputs(self, key)
59
- if not initialized then
60
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
61
- error(msg)
62
- end
57
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
63
58
  v.run.disableInputsWithWhitelistMap:delete(key)
64
59
  v.run.enableInputsWithBlacklistMap:delete(key)
65
60
  end
66
61
  function ____exports.disableAllInputs(self, key)
67
- if not initialized then
68
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
69
- error(msg)
70
- end
62
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
71
63
  v.run.disableInputsWithWhitelistMap:set(
72
64
  key,
73
65
  __TS__New(Set)
@@ -75,18 +67,12 @@ function ____exports.disableAllInputs(self, key)
75
67
  v.run.enableInputsWithBlacklistMap:delete(key)
76
68
  end
77
69
  function ____exports.enableAllInputsExceptFor(self, key, blacklist)
78
- if not initialized then
79
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
80
- error(msg)
81
- end
70
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
82
71
  v.run.disableInputsWithWhitelistMap:delete(key)
83
72
  v.run.enableInputsWithBlacklistMap:set(key, blacklist)
84
73
  end
85
74
  function ____exports.disableAllInputsExceptFor(self, key, whitelist)
86
- if not initialized then
87
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
88
- error(msg)
89
- end
75
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
90
76
  v.run.disableInputsWithWhitelistMap:set(key, whitelist)
91
77
  v.run.enableInputsWithBlacklistMap:delete(key)
92
78
  end
@@ -6,8 +6,8 @@ local ____exports = {}
6
6
  local postRender, v
7
7
  local ____cachedClasses = require("cachedClasses")
8
8
  local musicManager = ____cachedClasses.musicManager
9
- local ____errors = require("errors")
10
- local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
9
+ local ____featuresInitialized = require("featuresInitialized")
10
+ local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
11
11
  local ____sound = require("functions.sound")
12
12
  local stopAllSoundEffects = ____sound.stopAllSoundEffects
13
13
  local ____exports = require("features.saveDataManager.exports")
@@ -19,19 +19,14 @@ function postRender(self)
19
19
  stopAllSoundEffects(nil)
20
20
  end
21
21
  local FEATURE_NAME = "sound disabler"
22
- local initialized = false
23
22
  local musicWasEnabled = false
24
23
  v = {run = {disableSoundSet = __TS__New(Set)}}
25
24
  function ____exports.disableSoundsInit(self, mod)
26
- initialized = true
27
25
  saveDataManager(nil, "disableSounds", v)
28
26
  mod:AddCallback(ModCallbacks.MC_POST_RENDER, postRender)
29
27
  end
30
28
  function ____exports.enableAllSound(self, key)
31
- if not initialized then
32
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
33
- error(msg)
34
- end
29
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
35
30
  if not v.run.disableSoundSet:has(key) then
36
31
  return
37
32
  end
@@ -42,10 +37,7 @@ function ____exports.enableAllSound(self, key)
42
37
  stopAllSoundEffects(nil)
43
38
  end
44
39
  function ____exports.disableAllSound(self, key)
45
- if not initialized then
46
- local msg = getUpgradeErrorMsg(nil, FEATURE_NAME)
47
- error(msg)
48
- end
40
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
49
41
  if v.run.disableSoundSet.size == 0 then
50
42
  musicWasEnabled = musicManager:IsEnabled()
51
43
  end
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Adds a single charge to the player's specified active item. You must provide the active slot
3
+ * number. Provide a second number to give a custom amount of charges. (You can use negative numbers
4
+ * to remove charge.)
5
+ */
6
+ export declare function addCharges(params: string): void;
1
7
  /**
2
8
  * Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
3
9
  * this will uninitialize it and make an Angel Room instead.
@@ -5,16 +11,48 @@
5
11
  export declare function angel(): void;
6
12
  /** Activates the flags for the Ascent (i.e. Backwards Path). */
7
13
  export declare function ascent(): void;
14
+ /** Warps to the first Clean Bedroom or Dirty Bedroom on the floor. */
15
+ export declare function bedroom(): void;
16
+ /** Alias for the "blackhearts" command. */
17
+ export declare function bh(params: string): void;
18
+ /**
19
+ * Gives a half black heart. Provide a number to give a custom amount of hearts. (You can use
20
+ * negative numbers to remove hearts.)
21
+ */
22
+ export declare function blackHearts(params: string): void;
8
23
  /** Warps to the Black Market for the floor. */
9
24
  export declare function blackMarket(): void;
10
- /** Gives a bomb. Provide a number to give a custom amount of bombs. */
25
+ /**
26
+ * Gives a blood charge. This only affects Bethany. Provide a number to give a custom amount of
27
+ * charges. (You can use negative numbers to remove charges.)
28
+ */
29
+ export declare function bloodCharges(params: string): void;
30
+ /**
31
+ * Gives a bomb. Provide a number to give a custom amount of bombs. (You can use negative numbers to
32
+ * remove bombs.)
33
+ */
11
34
  export declare function bomb(params: string): void;
12
- /** Gives 99 bombs. */
13
- export declare function bombs(): void;
35
+ /**
36
+ * Gives 99 bombs. Provide a number to give a custom amount of bombs. (You can use negative numbers
37
+ * to remove bombs.)
38
+ */
39
+ export declare function bombs(params: string): void;
40
+ /**
41
+ * Gives a bone heart. Provide a number to give a custom amount of hearts. (You can use negative
42
+ * numbers to remove hearts.)
43
+ */
44
+ export declare function boneHearts(params: string): void;
14
45
  /** Warps to the first Boss Room on the floor. */
15
46
  export declare function boss(): void;
47
+ /** Warps to the Boss Rush for the floor. */
48
+ export declare function bossRush(): void;
16
49
  /** Alias for the "blackmarket" command. */
17
50
  export declare function bm(): void;
51
+ /**
52
+ * Gives a broken heart. Provide a number to give a custom amount of hearts. (You can use negative
53
+ * numbers to remove hearts.)
54
+ */
55
+ export declare function brokenHearts(params: string): void;
18
56
  /**
19
57
  * Gives the specified card. Accepts either the card sub-type or the partial name of the card.
20
58
  *
@@ -38,12 +76,26 @@ export declare function chaosCardTears(): void;
38
76
  * - character ta - Restarts as Tainted Azazel.
39
77
  */
40
78
  export declare function characterCommand(params: string): void;
41
- /** Gives a coin. Provide a number to give a custom amount of coins. */
79
+ /** Alias for the "addcharges" command. */
80
+ export declare function charge(params: string): void;
81
+ /** Warps to the first Clean Bedroom on the floor. */
82
+ export declare function cleanBedroom(): void;
83
+ /**
84
+ * Gives a coin. Provide a number to give a custom amount of coins. (You can use negative numbers to
85
+ * remove coins.)
86
+ */
42
87
  export declare function coin(params: string): void;
43
- /** Gives 999 coins. */
44
- export declare function coins(): void;
88
+ /**
89
+ * Gives 999 coins. Provide a number to give a custom amount of coins. (You can use negative numbers
90
+ * to remove coins.)
91
+ */
92
+ export declare function coins(params: string): void;
45
93
  /** Creates a crawlspace next to the player. */
46
94
  export declare function crawlspace(): void;
95
+ /** Uses the D6. */
96
+ export declare function d6(): void;
97
+ /** Uses the D20. */
98
+ export declare function d20(): void;
47
99
  /** Toggles extremely high-damage tears. */
48
100
  export declare function damage(): void;
49
101
  /** Alias for the "devil" command. */
@@ -53,28 +105,76 @@ export declare function dd(): void;
53
105
  * this will uninitialize it and make an Devil Room instead.
54
106
  */
55
107
  export declare function devil(): void;
108
+ /** Warps to the first Dirty Bedroom on the floor. */
109
+ export declare function dirtyBedroom(): void;
110
+ /** Toggles whether or not curses can appear. */
111
+ export declare function disableCurses(): void;
56
112
  /** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
57
113
  export declare function down(params: string): void;
114
+ /** Warps to the Dungeon (i.e. Crawlspace) for the floor. */
115
+ export declare function dungeon(): void;
58
116
  /** Logs the player's current temporary effects to the "log.txt" file. */
59
117
  export declare function effects(): void;
118
+ /** Alias for the "eternalhearts" command. */
119
+ export declare function eh(params: string): void;
60
120
  /** Alias for the "iamerror" command. */
61
121
  export declare function error(): void;
122
+ /**
123
+ * Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
124
+ * numbers to remove hearts.)
125
+ */
126
+ export declare function eternalHearts(params: string): void;
62
127
  /** Alias for the "startingroom" command. */
63
128
  export declare function fool(): void;
129
+ /** Prints the current position of all players. */
130
+ export declare function getPosition(): void;
131
+ /**
132
+ * Gives a Giga Bomb. Provide a number to give a custom amount of Giga Bombs. (You can use negative
133
+ * numbers to remove bombs.)
134
+ */
135
+ export declare function gigaBomb(params: string): void;
64
136
  /** Alias for the "goldenbomb" command. */
65
137
  export declare function goldBomb(): void;
66
138
  /** Gives the player a golden bomb. */
67
139
  export declare function goldenBomb(): void;
68
- /** Alias for the "goldenkey" command. */
69
- export declare function goldKey(): void;
140
+ /**
141
+ * Gives a golden heart. Provide a number to give a custom amount of hearts. (You can use negative
142
+ * numbers to remove hearts.)
143
+ */
144
+ export declare function goldenHearts(params: string): void;
70
145
  /** Gives the player a golden key. */
71
146
  export declare function goldenKey(): void;
147
+ /** Alias for the "goldenhearts" command. */
148
+ export declare function goldHearts(params: string): void;
149
+ /** Alias for the "goldenkey" command. */
150
+ export declare function goldKey(): void;
151
+ /** Alias for the "debug 2" command. */
152
+ export declare function grid(): void;
153
+ /** Alias for the "debug 11" command. */
154
+ export declare function grid2(): void;
155
+ /** Alias for the "hearts" command. */
156
+ export declare function h(params: string): void;
157
+ /**
158
+ * Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use
159
+ * negative numbers to remove hearts.)
160
+ */
161
+ export declare function hearts(params: string): void;
162
+ /** Alias for the "debug 6" command. */
163
+ export declare function hitboxes(): void;
72
164
  /** Warps to the I AM ERROR room for the floor. */
73
165
  export declare function IAMERROR(): void;
74
- /** Gives a key. Provide a number to give a custom amount of key. */
166
+ /**
167
+ * Gives a key. Provide a number to give a custom amount of key. (You can use negative numbers to
168
+ * remove keys.)
169
+ */
75
170
  export declare function key(params: string): void;
76
- /** Gives 99 keys. */
77
- export declare function keys(): void;
171
+ /**
172
+ * Gives 99 keys. Provide a number to give a custom amount of coins. (You can use negative numbers
173
+ * to remove keys.)
174
+ */
175
+ export declare function keys(params: string): void;
176
+ /** Warps to the first Library on the floor. */
177
+ export declare function library(): void;
78
178
  /**
79
179
  * Logs the entities in the room to the "log.txt" file. Provide a number to only log that specific
80
180
  * `EntityType`.
@@ -105,6 +205,17 @@ export declare function listGridAll(params: string): void;
105
205
  export declare function lowHP(): void;
106
206
  /** Alias for "debug 9". */
107
207
  export declare function luck(): void;
208
+ /**
209
+ * Gives a heart container. Provide a number to give a custom amount of heart containers. (You can
210
+ * use negative numbers to remove heart containers.)
211
+ */
212
+ export declare function maxHearts(params: string): void;
213
+ /** Alias for the "maxhearts" command. */
214
+ export declare function mh(params: string): void;
215
+ /** Warps to the first Miniboss Room on the floor. */
216
+ export declare function miniboss(): void;
217
+ /** Alias for the "disablecurses" command. */
218
+ export declare function noCurses(): void;
108
219
  /**
109
220
  * Gives a pill with the specified pill effect. Accepts either the effect ID or the partial name of
110
221
  * the effect.
@@ -118,12 +229,28 @@ export declare function pill(params: string): void;
118
229
  export declare function pills(): void;
119
230
  /** Warps to the first Planetarium on the floor. */
120
231
  export declare function planetarium(): void;
232
+ /** Alias for the "sound" command. */
233
+ export declare function playSound(params: string): void;
121
234
  /** Sets the player's pocket item to the specified collectible type. */
122
235
  export declare function pocket(params: string): void;
123
- /** Prints the current position of all players. */
236
+ /**
237
+ * Gives a poop mana charge. This only affects Tainted Blue Baby. Provide a number to give a custom
238
+ * amount of charges. (You can use negative numbers to remove charges.)
239
+ */
240
+ export declare function poopMana(params: string): void;
241
+ /** Alias for the "getposition" command. */
124
242
  export declare function positionCommand(): void;
243
+ /** Alias for the "hearts" command. */
244
+ export declare function redHearts(params: string): void;
245
+ /** Alias for the "redhearts" command. */
246
+ export declare function rh(params: string): void;
125
247
  /** Logs information about the room to the "log.txt" file. */
126
248
  export declare function roomCommand(): void;
249
+ /**
250
+ * Gives a rotten heart. Provide a number to give a custom amount of hearts. (You can use negative
251
+ * numbers to remove hearts.)
252
+ */
253
+ export declare function rottenHearts(params: string): void;
127
254
  /**
128
255
  * Alias for the "stage" command.
129
256
  *
@@ -132,10 +259,40 @@ export declare function roomCommand(): void;
132
259
  * - s 1c - Warps to Downpour 1.
133
260
  */
134
261
  export declare function s(params: string): void;
262
+ /** Warps to the first Sacrifice Room on the floor. */
263
+ export declare function sacrifice(): void;
264
+ /** Warps to the first Secret Room on the floor. */
265
+ export declare function secret(): void;
135
266
  /** Logs all of the current run's seed effects to the "log.txt" file. */
136
267
  export declare function seeds(): void;
268
+ /**
269
+ * Sets a charge to the player's specified active item. You must provide the active slot number and
270
+ * the number of charges to set.
271
+ */
272
+ export declare function setCharges(params: string): void;
273
+ /**
274
+ * Moves the first player to the specified position.
275
+ *
276
+ * Example:
277
+ * - setposition 100 50
278
+ */
279
+ export declare function setPosition(params: string): void;
280
+ /** Alias for the "soulhearts" command. */
281
+ export declare function sh(params: string): void;
137
282
  /** Warps to the first shop on the floor. */
138
283
  export declare function shop(): void;
284
+ /** Uses the Smelter to smelt the current player's trinket. */
285
+ export declare function smelt(): void;
286
+ /**
287
+ * Gives a soul charge. This only affects Tainted Bethany. Provide a number to give a custom amount
288
+ * of charges. (You can use negative numbers to remove charges.)
289
+ */
290
+ export declare function soulCharges(params: string): void;
291
+ /**
292
+ * Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
293
+ * negative numbers to remove hearts.)
294
+ */
295
+ export declare function soulHearts(params: string): void;
139
296
  /**
140
297
  * Play the supplied sound effect.
141
298
  *
@@ -150,13 +307,28 @@ export declare function sounds(): void;
150
307
  * "debug 10".
151
308
  */
152
309
  export declare function spam(): void;
310
+ /** Spawns a golden version of the specified trinket type. */
311
+ export declare function spawnGoldenTrinket(params: string): void;
153
312
  /** Toggles maximum movement speed and flight. */
154
313
  export declare function speed(): void;
155
314
  /** Warps to the starting room of the floor. */
156
315
  export declare function startingRoom(): void;
316
+ /** Warps to the first Super Secret Room on the floor. */
317
+ export declare function superSecret(): void;
318
+ /** Toggles extremely high tears stat (e.g. fire rate), equivalent of that to soy milk. */
319
+ export declare function tears(): void;
157
320
  /** Creates a trapdoor next to the player. */
158
321
  export declare function trapdoorCommand(): void;
159
322
  /** Warps to the first Treasure Room on the floor. */
160
323
  export declare function treasure(): void;
161
324
  /** Warps to the first Ultra Secret Room on the floor. */
162
- export declare function ultra(): void;
325
+ export declare function ultraSecret(): void;
326
+ /**
327
+ * Warps to the specified room type. Accepts either the room type number or the partial name of the
328
+ * room type.
329
+ *
330
+ * Example:
331
+ * - warp 5 - Warps to the first Boss Room on the floor, if any.
332
+ * - warp tr - Warps to the first Treasure Room on the floor, if any.
333
+ */
334
+ export declare function warp(params: string): void;