isaacscript-common 1.0.467 → 1.0.468

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.
@@ -28,8 +28,8 @@ export declare function deployRandomJSONRoom(jsonRooms: JSONRoom[], seed?: numbe
28
28
  /**
29
29
  * Helper function to remove all naturally spawning entities and grid entities from a room. Notably,
30
30
  * this will not remove players (1), tears (2), familiars (3), lasers (7), knives (8),
31
- * projectiles (9), blacklisted NPCs such as Dark Esau, charmed NPCs, friendly NPCs, and persistent
32
- * NPCs.
31
+ * projectiles (9), blacklisted NPCs such as Dark Esau, charmed NPCs, friendly NPCs, persistent
32
+ * NPCs, doors, and walls.
33
33
  *
34
34
  * @param fillWithDecorations Optional. Set to true to fill every grid tile with an invisible
35
35
  * decoration, which prevents vanilla entities in the room from respawning the next time that the
@@ -11,6 +11,7 @@ local removeAllPickups = ____entity.removeAllPickups
11
11
  local ____gridEntity = require("functions.gridEntity")
12
12
  local convertXMLGridEntityType = ____gridEntity.convertXMLGridEntityType
13
13
  local getGridEntities = ____gridEntity.getGridEntities
14
+ local removeAllGridEntitiesExceptFor = ____gridEntity.removeAllGridEntitiesExceptFor
14
15
  local setGridEntityInvisible = ____gridEntity.setGridEntityInvisible
15
16
  local ____jsonRoom = require("functions.jsonRoom")
16
17
  local getRandomJSONRoom = ____jsonRoom.getRandomJSONRoom
@@ -74,6 +75,7 @@ function ____exports.emptyRoom(self, fillWithDecorations)
74
75
  removeAllPickups(nil)
75
76
  removeAllMatchingEntities(nil, EntityType.ENTITY_SLOT)
76
77
  removeSpecificNPCs(nil)
78
+ removeAllGridEntitiesExceptFor(nil, GridEntityType.GRID_WALL, GridEntityType.GRID_DOOR)
77
79
  setRoomCleared(nil)
78
80
  if fillWithDecorations then
79
81
  fillRoomWithDecorations(nil)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.467",
3
+ "version": "1.0.468",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",