isaacscript-common 2.0.19 → 2.0.20
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,5 +1,3 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/** For EntityType.
|
|
2
|
+
/** For EntityType.SLOT (6) */
|
|
3
3
|
export declare function isSlot(entity: Entity): entity is EntitySlot;
|
|
4
|
-
/** For EntityType.RAGLING (246) */
|
|
5
|
-
export declare function isRagling(npc: EntityNPC): npc is EntityNPCRagling;
|
package/dist/functions/npc.lua
CHANGED
|
@@ -27,8 +27,6 @@ local getFilteredNewEntities = ____entity.getFilteredNewEntities
|
|
|
27
27
|
local ____entitySpecific = require("functions.entitySpecific")
|
|
28
28
|
local getNPCs = ____entitySpecific.getNPCs
|
|
29
29
|
local getProjectiles = ____entitySpecific.getProjectiles
|
|
30
|
-
local ____entityTypes = require("functions.entityTypes")
|
|
31
|
-
local isRagling = ____entityTypes.isRagling
|
|
32
30
|
function ____exports.isAliveExceptionNPC(self, npc)
|
|
33
31
|
local entityTypeVariant = (tostring(npc.Type) .. ".") .. tostring(npc.Variant)
|
|
34
32
|
if NON_ALIVE_NPCS_TYPE_VARIANT:has(entityTypeVariant) then
|
|
@@ -50,7 +48,7 @@ function ____exports.isDyingEggyWithNoSpidersLeft(self, npc)
|
|
|
50
48
|
return npc.State == NpcState.SUICIDE and npc.StateFrame >= EGGY_STATE_FRAME_OF_FINAL_SPIDER
|
|
51
49
|
end
|
|
52
50
|
function ____exports.isRaglingDeathPatch(self, npc)
|
|
53
|
-
return
|
|
51
|
+
return npc.Type == EntityType.RAGLING and npc.Variant == RaglingVariant.RAG_MANS_RAGLING and npc.State == NpcState.SPECIAL
|
|
54
52
|
end
|
|
55
53
|
NON_ALIVE_NPCS_TYPE_VARIANT = __TS__New(
|
|
56
54
|
Set,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^2.0.
|
|
28
|
+
"isaac-typescript-definitions": "^2.0.36"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"isaacscript-lint": "^1.0.
|
|
31
|
+
"isaacscript-lint": "^1.0.157",
|
|
32
32
|
"isaacscript-spell": "^1.0.3",
|
|
33
33
|
"isaacscript-tsconfig": "^1.1.16",
|
|
34
34
|
"npm-check-updates": "^13.0.1",
|