isaacscript-common 87.9.4 → 87.9.6
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.
|
@@ -55,6 +55,7 @@ class CustomPickups extends Feature_1.Feature {
|
|
|
55
55
|
if (shouldPickup !== undefined) {
|
|
56
56
|
return shouldPickup;
|
|
57
57
|
}
|
|
58
|
+
customPickupFunctions.collectFunc(pickup, player);
|
|
58
59
|
pickup.Remove();
|
|
59
60
|
const pickupSprite = pickup.GetSprite();
|
|
60
61
|
const fileName = pickupSprite.GetFilename();
|
|
@@ -62,7 +63,6 @@ class CustomPickups extends Feature_1.Feature {
|
|
|
62
63
|
const effectSprite = effect.GetSprite();
|
|
63
64
|
effectSprite.Load(fileName, true);
|
|
64
65
|
effectSprite.Play("Collect", true);
|
|
65
|
-
customPickupFunctions.collectFunc(pickup, player);
|
|
66
66
|
return undefined;
|
|
67
67
|
};
|
|
68
68
|
// ModCallback.POST_EFFECT_RENDER (56)
|
|
@@ -49,6 +49,7 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
49
49
|
if shouldPickup ~= nil then
|
|
50
50
|
return shouldPickup
|
|
51
51
|
end
|
|
52
|
+
customPickupFunctions.collectFunc(pickup, player)
|
|
52
53
|
pickup:Remove()
|
|
53
54
|
local pickupSprite = pickup:GetSprite()
|
|
54
55
|
local fileName = pickupSprite:GetFilename()
|
|
@@ -56,7 +57,6 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
56
57
|
local effectSprite = effect:GetSprite()
|
|
57
58
|
effectSprite:Load(fileName, true)
|
|
58
59
|
effectSprite:Play("Collect", true)
|
|
59
|
-
customPickupFunctions.collectFunc(pickup, player)
|
|
60
60
|
return nil
|
|
61
61
|
end
|
|
62
62
|
self.postEffectRenderPickupEffect = function(____, effect)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 87.9.
|
|
3
|
+
isaacscript-common 87.9.5
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -7308,6 +7308,8 @@ ____exports.PickupPrice.TWO_SOUL_HEARTS = -8
|
|
|
7308
7308
|
____exports.PickupPrice[____exports.PickupPrice.TWO_SOUL_HEARTS] = "TWO_SOUL_HEARTS"
|
|
7309
7309
|
____exports.PickupPrice.ONE_HEART_AND_ONE_SOUL_HEART = -9
|
|
7310
7310
|
____exports.PickupPrice[____exports.PickupPrice.ONE_HEART_AND_ONE_SOUL_HEART] = "ONE_HEART_AND_ONE_SOUL_HEART"
|
|
7311
|
+
____exports.PickupPrice.DEVIL_SACRIFICE_SPIKES = -10
|
|
7312
|
+
____exports.PickupPrice[____exports.PickupPrice.DEVIL_SACRIFICE_SPIKES] = "DEVIL_SACRIFICE_SPIKES"
|
|
7311
7313
|
____exports.PickupPrice.FREE = -1000
|
|
7312
7314
|
____exports.PickupPrice[____exports.PickupPrice.FREE] = "FREE"
|
|
7313
7315
|
return ____exports
|
|
@@ -48186,6 +48188,7 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
48186
48188
|
if shouldPickup ~= nil then
|
|
48187
48189
|
return shouldPickup
|
|
48188
48190
|
end
|
|
48191
|
+
customPickupFunctions.collectFunc(pickup, player)
|
|
48189
48192
|
pickup:Remove()
|
|
48190
48193
|
local pickupSprite = pickup:GetSprite()
|
|
48191
48194
|
local fileName = pickupSprite:GetFilename()
|
|
@@ -48193,7 +48196,6 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
48193
48196
|
local effectSprite = effect:GetSprite()
|
|
48194
48197
|
effectSprite:Load(fileName, true)
|
|
48195
48198
|
effectSprite:Play("Collect", true)
|
|
48196
|
-
customPickupFunctions.collectFunc(pickup, player)
|
|
48197
48199
|
return nil
|
|
48198
48200
|
end
|
|
48199
48201
|
self.postEffectRenderPickupEffect = function(____, effect)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "87.9.
|
|
3
|
+
"version": "87.9.6",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"lint": "tsx --tsconfig ./scripts/tsconfig.json ./scripts/lint.mts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"isaac-typescript-definitions": "43.0.
|
|
37
|
+
"isaac-typescript-definitions": "43.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@microsoft/api-extractor": "7.57.7",
|
|
41
|
-
"complete-node": "16.
|
|
41
|
+
"complete-node": "16.4.0",
|
|
42
42
|
"eslint-plugin-sort-exports": "0.9.1",
|
|
43
|
-
"typescript-eslint": "8.57.
|
|
43
|
+
"typescript-eslint": "8.57.1",
|
|
44
44
|
"typescript-to-lua": "1.34.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -78,6 +78,8 @@ export class CustomPickups extends Feature {
|
|
|
78
78
|
return shouldPickup;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
customPickupFunctions.collectFunc(pickup, player);
|
|
82
|
+
|
|
81
83
|
pickup.Remove();
|
|
82
84
|
|
|
83
85
|
const pickupSprite = pickup.GetSprite();
|
|
@@ -92,8 +94,6 @@ export class CustomPickups extends Feature {
|
|
|
92
94
|
effectSprite.Load(fileName, true);
|
|
93
95
|
effectSprite.Play("Collect", true);
|
|
94
96
|
|
|
95
|
-
customPickupFunctions.collectFunc(pickup, player);
|
|
96
|
-
|
|
97
97
|
return undefined;
|
|
98
98
|
};
|
|
99
99
|
|