isaacscript-common 1.0.578 → 1.0.582

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.
@@ -190,7 +190,7 @@ export declare function removeAllBombs(variant?: BombVariant | int, subType?: in
190
190
  * @param cap Optional. If specified, will only remove the given amount of effects.
191
191
  * @returns True if one or more effects was removed, false otherwise.
192
192
  */
193
- export declare function removeAllEffects(variant?: EffectVariant, subType?: int, cap?: int): boolean;
193
+ export declare function removeAllEffects(variant?: EffectVariant | int, subType?: int, cap?: int): boolean;
194
194
  /**
195
195
  * Helper function to remove all of the familiars in the room.
196
196
  *
@@ -87,7 +87,7 @@ function ____exports.changeRoom(self, roomGridIndex)
87
87
  local level = game:GetLevel()
88
88
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
89
89
  if roomData == nil then
90
- error(("Failed to change the room to to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
90
+ error(("Failed to change the room to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
91
91
  end
92
92
  level.LeaveDoor = -1
93
93
  game:ChangeRoom(roomGridIndex)
@@ -323,7 +323,7 @@ function ____exports.teleport(self, roomGridIndex, direction, roomTransitionAnim
323
323
  local level = game:GetLevel()
324
324
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
325
325
  if roomData == nil then
326
- error(("Failed to change the room to to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
326
+ error(("Failed to change the room to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
327
327
  end
328
328
  level.LeaveDoor = -1
329
329
  game:StartRoomTransition(roomGridIndex, direction, roomTransitionAnim)
@@ -15,7 +15,8 @@ function errorWithTraceback(message, level)
15
15
  end
16
16
  local tracebackOutput = getTraceback(nil)
17
17
  local slimmedTracebackOutput = slimTracebackOutput(nil, tracebackOutput)
18
- Isaac.DebugString(slimmedTracebackOutput)
18
+ message = message .. "\n"
19
+ message = message .. slimmedTracebackOutput
19
20
  return vanillaError(message, level + 1)
20
21
  end
21
22
  function slimTracebackOutput(self, tracebackOutput)
@@ -39,7 +40,7 @@ function removeAnyLineThatContains(self, msg, containsMsg)
39
40
  return table.concat(lines, LINE_SEPARATOR or ",")
40
41
  end
41
42
  LINE_SEPARATOR = "\n"
42
- USELESS_TRACEBACK_MESSAGES = {"in upvalue 'getTraceback'", "in function 'sandboxGetTraceback'", "in function 'error'"}
43
+ USELESS_TRACEBACK_MESSAGES = {"in upvalue 'getTraceback'", "in function 'sandbox.GetTraceback'", "in function 'error'"}
43
44
  function ____exports.patchErrorFunction(self)
44
45
  if not isLuaDebugEnabled(nil) then
45
46
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.578",
3
+ "version": "1.0.582",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,7 +25,7 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.322",
28
+ "isaac-typescript-definitions": "^1.0.323",
29
29
  "isaacscript-lint": "^1.0.77",
30
30
  "typedoc": "^0.22.10",
31
31
  "typescript": "^4.5.4",