isaacscript-common 27.6.1 → 27.6.2

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,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 27.6.1
3
+ isaacscript-common 27.6.2
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -51891,7 +51891,7 @@ function ____exports.getRoomDisplayFlags(self, roomGridIndex)
51891
51891
  end
51892
51892
  local minimapAPIRoomDescriptor = MinimapAPI:GetRoomByIdx(roomGridIndex)
51893
51893
  if minimapAPIRoomDescriptor == nil then
51894
- error("Failed to get the MinimapAPI room descriptor for the room at index: " .. tostring(roomGridIndex))
51894
+ error("Failed to get the MinimapAPI room descriptor for the room at grid index: " .. tostring(roomGridIndex))
51895
51895
  end
51896
51896
  return minimapAPIRoomDescriptor:GetDisplayFlags()
51897
51897
  end
@@ -51924,12 +51924,9 @@ function ____exports.setRoomDisplayFlags(self, roomGridIndex, displayFlags, upda
51924
51924
  if displayFlags == DisplayFlagZero then
51925
51925
  return
51926
51926
  end
51927
- error("Failed to get the MinimapAPI room descriptor for the room at index: " .. tostring(roomGridIndex))
51927
+ error("Failed to get the MinimapAPI room descriptor for the room at grid index: " .. tostring(roomGridIndex))
51928
51928
  end
51929
51929
  minimapAPIRoomDescriptor:SetDisplayFlags(displayFlags)
51930
- if displayFlags == DisplayFlagZero then
51931
- minimapAPIRoomDescriptor:Remove()
51932
- end
51933
51930
  end
51934
51931
  end
51935
51932
  function ____exports.addRoomDisplayFlag(self, roomGridIndex, displayFlag, updateVisibility)
@@ -1 +1 @@
1
- {"version":3,"file":"minimap.d.ts","sourceRoot":"","sources":["../../../src/functions/minimap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,8BAA8B,CAAC;AAM5E;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,GAAG,GAAG,S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IAAI,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAUtE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,GAAG,GAClB,QAAQ,CAAC,WAAW,CAAC,CAiBvB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI,CAW5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GAC/C,IAAI,CAWN;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,GAAG,SAAS,EAC9B,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,EACnC,gBAAgB,UAAO,GACtB,IAAI,CA2BN"}
@@ -30,7 +30,7 @@ function ____exports.getRoomDisplayFlags(self, roomGridIndex)
30
30
  end
31
31
  local minimapAPIRoomDescriptor = MinimapAPI:GetRoomByIdx(roomGridIndex)
32
32
  if minimapAPIRoomDescriptor == nil then
33
- error("Failed to get the MinimapAPI room descriptor for the room at index: " .. tostring(roomGridIndex))
33
+ error("Failed to get the MinimapAPI room descriptor for the room at grid index: " .. tostring(roomGridIndex))
34
34
  end
35
35
  return minimapAPIRoomDescriptor:GetDisplayFlags()
36
36
  end
@@ -80,12 +80,9 @@ function ____exports.setRoomDisplayFlags(self, roomGridIndex, displayFlags, upda
80
80
  if displayFlags == DisplayFlagZero then
81
81
  return
82
82
  end
83
- error("Failed to get the MinimapAPI room descriptor for the room at index: " .. tostring(roomGridIndex))
83
+ error("Failed to get the MinimapAPI room descriptor for the room at grid index: " .. tostring(roomGridIndex))
84
84
  end
85
85
  minimapAPIRoomDescriptor:SetDisplayFlags(displayFlags)
86
- if displayFlags == DisplayFlagZero then
87
- minimapAPIRoomDescriptor:Remove()
88
- end
89
86
  end
90
87
  end
91
88
  --- Helper function to add a `DisplayFlag` to a particular room's minimap display flags (e.g. whether
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "27.6.1",
3
+ "version": "27.6.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
7
7
  "rebirth",
8
8
  "afterbirth",
9
- "repentance"
9
+ "repentance",
10
+ "typescript-to-lua",
11
+ "lua",
12
+ "tstl"
10
13
  ],
11
14
  "homepage": "https://isaacscript.github.io/",
12
15
  "bugs": {
@@ -90,7 +90,7 @@ export function getRoomDisplayFlags(
90
90
  const minimapAPIRoomDescriptor = MinimapAPI.GetRoomByIdx(roomGridIndex);
91
91
  if (minimapAPIRoomDescriptor === undefined) {
92
92
  error(
93
- `Failed to get the MinimapAPI room descriptor for the room at index: ${roomGridIndex}`,
93
+ `Failed to get the MinimapAPI room descriptor for the room at grid index: ${roomGridIndex}`,
94
94
  );
95
95
  }
96
96
  return minimapAPIRoomDescriptor.GetDisplayFlags();
@@ -181,15 +181,9 @@ export function setRoomDisplayFlags(
181
181
  }
182
182
 
183
183
  error(
184
- `Failed to get the MinimapAPI room descriptor for the room at index: ${roomGridIndex}`,
184
+ `Failed to get the MinimapAPI room descriptor for the room at grid index: ${roomGridIndex}`,
185
185
  );
186
186
  }
187
187
  minimapAPIRoomDescriptor.SetDisplayFlags(displayFlags);
188
-
189
- // MinimapAPI is bugged such that setting the display flags to 0 does not make the room
190
- // invisible. We delete the room to work around this.
191
- if (displayFlags === DisplayFlagZero) {
192
- minimapAPIRoomDescriptor.Remove();
193
- }
194
188
  }
195
189
  }