isaacscript-common 1.0.469 → 1.0.470
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.
|
@@ -8,8 +8,14 @@ function ____exports.removeGridEntity(self, gridEntity)
|
|
|
8
8
|
local room = game:GetRoom()
|
|
9
9
|
local gridIndex = gridEntity:GetGridIndex()
|
|
10
10
|
room:RemoveGridEntity(gridIndex, 0, false)
|
|
11
|
+
____exports.setGridEntityInvisible(nil, gridEntity)
|
|
11
12
|
room:Update()
|
|
12
13
|
end
|
|
14
|
+
function ____exports.setGridEntityInvisible(self, gridEntity)
|
|
15
|
+
local sprite = gridEntity:GetSprite()
|
|
16
|
+
sprite:ReplaceSpritesheet(0, "gfx/none.png")
|
|
17
|
+
sprite:LoadGraphics()
|
|
18
|
+
end
|
|
13
19
|
function ____exports.spawnGridEntityWithVariant(self, gridEntityType, variant, gridIndex)
|
|
14
20
|
local game = Game()
|
|
15
21
|
local room = game:GetRoom()
|
|
@@ -123,11 +129,6 @@ function ____exports.removeAllMatchingGridEntities(self, gridEntityType)
|
|
|
123
129
|
____exports.removeGridEntity(nil, gridEntity)
|
|
124
130
|
end
|
|
125
131
|
end
|
|
126
|
-
function ____exports.setGridEntityInvisible(self, gridEntity)
|
|
127
|
-
local sprite = gridEntity:GetSprite()
|
|
128
|
-
sprite:ReplaceSpritesheet(0, "gfx/none.png")
|
|
129
|
-
sprite:LoadGraphics()
|
|
130
|
-
end
|
|
131
132
|
function ____exports.spawnGiantPoop(self, topLeftGridIndex)
|
|
132
133
|
local game = Game()
|
|
133
134
|
local room = game:GetRoom()
|