isaacscript-common 6.12.0 → 6.13.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.
@@ -1,8 +1,8 @@
1
1
  import { ItemPoolType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * Helper function to get the item pool type that a given collectible came from. Since there is no
4
- * native method in the API to get this, we listen in the PreGetCollectible callback for item pool
5
- * types, and then assume that the next spawned collectible will match.
4
+ * native method in the API to get this, we listen in the `PRE_GET_COLLECTIBLE` callback for item
5
+ * pool types, and then assume that the next spawned collectible will match.
6
6
  */
7
7
  export declare function getCollectibleItemPoolType(collectible: EntityPickup): ItemPoolType;
8
8
  //# sourceMappingURL=collectibleItemPoolType.d.ts.map
@@ -33,8 +33,8 @@ function ____exports.collectibleItemPoolTypeInit(self, mod)
33
33
  mod:AddCallback(ModCallback.POST_PICKUP_INIT, postPickupInitCollectible, PickupVariant.COLLECTIBLE)
34
34
  end
35
35
  --- Helper function to get the item pool type that a given collectible came from. Since there is no
36
- -- native method in the API to get this, we listen in the PreGetCollectible callback for item pool
37
- -- types, and then assume that the next spawned collectible will match.
36
+ -- native method in the API to get this, we listen in the `PRE_GET_COLLECTIBLE` callback for item
37
+ -- pool types, and then assume that the next spawned collectible will match.
38
38
  function ____exports.getCollectibleItemPoolType(self, collectible)
39
39
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
40
40
  if not isCollectible(nil, collectible) then
@@ -1 +1 @@
1
- {"version":3,"file":"blackSprite.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/blackSprite.ts"],"names":[],"mappings":"AASA,wBAAgB,eAAe,IAAI,IAAI,CAMtC"}
1
+ {"version":3,"file":"blackSprite.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/blackSprite.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,IAAI,IAAI,CAWtC"}
@@ -3,17 +3,17 @@ local ____constants = require("constants")
3
3
  local VectorZero = ____constants.VectorZero
4
4
  local ____StageTravelState = require("enums.private.StageTravelState")
5
5
  local StageTravelState = ____StageTravelState.StageTravelState
6
- local ____customStageConstants = require("features.customStage.customStageConstants")
7
- local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____customStageConstants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
8
6
  local ____v = require("features.customTrapdoor.v")
9
7
  local v = ____v.default
10
- local sprite = Sprite()
11
- sprite:Load(ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH .. "/black.anm2", true)
12
- sprite:SetFrame("Default", 0)
8
+ local blackSprite = Sprite()
13
9
  function ____exports.drawBlackSprite(self)
14
10
  if v.run.state ~= StageTravelState.PAUSING_ON_BLACK then
15
11
  return
16
12
  end
17
- sprite:RenderLayer(0, VectorZero)
13
+ if not blackSprite:IsLoaded() then
14
+ blackSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
15
+ blackSprite:SetFrame("Scene", 0)
16
+ end
17
+ blackSprite:RenderLayer(0, VectorZero)
18
18
  end
19
19
  return ____exports
@@ -29,7 +29,7 @@ local extraConsoleCommandsFunctionMap = ____v.extraConsoleCommandsFunctionMap
29
29
  function initMap(self)
30
30
  extraConsoleCommandsFunctionMap:set("1hp", commands.oneHP)
31
31
  extraConsoleCommandsFunctionMap:set("addCharges", commands.addCharges)
32
- extraConsoleCommandsFunctionMap:set("angel", commands.angel)
32
+ extraConsoleCommandsFunctionMap:set("angelRoom", commands.angelRoom)
33
33
  extraConsoleCommandsFunctionMap:set("ascent", commands.ascent)
34
34
  extraConsoleCommandsFunctionMap:set("bedroom", commands.bedroom)
35
35
  extraConsoleCommandsFunctionMap:set("bh", commands.bh)
@@ -42,7 +42,7 @@ function initMap(self)
42
42
  extraConsoleCommandsFunctionMap:set("bombsDisplay", commandsDisplay.bombsDisplay)
43
43
  extraConsoleCommandsFunctionMap:set("bombs", commands.bombs)
44
44
  extraConsoleCommandsFunctionMap:set("boneHearts", commands.boneHearts)
45
- extraConsoleCommandsFunctionMap:set("boss", commands.boss)
45
+ extraConsoleCommandsFunctionMap:set("bossRoom", commands.bossRoom)
46
46
  extraConsoleCommandsFunctionMap:set("bossRush", commands.bossRush)
47
47
  extraConsoleCommandsFunctionMap:set("brokenHearts", commands.brokenHearts)
48
48
  extraConsoleCommandsFunctionMap:set("card", commands.card)
@@ -59,7 +59,7 @@ function initMap(self)
59
59
  extraConsoleCommandsFunctionMap:set("d6", commands.d6)
60
60
  extraConsoleCommandsFunctionMap:set("damage", commands.damage)
61
61
  extraConsoleCommandsFunctionMap:set("dd", commands.dd)
62
- extraConsoleCommandsFunctionMap:set("devil", commands.devil)
62
+ extraConsoleCommandsFunctionMap:set("devilRoom", commands.devilRoom)
63
63
  extraConsoleCommandsFunctionMap:set("dirtyBedroom", commands.dirtyBedroom)
64
64
  extraConsoleCommandsFunctionMap:set("disableCurses", commands.disableCurses)
65
65
  extraConsoleCommandsFunctionMap:set("doorDisplay", commandsDisplay.doorDisplay)
@@ -70,7 +70,7 @@ function initMap(self)
70
70
  extraConsoleCommandsFunctionMap:set("effects", commands.effects)
71
71
  extraConsoleCommandsFunctionMap:set("effectsDisplay", commandsDisplay.effectsDisplay)
72
72
  extraConsoleCommandsFunctionMap:set("eh", commands.eh)
73
- extraConsoleCommandsFunctionMap:set("error", commands.error)
73
+ extraConsoleCommandsFunctionMap:set("errorRoom", commands.errorRoom)
74
74
  extraConsoleCommandsFunctionMap:set("eternalHearts", commands.eternalHearts)
75
75
  extraConsoleCommandsFunctionMap:set("familiarDisplay", commandsDisplay.familiarDisplay)
76
76
  extraConsoleCommandsFunctionMap:set("familiarsDisplay", commandsDisplay.familiarsDisplay)
@@ -88,10 +88,9 @@ function initMap(self)
88
88
  extraConsoleCommandsFunctionMap:set("grid2", commands.grid2)
89
89
  extraConsoleCommandsFunctionMap:set("gridCosts", commands.gridCosts)
90
90
  extraConsoleCommandsFunctionMap:set("gridEntities", commands.gridEntities)
91
- extraConsoleCommandsFunctionMap:set("h", commands.h)
92
91
  extraConsoleCommandsFunctionMap:set("hearts", commands.hearts)
93
92
  extraConsoleCommandsFunctionMap:set("hitboxes", commands.hitboxes)
94
- extraConsoleCommandsFunctionMap:set("iAmError", commands.iAmError)
93
+ extraConsoleCommandsFunctionMap:set("iAmErrorRoom", commands.iAmErrorRoom)
95
94
  extraConsoleCommandsFunctionMap:set("key", commands.key)
96
95
  extraConsoleCommandsFunctionMap:set("keys", commands.keys)
97
96
  extraConsoleCommandsFunctionMap:set("knifeDisplay", commandsDisplay.knifeDisplay)
@@ -109,7 +108,6 @@ function initMap(self)
109
108
  extraConsoleCommandsFunctionMap:set("mana", commands.mana)
110
109
  extraConsoleCommandsFunctionMap:set("map", commands.map)
111
110
  extraConsoleCommandsFunctionMap:set("maxHearts", commands.maxHearts)
112
- extraConsoleCommandsFunctionMap:set("mh", commands.mh)
113
111
  extraConsoleCommandsFunctionMap:set("miniboss", commands.miniboss)
114
112
  extraConsoleCommandsFunctionMap:set("noCurses", commands.noCurses)
115
113
  extraConsoleCommandsFunctionMap:set("npcDisplay", commandsDisplay.npcDisplay)
@@ -134,7 +132,6 @@ function initMap(self)
134
132
  extraConsoleCommandsFunctionMap:set("projectileDisplay", commandsDisplay.projectileDisplay)
135
133
  extraConsoleCommandsFunctionMap:set("projectilesDisplay", commandsDisplay.projectilesDisplay)
136
134
  extraConsoleCommandsFunctionMap:set("redHearts", commands.redHearts)
137
- extraConsoleCommandsFunctionMap:set("rh", commands.rh)
138
135
  extraConsoleCommandsFunctionMap:set("right", commands.right)
139
136
  extraConsoleCommandsFunctionMap:set("rockDisplay", commandsDisplay.rockDisplay)
140
137
  extraConsoleCommandsFunctionMap:set("rocksDisplay", commandsDisplay.rocksDisplay)
@@ -142,13 +139,12 @@ function initMap(self)
142
139
  extraConsoleCommandsFunctionMap:set("rottenHearts", commands.rottenHearts)
143
140
  extraConsoleCommandsFunctionMap:set("runTests", commands.runTests)
144
141
  extraConsoleCommandsFunctionMap:set("s", commands.s)
145
- extraConsoleCommandsFunctionMap:set("sacrifice", commands.sacrifice)
146
- extraConsoleCommandsFunctionMap:set("secret", commands.secret)
142
+ extraConsoleCommandsFunctionMap:set("sacrificeRoom", commands.sacrificeRoom)
143
+ extraConsoleCommandsFunctionMap:set("secretRoom", commands.secretRoom)
147
144
  extraConsoleCommandsFunctionMap:set("seedStick", commands.seedStick)
148
145
  extraConsoleCommandsFunctionMap:set("seeds", commands.seedsCommand)
149
146
  extraConsoleCommandsFunctionMap:set("setCharges", commands.setCharges)
150
147
  extraConsoleCommandsFunctionMap:set("setPosition", commands.setPosition)
151
- extraConsoleCommandsFunctionMap:set("sh", commands.sh)
152
148
  extraConsoleCommandsFunctionMap:set("shop", commands.shop)
153
149
  extraConsoleCommandsFunctionMap:set("slotDisplay", commandsDisplay.slotDisplay)
154
150
  extraConsoleCommandsFunctionMap:set("slotsDisplay", commandsDisplay.slotsDisplay)
@@ -162,16 +158,17 @@ function initMap(self)
162
158
  extraConsoleCommandsFunctionMap:set("speed", commands.speed)
163
159
  extraConsoleCommandsFunctionMap:set("spikeDisplay", commandsDisplay.spikeDisplay)
164
160
  extraConsoleCommandsFunctionMap:set("spikesDisplay", commandsDisplay.spikesDisplay)
165
- extraConsoleCommandsFunctionMap:set("supersecret", commands.superSecret)
161
+ extraConsoleCommandsFunctionMap:set("superSecretRoom", commands.superSecretRoom)
166
162
  extraConsoleCommandsFunctionMap:set("startingRoom", commands.startingRoom)
163
+ extraConsoleCommandsFunctionMap:set("startRoom", commands.startRoom)
167
164
  extraConsoleCommandsFunctionMap:set("tearDisplay", commandsDisplay.tearDisplay)
168
165
  extraConsoleCommandsFunctionMap:set("tears", commands.tears)
169
166
  extraConsoleCommandsFunctionMap:set("tearsDisplay", commandsDisplay.tearsDisplay)
170
167
  extraConsoleCommandsFunctionMap:set("tntDisplay", commandsDisplay.tntDisplay)
171
168
  extraConsoleCommandsFunctionMap:set("tntsDisplay", commandsDisplay.tntsDisplay)
172
169
  extraConsoleCommandsFunctionMap:set("trapdoor", commands.trapdoorCommand)
173
- extraConsoleCommandsFunctionMap:set("treasure", commands.treasure)
174
- extraConsoleCommandsFunctionMap:set("ultraSecret", commands.ultraSecret)
170
+ extraConsoleCommandsFunctionMap:set("treasureRoom", commands.treasureRoom)
171
+ extraConsoleCommandsFunctionMap:set("ultraSecretRoom", commands.ultraSecretRoom)
175
172
  extraConsoleCommandsFunctionMap:set("unseed", commands.unseed)
176
173
  extraConsoleCommandsFunctionMap:set("up", commands.up)
177
174
  extraConsoleCommandsFunctionMap:set("warp", commands.warp)
@@ -8,7 +8,7 @@ export declare function addCharges(params: string): void;
8
8
  * Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
9
9
  * this will uninitialize it and make an Angel Room instead.
10
10
  */
11
- export declare function angel(): void;
11
+ export declare function angelRoom(): void;
12
12
  /** Activates the flags for the Ascent (i.e. Backwards Path). */
13
13
  export declare function ascent(): void;
14
14
  /** Warps to the first Clean Bedroom or Dirty Bedroom on the floor. */
@@ -45,7 +45,7 @@ export declare function bombs(params: string): void;
45
45
  */
46
46
  export declare function boneHearts(params: string): void;
47
47
  /** Warps to the first Boss Room on the floor. */
48
- export declare function boss(): void;
48
+ export declare function bossRoom(): void;
49
49
  /** Warps to the Boss Rush for the floor. */
50
50
  export declare function bossRush(): void;
51
51
  /**
@@ -107,21 +107,21 @@ export declare function dd(): void;
107
107
  * Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
108
108
  * this will uninitialize it and make an Devil Room instead.
109
109
  */
110
- export declare function devil(): void;
110
+ export declare function devilRoom(): void;
111
111
  /** Warps to the first Dirty Bedroom on the floor. */
112
112
  export declare function dirtyBedroom(): void;
113
113
  /** Toggles whether or not curses can appear. */
114
114
  export declare function disableCurses(): void;
115
115
  /** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
116
116
  export declare function down(params: string): void;
117
- /** Warps to the Dungeon (i.e. crawl space) for the floor. */
117
+ /** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
118
118
  export declare function dungeon(): void;
119
119
  /** Logs the player's current temporary effects to the "log.txt" file. */
120
120
  export declare function effects(): void;
121
121
  /** Alias for the "eternalHearts" command. */
122
122
  export declare function eh(params: string): void;
123
123
  /** Alias for the "iAmError" command. */
124
- export declare function error(): void;
124
+ export declare function errorRoom(): void;
125
125
  /**
126
126
  * Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
127
127
  * numbers to remove hearts.)
@@ -164,8 +164,6 @@ export declare function grid2(): void;
164
164
  export declare function gridCosts(): void;
165
165
  /** Spawns every grid entity, starting at the top-left-most tile. */
166
166
  export declare function gridEntities(): void;
167
- /** Alias for the "hearts" command. */
168
- export declare function h(params: string): void;
169
167
  /**
170
168
  * Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
171
169
  * numbers to remove hearts.)
@@ -174,7 +172,7 @@ export declare function hearts(params: string): void;
174
172
  /** Alias for the "debug 6" command. */
175
173
  export declare function hitboxes(): void;
176
174
  /** Warps to the I AM ERROR room for the floor. */
177
- export declare function iAmError(): void;
175
+ export declare function iAmErrorRoom(): void;
178
176
  /**
179
177
  * Gives a key. Provide a number to give a custom amount of key. (You can use negative numbers to
180
178
  * remove keys.)
@@ -228,8 +226,6 @@ export declare function map(): void;
228
226
  * use negative numbers to remove heart containers.)
229
227
  */
230
228
  export declare function maxHearts(params: string): void;
231
- /** Alias for the "maxHearts" command. */
232
- export declare function mh(params: string): void;
233
229
  /** Warps to the first Miniboss Room on the floor. */
234
230
  export declare function miniboss(): void;
235
231
  /** Alias for the "disableCurses" command. */
@@ -263,8 +259,6 @@ export declare function poopMana(params: string): void;
263
259
  export declare function positionCommand(): void;
264
260
  /** Alias for the "hearts" command. */
265
261
  export declare function redHearts(params: string): void;
266
- /** Alias for the "redHearts" command. */
267
- export declare function rh(params: string): void;
268
262
  /** Moves the player 0.5 units right. Provide a number to move a custom amount of units. */
269
263
  export declare function right(params: string): void;
270
264
  /** Logs information about the room to the "log.txt" file. */
@@ -291,9 +285,9 @@ export declare function runTests(): void;
291
285
  */
292
286
  export declare function s(params: string): void;
293
287
  /** Warps to the first Sacrifice Room on the floor. */
294
- export declare function sacrifice(): void;
288
+ export declare function sacrificeRoom(): void;
295
289
  /** Warps to the first Secret Room on the floor. */
296
- export declare function secret(): void;
290
+ export declare function secretRoom(): void;
297
291
  /** Changes to a seeded run, using the seed of the current run. */
298
292
  export declare function seedStick(): void;
299
293
  /** Logs all of the current run's seed effects to the "log.txt" file. */
@@ -310,8 +304,6 @@ export declare function setCharges(params: string): void;
310
304
  * - setPosition 100 50
311
305
  */
312
306
  export declare function setPosition(params: string): void;
313
- /** Alias for the "soulHearts" command. */
314
- export declare function sh(params: string): void;
315
307
  /** Warps to the first shop on the floor. */
316
308
  export declare function shop(): void;
317
309
  /** Uses the Smelter to smelt the current player's trinket. */
@@ -346,19 +338,23 @@ export declare function spawnGoldenTrinket(params: string): void;
346
338
  export declare function speed(): void;
347
339
  /** Warps to the starting room of the floor. */
348
340
  export declare function startingRoom(): void;
341
+ /** Alias for the "startingRoom" command. */
342
+ export declare function startRoom(): void;
349
343
  /** Warps to the first Super Secret Room on the floor. */
350
- export declare function superSecret(): void;
344
+ export declare function superSecretRoom(): void;
351
345
  /**
352
346
  * Toggles an extremely high tears stat (e.g. fire rate) for the player, equivalent of that to soy
353
347
  * milk.
354
348
  */
355
349
  export declare function tears(): void;
350
+ /** Alias for the "runTests" command. */
351
+ export declare function tests(): void;
356
352
  /** Creates a trapdoor next to the player. */
357
353
  export declare function trapdoorCommand(): void;
358
354
  /** Warps to the first Treasure Room on the floor. */
359
- export declare function treasure(): void;
355
+ export declare function treasureRoom(): void;
360
356
  /** Warps to the first Ultra Secret Room on the floor. */
361
- export declare function ultraSecret(): void;
357
+ export declare function ultraSecretRoom(): void;
362
358
  /** If currently on a set seed, changes to an unseeded state and restarts the game. */
363
359
  export declare function unseed(): void;
364
360
  /** Moves the player 0.5 units up. Provide a number to move a custom amount of units. */
@@ -1 +1 @@
1
- {"version":3,"file":"listCommands.d.ts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C5C,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,8DAA8D;AAC9D,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAchD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAQ1C;AAED,6EAA6E;AAC7E,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAG3B;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkBvD;AAED,gEAAgE;AAChE,wBAAgB,KAAK,IAAI,IAAI,CAY5B;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,yDAAyD;AACzD,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAQ5B;AAED,6CAA6C;AAC7C,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,qDAAqD;AACrD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,yDAAyD;AACzD,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
1
+ {"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA0GA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM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I,CAG3B;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkBvD;AAED,gEAAgE;AAChE,wBAAgB,KAAK,IAAI,IAAI,CAY5B;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAQ5B;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
@@ -120,7 +120,7 @@ function ____exports.chaosCardTears(self)
120
120
  end
121
121
  --- Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
122
122
  -- this will uninitialize it and make an Devil Room instead.
123
- function ____exports.devil(self)
123
+ function ____exports.devilRoom(self)
124
124
  devilAngel(nil, true)
125
125
  end
126
126
  --- Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
@@ -147,13 +147,8 @@ end
147
147
  function ____exports.gridCosts(self)
148
148
  Isaac.ExecuteCommand("debug 2")
149
149
  end
150
- --- Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
151
- -- numbers to remove hearts.)
152
- function ____exports.hearts(self, params)
153
- addHeart(nil, params, HealthType.RED)
154
- end
155
150
  --- Warps to the I AM ERROR room for the floor.
156
- function ____exports.iAmError(self)
151
+ function ____exports.iAmErrorRoom(self)
157
152
  changeRoom(nil, GridRoom.ERROR)
158
153
  end
159
154
  --- Sets every NPC in the room to 1 HP.
@@ -178,11 +173,6 @@ function ____exports.poopMana(self, params)
178
173
  local player = Isaac.GetPlayer()
179
174
  player:AddPoopMana(charges)
180
175
  end
181
- --- Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
182
- -- negative numbers to remove hearts.)
183
- function ____exports.soulHearts(self, params)
184
- addHeart(nil, params, HealthType.SOUL)
185
- end
186
176
  --- Play the supplied sound effect.
187
177
  --
188
178
  -- For example:
@@ -244,7 +234,7 @@ function ____exports.addCharges(self, params)
244
234
  end
245
235
  --- Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
246
236
  -- this will uninitialize it and make an Angel Room instead.
247
- function ____exports.angel(self)
237
+ function ____exports.angelRoom(self)
248
238
  devilAngel(nil, false)
249
239
  end
250
240
  --- Activates the flags for the Ascent (i.e. Backwards Path).
@@ -330,7 +320,7 @@ function ____exports.boneHearts(self, params)
330
320
  addHeart(nil, params, HealthType.BONE)
331
321
  end
332
322
  --- Warps to the first Boss Room on the floor.
333
- function ____exports.boss(self)
323
+ function ____exports.bossRoom(self)
334
324
  warpToRoomType(nil, RoomType.BOSS)
335
325
  end
336
326
  --- Warps to the Boss Rush for the floor.
@@ -500,7 +490,7 @@ function ____exports.damage(self)
500
490
  end
501
491
  --- Alias for the "devil" command.
502
492
  function ____exports.dd(self)
503
- ____exports.devil(nil)
493
+ ____exports.devilRoom(nil)
504
494
  end
505
495
  --- Warps to the first Dirty Bedroom on the floor.
506
496
  function ____exports.dirtyBedroom(self)
@@ -515,7 +505,7 @@ end
515
505
  function ____exports.down(self, params)
516
506
  movePlayer(nil, params, Direction.DOWN)
517
507
  end
518
- --- Warps to the Dungeon (i.e. crawl space) for the floor.
508
+ --- Warps to the Dungeon (i.e. the crawl space room) for the floor.
519
509
  function ____exports.dungeon(self)
520
510
  changeRoom(nil, GridRoom.DUNGEON)
521
511
  end
@@ -530,8 +520,8 @@ function ____exports.eh(self, params)
530
520
  ____exports.eternalHearts(nil, params)
531
521
  end
532
522
  --- Alias for the "iAmError" command.
533
- function ____exports.error(self)
534
- ____exports.iAmError(nil)
523
+ function ____exports.errorRoom(self)
524
+ ____exports.iAmErrorRoom(nil)
535
525
  end
536
526
  --- Toggles flight for the player.
537
527
  function ____exports.flight(self, params)
@@ -626,9 +616,10 @@ function ____exports.gridEntities(self)
626
616
  end
627
617
  end
628
618
  end
629
- --- Alias for the "hearts" command.
630
- function ____exports.h(self, params)
631
- ____exports.hearts(nil, params)
619
+ --- Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
620
+ -- numbers to remove hearts.)
621
+ function ____exports.hearts(self, params)
622
+ addHeart(nil, params, HealthType.RED)
632
623
  end
633
624
  --- Alias for the "debug 6" command.
634
625
  function ____exports.hitboxes(self)
@@ -725,10 +716,6 @@ end
725
716
  function ____exports.maxHearts(self, params)
726
717
  addHeart(nil, params, HealthType.MAX_HEARTS)
727
718
  end
728
- --- Alias for the "maxHearts" command.
729
- function ____exports.mh(self, params)
730
- ____exports.maxHearts(nil, params)
731
- end
732
719
  --- Warps to the first Miniboss Room on the floor.
733
720
  function ____exports.miniboss(self)
734
721
  warpToRoomType(nil, RoomType.MINI_BOSS)
@@ -836,10 +823,6 @@ end
836
823
  function ____exports.redHearts(self, params)
837
824
  ____exports.hearts(nil, params)
838
825
  end
839
- --- Alias for the "redHearts" command.
840
- function ____exports.rh(self, params)
841
- ____exports.redHearts(nil, params)
842
- end
843
826
  --- Moves the player 0.5 units right. Provide a number to move a custom amount of units.
844
827
  function ____exports.right(self, params)
845
828
  movePlayer(nil, params, Direction.RIGHT)
@@ -901,11 +884,11 @@ function ____exports.s(self, params)
901
884
  Isaac.ExecuteCommand(("stage " .. tostring(stage)) .. stageTypeLetter)
902
885
  end
903
886
  --- Warps to the first Sacrifice Room on the floor.
904
- function ____exports.sacrifice(self)
887
+ function ____exports.sacrificeRoom(self)
905
888
  warpToRoomType(nil, RoomType.SACRIFICE)
906
889
  end
907
890
  --- Warps to the first Secret Room on the floor.
908
- function ____exports.secret(self)
891
+ function ____exports.secretRoom(self)
909
892
  warpToRoomType(nil, RoomType.SECRET)
910
893
  end
911
894
  --- Changes to a seeded run, using the seed of the current run.
@@ -1005,10 +988,6 @@ function ____exports.setPosition(self, params)
1005
988
  local position = Vector(x, y)
1006
989
  player.Position = position
1007
990
  end
1008
- --- Alias for the "soulHearts" command.
1009
- function ____exports.sh(self, params)
1010
- ____exports.soulHearts(nil, params)
1011
- end
1012
991
  --- Warps to the first shop on the floor.
1013
992
  function ____exports.shop(self)
1014
993
  warpToRoomType(nil, RoomType.SHOP)
@@ -1033,6 +1012,11 @@ function ____exports.soulCharges(self, params)
1033
1012
  local player = Isaac.GetPlayer()
1034
1013
  player:AddSoulCharge(charges)
1035
1014
  end
1015
+ --- Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
1016
+ -- negative numbers to remove hearts.)
1017
+ function ____exports.soulHearts(self, params)
1018
+ addHeart(nil, params, HealthType.SOUL)
1019
+ end
1036
1020
  --- Logs all of the currently playing sound effects to the "log.txt" file.
1037
1021
  function ____exports.sounds(self)
1038
1022
  logSounds()
@@ -1070,8 +1054,12 @@ function ____exports.speed(self)
1070
1054
  ____exports.flight(nil, value)
1071
1055
  printEnabled(nil, v.run.maxSpeed, "max speed and flight")
1072
1056
  end
1057
+ --- Alias for the "startingRoom" command.
1058
+ function ____exports.startRoom(self)
1059
+ ____exports.startingRoom(nil)
1060
+ end
1073
1061
  --- Warps to the first Super Secret Room on the floor.
1074
- function ____exports.superSecret(self)
1062
+ function ____exports.superSecretRoom(self)
1075
1063
  warpToRoomType(nil, RoomType.SUPER_SECRET)
1076
1064
  end
1077
1065
  --- Toggles an extremely high tears stat (e.g. fire rate) for the player, equivalent of that to soy
@@ -1083,16 +1071,20 @@ function ____exports.tears(self)
1083
1071
  player:EvaluateItems()
1084
1072
  printEnabled(nil, v.run.maxDamage, "debug tear-rate")
1085
1073
  end
1074
+ --- Alias for the "runTests" command.
1075
+ function ____exports.tests(self)
1076
+ ____exports.runTests(nil)
1077
+ end
1086
1078
  --- Creates a trapdoor next to the player.
1087
1079
  function ____exports.trapdoorCommand(self)
1088
1080
  spawnTrapdoorOrCrawlSpace(nil, true)
1089
1081
  end
1090
1082
  --- Warps to the first Treasure Room on the floor.
1091
- function ____exports.treasure(self)
1083
+ function ____exports.treasureRoom(self)
1092
1084
  warpToRoomType(nil, RoomType.TREASURE)
1093
1085
  end
1094
1086
  --- Warps to the first Ultra Secret Room on the floor.
1095
- function ____exports.ultraSecret(self)
1087
+ function ____exports.ultraSecretRoom(self)
1096
1088
  warpToRoomType(nil, RoomType.ULTRA_SECRET)
1097
1089
  end
1098
1090
  --- If currently on a set seed, changes to an unseeded state and restarts the game.
@@ -20,4 +20,6 @@ export declare function copyMap<K, V>(oldMap: Map<K, V>): Map<K, V>;
20
20
  * ```
21
21
  */
22
22
  export declare function getMapPartialMatch<T>(searchText: string, map: ReadonlyMap<string, T>): [string, T] | undefined;
23
+ /** Helper function to sum every value in a map together. */
24
+ export declare function sumMap(map: Map<unknown, number> | ReadonlyMap<unknown, number>): number;
23
25
  //# sourceMappingURL=map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/functions/map.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAO1D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,GAC1B,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAuBzB"}
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/functions/map.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAO1D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,GAC1B,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAuBzB;AAED,4DAA4D;AAC5D,wBAAgB,MAAM,CACpB,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,GACvD,MAAM,CAGR"}
@@ -8,6 +8,8 @@ local __TS__StringReplaceAll = ____lualib.__TS__StringReplaceAll
8
8
  local __TS__StringStartsWith = ____lualib.__TS__StringStartsWith
9
9
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
10
10
  local ____exports = {}
11
+ local ____array = require("functions.array")
12
+ local sumArray = ____array.sumArray
11
13
  --- Helper function to copy a map. (You can also use a Map constructor to accomplish this task.)
12
14
  function ____exports.copyMap(self, oldMap)
13
15
  local newMap = __TS__New(Map)
@@ -58,4 +60,9 @@ function ____exports.getMapPartialMatch(self, searchText, map)
58
60
  end
59
61
  return {matchingKey, value}
60
62
  end
63
+ --- Helper function to sum every value in a map together.
64
+ function ____exports.sumMap(self, map)
65
+ local values = {__TS__Spread(map:values())}
66
+ return sumArray(nil, values)
67
+ end
61
68
  return ____exports
@@ -58,4 +58,6 @@ export declare function getSetCombinations<T>(set: Set<T> | ReadonlySet<T>, incl
58
58
  * the contents is important.
59
59
  */
60
60
  export declare function getSortedSetValues<T>(set: Set<T> | ReadonlySet<T>): T[];
61
+ /** Helper function to sum every value in a set together. */
62
+ export declare function sumSet(set: Set<number> | ReadonlySet<number>): number;
61
63
  //# sourceMappingURL=set.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../src/functions/set.ts"],"names":[],"mappings":";;AAGA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GAC3C,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GACtC,GAAG,CAAC,CAAC,CAAC,CASR;AAED,mGAAmG;AACnG,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAOlE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GAC9C,IAAI,CAMN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC5B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAO,GAClC,CAAC,CAGH;AAED;;;;;;;;;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AG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC5B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAO,GAClC,CAAC,CAGH;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC5B,iBAAiB,EAAE,OAAO,GACzB,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAK/B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAMvE;AAED,4DAA4D;AAC5D,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAGrE"}
@@ -9,6 +9,7 @@ local ____exports = {}
9
9
  local ____array = require("functions.array")
10
10
  local getArrayCombinations = ____array.getArrayCombinations
11
11
  local getRandomArrayElement = ____array.getRandomArrayElement
12
+ local sumArray = ____array.sumArray
12
13
  local ____rng = require("functions.rng")
13
14
  local getRandomSeed = ____rng.getRandomSeed
14
15
  --- Helper function to get a sorted array based on the contents of a set.
@@ -107,4 +108,9 @@ function ____exports.getSetCombinations(self, set, includeEmptyArray)
107
108
  function(____, array) return __TS__New(Set, array) end
108
109
  )
109
110
  end
111
+ --- Helper function to sum every value in a set together.
112
+ function ____exports.sumSet(self, set)
113
+ local values = {__TS__Spread(set:values())}
114
+ return sumArray(nil, values)
115
+ end
110
116
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "6.12.0",
3
+ "version": "6.13.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -29,6 +29,8 @@ function postPickupInit(pickup: EntityPickup) {
29
29
  return;
30
30
  }
31
31
 
32
+ // The room visited count is not reset when re-entering a Treasure Room or Boss room in the
33
+ // Ascent.
32
34
  const roomVisitedCount = getRoomVisitedCount();
33
35
  if (roomVisitedCount > 0) {
34
36
  return;
@@ -1,5 +1,5 @@
1
1
  // The item pool type of a collectible is not stored on the collectible. Thus, we scan for incoming
2
- // item pool types in the PreGetCollectible callback, and then assume that the next spawned
2
+ // item pool types in the `PRE_GET_COLLECTIBLE` callback, and then assume that the next spawned
3
3
  // collectible has this item pool type.
4
4
 
5
5
  import {
@@ -45,8 +45,8 @@ function postPickupInitCollectible(pickup: EntityPickup) {
45
45
 
46
46
  /**
47
47
  * Helper function to get the item pool type that a given collectible came from. Since there is no
48
- * native method in the API to get this, we listen in the PreGetCollectible callback for item pool
49
- * types, and then assume that the next spawned collectible will match.
48
+ * native method in the API to get this, we listen in the `PRE_GET_COLLECTIBLE` callback for item
49
+ * pool types, and then assume that the next spawned collectible will match.
50
50
  */
51
51
  export function getCollectibleItemPoolType(
52
52
  collectible: EntityPickup,
@@ -1,16 +1,22 @@
1
1
  import { VectorZero } from "../../constants";
2
2
  import { StageTravelState } from "../../enums/private/StageTravelState";
3
- import { ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH } from "../customStage/customStageConstants";
4
3
  import v from "./v";
5
4
 
6
- const sprite = Sprite();
7
- sprite.Load(`${ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH}/black.anm2`, true);
8
- sprite.SetFrame("Default", 0);
5
+ // In order to represent a black sprite, we just use the first frame of the boss versus screen
6
+ // animation. However, we must lazy load the sprite in order to prevent issues with mods that
7
+ // replace the vanilla files. (For some reason, loading the sprites will cause the overwrite to no
8
+ // longer apply on the second and subsequent runs.)
9
+ const blackSprite = Sprite();
9
10
 
10
11
  export function drawBlackSprite(): void {
11
12
  if (v.run.state !== StageTravelState.PAUSING_ON_BLACK) {
12
13
  return;
13
14
  }
14
15
 
15
- sprite.RenderLayer(0, VectorZero);
16
+ if (!blackSprite.IsLoaded()) {
17
+ blackSprite.Load("gfx/ui/boss/versusscreen.anm2", true);
18
+ blackSprite.SetFrame("Scene", 0);
19
+ }
20
+
21
+ blackSprite.RenderLayer(0, VectorZero);
16
22
  }
@@ -27,7 +27,7 @@ export function extraConsoleCommandsInit(mod: ModUpgraded): void {
27
27
  function initMap() {
28
28
  extraConsoleCommandsFunctionMap.set("1hp", commands.oneHP);
29
29
  extraConsoleCommandsFunctionMap.set("addCharges", commands.addCharges);
30
- extraConsoleCommandsFunctionMap.set("angel", commands.angel);
30
+ extraConsoleCommandsFunctionMap.set("angelRoom", commands.angelRoom);
31
31
  extraConsoleCommandsFunctionMap.set("ascent", commands.ascent);
32
32
  extraConsoleCommandsFunctionMap.set("bedroom", commands.bedroom);
33
33
  extraConsoleCommandsFunctionMap.set("bh", commands.bh);
@@ -46,7 +46,7 @@ function initMap() {
46
46
  );
47
47
  extraConsoleCommandsFunctionMap.set("bombs", commands.bombs);
48
48
  extraConsoleCommandsFunctionMap.set("boneHearts", commands.boneHearts);
49
- extraConsoleCommandsFunctionMap.set("boss", commands.boss);
49
+ extraConsoleCommandsFunctionMap.set("bossRoom", commands.bossRoom);
50
50
  extraConsoleCommandsFunctionMap.set("bossRush", commands.bossRush);
51
51
  extraConsoleCommandsFunctionMap.set("brokenHearts", commands.brokenHearts);
52
52
  extraConsoleCommandsFunctionMap.set("card", commands.card);
@@ -66,7 +66,7 @@ function initMap() {
66
66
  extraConsoleCommandsFunctionMap.set("d6", commands.d6);
67
67
  extraConsoleCommandsFunctionMap.set("damage", commands.damage);
68
68
  extraConsoleCommandsFunctionMap.set("dd", commands.dd);
69
- extraConsoleCommandsFunctionMap.set("devil", commands.devil);
69
+ extraConsoleCommandsFunctionMap.set("devilRoom", commands.devilRoom);
70
70
  extraConsoleCommandsFunctionMap.set("dirtyBedroom", commands.dirtyBedroom);
71
71
  extraConsoleCommandsFunctionMap.set("disableCurses", commands.disableCurses);
72
72
  extraConsoleCommandsFunctionMap.set(
@@ -89,7 +89,7 @@ function initMap() {
89
89
  commandsDisplay.effectsDisplay,
90
90
  );
91
91
  extraConsoleCommandsFunctionMap.set("eh", commands.eh);
92
- extraConsoleCommandsFunctionMap.set("error", commands.error);
92
+ extraConsoleCommandsFunctionMap.set("errorRoom", commands.errorRoom);
93
93
  extraConsoleCommandsFunctionMap.set("eternalHearts", commands.eternalHearts);
94
94
  extraConsoleCommandsFunctionMap.set(
95
95
  "familiarDisplay",
@@ -113,10 +113,9 @@ function initMap() {
113
113
  extraConsoleCommandsFunctionMap.set("grid2", commands.grid2);
114
114
  extraConsoleCommandsFunctionMap.set("gridCosts", commands.gridCosts);
115
115
  extraConsoleCommandsFunctionMap.set("gridEntities", commands.gridEntities);
116
- extraConsoleCommandsFunctionMap.set("h", commands.h);
117
116
  extraConsoleCommandsFunctionMap.set("hearts", commands.hearts);
118
117
  extraConsoleCommandsFunctionMap.set("hitboxes", commands.hitboxes);
119
- extraConsoleCommandsFunctionMap.set("iAmError", commands.iAmError);
118
+ extraConsoleCommandsFunctionMap.set("iAmErrorRoom", commands.iAmErrorRoom);
120
119
  extraConsoleCommandsFunctionMap.set("key", commands.key);
121
120
  extraConsoleCommandsFunctionMap.set("keys", commands.keys);
122
121
  extraConsoleCommandsFunctionMap.set(
@@ -146,7 +145,6 @@ function initMap() {
146
145
  extraConsoleCommandsFunctionMap.set("mana", commands.mana);
147
146
  extraConsoleCommandsFunctionMap.set("map", commands.map);
148
147
  extraConsoleCommandsFunctionMap.set("maxHearts", commands.maxHearts);
149
- extraConsoleCommandsFunctionMap.set("mh", commands.mh);
150
148
  extraConsoleCommandsFunctionMap.set("miniboss", commands.miniboss);
151
149
  extraConsoleCommandsFunctionMap.set("noCurses", commands.noCurses);
152
150
  extraConsoleCommandsFunctionMap.set("npcDisplay", commandsDisplay.npcDisplay);
@@ -207,7 +205,6 @@ function initMap() {
207
205
  commandsDisplay.projectilesDisplay,
208
206
  );
209
207
  extraConsoleCommandsFunctionMap.set("redHearts", commands.redHearts);
210
- extraConsoleCommandsFunctionMap.set("rh", commands.rh);
211
208
  extraConsoleCommandsFunctionMap.set("right", commands.right);
212
209
  extraConsoleCommandsFunctionMap.set(
213
210
  "rockDisplay",
@@ -221,13 +218,12 @@ function initMap() {
221
218
  extraConsoleCommandsFunctionMap.set("rottenHearts", commands.rottenHearts);
222
219
  extraConsoleCommandsFunctionMap.set("runTests", commands.runTests);
223
220
  extraConsoleCommandsFunctionMap.set("s", commands.s);
224
- extraConsoleCommandsFunctionMap.set("sacrifice", commands.sacrifice);
225
- extraConsoleCommandsFunctionMap.set("secret", commands.secret);
221
+ extraConsoleCommandsFunctionMap.set("sacrificeRoom", commands.sacrificeRoom);
222
+ extraConsoleCommandsFunctionMap.set("secretRoom", commands.secretRoom);
226
223
  extraConsoleCommandsFunctionMap.set("seedStick", commands.seedStick);
227
224
  extraConsoleCommandsFunctionMap.set("seeds", commands.seedsCommand);
228
225
  extraConsoleCommandsFunctionMap.set("setCharges", commands.setCharges);
229
226
  extraConsoleCommandsFunctionMap.set("setPosition", commands.setPosition);
230
- extraConsoleCommandsFunctionMap.set("sh", commands.sh);
231
227
  extraConsoleCommandsFunctionMap.set("shop", commands.shop);
232
228
  extraConsoleCommandsFunctionMap.set(
233
229
  "slotDisplay",
@@ -256,8 +252,12 @@ function initMap() {
256
252
  "spikesDisplay",
257
253
  commandsDisplay.spikesDisplay,
258
254
  );
259
- extraConsoleCommandsFunctionMap.set("supersecret", commands.superSecret);
255
+ extraConsoleCommandsFunctionMap.set(
256
+ "superSecretRoom",
257
+ commands.superSecretRoom,
258
+ );
260
259
  extraConsoleCommandsFunctionMap.set("startingRoom", commands.startingRoom);
260
+ extraConsoleCommandsFunctionMap.set("startRoom", commands.startRoom);
261
261
  extraConsoleCommandsFunctionMap.set(
262
262
  "tearDisplay",
263
263
  commandsDisplay.tearDisplay,
@@ -273,8 +273,11 @@ function initMap() {
273
273
  commandsDisplay.tntsDisplay,
274
274
  );
275
275
  extraConsoleCommandsFunctionMap.set("trapdoor", commands.trapdoorCommand);
276
- extraConsoleCommandsFunctionMap.set("treasure", commands.treasure);
277
- extraConsoleCommandsFunctionMap.set("ultraSecret", commands.ultraSecret);
276
+ extraConsoleCommandsFunctionMap.set("treasureRoom", commands.treasureRoom);
277
+ extraConsoleCommandsFunctionMap.set(
278
+ "ultraSecretRoom",
279
+ commands.ultraSecretRoom,
280
+ );
278
281
  extraConsoleCommandsFunctionMap.set("unseed", commands.unseed);
279
282
  extraConsoleCommandsFunctionMap.set("up", commands.up);
280
283
  extraConsoleCommandsFunctionMap.set("warp", commands.warp);
@@ -1,16 +1,23 @@
1
1
  // This file is arbitrarily named "listCommands.ts" instead of "commands.ts" so that it will appear
2
- // below the "init" page.
2
+ // below "exports.ts".
3
3
 
4
4
  // cspell:ignore addcharges
5
5
  /**
6
6
  * This is a list of custom console commands that are included with the standard library.
7
7
  *
8
- * Note that as a quality of life feature, you do not have to match the casing of the command. For
9
- * example, you can type the "addCharges" command as "addcharges", and it will still work the same.
8
+ * As a quality of life feature, you do not have to match the casing of the command. For example,
9
+ * you can type the "addCharges" command as "addcharges", and it will still work the same.
10
+ *
11
+ * Additionally, you can also abbreviate any command by omitting letters that do not overlap with
12
+ * any other command. For example, the command of "c" will be interpreted as the "card" command.
10
13
  *
11
14
  * In order for the custom console commands to work, you first have to call
12
15
  * `enableExtraConsoleCommands`. (See the "Extra Console Commands (Init)" page for more details.)
13
16
  *
17
+ * Each command has a corresponding function of the same name, but these functions are not actually
18
+ * exported for end-user consumption (in order to cut down on namespace conflicts and because the
19
+ * names of the functions are not very descriptive).
20
+ *
14
21
  * @module
15
22
  */
16
23
 
@@ -151,7 +158,7 @@ export function addCharges(params: string): void {
151
158
  * Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
152
159
  * this will uninitialize it and make an Angel Room instead.
153
160
  */
154
- export function angel(): void {
161
+ export function angelRoom(): void {
155
162
  devilAngel(false);
156
163
  }
157
164
 
@@ -276,7 +283,7 @@ export function boneHearts(params: string): void {
276
283
  }
277
284
 
278
285
  /** Warps to the first Boss Room on the floor. */
279
- export function boss(): void {
286
+ export function bossRoom(): void {
280
287
  warpToRoomType(RoomType.BOSS);
281
288
  }
282
289
 
@@ -473,14 +480,14 @@ export function damage(): void {
473
480
 
474
481
  /** Alias for the "devil" command. */
475
482
  export function dd(): void {
476
- devil();
483
+ devilRoom();
477
484
  }
478
485
 
479
486
  /**
480
487
  * Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
481
488
  * this will uninitialize it and make an Devil Room instead.
482
489
  */
483
- export function devil(): void {
490
+ export function devilRoom(): void {
484
491
  devilAngel(true);
485
492
  }
486
493
 
@@ -500,7 +507,7 @@ export function down(params: string): void {
500
507
  movePlayer(params, Direction.DOWN);
501
508
  }
502
509
 
503
- /** Warps to the Dungeon (i.e. crawl space) for the floor. */
510
+ /** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
504
511
  export function dungeon(): void {
505
512
  changeRoom(GridRoom.DUNGEON);
506
513
  }
@@ -518,8 +525,8 @@ export function eh(params: string): void {
518
525
  }
519
526
 
520
527
  /** Alias for the "iAmError" command. */
521
- export function error(): void {
522
- iAmError();
528
+ export function errorRoom(): void {
529
+ iAmErrorRoom();
523
530
  }
524
531
 
525
532
  /**
@@ -663,11 +670,6 @@ export function gridEntities(): void {
663
670
  }
664
671
  }
665
672
 
666
- /** Alias for the "hearts" command. */
667
- export function h(params: string): void {
668
- hearts(params);
669
- }
670
-
671
673
  /**
672
674
  * Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
673
675
  * numbers to remove hearts.)
@@ -682,7 +684,7 @@ export function hitboxes(): void {
682
684
  }
683
685
 
684
686
  /** Warps to the I AM ERROR room for the floor. */
685
- export function iAmError(): void {
687
+ export function iAmErrorRoom(): void {
686
688
  changeRoom(GridRoom.ERROR);
687
689
  }
688
690
 
@@ -816,11 +818,6 @@ export function maxHearts(params: string): void {
816
818
  addHeart(params, HealthType.MAX_HEARTS);
817
819
  }
818
820
 
819
- /** Alias for the "maxHearts" command. */
820
- export function mh(params: string): void {
821
- maxHearts(params);
822
- }
823
-
824
821
  /** Warps to the first Miniboss Room on the floor. */
825
822
  export function miniboss(): void {
826
823
  warpToRoomType(RoomType.MINI_BOSS);
@@ -964,11 +961,6 @@ export function redHearts(params: string): void {
964
961
  hearts(params);
965
962
  }
966
963
 
967
- /** Alias for the "redHearts" command. */
968
- export function rh(params: string): void {
969
- redHearts(params);
970
- }
971
-
972
964
  /** Moves the player 0.5 units right. Provide a number to move a custom amount of units. */
973
965
  export function right(params: string): void {
974
966
  movePlayer(params, Direction.RIGHT);
@@ -1048,12 +1040,12 @@ export function s(params: string): void {
1048
1040
  }
1049
1041
 
1050
1042
  /** Warps to the first Sacrifice Room on the floor. */
1051
- export function sacrifice(): void {
1043
+ export function sacrificeRoom(): void {
1052
1044
  warpToRoomType(RoomType.SACRIFICE);
1053
1045
  }
1054
1046
 
1055
1047
  /** Warps to the first Secret Room on the floor. */
1056
- export function secret(): void {
1048
+ export function secretRoom(): void {
1057
1049
  warpToRoomType(RoomType.SECRET);
1058
1050
  }
1059
1051
 
@@ -1160,11 +1152,6 @@ export function setPosition(params: string): void {
1160
1152
  player.Position = position;
1161
1153
  }
1162
1154
 
1163
- /** Alias for the "soulHearts" command. */
1164
- export function sh(params: string): void {
1165
- soulHearts(params);
1166
- }
1167
-
1168
1155
  /** Warps to the first shop on the floor. */
1169
1156
  export function shop(): void {
1170
1157
  warpToRoomType(RoomType.SHOP);
@@ -1280,8 +1267,13 @@ export function startingRoom(): void {
1280
1267
  changeRoom(startingRoomIndex);
1281
1268
  }
1282
1269
 
1270
+ /** Alias for the "startingRoom" command. */
1271
+ export function startRoom(): void {
1272
+ startingRoom();
1273
+ }
1274
+
1283
1275
  /** Warps to the first Super Secret Room on the floor. */
1284
- export function superSecret(): void {
1276
+ export function superSecretRoom(): void {
1285
1277
  warpToRoomType(RoomType.SUPER_SECRET);
1286
1278
  }
1287
1279
 
@@ -1299,18 +1291,23 @@ export function tears(): void {
1299
1291
  printEnabled(v.run.maxDamage, "debug tear-rate");
1300
1292
  }
1301
1293
 
1294
+ /** Alias for the "runTests" command. */
1295
+ export function tests(): void {
1296
+ runTests();
1297
+ }
1298
+
1302
1299
  /** Creates a trapdoor next to the player. */
1303
1300
  export function trapdoorCommand(): void {
1304
1301
  spawnTrapdoorOrCrawlSpace(true);
1305
1302
  }
1306
1303
 
1307
1304
  /** Warps to the first Treasure Room on the floor. */
1308
- export function treasure(): void {
1305
+ export function treasureRoom(): void {
1309
1306
  warpToRoomType(RoomType.TREASURE);
1310
1307
  }
1311
1308
 
1312
1309
  /** Warps to the first Ultra Secret Room on the floor. */
1313
- export function ultraSecret(): void {
1310
+ export function ultraSecretRoom(): void {
1314
1311
  warpToRoomType(RoomType.ULTRA_SECRET);
1315
1312
  }
1316
1313
 
@@ -1,3 +1,5 @@
1
+ import { sumArray } from "./array";
2
+
1
3
  /** Helper function to copy a map. (You can also use a Map constructor to accomplish this task.) */
2
4
  export function copyMap<K, V>(oldMap: Map<K, V>): Map<K, V> {
3
5
  const newMap = new Map<K, V>();
@@ -54,3 +56,11 @@ export function getMapPartialMatch<T>(
54
56
 
55
57
  return [matchingKey, value];
56
58
  }
59
+
60
+ /** Helper function to sum every value in a map together. */
61
+ export function sumMap(
62
+ map: Map<unknown, number> | ReadonlyMap<unknown, number>,
63
+ ): number {
64
+ const values = [...map.values()];
65
+ return sumArray(values);
66
+ }
@@ -1,4 +1,4 @@
1
- import { getArrayCombinations, getRandomArrayElement } from "./array";
1
+ import { getArrayCombinations, getRandomArrayElement, sumArray } from "./array";
2
2
  import { getRandomSeed } from "./rng";
3
3
 
4
4
  /**
@@ -122,3 +122,9 @@ export function getSortedSetValues<T>(set: Set<T> | ReadonlySet<T>): T[] {
122
122
 
123
123
  return array;
124
124
  }
125
+
126
+ /** Helper function to sum every value in a set together. */
127
+ export function sumSet(set: Set<number> | ReadonlySet<number>): number {
128
+ const values = [...set.values()];
129
+ return sumArray(values);
130
+ }