isaacscript-common 30.11.0 → 30.11.1
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.
package/dist/index.rollup.d.ts
CHANGED
|
@@ -8567,11 +8567,11 @@ export declare function isTearFromFamiliar(tear: EntityTear, familiarVariant?: F
|
|
|
8567
8567
|
|
|
8568
8568
|
/**
|
|
8569
8569
|
* Helper function to check if a given tear is from a player (as opposed to e.g. a familiar). This
|
|
8570
|
-
* is determined by looking at the
|
|
8570
|
+
* is determined by looking at the `SpawnerEntity`.
|
|
8571
8571
|
*
|
|
8572
|
-
* For the special case of Incubus and Blood Babies, the
|
|
8573
|
-
* but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
8574
|
-
* player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
8572
|
+
* For the special case of Incubus and Blood Babies, the `SpawnerEntity` of the tear is always the
|
|
8573
|
+
* player, but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
8574
|
+
* the player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
8575
8575
|
* only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
|
|
8576
8576
|
*
|
|
8577
8577
|
* If this function is called on frame 0, it will throw a run-time error.
|
|
@@ -54,11 +54,11 @@ export declare function getTearsStat(fireDelay: float): float;
|
|
|
54
54
|
export declare function isTearFromFamiliar(tear: EntityTear, familiarVariant?: FamiliarVariant, subType?: int): boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Helper function to check if a given tear is from a player (as opposed to e.g. a familiar). This
|
|
57
|
-
* is determined by looking at the
|
|
57
|
+
* is determined by looking at the `SpawnerEntity`.
|
|
58
58
|
*
|
|
59
|
-
* For the special case of Incubus and Blood Babies, the
|
|
60
|
-
* but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
61
|
-
* player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
59
|
+
* For the special case of Incubus and Blood Babies, the `SpawnerEntity` of the tear is always the
|
|
60
|
+
* player, but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
61
|
+
* the player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
62
62
|
* only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
|
|
63
63
|
*
|
|
64
64
|
* If this function is called on frame 0, it will throw a run-time error.
|
|
@@ -66,11 +66,11 @@ function ____exports.isTearFromFamiliar(self, tear, familiarVariant, subType)
|
|
|
66
66
|
return (familiarVariant == nil or familiarVariant == familiar.Variant) and (subType == nil or subType == familiar.SubType)
|
|
67
67
|
end
|
|
68
68
|
--- Helper function to check if a given tear is from a player (as opposed to e.g. a familiar). This
|
|
69
|
-
-- is determined by looking at the
|
|
69
|
+
-- is determined by looking at the `SpawnerEntity`.
|
|
70
70
|
--
|
|
71
|
-
-- For the special case of Incubus and Blood Babies, the
|
|
72
|
-
-- but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
73
|
-
-- player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
71
|
+
-- For the special case of Incubus and Blood Babies, the `SpawnerEntity` of the tear is always the
|
|
72
|
+
-- player, but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
73
|
+
-- the player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
74
74
|
-- only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
|
|
75
75
|
--
|
|
76
76
|
-- If this function is called on frame 0, it will throw a run-time error.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "30.11.
|
|
3
|
+
"version": "30.11.1",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "dist/src/index",
|
|
26
26
|
"types": "dist/index.rollup.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^13.0.
|
|
28
|
+
"isaac-typescript-definitions": "^13.0.11"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/functions/tears.ts
CHANGED
|
@@ -95,11 +95,11 @@ export function isTearFromFamiliar(
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Helper function to check if a given tear is from a player (as opposed to e.g. a familiar). This
|
|
98
|
-
* is determined by looking at the
|
|
98
|
+
* is determined by looking at the `SpawnerEntity`.
|
|
99
99
|
*
|
|
100
|
-
* For the special case of Incubus and Blood Babies, the
|
|
101
|
-
* but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
102
|
-
* player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
100
|
+
* For the special case of Incubus and Blood Babies, the `SpawnerEntity` of the tear is always the
|
|
101
|
+
* player, but the spawner entity of the tear changes. On frame 0, the spawner entity is equal to
|
|
102
|
+
* the player, and on frame 1, the spawner entity is equal to the familiar. For this reason, you can
|
|
103
103
|
* only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
|
|
104
104
|
*
|
|
105
105
|
* If this function is called on frame 0, it will throw a run-time error.
|