isaacscript-common 1.2.232 → 1.2.233

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.
@@ -6,6 +6,8 @@ local ____exports = {}
6
6
  local hasSubscriptions, postEffectUpdaterCustomEntity, doorChangedState, getAnimationForCustomDoor, postEffectRenderCustomEntity, isPlayerPastDoorThreshold, roomClearChange, getPositionOffset, POSITION_OFFSET_MULTIPLIER, v
7
7
  local ____cachedClasses = require("cachedClasses")
8
8
  local game = ____cachedClasses.game
9
+ local ____constants = require("constants")
10
+ local VectorZero = ____constants.VectorZero
9
11
  local ____ModCallbacksCustom = require("enums.ModCallbacksCustom")
10
12
  local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
11
13
  local ____exports = require("features.saveDataManager.exports")
@@ -185,7 +187,7 @@ function ____exports.spawnCustomDoor(self, effectVariant, doorSlot)
185
187
  effectVariant,
186
188
  0,
187
189
  position,
188
- Vector.Zero,
190
+ VectorZero,
189
191
  nil
190
192
  ):ToEffect()
191
193
  if effect == nil then
@@ -116,3 +116,5 @@ export declare const TRINKET_ID_MASK = 32767;
116
116
  * corner.
117
117
  */
118
118
  export declare const UI_HEART_WIDTH = 12;
119
+ export declare const VectorOne: ReadonlyVector;
120
+ export declare const VectorZero: ReadonlyVector;
@@ -37,4 +37,6 @@ ____exports.TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE = 10000
37
37
  ____exports.TRINKET_GOLDEN_FLAG = 32768
38
38
  ____exports.TRINKET_ID_MASK = 32767
39
39
  ____exports.UI_HEART_WIDTH = 12
40
+ ____exports.VectorOne = Vector(1, 1)
41
+ ____exports.VectorZero = Vector(0, 0)
40
42
  return ____exports
@@ -10,6 +10,8 @@ local ____cachedClasses = require("cachedClasses")
10
10
  local game = ____cachedClasses.game
11
11
  local ____DefaultMap = require("classes.DefaultMap")
12
12
  local DefaultMap = ____DefaultMap.DefaultMap
13
+ local ____constants = require("constants")
14
+ local VectorZero = ____constants.VectorZero
13
15
  local ____featuresInitialized = require("featuresInitialized")
14
16
  local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
15
17
  local ____entity = require("functions.entity")
@@ -77,7 +79,7 @@ function respawnPersistentEntities(self)
77
79
  persistentEntity.variant,
78
80
  persistentEntity.subType,
79
81
  position,
80
- Vector.Zero,
82
+ VectorZero,
81
83
  nil
82
84
  )
83
85
  end
@@ -253,7 +255,7 @@ function spawnNormalEntityForJSONRoom(self, entityType, variant, subType, x, y,
253
255
  entityType,
254
256
  variant,
255
257
  position,
256
- Vector.Zero,
258
+ VectorZero,
257
259
  nil,
258
260
  subType,
259
261
  seed
@@ -10,6 +10,7 @@ local sfxManager = ____cachedClasses.sfxManager
10
10
  local ____constants = require("constants")
11
11
  local PILL_GIANT_FLAG = ____constants.PILL_GIANT_FLAG
12
12
  local TRINKET_GOLDEN_FLAG = ____constants.TRINKET_GOLDEN_FLAG
13
+ local VectorZero = ____constants.VectorZero
13
14
  local ____HealthType = require("enums.HealthType")
14
15
  local HealthType = ____HealthType.HealthType
15
16
  local ____cards = require("functions.cards")
@@ -380,7 +381,7 @@ function ____exports.cards(self)
380
381
  300,
381
382
  cardType,
382
383
  position,
383
- Vector.Zero,
384
+ VectorZero,
384
385
  nil
385
386
  )
386
387
  cardType = cardType + 1
@@ -662,7 +663,7 @@ function ____exports.pills(self)
662
663
  70,
663
664
  subType,
664
665
  position,
665
- Vector.Zero,
666
+ VectorZero,
666
667
  nil
667
668
  )
668
669
  pillColor = pillColor + 1
@@ -885,7 +886,7 @@ function ____exports.spawnGoldenTrinket(self, params)
885
886
  350,
886
887
  goldenTrinketType,
887
888
  centerPos,
888
- Vector.Zero,
889
+ VectorZero,
889
890
  nil
890
891
  )
891
892
  end
@@ -16,5 +16,8 @@ export declare function getPlayerInventory(player: EntityPlayer, includeActiveCo
16
16
  * Helper function to add a collectible to a player. Use this instead of the
17
17
  * `EntityPlayer.AddCollectible` method if you want the collectible that is added to be
18
18
  * automatically tracked by the player inventory tracker feature.
19
+ *
20
+ * You only need to use this function if you are using the inventory feature from the standard
21
+ * library.
19
22
  */
20
23
  export declare function addCollectible(player: EntityPlayer, collectibleType: CollectibleType, charge?: int, firstTimePickingUp?: boolean, activeSlot?: ActiveSlot, varData?: int): void;
@@ -1,6 +1,8 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
3
  local getChargeBarClamp
4
+ local ____constants = require("constants")
5
+ local VectorZero = ____constants.VectorZero
4
6
  function getChargeBarClamp(self, charges, maxCharges)
5
7
  local meterMultiplier = 24 / maxCharges
6
8
  local meterClip = 26 - charges * meterMultiplier
@@ -32,11 +34,11 @@ function ____exports.newChargeBarSprites(self, maxCharges)
32
34
  }
33
35
  end
34
36
  function ____exports.renderChargeBar(self, sprites, position, normalCharges, batteryCharges)
35
- sprites.back:Render(position, Vector.Zero, Vector.Zero)
37
+ sprites.back:Render(position, VectorZero, VectorZero)
36
38
  local normalChargesClamp = getChargeBarClamp(nil, normalCharges, sprites.maxCharges)
37
- sprites.meter:Render(position, normalChargesClamp, Vector.Zero)
39
+ sprites.meter:Render(position, normalChargesClamp, VectorZero)
38
40
  local batteryChargesClamp = getChargeBarClamp(nil, batteryCharges, sprites.maxCharges)
39
- sprites.meterBattery:Render(position, batteryChargesClamp, Vector.Zero)
40
- sprites.lines:Render(position, Vector.Zero, Vector.Zero)
41
+ sprites.meterBattery:Render(position, batteryChargesClamp, VectorZero)
42
+ sprites.lines:Render(position, VectorZero, VectorZero)
41
43
  end
42
44
  return ____exports
@@ -4,6 +4,8 @@ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
4
  local ____exports = {}
5
5
  local ____cachedClasses = require("cachedClasses")
6
6
  local game = ____cachedClasses.game
7
+ local ____constants = require("constants")
8
+ local VectorZero = ____constants.VectorZero
7
9
  local ____familiarsThatShootPlayerTearsSet = require("sets.familiarsThatShootPlayerTearsSet")
8
10
  local FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET = ____familiarsThatShootPlayerTearsSet.FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET
9
11
  local ____array = require("functions.array")
@@ -59,7 +61,7 @@ function ____exports.checkFamiliar(self, player, collectibleType, numTargetFamil
59
61
  EntityType.ENTITY_FAMILIAR,
60
62
  familiarVariant,
61
63
  player.Position,
62
- Vector.Zero,
64
+ VectorZero,
63
65
  player,
64
66
  familiarSubTypeToUse,
65
67
  seed
@@ -64,7 +64,7 @@ export declare function logUseFlags(this: void, flags: int): void;
64
64
  * the Isaac API).
65
65
  */
66
66
  export declare function logUserdata(this: void, userdata: unknown): void;
67
- export declare function logVector(this: void, vector: Vector): void;
67
+ export declare function logVector(this: void, vector: Vector, round?: boolean): void;
68
68
  /**
69
69
  * Converts every `isaacscript-common` function that begins with "log" to a global function.
70
70
  * This is useful for printing out variables from the in-game debug console.
@@ -39,6 +39,8 @@ local ____trinkets = require("functions.trinkets")
39
39
  local getTrinketName = ____trinkets.getTrinketName
40
40
  local ____utils = require("functions.utils")
41
41
  local printConsole = ____utils.printConsole
42
+ local ____vector = require("functions.vector")
43
+ local vectorToString = ____vector.vectorToString
42
44
  function ____exports.getDebugPrependString(self, msg, numParentFunctions)
43
45
  if numParentFunctions == nil then
44
46
  numParentFunctions = 3
@@ -442,8 +444,12 @@ function ____exports.logUserdata(userdata)
442
444
  end
443
445
  ____exports.logTable(metatable)
444
446
  end
445
- function ____exports.logVector(vector)
446
- ____exports.log(((("Vector: (" .. tostring(vector.X)) .. ", ") .. tostring(vector.Y)) .. ")")
447
+ function ____exports.logVector(vector, round)
448
+ if round == nil then
449
+ round = false
450
+ end
451
+ local vectorString = vectorToString(nil, vector, round)
452
+ ____exports.log("Vector: " .. vectorString)
447
453
  end
448
454
  function ____exports.setLogFunctionsGlobal(self)
449
455
  local globals = _G
@@ -39,7 +39,7 @@ function ____exports.getCircleDiscretizedPoints(self, centerPos, radius, numPoin
39
39
  return positions
40
40
  end
41
41
  function ____exports.inRectangle(self, position, topLeft, bottomRight)
42
- return position.X >= topLeft.X and position.X <= bottomRight.X and position.Y <= topLeft.Y and position.Y >= bottomRight.Y
42
+ return position.X >= topLeft.X and position.X <= bottomRight.X and position.Y >= topLeft.Y and position.Y <= bottomRight.Y
43
43
  end
44
44
  function ____exports.isCircleIntersectingRectangle(self, circleCenter, circleRadius, rectangleTopLeft, rectangleBottomRight)
45
45
  local nearestX = math.max(
@@ -3,7 +3,7 @@
3
3
  * Alias for the `Level.GetCurrentRoomDesc` method. Use this to make it more clear what type of
4
4
  * `RoomDescriptor` object that you are retrieving.
5
5
  */
6
- export declare function getCurrentRoomDescriptorReadOnly(): RoomDescriptorReadOnly;
6
+ export declare function getCurrentRoomDescriptorReadOnly(): ReadonlyRoomDescriptor;
7
7
  /**
8
8
  * Helper function to get the set of allowed door slots for the room at the supplied grid index.
9
9
  * This corresponds to the doors that are enabled in the STB/XML file for the room.
@@ -6,6 +6,7 @@ local L_ROOM_SHAPE_TO_RECTANGLES = ____LRoomShapeToRectangles.L_ROOM_SHAPE_TO_RE
6
6
  local ____math = require("functions.math")
7
7
  local inRectangle = ____math.inRectangle
8
8
  local ____roomShape = require("functions.roomShape")
9
+ local getRoomShapeBottomRightPosition = ____roomShape.getRoomShapeBottomRightPosition
9
10
  local getRoomShapeTopLeftPosition = ____roomShape.getRoomShapeTopLeftPosition
10
11
  local getRoomShapeWidth = ____roomShape.getRoomShapeWidth
11
12
  local isLRoom = ____roomShape.isLRoom
@@ -16,7 +17,7 @@ function ____exports.gridPositionToWorldPosition(self, gridPosition)
16
17
  end
17
18
  function isValidGridPositionNormal(self, gridPosition, roomShape)
18
19
  local topLeft = getRoomShapeTopLeftPosition(nil, roomShape)
19
- local bottomRight = getRoomShapeTopLeftPosition(nil, roomShape)
20
+ local bottomRight = getRoomShapeBottomRightPosition(nil, roomShape)
20
21
  return inRectangle(nil, gridPosition, topLeft, bottomRight)
21
22
  end
22
23
  function isValidGridPositionLRoom(self, gridPosition, roomShape)
@@ -2,6 +2,8 @@
2
2
  local ____exports = {}
3
3
  local ____cachedClasses = require("cachedClasses")
4
4
  local game = ____cachedClasses.game
5
+ local ____constants = require("constants")
6
+ local VectorZero = ____constants.VectorZero
5
7
  local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
6
8
  local preventCollectibleRotate = ____preventCollectibleRotate.preventCollectibleRotate
7
9
  local ____featuresInitialized = require("featuresInitialized")
@@ -29,7 +31,7 @@ function ____exports.spawnCollectible(self, collectibleType, position, seedOrRNG
29
31
  EntityType.ENTITY_PICKUP,
30
32
  100,
31
33
  position,
32
- Vector.Zero,
34
+ VectorZero,
33
35
  nil,
34
36
  collectibleType,
35
37
  seed
@@ -2,13 +2,14 @@
2
2
  local ____exports = {}
3
3
  local ____constants = require("constants")
4
4
  local EMPTY_PNG_PATH = ____constants.EMPTY_PNG_PATH
5
+ local VectorZero = ____constants.VectorZero
5
6
  local ____kColor = require("functions.kColor")
6
7
  local kColorEquals = ____kColor.kColorEquals
7
8
  local ____math = require("functions.math")
8
9
  local range = ____math.range
9
10
  function ____exports.texelEquals(self, sprite1, sprite2, position, layerID)
10
- local kColor1 = sprite1:GetTexel(position, Vector.Zero, 1, layerID)
11
- local kColor2 = sprite2:GetTexel(position, Vector.Zero, 1, layerID)
11
+ local kColor1 = sprite1:GetTexel(position, VectorZero, 1, layerID)
12
+ local kColor2 = sprite2:GetTexel(position, VectorZero, 1, layerID)
12
13
  return kColorEquals(nil, kColor1, kColor2)
13
14
  end
14
15
  function ____exports.clearSprite(self, sprite, ...)
@@ -4,13 +4,16 @@ local ____cachedClasses = require("cachedClasses")
4
4
  local game = ____cachedClasses.game
5
5
  local ____constants = require("constants")
6
6
  local UI_HEART_WIDTH = ____constants.UI_HEART_WIDTH
7
+ local VectorZero = ____constants.VectorZero
8
+ local ____vector = require("functions.vector")
9
+ local copyVector = ____vector.copyVector
7
10
  function ____exports.getScreenBottomRightPos(self)
8
11
  local screenWidth = Isaac.GetScreenWidth()
9
12
  local screenHeight = Isaac.GetScreenHeight()
10
13
  return Vector(screenWidth, screenHeight)
11
14
  end
12
15
  function ____exports.getHUDOffsetVector(self)
13
- local defaultVector = Vector.Zero
16
+ local defaultVector = copyVector(nil, VectorZero)
14
17
  local hudOffset = math.floor(Options.HUDOffset * 10)
15
18
  if hudOffset < 1 or hudOffset > 10 then
16
19
  return defaultVector
@@ -70,7 +73,7 @@ function ____exports.getScreenCenterPos(self)
70
73
  return bottomRight / 2
71
74
  end
72
75
  function ____exports.getScreenTopLeftPos(self)
73
- return Vector.Zero
76
+ return copyVector(nil, VectorZero)
74
77
  end
75
78
  function ____exports.getScreenTopRightPos(self)
76
79
  local bottomRight = ____exports.getScreenBottomRightPos(nil)
@@ -19,16 +19,6 @@ interface CopyVectorReturn {
19
19
  export declare function copyVector<V extends Vector | SerializedVector, S extends SerializationType>(vector: V, serializationType: S): CopyVectorReturn[S];
20
20
  export declare function copyVector<V extends Vector | SerializedVector>(vector: V): CopyVectorReturn[SerializationType.NONE];
21
21
  export declare function directionToVector(direction: Direction): Vector;
22
- /**
23
- * Helper function to get a new vector of length 1. Using this is safer than using the `Vector.One`
24
- * variable because the variable can be overwritten or modified.
25
- */
26
- export declare function getOneVector(): Vector;
27
- /**
28
- * Helper function to get a new vector of length 0. Using this is safer than using the `Vector.Zero`
29
- * variable because the variable can be overwritten or modified.
30
- */
31
- export declare function getZeroVector(): Vector;
32
22
  /**
33
23
  * Used to determine is the given table is a serialized `Vector` object created by the save data
34
24
  * manager and/or the `deepCopy` function.
@@ -37,6 +27,9 @@ export declare function isSerializedVector(object: unknown): object is Serialize
37
27
  /** Helper function to check if something is an instantiated Vector object. */
38
28
  export declare function isVector(object: unknown): object is Vector;
39
29
  export declare function vectorEquals(vector1: Vector, vector2: Vector): boolean;
30
+ /** Helper function to get a new vector of length N. */
31
+ export declare function vectorN(n: int): Vector;
40
32
  /** Helper function for finding out which way a vector is pointing. */
41
33
  export declare function vectorToDirection(vector: Vector): Direction;
34
+ export declare function vectorToString(vector: Vector, round?: boolean): string;
42
35
  export {};
@@ -74,12 +74,6 @@ end
74
74
  function ____exports.directionToVector(self, direction)
75
75
  return DIRECTION_TO_VECTOR[direction]
76
76
  end
77
- function ____exports.getOneVector(self)
78
- return Vector(1, 1)
79
- end
80
- function ____exports.getZeroVector(self)
81
- return Vector(0, 0)
82
- end
83
77
  function ____exports.isSerializedVector(self, object)
84
78
  local objectType = type(object)
85
79
  if objectType ~= "table" then
@@ -95,6 +89,9 @@ end
95
89
  function ____exports.vectorEquals(self, vector1, vector2)
96
90
  return isaacAPIClassEquals(nil, vector1, vector2, KEYS)
97
91
  end
92
+ function ____exports.vectorN(self, n)
93
+ return Vector(n, n)
94
+ end
98
95
  function ____exports.vectorToDirection(self, vector)
99
96
  local degrees = vector:GetAngleDegrees()
100
97
  if degrees > -45 and degrees < 45 then
@@ -111,4 +108,12 @@ function ____exports.vectorToDirection(self, vector)
111
108
  end
112
109
  return Direction.NO_DIRECTION
113
110
  end
111
+ function ____exports.vectorToString(self, vector, round)
112
+ if round == nil then
113
+ round = false
114
+ end
115
+ local x = round and math.floor(vector.X + 0.5) or vector.X
116
+ local y = round and math.floor(vector.Y + 0.5) or vector.Y
117
+ return ((("(" .. tostring(x)) .. ", ") .. tostring(y)) .. ")"
118
+ end
114
119
  return ____exports
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
+ local ____constants = require("constants")
4
+ local VectorZero = ____constants.VectorZero
3
5
  local TWO_BY_TWO_BOTTOM_RIGHT = Vector(25, 13)
4
6
  ____exports.L_ROOM_SHAPE_TO_RECTANGLES = {
5
7
  [RoomShape.ROOMSHAPE_LTL] = {
@@ -9,21 +11,21 @@ ____exports.L_ROOM_SHAPE_TO_RECTANGLES = {
9
11
  TWO_BY_TWO_BOTTOM_RIGHT
10
12
  },
11
13
  [RoomShape.ROOMSHAPE_LTR] = {
12
- Vector.Zero,
14
+ VectorZero,
13
15
  Vector(12, 13),
14
16
  Vector(0, 7),
15
17
  TWO_BY_TWO_BOTTOM_RIGHT
16
18
  },
17
19
  [RoomShape.ROOMSHAPE_LBL] = {
18
- Vector.Zero,
20
+ VectorZero,
19
21
  Vector(25, 6),
20
22
  Vector(13, 0),
21
23
  TWO_BY_TWO_BOTTOM_RIGHT
22
24
  },
23
25
  [RoomShape.ROOMSHAPE_LBR] = {
24
- Vector.Zero,
26
+ VectorZero,
25
27
  Vector(25, 6),
26
- Vector.Zero,
28
+ VectorZero,
27
29
  Vector(12, 13)
28
30
  }
29
31
  }
@@ -1,7 +1,9 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
+ local ____constants = require("constants")
4
+ local VectorZero = ____constants.VectorZero
3
5
  ____exports.DIRECTION_TO_VECTOR = {
4
- [Direction.NO_DIRECTION] = Vector.Zero,
6
+ [Direction.NO_DIRECTION] = VectorZero,
5
7
  [Direction.LEFT] = Vector(-1, 0),
6
8
  [Direction.UP] = Vector(0, -1),
7
9
  [Direction.RIGHT] = Vector(1, 0),
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
+ local ____constants = require("constants")
4
+ local VectorZero = ____constants.VectorZero
3
5
  local ____roomShapeVolumes = require("objects.roomShapeVolumes")
4
6
  local NARROW_CONTENTS_HEIGHT = ____roomShapeVolumes.NARROW_CONTENTS_HEIGHT
5
7
  local NARROW_CONTENTS_WIDTH = ____roomShapeVolumes.NARROW_CONTENTS_WIDTH
@@ -19,6 +21,6 @@ ____exports.ROOM_SHAPE_BOUNDS = {
19
21
  [RoomShape.ROOMSHAPE_LTR] = TWO_BY_TWO_BOUNDS,
20
22
  [RoomShape.ROOMSHAPE_LBL] = TWO_BY_TWO_BOUNDS,
21
23
  [RoomShape.ROOMSHAPE_LBR] = TWO_BY_TWO_BOUNDS,
22
- [RoomShape.NUM_ROOMSHAPES] = Vector.Zero
24
+ [RoomShape.NUM_ROOMSHAPES] = VectorZero
23
25
  }
24
26
  return ____exports
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
+ local ____constants = require("constants")
4
+ local VectorZero = ____constants.VectorZero
3
5
  local TWO_BY_TWO_BOTTOM_RIGHT_POSITION = Vector(25, 13)
4
6
  local ONE_BY_TWO_VERTICAL_BOTTOM_RIGHT_POSITION = Vector(12, 13)
5
7
  ____exports.ROOM_SHAPE_TO_BOTTOM_RIGHT_POSITION = {
@@ -15,6 +17,6 @@ ____exports.ROOM_SHAPE_TO_BOTTOM_RIGHT_POSITION = {
15
17
  [RoomShape.ROOMSHAPE_LTR] = TWO_BY_TWO_BOTTOM_RIGHT_POSITION,
16
18
  [RoomShape.ROOMSHAPE_LBL] = TWO_BY_TWO_BOTTOM_RIGHT_POSITION,
17
19
  [RoomShape.ROOMSHAPE_LBR] = ONE_BY_TWO_VERTICAL_BOTTOM_RIGHT_POSITION,
18
- [RoomShape.NUM_ROOMSHAPES] = Vector.Zero
20
+ [RoomShape.NUM_ROOMSHAPES] = VectorZero
19
21
  }
20
22
  return ____exports
@@ -1,20 +1,22 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____exports = {}
3
+ local ____constants = require("constants")
4
+ local VectorZero = ____constants.VectorZero
3
5
  local NARROW_HORIZONTAL_TOP_LEFT_POSITION = Vector(0, 2)
4
6
  local NARROW_VERTICAL_TOP_LEFT_POSITION = Vector(4, 0)
5
7
  ____exports.ROOM_SHAPE_TO_TOP_LEFT_POSITION = {
6
- [RoomShape.ROOMSHAPE_1x1] = Vector.Zero,
8
+ [RoomShape.ROOMSHAPE_1x1] = VectorZero,
7
9
  [RoomShape.ROOMSHAPE_IH] = NARROW_HORIZONTAL_TOP_LEFT_POSITION,
8
10
  [RoomShape.ROOMSHAPE_IV] = NARROW_VERTICAL_TOP_LEFT_POSITION,
9
- [RoomShape.ROOMSHAPE_1x2] = Vector.Zero,
11
+ [RoomShape.ROOMSHAPE_1x2] = VectorZero,
10
12
  [RoomShape.ROOMSHAPE_IIV] = NARROW_VERTICAL_TOP_LEFT_POSITION,
11
- [RoomShape.ROOMSHAPE_2x1] = Vector.Zero,
13
+ [RoomShape.ROOMSHAPE_2x1] = VectorZero,
12
14
  [RoomShape.ROOMSHAPE_IIH] = NARROW_HORIZONTAL_TOP_LEFT_POSITION,
13
- [RoomShape.ROOMSHAPE_2x2] = Vector.Zero,
15
+ [RoomShape.ROOMSHAPE_2x2] = VectorZero,
14
16
  [RoomShape.ROOMSHAPE_LTL] = Vector(13, 0),
15
- [RoomShape.ROOMSHAPE_LTR] = Vector.Zero,
16
- [RoomShape.ROOMSHAPE_LBL] = Vector.Zero,
17
- [RoomShape.ROOMSHAPE_LBR] = Vector.Zero,
18
- [RoomShape.NUM_ROOMSHAPES] = Vector.Zero
17
+ [RoomShape.ROOMSHAPE_LTR] = VectorZero,
18
+ [RoomShape.ROOMSHAPE_LBL] = VectorZero,
19
+ [RoomShape.ROOMSHAPE_LBR] = VectorZero,
20
+ [RoomShape.NUM_ROOMSHAPES] = VectorZero
19
21
  }
20
22
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.232",
3
+ "version": "1.2.233",
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.385",
28
+ "isaac-typescript-definitions": "^1.0.386",
29
29
  "isaacscript-lint": "^1.0.95",
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.13",