isaacscript-common 1.0.471 → 1.0.472
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,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntity, spawnNormalEntity, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME,
|
|
4
|
+
local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntity, spawnNormalEntity, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, initialized, v
|
|
5
5
|
local ____errors = require("errors")
|
|
6
6
|
local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
|
|
7
7
|
local ____entity = require("functions.entity")
|
|
@@ -90,7 +90,7 @@ function removeSpecificNPCs(self)
|
|
|
90
90
|
getNPCs(nil)
|
|
91
91
|
) do
|
|
92
92
|
do
|
|
93
|
-
if
|
|
93
|
+
if NPC_TYPES_TO_NOT_REMOVE:has(npc.Type) then
|
|
94
94
|
goto __continue20
|
|
95
95
|
end
|
|
96
96
|
if (npc:HasEntityFlags(EntityFlag.FLAG_CHARM) or npc:HasEntityFlags(EntityFlag.FLAG_FRIENDLY)) or npc:HasEntityFlags(EntityFlag.FLAG_PERSISTENT) then
|
|
@@ -350,7 +350,7 @@ function getPitFrame(self, L, R, U, D, UL, UR, DL, DR)
|
|
|
350
350
|
return F
|
|
351
351
|
end
|
|
352
352
|
FEATURE_NAME = "JSON room deployer"
|
|
353
|
-
|
|
353
|
+
NPC_TYPES_TO_NOT_REMOVE = __TS__New(Set, {EntityType.ENTITY_DARK_ESAU})
|
|
354
354
|
PERSISTENT_ENTITY_TYPES = __TS__New(Set, {EntityType.ENTITY_WALL_HUGGER})
|
|
355
355
|
initialized = false
|
|
356
356
|
v = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { JSONRoom } from "../types/JSONRoom";
|
|
3
|
-
export declare function getJSONRoomOfVariant(jsonRooms: JSONRoom[], variant: int): JSONRoom |
|
|
3
|
+
export declare function getJSONRoomOfVariant(jsonRooms: JSONRoom[], variant: int): JSONRoom | undefined;
|
|
4
4
|
export declare function getJSONRoomsOfSubType(jsonRooms: JSONRoom[], subType: int): JSONRoom[];
|
|
5
5
|
export declare function getRandomJSONRoom(jsonRooms: JSONRoom[], seed?: number): JSONRoom;
|