isaacscript-common 20.11.1 → 20.11.2
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.d.ts +1 -0
- package/dist/isaacscript-common.lua +2 -1
- package/dist/src/classes/features/other/RunNextRoom.d.ts +1 -0
- package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +1 -0
- package/package.json +1 -1
- package/src/classes/features/other/RunNextRoom.ts +3 -5
package/dist/index.d.ts
CHANGED
|
@@ -13401,6 +13401,7 @@ export declare function runMergeTests(): void;
|
|
|
13401
13401
|
* discovered by AgentCucco.
|
|
13402
13402
|
*/
|
|
13403
13403
|
declare class RunNextRoom extends Feature {
|
|
13404
|
+
vConditionalFunc: () => boolean;
|
|
13404
13405
|
private postNewRoomReordered;
|
|
13405
13406
|
/**
|
|
13406
13407
|
* Supply a function to run on the next `POST_NEW_ROOM` callback.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 20.11.
|
|
3
|
+
isaacscript-common 20.11.2
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -38819,6 +38819,7 @@ __TS__ClassExtends(RunNextRoom, Feature)
|
|
|
38819
38819
|
function RunNextRoom.prototype.____constructor(self)
|
|
38820
38820
|
Feature.prototype.____constructor(self)
|
|
38821
38821
|
self.v = {run = {queuedFunctions = {}}}
|
|
38822
|
+
self.vConditionalFunc = function() return false end
|
|
38822
38823
|
self.postNewRoomReordered = function()
|
|
38823
38824
|
for ____, func in ipairs(self.v.run.queuedFunctions) do
|
|
38824
38825
|
func(nil)
|
|
@@ -5,6 +5,7 @@ import { Feature } from "../../private/Feature";
|
|
|
5
5
|
* discovered by AgentCucco.
|
|
6
6
|
*/
|
|
7
7
|
export declare class RunNextRoom extends Feature {
|
|
8
|
+
vConditionalFunc: () => boolean;
|
|
8
9
|
private postNewRoomReordered;
|
|
9
10
|
/**
|
|
10
11
|
* Supply a function to run on the next `POST_NEW_ROOM` callback.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,OAAO;IAStB,gBAAgB,QAAO,OAAO,CAAU;IAYxD,OAAO,CAAC,oBAAoB,CAM1B;IAEF;;;;;;;;OAQG;IAEI,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;CAG3C"}
|
|
@@ -21,6 +21,7 @@ __TS__ClassExtends(RunNextRoom, Feature)
|
|
|
21
21
|
function RunNextRoom.prototype.____constructor(self)
|
|
22
22
|
Feature.prototype.____constructor(self)
|
|
23
23
|
self.v = {run = {queuedFunctions = {}}}
|
|
24
|
+
self.vConditionalFunc = function() return false end
|
|
24
25
|
self.postNewRoomReordered = function()
|
|
25
26
|
for ____, func in ipairs(self.v.run.queuedFunctions) do
|
|
26
27
|
func(nil)
|
package/package.json
CHANGED
|
@@ -3,11 +3,6 @@ import { ModCallbackCustom } from "../../../enums/ModCallbackCustom";
|
|
|
3
3
|
import { emptyArray } from "../../../functions/array";
|
|
4
4
|
import { Feature } from "../../private/Feature";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Using the "luamod" console command with a mod that has custom shaders can crash the game. A
|
|
8
|
-
* simple fix for this is automatically applied to any upgraded mods. This method was originally
|
|
9
|
-
* discovered by AgentCucco.
|
|
10
|
-
*/
|
|
11
6
|
export class RunNextRoom extends Feature {
|
|
12
7
|
/** @internal */
|
|
13
8
|
public override v = {
|
|
@@ -16,6 +11,9 @@ export class RunNextRoom extends Feature {
|
|
|
16
11
|
},
|
|
17
12
|
};
|
|
18
13
|
|
|
14
|
+
// eslint-disable-next-line class-methods-use-this
|
|
15
|
+
public override vConditionalFunc = (): boolean => false;
|
|
16
|
+
|
|
19
17
|
/** @internal */
|
|
20
18
|
constructor() {
|
|
21
19
|
super();
|