isaacscript-common 17.4.1 → 17.4.3
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 +3 -1
- package/dist/isaacscript-common.lua +10 -4
- package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
- package/dist/src/classes/features/other/ModdedElementSets.lua +6 -3
- package/dist/src/functions/input.d.ts +3 -1
- package/dist/src/functions/input.d.ts.map +1 -1
- package/dist/src/functions/input.lua +5 -0
- package/package.json +1 -1
- package/src/classes/features/other/ModdedElementSets.ts +3 -0
- package/src/functions/input.ts +8 -1
package/dist/index.d.ts
CHANGED
|
@@ -1363,8 +1363,10 @@ export declare function combineSets<T>(...sets: Array<Set<T> | ReadonlySet<T>>):
|
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Helper function to get the enum name for the specified `Controller` value. Note that this will
|
|
1365
1365
|
* trim off the "BUTTON_" prefix.
|
|
1366
|
+
*
|
|
1367
|
+
* Returns undefined if the submitted controller value was not valid.
|
|
1366
1368
|
*/
|
|
1367
|
-
export declare function controllerToString(controller: Controller): string;
|
|
1369
|
+
export declare function controllerToString(controller: Controller): string | undefined;
|
|
1368
1370
|
|
|
1369
1371
|
/**
|
|
1370
1372
|
* This is the type that is fed to `registerCharacterHealthConversion` helper function to signify
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 17.4.
|
|
3
|
+
isaacscript-common 17.4.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -32592,8 +32592,8 @@ local Map = ____lualib.Map
|
|
|
32592
32592
|
local __TS__New = ____lualib.__TS__New
|
|
32593
32593
|
local __TS__Class = ____lualib.__TS__Class
|
|
32594
32594
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
32595
|
-
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
32596
32595
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
32596
|
+
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
32597
32597
|
local ____exports = {}
|
|
32598
32598
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
32599
32599
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
@@ -32873,6 +32873,9 @@ function ModdedElementSets.prototype.lazyInitFlyingCollectibleTypesSet(self)
|
|
|
32873
32873
|
for ____, collectibleType in ipairs(CONDITIONAL_FLYING_COLLECTIBLE_TYPES) do
|
|
32874
32874
|
permanentFlyingCollectibleTypes:delete(collectibleType)
|
|
32875
32875
|
end
|
|
32876
|
+
for ____, collectibleType in __TS__Iterator(permanentFlyingCollectibleTypes:values()) do
|
|
32877
|
+
self.permanentFlyingCollectibleTypesSet:add(collectibleType)
|
|
32878
|
+
end
|
|
32876
32879
|
end
|
|
32877
32880
|
function ModdedElementSets.prototype.lazyInitFlyingTrinketTypesSet(self)
|
|
32878
32881
|
if self.flyingTrinketTypesSet.size > 0 then
|
|
@@ -32896,7 +32899,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
32896
32899
|
for ____, collectibleType in ipairs(self:getCollectibleArray()) do
|
|
32897
32900
|
do
|
|
32898
32901
|
if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
|
|
32899
|
-
goto
|
|
32902
|
+
goto __continue73
|
|
32900
32903
|
end
|
|
32901
32904
|
if isActiveCollectible(nil, collectibleType) then
|
|
32902
32905
|
self.edenActiveCollectibleTypesSet:add(collectibleType)
|
|
@@ -32905,7 +32908,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
32905
32908
|
self.edenPassiveCollectibleTypesSet:add(collectibleType)
|
|
32906
32909
|
end
|
|
32907
32910
|
end
|
|
32908
|
-
::
|
|
32911
|
+
::__continue73::
|
|
32909
32912
|
end
|
|
32910
32913
|
end
|
|
32911
32914
|
function ModdedElementSets.prototype.lazyInitCardTypes(self)
|
|
@@ -34847,6 +34850,9 @@ local SHOOTING_ACTIONS = {ButtonAction.SHOOT_LEFT, ButtonAction.SHOOT_RIGHT, But
|
|
|
34847
34850
|
____exports.SHOOTING_ACTIONS_SET = __TS__New(Set, SHOOTING_ACTIONS)
|
|
34848
34851
|
function ____exports.controllerToString(self, controller)
|
|
34849
34852
|
local key = Controller[controller]
|
|
34853
|
+
if key == nil then
|
|
34854
|
+
return nil
|
|
34855
|
+
end
|
|
34850
34856
|
return trimPrefix(nil, key, "BUTTON_")
|
|
34851
34857
|
end
|
|
34852
34858
|
function ____exports.getMoveActions(self)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModdedElementSets.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ModdedElementSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAkCtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA4BhD,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,OAAO,CAAC,wBAAwB,CAAyB;IACzD,OAAO,CAAC,sBAAsB,CAA8B;IAE5D,OAAO,CAAC,4BAA4B,CAAyB;IAC7D,OAAO,CAAC,0BAA0B,CAA8B;IAEhE,OAAO,CAAC,2BAA2B,CAAyB;IAC5D,OAAO,CAAC,yBAAyB,CAA8B;IAE/D,OAAO,CAAC,oBAAoB,CAAqB;IACjD,OAAO,CAAC,kBAAkB,CAA0B;IAEpD,OAAO,CAAC,wBAAwB,CAAqB;IACrD,OAAO,CAAC,sBAAsB,CAA0B;IAExD,OAAO,CAAC,uBAAuB,CAAqB;IACpD,OAAO,CAAC,qBAAqB,CAA0B;IAEvD,OAAO,CAAC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AAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,eAAe,EAAE,GAAG,SAAS,eAAe,EAAO,GAC9D,eAAe;IASlB;;;;;;;;;;;;OAYG;IAEI,+BAA+B,CACpC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,eAAe,EAAE,GAAG,SAAS,eAAe,EAAO,GAC9D,eAAe;IASlB;;;;;;;;;;OAUG;IAEI,eAAe,IAAI,SAAS,WAAW,EAAE;IAKhD;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,WAAW,CAAC,WAAW,CAAC;IAKhD;;;;;;;;OAQG;IAEI,wBAAwB,CAC7B,SAAS,EAAE,SAAS,GACnB,WAAW,CAAC,WAAW,CAAC;IAW3B;;;;;;;OAOG;IAEI,mBAAmB,IAAI,SAAS,QAAQ,EAAE;IAKjD;;;;;;;OAOG;IAEI,iBAAiB,IAAI,WAAW,CAAC,QAAQ,CAAC;IAKjD;;;;;;;OAOG;IAEI,0BAA0B,IAAI,SAAS,eAAe,EAAE;IAK/D;;;;;;;OAOG;IAEI,wBAAwB,IAAI,WAAW,CAAC,eAAe,CAAC;IAK/D;;;;;;;OAOG;IAEI,sBAAsB,IAAI,SAAS,WAAW,EAAE;IAKvD;;;;;;;OAOG;IAEI,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC;CAIxD"}
|
|
@@ -4,8 +4,8 @@ local Map = ____lualib.Map
|
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__Class = ____lualib.__TS__Class
|
|
6
6
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
7
|
-
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
8
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
|
+
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
9
9
|
local ____exports = {}
|
|
10
10
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
11
11
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
@@ -285,6 +285,9 @@ function ModdedElementSets.prototype.lazyInitFlyingCollectibleTypesSet(self)
|
|
|
285
285
|
for ____, collectibleType in ipairs(CONDITIONAL_FLYING_COLLECTIBLE_TYPES) do
|
|
286
286
|
permanentFlyingCollectibleTypes:delete(collectibleType)
|
|
287
287
|
end
|
|
288
|
+
for ____, collectibleType in __TS__Iterator(permanentFlyingCollectibleTypes:values()) do
|
|
289
|
+
self.permanentFlyingCollectibleTypesSet:add(collectibleType)
|
|
290
|
+
end
|
|
288
291
|
end
|
|
289
292
|
function ModdedElementSets.prototype.lazyInitFlyingTrinketTypesSet(self)
|
|
290
293
|
if self.flyingTrinketTypesSet.size > 0 then
|
|
@@ -308,7 +311,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
308
311
|
for ____, collectibleType in ipairs(self:getCollectibleArray()) do
|
|
309
312
|
do
|
|
310
313
|
if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
|
|
311
|
-
goto
|
|
314
|
+
goto __continue73
|
|
312
315
|
end
|
|
313
316
|
if isActiveCollectible(nil, collectibleType) then
|
|
314
317
|
self.edenActiveCollectibleTypesSet:add(collectibleType)
|
|
@@ -317,7 +320,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
317
320
|
self.edenPassiveCollectibleTypesSet:add(collectibleType)
|
|
318
321
|
end
|
|
319
322
|
end
|
|
320
|
-
::
|
|
323
|
+
::__continue73::
|
|
321
324
|
end
|
|
322
325
|
end
|
|
323
326
|
function ModdedElementSets.prototype.lazyInitCardTypes(self)
|
|
@@ -4,8 +4,10 @@ export declare const SHOOTING_ACTIONS_SET: ReadonlySet<ButtonAction>;
|
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to get the enum name for the specified `Controller` value. Note that this will
|
|
6
6
|
* trim off the "BUTTON_" prefix.
|
|
7
|
+
*
|
|
8
|
+
* Returns undefined if the submitted controller value was not valid.
|
|
7
9
|
*/
|
|
8
|
-
export declare function controllerToString(controller: Controller): string;
|
|
10
|
+
export declare function controllerToString(controller: Controller): string | undefined;
|
|
9
11
|
export declare function getMoveActions(): ReadonlySet<ButtonAction>;
|
|
10
12
|
export declare function getShootActions(): ReadonlySet<ButtonAction>;
|
|
11
13
|
/** Iterates over all inputs to determine if a particular button is pressed (i.e. held down). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/functions/input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AASF,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/functions/input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AASF,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAED,wBAAgB,cAAc,IAAI,WAAW,CAAC,YAAY,CAAC,CAE1D;AAED,wBAAgB,eAAe,IAAI,WAAW,CAAC,YAAY,CAAC,CAE3D;AAED,gGAAgG;AAChG,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAK7E;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,YAAY,GACzB,OAAO,CAKT;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAI9D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEhE;AAED,wBAAgB,6BAA6B,IAAI,OAAO,CAIvD;AAED,wBAAgB,+BAA+B,IAAI,OAAO,CAIzD;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEjE;AAED,wBAAgB,8BAA8B,IAAI,OAAO,CAIxD;AAED,wBAAgB,gCAAgC,IAAI,OAAO,CAI1D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,GACjB,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -30,8 +30,13 @@ local SHOOTING_ACTIONS = {ButtonAction.SHOOT_LEFT, ButtonAction.SHOOT_RIGHT, But
|
|
|
30
30
|
____exports.SHOOTING_ACTIONS_SET = __TS__New(Set, SHOOTING_ACTIONS)
|
|
31
31
|
--- Helper function to get the enum name for the specified `Controller` value. Note that this will
|
|
32
32
|
-- trim off the "BUTTON_" prefix.
|
|
33
|
+
--
|
|
34
|
+
-- Returns undefined if the submitted controller value was not valid.
|
|
33
35
|
function ____exports.controllerToString(self, controller)
|
|
34
36
|
local key = Controller[controller]
|
|
37
|
+
if key == nil then
|
|
38
|
+
return nil
|
|
39
|
+
end
|
|
35
40
|
return trimPrefix(nil, key, "BUTTON_")
|
|
36
41
|
end
|
|
37
42
|
function ____exports.getMoveActions(self)
|
package/package.json
CHANGED
|
@@ -366,6 +366,9 @@ export class ModdedElementSets extends Feature {
|
|
|
366
366
|
for (const collectibleType of CONDITIONAL_FLYING_COLLECTIBLE_TYPES) {
|
|
367
367
|
permanentFlyingCollectibleTypes.delete(collectibleType);
|
|
368
368
|
}
|
|
369
|
+
for (const collectibleType of permanentFlyingCollectibleTypes.values()) {
|
|
370
|
+
this.permanentFlyingCollectibleTypesSet.add(collectibleType);
|
|
371
|
+
}
|
|
369
372
|
}
|
|
370
373
|
|
|
371
374
|
private lazyInitFlyingTrinketTypesSet() {
|
package/src/functions/input.ts
CHANGED
|
@@ -44,9 +44,16 @@ export const SHOOTING_ACTIONS_SET: ReadonlySet<ButtonAction> = new Set(
|
|
|
44
44
|
/**
|
|
45
45
|
* Helper function to get the enum name for the specified `Controller` value. Note that this will
|
|
46
46
|
* trim off the "BUTTON_" prefix.
|
|
47
|
+
*
|
|
48
|
+
* Returns undefined if the submitted controller value was not valid.
|
|
47
49
|
*/
|
|
48
|
-
export function controllerToString(controller: Controller): string {
|
|
50
|
+
export function controllerToString(controller: Controller): string | undefined {
|
|
49
51
|
const key = Controller[controller];
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
53
|
+
if (key === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
|
|
50
57
|
return trimPrefix(key, "BUTTON_");
|
|
51
58
|
}
|
|
52
59
|
|