isaacscript-common 39.3.2 → 39.3.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 39.3.
|
|
3
|
+
isaacscript-common 39.3.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -38702,6 +38702,9 @@ function ModdedElementSets.prototype.lazyInit(self)
|
|
|
38702
38702
|
self:lazyInitCardTypes()
|
|
38703
38703
|
end
|
|
38704
38704
|
function ModdedElementSets.prototype.lazyInitVanillaCollectibleTypes(self)
|
|
38705
|
+
if #self.vanillaCollectibleTypesArray > 0 then
|
|
38706
|
+
return
|
|
38707
|
+
end
|
|
38705
38708
|
local vanillaCollectibleTypeRange = getVanillaCollectibleTypeRange(nil)
|
|
38706
38709
|
for ____, collectibleType in ipairs(vanillaCollectibleTypeRange) do
|
|
38707
38710
|
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|
|
@@ -38732,6 +38735,9 @@ function ModdedElementSets.prototype.lazyInitModdedCollectibleTypes(self)
|
|
|
38732
38735
|
end
|
|
38733
38736
|
end
|
|
38734
38737
|
function ModdedElementSets.prototype.lazyInitVanillaTrinketTypes(self)
|
|
38738
|
+
if #self.vanillaTrinketTypesArray > 0 then
|
|
38739
|
+
return
|
|
38740
|
+
end
|
|
38735
38741
|
local vanillaTrinketTypeRange = getVanillaTrinketTypeRange(nil)
|
|
38736
38742
|
for ____, trinketType in ipairs(vanillaTrinketTypeRange) do
|
|
38737
38743
|
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
@@ -38762,6 +38768,9 @@ function ModdedElementSets.prototype.lazyInitModdedTrinketTypes(self)
|
|
|
38762
38768
|
end
|
|
38763
38769
|
end
|
|
38764
38770
|
function ModdedElementSets.prototype.lazyInitVanillaCardTypes(self)
|
|
38771
|
+
if #self.vanillaCardTypesArray > 0 then
|
|
38772
|
+
return
|
|
38773
|
+
end
|
|
38765
38774
|
local vanillaCardTypes = getVanillaCardTypes(nil)
|
|
38766
38775
|
for ____, cardType in ipairs(vanillaCardTypes) do
|
|
38767
38776
|
local itemConfigCard = itemConfig:GetCard(cardType)
|
|
@@ -38802,7 +38811,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
|
|
|
38802
38811
|
for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
|
|
38803
38812
|
do
|
|
38804
38813
|
if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
|
|
38805
|
-
goto
|
|
38814
|
+
goto __continue42
|
|
38806
38815
|
end
|
|
38807
38816
|
local collectibleTypesSet = self.tagToCollectibleTypesMap:get(itemConfigTag)
|
|
38808
38817
|
if collectibleTypesSet == nil then
|
|
@@ -38811,7 +38820,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
|
|
|
38811
38820
|
end
|
|
38812
38821
|
collectibleTypesSet:add(collectibleType)
|
|
38813
38822
|
end
|
|
38814
|
-
::
|
|
38823
|
+
::__continue42::
|
|
38815
38824
|
end
|
|
38816
38825
|
end
|
|
38817
38826
|
end
|
|
@@ -38868,7 +38877,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
38868
38877
|
for ____, collectibleType in ipairs(self:getCollectibleArray()) do
|
|
38869
38878
|
do
|
|
38870
38879
|
if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
|
|
38871
|
-
goto
|
|
38880
|
+
goto __continue66
|
|
38872
38881
|
end
|
|
38873
38882
|
if isActiveCollectible(nil, collectibleType) then
|
|
38874
38883
|
self.edenActiveCollectibleTypesSet:add(collectibleType)
|
|
@@ -38877,7 +38886,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
38877
38886
|
self.edenPassiveCollectibleTypesSet:add(collectibleType)
|
|
38878
38887
|
end
|
|
38879
38888
|
end
|
|
38880
|
-
::
|
|
38889
|
+
::__continue66::
|
|
38881
38890
|
end
|
|
38882
38891
|
end
|
|
38883
38892
|
function ModdedElementSets.prototype.lazyInitCardTypes(self)
|
|
@@ -39185,32 +39194,32 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
|
|
|
39185
39194
|
end
|
|
39186
39195
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketsWithCacheFlag", true)
|
|
39187
39196
|
function ModdedElementSets.prototype.getVanillaCardArray(self)
|
|
39188
|
-
self:
|
|
39197
|
+
self:lazyInitVanillaCardTypes()
|
|
39189
39198
|
return self.vanillaCardTypesArray
|
|
39190
39199
|
end
|
|
39191
39200
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardArray", true)
|
|
39192
39201
|
function ModdedElementSets.prototype.getVanillaCardSet(self)
|
|
39193
|
-
self:
|
|
39202
|
+
self:lazyInitVanillaCardTypes()
|
|
39194
39203
|
return self.vanillaCardTypesSet
|
|
39195
39204
|
end
|
|
39196
39205
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardSet", true)
|
|
39197
39206
|
function ModdedElementSets.prototype.getVanillaCollectibleArray(self)
|
|
39198
|
-
self:
|
|
39207
|
+
self:lazyInitVanillaCollectibleTypes()
|
|
39199
39208
|
return self.vanillaCollectibleTypesArray
|
|
39200
39209
|
end
|
|
39201
39210
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleArray", true)
|
|
39202
39211
|
function ModdedElementSets.prototype.getVanillaCollectibleSet(self)
|
|
39203
|
-
self:
|
|
39212
|
+
self:lazyInitVanillaCollectibleTypes()
|
|
39204
39213
|
return self.vanillaCollectibleTypesSet
|
|
39205
39214
|
end
|
|
39206
39215
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleSet", true)
|
|
39207
39216
|
function ModdedElementSets.prototype.getVanillaTrinketArray(self)
|
|
39208
|
-
self:
|
|
39217
|
+
self:lazyInitVanillaTrinketTypes()
|
|
39209
39218
|
return self.vanillaTrinketTypesArray
|
|
39210
39219
|
end
|
|
39211
39220
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketArray", true)
|
|
39212
39221
|
function ModdedElementSets.prototype.getVanillaTrinketSet(self)
|
|
39213
|
-
self:
|
|
39222
|
+
self:lazyInitVanillaTrinketTypes()
|
|
39214
39223
|
return self.vanillaTrinketTypesSet
|
|
39215
39224
|
end
|
|
39216
39225
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketSet", true)
|
|
@@ -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;AAsCtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA2BhD,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAyB;IAClE,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAA8B;IAErE,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAyB;IACtE,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAA8B;IAEzE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAyB;IACrE,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA8B;IAExE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAqB;IAC1D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA0B;IAE7D,OAAO,CAAC,QA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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"}
|
|
@@ -134,6 +134,9 @@ function ModdedElementSets.prototype.lazyInit(self)
|
|
|
134
134
|
self:lazyInitCardTypes()
|
|
135
135
|
end
|
|
136
136
|
function ModdedElementSets.prototype.lazyInitVanillaCollectibleTypes(self)
|
|
137
|
+
if #self.vanillaCollectibleTypesArray > 0 then
|
|
138
|
+
return
|
|
139
|
+
end
|
|
137
140
|
local vanillaCollectibleTypeRange = getVanillaCollectibleTypeRange(nil)
|
|
138
141
|
for ____, collectibleType in ipairs(vanillaCollectibleTypeRange) do
|
|
139
142
|
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|
|
@@ -164,6 +167,9 @@ function ModdedElementSets.prototype.lazyInitModdedCollectibleTypes(self)
|
|
|
164
167
|
end
|
|
165
168
|
end
|
|
166
169
|
function ModdedElementSets.prototype.lazyInitVanillaTrinketTypes(self)
|
|
170
|
+
if #self.vanillaTrinketTypesArray > 0 then
|
|
171
|
+
return
|
|
172
|
+
end
|
|
167
173
|
local vanillaTrinketTypeRange = getVanillaTrinketTypeRange(nil)
|
|
168
174
|
for ____, trinketType in ipairs(vanillaTrinketTypeRange) do
|
|
169
175
|
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
@@ -194,6 +200,9 @@ function ModdedElementSets.prototype.lazyInitModdedTrinketTypes(self)
|
|
|
194
200
|
end
|
|
195
201
|
end
|
|
196
202
|
function ModdedElementSets.prototype.lazyInitVanillaCardTypes(self)
|
|
203
|
+
if #self.vanillaCardTypesArray > 0 then
|
|
204
|
+
return
|
|
205
|
+
end
|
|
197
206
|
local vanillaCardTypes = getVanillaCardTypes(nil)
|
|
198
207
|
for ____, cardType in ipairs(vanillaCardTypes) do
|
|
199
208
|
local itemConfigCard = itemConfig:GetCard(cardType)
|
|
@@ -234,7 +243,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
|
|
|
234
243
|
for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
|
|
235
244
|
do
|
|
236
245
|
if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
|
|
237
|
-
goto
|
|
246
|
+
goto __continue42
|
|
238
247
|
end
|
|
239
248
|
local collectibleTypesSet = self.tagToCollectibleTypesMap:get(itemConfigTag)
|
|
240
249
|
if collectibleTypesSet == nil then
|
|
@@ -243,7 +252,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
|
|
|
243
252
|
end
|
|
244
253
|
collectibleTypesSet:add(collectibleType)
|
|
245
254
|
end
|
|
246
|
-
::
|
|
255
|
+
::__continue42::
|
|
247
256
|
end
|
|
248
257
|
end
|
|
249
258
|
end
|
|
@@ -300,7 +309,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
300
309
|
for ____, collectibleType in ipairs(self:getCollectibleArray()) do
|
|
301
310
|
do
|
|
302
311
|
if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
|
|
303
|
-
goto
|
|
312
|
+
goto __continue66
|
|
304
313
|
end
|
|
305
314
|
if isActiveCollectible(nil, collectibleType) then
|
|
306
315
|
self.edenActiveCollectibleTypesSet:add(collectibleType)
|
|
@@ -309,7 +318,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
|
|
|
309
318
|
self.edenPassiveCollectibleTypesSet:add(collectibleType)
|
|
310
319
|
end
|
|
311
320
|
end
|
|
312
|
-
::
|
|
321
|
+
::__continue66::
|
|
313
322
|
end
|
|
314
323
|
end
|
|
315
324
|
function ModdedElementSets.prototype.lazyInitCardTypes(self)
|
|
@@ -617,32 +626,32 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
|
|
|
617
626
|
end
|
|
618
627
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketsWithCacheFlag", true)
|
|
619
628
|
function ModdedElementSets.prototype.getVanillaCardArray(self)
|
|
620
|
-
self:
|
|
629
|
+
self:lazyInitVanillaCardTypes()
|
|
621
630
|
return self.vanillaCardTypesArray
|
|
622
631
|
end
|
|
623
632
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardArray", true)
|
|
624
633
|
function ModdedElementSets.prototype.getVanillaCardSet(self)
|
|
625
|
-
self:
|
|
634
|
+
self:lazyInitVanillaCardTypes()
|
|
626
635
|
return self.vanillaCardTypesSet
|
|
627
636
|
end
|
|
628
637
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardSet", true)
|
|
629
638
|
function ModdedElementSets.prototype.getVanillaCollectibleArray(self)
|
|
630
|
-
self:
|
|
639
|
+
self:lazyInitVanillaCollectibleTypes()
|
|
631
640
|
return self.vanillaCollectibleTypesArray
|
|
632
641
|
end
|
|
633
642
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleArray", true)
|
|
634
643
|
function ModdedElementSets.prototype.getVanillaCollectibleSet(self)
|
|
635
|
-
self:
|
|
644
|
+
self:lazyInitVanillaCollectibleTypes()
|
|
636
645
|
return self.vanillaCollectibleTypesSet
|
|
637
646
|
end
|
|
638
647
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleSet", true)
|
|
639
648
|
function ModdedElementSets.prototype.getVanillaTrinketArray(self)
|
|
640
|
-
self:
|
|
649
|
+
self:lazyInitVanillaTrinketTypes()
|
|
641
650
|
return self.vanillaTrinketTypesArray
|
|
642
651
|
end
|
|
643
652
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketArray", true)
|
|
644
653
|
function ModdedElementSets.prototype.getVanillaTrinketSet(self)
|
|
645
|
-
self:
|
|
654
|
+
self:lazyInitVanillaTrinketTypes()
|
|
646
655
|
return self.vanillaTrinketTypesSet
|
|
647
656
|
end
|
|
648
657
|
__TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketSet", true)
|
package/package.json
CHANGED
|
@@ -170,6 +170,10 @@ export class ModdedElementSets extends Feature {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
private lazyInitVanillaCollectibleTypes() {
|
|
173
|
+
if (this.vanillaCollectibleTypesArray.length > 0) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
|
|
173
177
|
const vanillaCollectibleTypeRange = getVanillaCollectibleTypeRange();
|
|
174
178
|
for (const collectibleType of vanillaCollectibleTypeRange) {
|
|
175
179
|
// Vanilla collectible types are not contiguous, so we must check every value. (There are
|
|
@@ -204,6 +208,10 @@ export class ModdedElementSets extends Feature {
|
|
|
204
208
|
}
|
|
205
209
|
|
|
206
210
|
private lazyInitVanillaTrinketTypes() {
|
|
211
|
+
if (this.vanillaTrinketTypesArray.length > 0) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
207
215
|
const vanillaTrinketTypeRange = getVanillaTrinketTypeRange();
|
|
208
216
|
for (const trinketType of vanillaTrinketTypeRange) {
|
|
209
217
|
// Vanilla trinket types are not contiguous, so we must check every value. (The only gap is 47
|
|
@@ -238,6 +246,10 @@ export class ModdedElementSets extends Feature {
|
|
|
238
246
|
}
|
|
239
247
|
|
|
240
248
|
private lazyInitVanillaCardTypes() {
|
|
249
|
+
if (this.vanillaCardTypesArray.length > 0) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
|
|
241
253
|
const vanillaCardTypes = getVanillaCardTypes();
|
|
242
254
|
for (const cardType of vanillaCardTypes) {
|
|
243
255
|
// Vanilla card types are contiguous, but we check every value just to be safe (and so that
|
|
@@ -1150,7 +1162,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1150
1162
|
*/
|
|
1151
1163
|
@Exported
|
|
1152
1164
|
public getVanillaCardArray(): readonly CardType[] {
|
|
1153
|
-
this.
|
|
1165
|
+
this.lazyInitVanillaCardTypes();
|
|
1154
1166
|
return this.vanillaCardTypesArray;
|
|
1155
1167
|
}
|
|
1156
1168
|
|
|
@@ -1164,7 +1176,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1164
1176
|
*/
|
|
1165
1177
|
@Exported
|
|
1166
1178
|
public getVanillaCardSet(): ReadonlySet<CardType> {
|
|
1167
|
-
this.
|
|
1179
|
+
this.lazyInitVanillaCardTypes();
|
|
1168
1180
|
return this.vanillaCardTypesSet;
|
|
1169
1181
|
}
|
|
1170
1182
|
|
|
@@ -1178,7 +1190,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1178
1190
|
*/
|
|
1179
1191
|
@Exported
|
|
1180
1192
|
public getVanillaCollectibleArray(): readonly CollectibleType[] {
|
|
1181
|
-
this.
|
|
1193
|
+
this.lazyInitVanillaCollectibleTypes();
|
|
1182
1194
|
return this.vanillaCollectibleTypesArray;
|
|
1183
1195
|
}
|
|
1184
1196
|
|
|
@@ -1192,7 +1204,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1192
1204
|
*/
|
|
1193
1205
|
@Exported
|
|
1194
1206
|
public getVanillaCollectibleSet(): ReadonlySet<CollectibleType> {
|
|
1195
|
-
this.
|
|
1207
|
+
this.lazyInitVanillaCollectibleTypes();
|
|
1196
1208
|
return this.vanillaCollectibleTypesSet;
|
|
1197
1209
|
}
|
|
1198
1210
|
|
|
@@ -1206,7 +1218,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1206
1218
|
*/
|
|
1207
1219
|
@Exported
|
|
1208
1220
|
public getVanillaTrinketArray(): readonly TrinketType[] {
|
|
1209
|
-
this.
|
|
1221
|
+
this.lazyInitVanillaTrinketTypes();
|
|
1210
1222
|
return this.vanillaTrinketTypesArray;
|
|
1211
1223
|
}
|
|
1212
1224
|
|
|
@@ -1220,7 +1232,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1220
1232
|
*/
|
|
1221
1233
|
@Exported
|
|
1222
1234
|
public getVanillaTrinketSet(): ReadonlySet<TrinketType> {
|
|
1223
|
-
this.
|
|
1235
|
+
this.lazyInitVanillaTrinketTypes();
|
|
1224
1236
|
return this.vanillaTrinketTypesSet;
|
|
1225
1237
|
}
|
|
1226
1238
|
}
|