isaacscript-common 87.8.2 → 87.9.0
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/classes/ModFeature.d.ts.map +1 -1
- package/dist/classes/ModFeature.js +2 -0
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/ModUpgraded.js +1 -0
- package/dist/classes/features/other/CustomPickups.d.ts +6 -5
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.js +10 -9
- package/dist/classes/features/other/CustomPickups.lua +5 -5
- package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/classes/features/other/CustomTrapdoors.js +4 -1
- package/dist/classes/features/other/CustomTrapdoors.lua +3 -1
- package/dist/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/classes/features/other/FastReset.js +5 -1
- package/dist/classes/features/other/FastReset.lua +4 -1
- package/dist/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/classes/features/other/Pause.js +11 -1
- package/dist/classes/features/other/Pause.lua +14 -3
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +1 -1
- package/dist/classes/features/other/saveDataManager/restoreDefaults.lua +1 -1
- package/dist/core/constants.d.ts +2 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +2 -0
- package/dist/core/constants.lua +2 -0
- package/dist/enums/ModCallbackCustom.d.ts +10 -8
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.js +10 -8
- package/dist/functions/bosses.d.ts +2 -2
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.js +2 -2
- package/dist/functions/deepCopyTests.js +10 -16
- package/dist/functions/deepCopyTests.lua +8 -16
- package/dist/functions/entities.d.ts +4 -4
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.js +4 -4
- package/dist/functions/entitiesSpecific.d.ts +20 -20
- package/dist/functions/entitiesSpecific.d.ts.map +1 -1
- package/dist/functions/entitiesSpecific.js +20 -20
- package/dist/functions/pickupsSpecific.d.ts +18 -18
- package/dist/functions/pickupsSpecific.d.ts.map +1 -1
- package/dist/functions/pickupsSpecific.js +18 -18
- package/dist/functions/playerCollectibles.d.ts.map +1 -1
- package/dist/functions/playerCollectibles.js +1 -3
- package/dist/functions/playerCollectibles.lua +1 -1
- package/dist/index.rollup.d.ts +62 -57
- package/dist/isaacscript-common.lua +676 -46
- package/dist/objects/backdropTypeToRockAltType.d.ts +2 -0
- package/dist/objects/backdropTypeToRockAltType.d.ts.map +1 -1
- package/dist/objects/backdropTypeToRockAltType.js +2 -0
- package/dist/objects/backdropTypeToRockAltType.lua +3 -1
- package/dist/objects/roomTypeNames.d.ts +1 -0
- package/dist/objects/roomTypeNames.d.ts.map +1 -1
- package/dist/objects/roomTypeNames.js +1 -0
- package/dist/objects/roomTypeNames.lua +2 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts.map +1 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.js +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.lua +2 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +6 -6
- package/src/classes/ModFeature.ts +2 -0
- package/src/classes/ModUpgraded.ts +1 -0
- package/src/classes/features/other/CustomPickups.ts +25 -12
- package/src/classes/features/other/CustomTrapdoors.ts +5 -2
- package/src/classes/features/other/FastReset.ts +5 -1
- package/src/classes/features/other/Pause.ts +15 -2
- package/src/classes/features/other/saveDataManager/restoreDefaults.ts +1 -1
- package/src/core/constants.ts +2 -0
- package/src/enums/ModCallbackCustom.ts +10 -8
- package/src/functions/bosses.ts +3 -3
- package/src/functions/deepCopyTests.ts +10 -16
- package/src/functions/entities.ts +6 -6
- package/src/functions/entitiesSpecific.ts +30 -30
- package/src/functions/pickupsSpecific.ts +27 -27
- package/src/functions/playerCollectibles.ts +1 -3
- package/src/objects/backdropTypeToRockAltType.ts +2 -0
- package/src/objects/roomTypeNames.ts +1 -0
- package/src/objects/roomTypeSpecialGotoPrefixes.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAUpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAyBpE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAUpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAyBpE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,UAAU;IAGrB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAElC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,yBAAyB,EAC/B,CAAC,CAAC,CAAC,SAAS,OAAO,EACjB,OAAO,EAAE,CAAC,EACV,WAAW,EAAE,CAAC,SAAS,IAAI,GAAG,WAAW,GAAG,iBAAiB,EAC7D,GAAG,YAAY,EAAE,SAAS,OAAO,EAAE,KAChC,OAAO,CAAC,GACb,IAAI,CAAQ;IAEhB;;;;;OAKG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,WAAW,EAAE,IAAI,UAAO;IAQzC;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAuB9B;;;;;OAKG;IACI,MAAM,IAAI,IAAI;CAGtB"}
|
|
@@ -32,6 +32,8 @@ const WRAPPED_CUSTOM_CALLBACK_METHODS_KEY = "__wrappedCustomCallbacksMethods";
|
|
|
32
32
|
* upon first construction.)
|
|
33
33
|
*/
|
|
34
34
|
class ModFeature {
|
|
35
|
+
// Other features will extend from this feature and they might need access to the underlying mod.
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-private-class-members
|
|
35
37
|
mod;
|
|
36
38
|
/**
|
|
37
39
|
* An optional method that allows for conditional callback execution. If specified, any class
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModUpgraded.d.ts","sourceRoot":"","sources":["../../src/classes/ModUpgraded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAI7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAW/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAMrG;;;;;;;;;;GAUG;AACH,qBAAa,WAAY,YAAW,GAAG;IAK9B,IAAI,EAAE,MAAM,CAAC;IAMpB,4FAA4F;IAC5F,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;IAE1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAoB;IAElD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAMd,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,KAAK;IAgBpD,WAAW,CAAC,CAAC,SAA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B,cAAc,CAAC,CAAC,SAAS,WAAW,EACzC,WAAW,EAAE,CAAC,EACd,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACpC,IAAI;IAIA,UAAU,IAAI,IAAI;IAIlB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQnC;;;;;;OAMG;IACI,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,EAClD,iBAAiB,EAAE,CAAC,EACpB,GAAG,IAAI,EAAE,2BAA2B,CAAC,CAAC,CAAC,GACtC,IAAI;IAQP;;;;OAIG;IACI,yBAAyB,CAAC,CAAC,SAAS,iBAAiB,EAC1D,iBAAiB,EAAE,CAAC,EACpB,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,IAAI,EAAE,2BAA2B,CAAC,CAAC,CAAC,GACtC,IAAI;IAQP;;;;;;;;;OASG;IACI,oBAAoB,CAAC,CAAC,SAAS,iBAAiB,EACrD,iBAAiB,EAAE,CAAC,EACpB,QAAQ,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1C,IAAI;IAOP;;;OAGG;IACI,eAAe,IAAI,IAAI;IAsD9B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA8DnB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAqDrB;;;;OAIG;IAEH,OAAO,CAAC,mBAAmB;CAM5B"}
|
|
@@ -283,6 +283,7 @@ class ModUpgraded {
|
|
|
283
283
|
* called from the "upgradeMod" function, but we want to mark it as private so that end-users
|
|
284
284
|
* don't have access to it.
|
|
285
285
|
*/
|
|
286
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-private-class-members
|
|
286
287
|
initOptionalFeature(feature) {
|
|
287
288
|
const featureClass = this.features[feature];
|
|
288
289
|
this.initFeature(featureClass);
|
|
@@ -26,12 +26,13 @@ export declare class CustomPickups extends Feature {
|
|
|
26
26
|
* @param subType The sub-type for the corresponding custom pickup.
|
|
27
27
|
* @param collectFunc The function to run when the player collects this pickup.
|
|
28
28
|
* @param collisionFunc Optional. The function to run when a player collides with the pickup.
|
|
29
|
-
* Default is a function that always returns
|
|
30
|
-
* will always immediately collect the pickup when they collide with
|
|
31
|
-
* Specify this function if your pickup should only be able to be
|
|
32
|
-
* under certain conditions.
|
|
29
|
+
* Default is a function that always returns undefined, meaning that the
|
|
30
|
+
* player will always immediately collect the pickup when they collide with
|
|
31
|
+
* it. Specify this function if your pickup should only be able to be
|
|
32
|
+
* collected under certain conditions. Return value acts similar to
|
|
33
|
+
* `ModCallback.PRE_PICKUP_COLLISION`.
|
|
33
34
|
* @public
|
|
34
35
|
*/
|
|
35
|
-
registerCustomPickup(pickupVariantCustom: PickupVariant, subType: int, collectFunc: (this: void, player: EntityPlayer) => void, collisionFunc?: (this: void, player: EntityPlayer) => boolean): void;
|
|
36
|
+
registerCustomPickup(pickupVariantCustom: PickupVariant, subType: int, collectFunc: (this: void, pickup: EntityPickup, player: EntityPlayer) => void, collisionFunc?: (this: void, pickup: EntityPickup, player: EntityPlayer) => boolean | undefined): void;
|
|
36
37
|
}
|
|
37
38
|
//# sourceMappingURL=CustomPickups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAalE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAalE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAsBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAGrC;IAoBJ,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAqCjC;IAIF,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAU3C;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,KACjB,IAAI,EACT,aAAa,GAAE,CACb,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,KACjB,OAAO,GAAG,SAA2B,GACzC,IAAI;CAYR"}
|
|
@@ -51,9 +51,9 @@ class CustomPickups extends Feature_1.Feature {
|
|
|
51
51
|
if (player === undefined) {
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
|
-
const shouldPickup = customPickupFunctions.collisionFunc(player);
|
|
55
|
-
if (
|
|
56
|
-
return
|
|
54
|
+
const shouldPickup = customPickupFunctions.collisionFunc(pickup, player);
|
|
55
|
+
if (shouldPickup !== undefined) {
|
|
56
|
+
return shouldPickup;
|
|
57
57
|
}
|
|
58
58
|
pickup.Remove();
|
|
59
59
|
const pickupSprite = pickup.GetSprite();
|
|
@@ -62,7 +62,7 @@ class CustomPickups extends Feature_1.Feature {
|
|
|
62
62
|
const effectSprite = effect.GetSprite();
|
|
63
63
|
effectSprite.Load(fileName, true);
|
|
64
64
|
effectSprite.Play("Collect", true);
|
|
65
|
-
customPickupFunctions.collectFunc(player);
|
|
65
|
+
customPickupFunctions.collectFunc(pickup, player);
|
|
66
66
|
return undefined;
|
|
67
67
|
};
|
|
68
68
|
// ModCallback.POST_EFFECT_RENDER (56)
|
|
@@ -98,13 +98,14 @@ class CustomPickups extends Feature_1.Feature {
|
|
|
98
98
|
* @param subType The sub-type for the corresponding custom pickup.
|
|
99
99
|
* @param collectFunc The function to run when the player collects this pickup.
|
|
100
100
|
* @param collisionFunc Optional. The function to run when a player collides with the pickup.
|
|
101
|
-
* Default is a function that always returns
|
|
102
|
-
* will always immediately collect the pickup when they collide with
|
|
103
|
-
* Specify this function if your pickup should only be able to be
|
|
104
|
-
* under certain conditions.
|
|
101
|
+
* Default is a function that always returns undefined, meaning that the
|
|
102
|
+
* player will always immediately collect the pickup when they collide with
|
|
103
|
+
* it. Specify this function if your pickup should only be able to be
|
|
104
|
+
* collected under certain conditions. Return value acts similar to
|
|
105
|
+
* `ModCallback.PRE_PICKUP_COLLISION`.
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
107
|
-
registerCustomPickup(pickupVariantCustom, subType, collectFunc, collisionFunc = () =>
|
|
108
|
+
registerCustomPickup(pickupVariantCustom, subType, collectFunc, collisionFunc = () => undefined) {
|
|
108
109
|
const entityID = (0, entities_1.getEntityIDFromConstituents)(isaac_typescript_definitions_1.EntityType.PICKUP, pickupVariantCustom, subType);
|
|
109
110
|
const customPickupFunctions = {
|
|
110
111
|
collectFunc,
|
|
@@ -45,9 +45,9 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
45
45
|
if player == nil then
|
|
46
46
|
return nil
|
|
47
47
|
end
|
|
48
|
-
local shouldPickup = customPickupFunctions.collisionFunc(player)
|
|
49
|
-
if
|
|
50
|
-
return
|
|
48
|
+
local shouldPickup = customPickupFunctions.collisionFunc(pickup, player)
|
|
49
|
+
if shouldPickup ~= nil then
|
|
50
|
+
return shouldPickup
|
|
51
51
|
end
|
|
52
52
|
pickup:Remove()
|
|
53
53
|
local pickupSprite = pickup:GetSprite()
|
|
@@ -56,7 +56,7 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
56
56
|
local effectSprite = effect:GetSprite()
|
|
57
57
|
effectSprite:Load(fileName, true)
|
|
58
58
|
effectSprite:Play("Collect", true)
|
|
59
|
-
customPickupFunctions.collectFunc(player)
|
|
59
|
+
customPickupFunctions.collectFunc(pickup, player)
|
|
60
60
|
return nil
|
|
61
61
|
end
|
|
62
62
|
self.postEffectRenderPickupEffect = function(____, effect)
|
|
@@ -72,7 +72,7 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
72
72
|
end
|
|
73
73
|
function CustomPickups.prototype.registerCustomPickup(self, pickupVariantCustom, subType, collectFunc, collisionFunc)
|
|
74
74
|
if collisionFunc == nil then
|
|
75
|
-
collisionFunc = function() return
|
|
75
|
+
collisionFunc = function() return nil end
|
|
76
76
|
end
|
|
77
77
|
local entityID = getEntityIDFromConstituents(nil, EntityType.PICKUP, pickupVariantCustom, subType)
|
|
78
78
|
local customPickupFunctions = {collectFunc = collectFunc, collisionFunc = collisionFunc}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTrapdoors.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomTrapdoors.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,UAAU,EAKV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAoCtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAqDhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,qCAAqC;IACrC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAO/B;IAKJ;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAY;IAExC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAmD5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAMzB;IAEF,OAAO,CAAC,2BAA2B;IA+BnC,OAAO,CAAC,8BAA8B;I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,iCAAiC;IAqBzC,OAAO,CAAC,eAAe;IAoBvB,OAAO,CAAC,QAAQ,CAAC,kCAAkC,CAcjD;IAEF,OAAO,CAAC,4BAA4B;IAuBpC,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,gCAAgC;IAuCxC,OAAO,CAAC,2BAA2B;IAuCnC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAEzC;IAEF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,uBAAuB;IA2B/B,OAAO,CAAC,eAAe;IAUvB;;;;;;;;;;;;;;;;;;OAkBG;IAEI,iCAAiC,CACtC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,gBAAgB,EAAE,UAAU,EAC5B,oBAAoB,EAAE,SAAS,KAC5B,IAAI,GACR,IAAI;IAUP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IAEI,mBAAmB,CACxB,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,eAAe,CAAC,EAAE,MAAM,EACxB,gBAAgB,CAAC,EAAE,UAAU,EAC7B,oBAAoB,CAAC,EAAE,SAAS,EAChC,QAAQ,SAAmC,EAC3C,SAAS,CAAC,EAAE,OAAO,GAClB,UAAU;CAiDd"}
|
|
@@ -345,7 +345,10 @@ class CustomTrapdoors extends Feature_1.Feature {
|
|
|
345
345
|
// We don't want to allow pausing, since that will allow render frames to pass without advancing
|
|
346
346
|
// the stage traveling logic. (We track how many render frames have passed to know when to move
|
|
347
347
|
// to the next step.)
|
|
348
|
-
const
|
|
348
|
+
const buttonActionConsole = (0, utils_1.isRepentancePlus)()
|
|
349
|
+
? isaac_typescript_definitions_1.ButtonAction.CONSOLE_REPENTANCE_PLUS
|
|
350
|
+
: isaac_typescript_definitions_1.ButtonAction.CONSOLE_REPENTANCE;
|
|
351
|
+
const whitelist = new ReadonlySet_1.ReadonlySet([buttonActionConsole]);
|
|
349
352
|
this.disableInputs.disableAllInputsExceptFor(tstlClassName, whitelist);
|
|
350
353
|
setPlayerAttributes(player, gridEntity.Position);
|
|
351
354
|
dropTaintedForgotten(player);
|
|
@@ -67,6 +67,7 @@ local ____tstlClass = require("functions.tstlClass")
|
|
|
67
67
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
68
68
|
local ____utils = require("functions.utils")
|
|
69
69
|
local assertDefined = ____utils.assertDefined
|
|
70
|
+
local isRepentancePlus = ____utils.isRepentancePlus
|
|
70
71
|
local ____vector = require("functions.vector")
|
|
71
72
|
local isVector = ____vector.isVector
|
|
72
73
|
local ____ReadonlySet = require("types.ReadonlySet")
|
|
@@ -352,7 +353,8 @@ function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity,
|
|
|
352
353
|
self:logStateChanged()
|
|
353
354
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
354
355
|
assertDefined(nil, tstlClassName, "Failed to find get the class name for the custom trapdoor feature.")
|
|
355
|
-
local
|
|
356
|
+
local buttonActionConsole = isRepentancePlus(nil) and ButtonAction.CONSOLE_REPENTANCE_PLUS or ButtonAction.CONSOLE_REPENTANCE
|
|
357
|
+
local whitelist = __TS__New(ReadonlySet, {buttonActionConsole})
|
|
356
358
|
self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
|
|
357
359
|
setPlayerAttributes(nil, player, gridEntity.Position)
|
|
358
360
|
dropTaintedForgotten(nil, player)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FastReset.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/FastReset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FastReset.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/FastReset.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKhD,qBAAa,SAAU,SAAQ,OAAO;IACpC,OAAO,CAAC,OAAO,CAAS;IAaxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAMzB;IAEF;;;;;;;;;;;OAWG;IAEI,eAAe,IAAI,IAAI;IAI9B;;;;;;;OAOG;IAEI,gBAAgB,IAAI,IAAI;CAGhC"}
|
|
@@ -12,6 +12,7 @@ const cachedClasses_1 = require("../../../core/cachedClasses");
|
|
|
12
12
|
const decorators_1 = require("../../../decorators");
|
|
13
13
|
const input_1 = require("../../../functions/input");
|
|
14
14
|
const run_1 = require("../../../functions/run");
|
|
15
|
+
const utils_1 = require("../../../functions/utils");
|
|
15
16
|
const Feature_1 = require("../../private/Feature");
|
|
16
17
|
class FastReset extends Feature_1.Feature {
|
|
17
18
|
enabled = false;
|
|
@@ -82,7 +83,10 @@ function checkResetInput() {
|
|
|
82
83
|
}
|
|
83
84
|
// Check to see if the player has pressed the restart input. (We check all inputs instead of
|
|
84
85
|
// `player.ControllerIndex` because a controller player might be using the keyboard to reset.)
|
|
85
|
-
|
|
86
|
+
const buttonActionRestart = (0, utils_1.isRepentancePlus)()
|
|
87
|
+
? isaac_typescript_definitions_1.ButtonAction.RESTART_REPENTANCE_PLUS
|
|
88
|
+
: isaac_typescript_definitions_1.ButtonAction.RESTART_REPENTANCE;
|
|
89
|
+
if ((0, input_1.isActionTriggeredOnAnyInput)(buttonActionRestart)) {
|
|
86
90
|
(0, run_1.restart)();
|
|
87
91
|
}
|
|
88
92
|
}
|
|
@@ -16,6 +16,8 @@ local isActionTriggeredOnAnyInput = ____input.isActionTriggeredOnAnyInput
|
|
|
16
16
|
local isModifierKeyPressed = ____input.isModifierKeyPressed
|
|
17
17
|
local ____run = require("functions.run")
|
|
18
18
|
local restart = ____run.restart
|
|
19
|
+
local ____utils = require("functions.utils")
|
|
20
|
+
local isRepentancePlus = ____utils.isRepentancePlus
|
|
19
21
|
local ____Feature = require("classes.private.Feature")
|
|
20
22
|
local Feature = ____Feature.Feature
|
|
21
23
|
function checkResetInput(self)
|
|
@@ -29,7 +31,8 @@ function checkResetInput(self)
|
|
|
29
31
|
if isModifierKeyPressed(nil) then
|
|
30
32
|
return
|
|
31
33
|
end
|
|
32
|
-
|
|
34
|
+
local buttonActionRestart = isRepentancePlus(nil) and ButtonAction.RESTART_REPENTANCE_PLUS or ButtonAction.RESTART_REPENTANCE
|
|
35
|
+
if isActionTriggeredOnAnyInput(nil, buttonActionRestart) then
|
|
33
36
|
restart(nil)
|
|
34
37
|
end
|
|
35
38
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAsB9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAazB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAiBxC;IAEF;;;;;OAKG;IAEI,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;;;OAYG;IAEI,KAAK,IAAI,IAAI;IAgEpB;;;;;;OAMG;IAEI,OAAO,IAAI,IAAI;CA6BvB"}
|
|
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Pause = void 0;
|
|
10
10
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
11
|
+
const cachedClasses_1 = require("../../../core/cachedClasses");
|
|
11
12
|
const constants_1 = require("../../../core/constants");
|
|
12
13
|
const decorators_1 = require("../../../decorators");
|
|
13
14
|
const entitiesSpecific_1 = require("../../../functions/entitiesSpecific");
|
|
@@ -52,6 +53,9 @@ class Pause extends Feature_1.Feature {
|
|
|
52
53
|
}
|
|
53
54
|
const firstPlayer = Isaac.GetPlayer();
|
|
54
55
|
(0, playerCollectibles_1.useActiveItemTemp)(firstPlayer, isaac_typescript_definitions_1.CollectibleType.PAUSE);
|
|
56
|
+
if ((0, utils_1.isRepentancePlus)()) {
|
|
57
|
+
cachedClasses_1.sfxManager.Stop(isaac_typescript_definitions_1.SoundEffect.PAUSE_FREEZE);
|
|
58
|
+
}
|
|
55
59
|
this.stopTearsAndProjectilesFromMoving();
|
|
56
60
|
};
|
|
57
61
|
stopTearsAndProjectilesFromMoving() {
|
|
@@ -139,11 +143,17 @@ class Pause extends Feature_1.Feature {
|
|
|
139
143
|
}
|
|
140
144
|
const firstPlayer = Isaac.GetPlayer();
|
|
141
145
|
(0, playerCollectibles_1.useActiveItemTemp)(firstPlayer, isaac_typescript_definitions_1.CollectibleType.PAUSE);
|
|
146
|
+
if ((0, utils_1.isRepentancePlus)()) {
|
|
147
|
+
cachedClasses_1.sfxManager.Stop(isaac_typescript_definitions_1.SoundEffect.PAUSE_FREEZE);
|
|
148
|
+
}
|
|
142
149
|
const tstlClassName = (0, tstlClass_1.getTSTLClassName)(this);
|
|
143
150
|
(0, utils_1.assertDefined)(tstlClassName, "Failed to get the class name for the pause feature.");
|
|
151
|
+
const buttonActionConsole = (0, utils_1.isRepentancePlus)()
|
|
152
|
+
? isaac_typescript_definitions_1.ButtonAction.CONSOLE_REPENTANCE_PLUS
|
|
153
|
+
: isaac_typescript_definitions_1.ButtonAction.CONSOLE_REPENTANCE;
|
|
144
154
|
const whitelist = new ReadonlySet_1.ReadonlySet([
|
|
145
155
|
isaac_typescript_definitions_1.ButtonAction.MENU_CONFIRM,
|
|
146
|
-
|
|
156
|
+
buttonActionConsole,
|
|
147
157
|
]);
|
|
148
158
|
this.disableInputs.disableAllInputsExceptFor(tstlClassName, whitelist);
|
|
149
159
|
for (const player of (0, playerIndex_1.getAllPlayers)()) {
|
|
@@ -13,6 +13,9 @@ local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
|
|
|
13
13
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
14
14
|
local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
|
|
15
15
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
16
|
+
local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
17
|
+
local ____cachedClasses = require("core.cachedClasses")
|
|
18
|
+
local sfxManager = ____cachedClasses.sfxManager
|
|
16
19
|
local ____constants = require("core.constants")
|
|
17
20
|
local VectorZero = ____constants.VectorZero
|
|
18
21
|
local ____decorators = require("decorators")
|
|
@@ -34,6 +37,7 @@ local ____tstlClass = require("functions.tstlClass")
|
|
|
34
37
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
35
38
|
local ____utils = require("functions.utils")
|
|
36
39
|
local assertDefined = ____utils.assertDefined
|
|
40
|
+
local isRepentancePlus = ____utils.isRepentancePlus
|
|
37
41
|
local ____ReadonlySet = require("types.ReadonlySet")
|
|
38
42
|
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
39
43
|
local ____Feature = require("classes.private.Feature")
|
|
@@ -56,6 +60,9 @@ function Pause.prototype.____constructor(self, disableInputs)
|
|
|
56
60
|
end
|
|
57
61
|
local firstPlayer = Isaac.GetPlayer()
|
|
58
62
|
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
63
|
+
if isRepentancePlus(nil) then
|
|
64
|
+
sfxManager:Stop(SoundEffect.PAUSE_FREEZE)
|
|
65
|
+
end
|
|
59
66
|
self:stopTearsAndProjectilesFromMoving()
|
|
60
67
|
end
|
|
61
68
|
self.inputActionGetActionValue = function(____, _entity, _inputHook, buttonAction)
|
|
@@ -83,7 +90,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
83
90
|
local ptrHash = GetPtrHash(tearOrProjectile)
|
|
84
91
|
local initialDescription = v.run.initialDescriptions:get(ptrHash)
|
|
85
92
|
if initialDescription == nil then
|
|
86
|
-
goto
|
|
93
|
+
goto __continue10
|
|
87
94
|
end
|
|
88
95
|
tearOrProjectile.Position = initialDescription.position
|
|
89
96
|
tearOrProjectile.PositionOffset = initialDescription.positionOffset
|
|
@@ -96,7 +103,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
96
103
|
tearOrProjectile.FallingAccel = initialDescription.fallingAcceleration
|
|
97
104
|
end
|
|
98
105
|
end
|
|
99
|
-
::
|
|
106
|
+
::__continue10::
|
|
100
107
|
end
|
|
101
108
|
end
|
|
102
109
|
function Pause.prototype.isPaused(self)
|
|
@@ -130,9 +137,13 @@ function Pause.prototype.pause(self)
|
|
|
130
137
|
end
|
|
131
138
|
local firstPlayer = Isaac.GetPlayer()
|
|
132
139
|
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
140
|
+
if isRepentancePlus(nil) then
|
|
141
|
+
sfxManager:Stop(SoundEffect.PAUSE_FREEZE)
|
|
142
|
+
end
|
|
133
143
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
134
144
|
assertDefined(nil, tstlClassName, "Failed to get the class name for the pause feature.")
|
|
135
|
-
local
|
|
145
|
+
local buttonActionConsole = isRepentancePlus(nil) and ButtonAction.CONSOLE_REPENTANCE_PLUS or ButtonAction.CONSOLE_REPENTANCE
|
|
146
|
+
local whitelist = __TS__New(ReadonlySet, {ButtonAction.MENU_CONFIRM, buttonActionConsole})
|
|
136
147
|
self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
|
|
137
148
|
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
138
149
|
player.ControlsEnabled = false
|
|
@@ -46,7 +46,7 @@ function restoreDefaultForFeatureKey(saveDataDefaultsMap, subscriberName, saveDa
|
|
|
46
46
|
// Get the default values for the specific sub-table of this feature.
|
|
47
47
|
const childTableDefaults = saveDataDefaults[saveDataKey];
|
|
48
48
|
if (childTableDefaults === undefined) {
|
|
49
|
-
(0, log_1.logError)(`Failed to find the default copy of the child table "${saveDataKey}" for subscriber "${subscriberName}". This error usually means that your mod-specific save data is out of date. You can try purging all of your mod-specific save data by deleting the following directory: C
|
|
49
|
+
(0, log_1.logError)(String.raw `Failed to find the default copy of the child table "${saveDataKey}" for subscriber "${subscriberName}". This error usually means that your mod-specific save data is out of date. You can try purging all of your mod-specific save data by deleting the following directory: C:\Program Files (x86)\Steam\steamapps\common\The Binding of Isaac Rebirth\data`);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
// Make a new copy of the default child table.
|
|
@@ -49,7 +49,7 @@ function ____exports.restoreDefaultForFeatureKey(self, saveDataDefaultsMap, subs
|
|
|
49
49
|
end
|
|
50
50
|
local childTableDefaults = saveDataDefaults[saveDataKey]
|
|
51
51
|
if childTableDefaults == nil then
|
|
52
|
-
logError((
|
|
52
|
+
logError(String:raw({[1] = "Failed to find the default copy of the child table \"", [2] = "\" for subscriber \"", [3] = "\". This error usually means that your mod-specific save data is out of date. You can try purging all of your mod-specific save data by deleting the following directory: C:Program Files (x86)SteamsteamappscommonThe Binding of Isaac Rebirthdata", raw = {"Failed to find the default copy of the child table \"", "\" for subscriber \"", "\". This error usually means that your mod-specific save data is out of date. You can try purging all of your mod-specific save data by deleting the following directory: C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\data"}}, saveDataKey, subscriberName))
|
|
53
53
|
return
|
|
54
54
|
end
|
|
55
55
|
local childTableDefaultsCopy = deepCopy(nil, childTableDefaults, SerializationType.NONE, (subscriberName .. " --> ") .. saveDataKey)
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ export declare const NUM_DIMENSIONS: number;
|
|
|
143
143
|
/**
|
|
144
144
|
* An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
|
|
145
145
|
* from the `NUM_DIMENSIONS` constant.)
|
|
146
|
+
*
|
|
147
|
+
* We cannot use the values of the `Dimension` enum because it includes -1.
|
|
146
148
|
*/
|
|
147
149
|
export declare const DIMENSIONS: readonly Dimension[];
|
|
148
150
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EAET,YAAY,EACZ,aAAa,EACb,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAatC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,eAAO,MAAM,qBAAqB,yUAaxB,CAAC;AAEX,eAAO,MAAM,yBAAyB,4BAErC,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;;;GAMG;AAEH,eAAO,MAAM,+BAA+B,iBAAmC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,iBAAiB,4HAOpB,CAAC;AAEX,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE;;;GAG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O,MAAM,mBAAmB,QAAmB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAS,CAAC;AAEvE,4CAA4C;AAC5C,eAAO,MAAM,8BAA8B,QAA4B,CAAC;AAExE,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,KAAkB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,SAAS,kBAA0B,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,kBAA0B,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iBAA4B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAgC,CAAC"}
|
package/dist/core/constants.js
CHANGED
|
@@ -216,6 +216,8 @@ exports.NUM_DIMENSIONS = (0, enums_1.getEnumLength)(isaac_typescript_definitions
|
|
|
216
216
|
/**
|
|
217
217
|
* An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
|
|
218
218
|
* from the `NUM_DIMENSIONS` constant.)
|
|
219
|
+
*
|
|
220
|
+
* We cannot use the values of the `Dimension` enum because it includes -1.
|
|
219
221
|
*/
|
|
220
222
|
exports.DIMENSIONS = (0, utils_1.eRange)(exports.NUM_DIMENSIONS);
|
|
221
223
|
/**
|
package/dist/core/constants.lua
CHANGED
|
@@ -196,6 +196,8 @@ ____exports.MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000
|
|
|
196
196
|
____exports.NUM_DIMENSIONS = getEnumLength(nil, Dimension) - 1
|
|
197
197
|
--- An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
|
|
198
198
|
-- from the `NUM_DIMENSIONS` constant.)
|
|
199
|
+
--
|
|
200
|
+
-- We cannot use the values of the `Dimension` enum because it includes -1.
|
|
199
201
|
____exports.DIMENSIONS = eRange(nil, ____exports.NUM_DIMENSIONS)
|
|
200
202
|
--- The pill pool for each run is comprised of one effect for each unique pill color (minus gold and
|
|
201
203
|
-- horse pills.)
|
|
@@ -556,10 +556,11 @@ export declare enum ModCallbackCustom {
|
|
|
556
556
|
*
|
|
557
557
|
* `POST_GAME_STARTED_REORDERED` --> `POST_NEW_LEVEL_REORDERED` --> `POST_NEW_ROOM_REORDERED`
|
|
558
558
|
*
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
559
|
+
* You must provide a third argument:
|
|
560
|
+
*
|
|
561
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
562
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
563
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
563
564
|
*
|
|
564
565
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
565
566
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -575,10 +576,11 @@ export declare enum ModCallbackCustom {
|
|
|
575
576
|
* new run has started (or continued), but you can be sure that all new-run-related initialization
|
|
576
577
|
* has been completed.
|
|
577
578
|
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
*
|
|
579
|
+
* You must provide a third argument:
|
|
580
|
+
*
|
|
581
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
582
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
583
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
582
584
|
*
|
|
583
585
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
584
586
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;;;;;;;;;;;;OAqBG;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;;;;;;;;;OAeG;IACH,qBAAqB,MAAA;IAErB;;;;;;;;;;;;;;;;;OAiBG;IACH,+BAA+B,MAAA;IAE/B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,4BAA4B,MAAA;IAE5B;;;;;;;;;;;;;;;;;OAiBG;IACH,yBAAyB,MAAA;CAC1B"}
|
|
@@ -560,10 +560,11 @@ var ModCallbackCustom;
|
|
|
560
560
|
*
|
|
561
561
|
* `POST_GAME_STARTED_REORDERED` --> `POST_NEW_LEVEL_REORDERED` --> `POST_NEW_ROOM_REORDERED`
|
|
562
562
|
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
563
|
+
* You must provide a third argument:
|
|
564
|
+
*
|
|
565
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
566
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
567
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
567
568
|
*
|
|
568
569
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
569
570
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -579,10 +580,11 @@ var ModCallbackCustom;
|
|
|
579
580
|
* new run has started (or continued), but you can be sure that all new-run-related initialization
|
|
580
581
|
* has been completed.
|
|
581
582
|
*
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
583
|
+
* You must provide a third argument:
|
|
584
|
+
*
|
|
585
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
586
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
587
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
586
588
|
*
|
|
587
589
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
588
590
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -103,11 +103,11 @@ export declare function isSin(npc: EntityNPC): boolean;
|
|
|
103
103
|
* Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can
|
|
104
104
|
* customize this via the "numSegments" argument.
|
|
105
105
|
*/
|
|
106
|
-
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
106
|
+
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG, numSegments?: int): EntityNPC;
|
|
107
107
|
/**
|
|
108
108
|
* Helper function to spawn a boss with a specific seed.
|
|
109
109
|
*
|
|
110
110
|
* For more information, see the documentation for the `spawnBoss` function.
|
|
111
111
|
*/
|
|
112
|
-
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
112
|
+
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity, numSegments?: int): EntityNPC;
|
|
113
113
|
//# sourceMappingURL=bosses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,MAAM,EACN,UAAU,EAGX,MAAM,8BAA8B,CAAC;AAiCtC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,SAAS,EAAE,CAGtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,IAAI,SAAS,MAAM,EAAE,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,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,EAAE,CAGtB;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,MAAM,GACb,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,CAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,6FAA6F;AAC7F,wBAAgB,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAE7C;AAoCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,IAAI,GAAG,GAAG,EACtB,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAiCX;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAYX"}
|
package/dist/functions/bosses.js
CHANGED
|
@@ -219,7 +219,7 @@ function getNumBossSegments(entityType, variant, numSegments) {
|
|
|
219
219
|
* Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can
|
|
220
220
|
* customize this via the "numSegments" argument.
|
|
221
221
|
*/
|
|
222
|
-
function spawnBoss(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
222
|
+
function spawnBoss(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG, numSegments) {
|
|
223
223
|
const seed = (0, rng_1.isRNG)(seedOrRNG) ? seedOrRNG.Next() : seedOrRNG;
|
|
224
224
|
const npc = (0, entitiesSpecific_1.spawnNPC)(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seed);
|
|
225
225
|
if (BOSSES_THAT_REQUIRE_MULTIPLE_SPAWNS.has(entityType)) {
|
|
@@ -236,7 +236,7 @@ function spawnBoss(entityType, variant, subType, positionOrGridIndex, velocity =
|
|
|
236
236
|
*
|
|
237
237
|
* For more information, see the documentation for the `spawnBoss` function.
|
|
238
238
|
*/
|
|
239
|
-
function spawnBossWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
239
|
+
function spawnBossWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner, numSegments) {
|
|
240
240
|
const seed = (0, rng_1.isRNG)(seedOrRNG) ? seedOrRNG.Next() : seedOrRNG;
|
|
241
241
|
return spawnBoss(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seed, numSegments);
|
|
242
242
|
}
|