isaacscript-common 51.9.0 → 51.9.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.
@@ -16740,6 +16740,8 @@ export declare function setGridEntityInvisible(gridEntity: GridEntity): void;
16740
16740
  * Helper function to change the type of a grid entity to another type. Use this instead of the
16741
16741
  * `GridEntity.SetType` method since that does not properly handle updating the sprite of the grid
16742
16742
  * entity after the type is changed.
16743
+ *
16744
+ * Setting the new type to `GridEntityType.NULL` (0) will have no effect.
16743
16745
  */
16744
16746
  export declare function setGridEntityType(gridEntity: GridEntity, gridEntityType: GridEntityType): void;
16745
16747
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 51.9.0
3
+ isaacscript-common 51.9.2
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -28748,6 +28748,8 @@ function ____exports.setGridEntityType(self, gridEntity, gridEntityType)
28748
28748
  local anm2Path = GRID_ENTITY_TYPE_TO_ANM2_PATH[gridEntityType]
28749
28749
  if anm2Path ~= nil then
28750
28750
  sprite:Load(anm2Path, true)
28751
+ local defaultAnimation = sprite:GetDefaultAnimation()
28752
+ sprite:Play(defaultAnimation, true)
28751
28753
  end
28752
28754
  end
28753
28755
  function ____exports.spawnGiantPoop(self, topLeftGridIndex)
@@ -53671,6 +53673,7 @@ return ____exports
53671
53673
  ["src.core.upgradeMod"] = function(...)
53672
53674
  local ____lualib = require("lualib_bundle")
53673
53675
  local __TS__Iterator = ____lualib.__TS__Iterator
53676
+ local Set = ____lualib.Set
53674
53677
  local __TS__New = ____lualib.__TS__New
53675
53678
  local ____exports = {}
53676
53679
  local initOptionalFeatures
@@ -53707,6 +53710,10 @@ function ____exports.upgradeMod(self, modVanilla, features, ____debug, timeThres
53707
53710
  error(("Failed to upgrade the mod due to one of the specified features being of type \"" .. featureType) .. "\". (All of the features should be numbers represented by the \"ISCFeature\" enum.)")
53708
53711
  end
53709
53712
  end
53713
+ local featureSet = __TS__New(Set, features)
53714
+ if featureSet.size ~= #features then
53715
+ error("Failed to upgrade the mod since there are two or more of the same features specified in the \"features\" array. When you pass the array of features to the \"upgradeMod\" function, all of the elements should be unique.")
53716
+ end
53710
53717
  patchErrorFunction(nil)
53711
53718
  local mod = __TS__New(ModUpgraded, modVanilla, ____debug, timeThreshold)
53712
53719
  applyShaderCrashFix(nil, mod)
@@ -1 +1 @@
1
- {"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAExF,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,IAClD,UAAU,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC1B,8FAA8F,GAC9F,CAAC,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,GAAG,KAAK,EAAE,EAClE,UAAU,EAAE,GAAG,EACf,QAAQ,GAAE,eAAe,CAAC,CAAC,CAAuC,EAClE,KAAK,UAAQ,EACb,aAAa,CAAC,EAAE,KAAK,GACpB,uBAAuB,CAAC,CAAC,CAAC,CAkB5B"}
1
+ {"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAExF,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,IAClD,UAAU,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC1B,8FAA8F,GAC9F,CAAC,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,GAAG,KAAK,EAAE,EAClE,UAAU,EAAE,GAAG,EACf,QAAQ,GAAE,eAAe,CAAC,CAAC,CAAuC,EAClE,KAAK,UAAQ,EACb,aAAa,CAAC,EAAE,KAAK,GACpB,uBAAuB,CAAC,CAAC,CAAC,CA0B5B"}
@@ -1,5 +1,6 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local __TS__Iterator = ____lualib.__TS__Iterator
3
+ local Set = ____lualib.Set
3
4
  local __TS__New = ____lualib.__TS__New
4
5
  local ____exports = {}
5
6
  local initOptionalFeatures
@@ -61,6 +62,10 @@ function ____exports.upgradeMod(self, modVanilla, features, ____debug, timeThres
61
62
  error(("Failed to upgrade the mod due to one of the specified features being of type \"" .. featureType) .. "\". (All of the features should be numbers represented by the \"ISCFeature\" enum.)")
62
63
  end
63
64
  end
65
+ local featureSet = __TS__New(Set, features)
66
+ if featureSet.size ~= #features then
67
+ error("Failed to upgrade the mod since there are two or more of the same features specified in the \"features\" array. When you pass the array of features to the \"upgradeMod\" function, all of the elements should be unique.")
68
+ end
64
69
  patchErrorFunction(nil)
65
70
  local mod = __TS__New(ModUpgraded, modVanilla, ____debug, timeThreshold)
66
71
  applyShaderCrashFix(nil, mod)
@@ -238,6 +238,8 @@ export declare function setGridEntityInvisible(gridEntity: GridEntity): void;
238
238
  * Helper function to change the type of a grid entity to another type. Use this instead of the
239
239
  * `GridEntity.SetType` method since that does not properly handle updating the sprite of the grid
240
240
  * entity after the type is changed.
241
+ *
242
+ * Setting the new type to `GridEntityType.NULL` (0) will have no effect.
241
243
  */
242
244
  export declare function setGridEntityType(gridEntity: GridEntity, gridEntityType: GridEntityType): void;
243
245
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"gridEntities.d.ts","sourceRoot":"","sources":["../../../src/functions/gridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE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,QAAQ,EAAE,MAAM,EAAE,EAClB,UAAU,EAAE,UAAU,GACrB,IAAI,CAON;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,aAAa,EACxD,YAAY,EAAE,CAAC,EAAE,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,CAAC,EAAE,GAAG,GACR,CAAC,EAAE,CAoBL;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAC9B,qBAAqB,EAAE,UAAU,GAAG,GAAG,EACvC,UAAU,EAAE,OAAO,GAClB,IAAI,CAqCN;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAGnE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,GAC7B,IAAI,CAUN;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAwD7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAExB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAgCxB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,GAAG,UAAU,GAAG,SAAS,CAkBtE"}
@@ -587,12 +587,16 @@ end
587
587
  --- Helper function to change the type of a grid entity to another type. Use this instead of the
588
588
  -- `GridEntity.SetType` method since that does not properly handle updating the sprite of the grid
589
589
  -- entity after the type is changed.
590
+ --
591
+ -- Setting the new type to `GridEntityType.NULL` (0) will have no effect.
590
592
  function ____exports.setGridEntityType(self, gridEntity, gridEntityType)
591
593
  gridEntity:SetType(gridEntityType)
592
594
  local sprite = gridEntity:GetSprite()
593
595
  local anm2Path = GRID_ENTITY_TYPE_TO_ANM2_PATH[gridEntityType]
594
596
  if anm2Path ~= nil then
595
597
  sprite:Load(anm2Path, true)
598
+ local defaultAnimation = sprite:GetDefaultAnimation()
599
+ sprite:Play(defaultAnimation, true)
596
600
  end
597
601
  end
598
602
  --- Helper function to spawn a giant poop. This is performed by spawning each of the four quadrant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "51.9.0",
3
+ "version": "51.9.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -53,6 +53,14 @@ export function upgradeMod<T extends readonly ISCFeature[] = never[]>(
53
53
  }
54
54
  }
55
55
 
56
+ // Second, validate that all of the features are unique.
57
+ const featureSet = new Set(features as ISCFeature[]);
58
+ if (featureSet.size !== features.length) {
59
+ error(
60
+ 'Failed to upgrade the mod since there are two or more of the same features specified in the "features" array. When you pass the array of features to the "upgradeMod" function, all of the elements should be unique.',
61
+ );
62
+ }
63
+
56
64
  patchErrorFunction();
57
65
 
58
66
  const mod = new ModUpgraded(modVanilla, debug, timeThreshold);
@@ -721,6 +721,8 @@ export function setGridEntityInvisible(gridEntity: GridEntity): void {
721
721
  * Helper function to change the type of a grid entity to another type. Use this instead of the
722
722
  * `GridEntity.SetType` method since that does not properly handle updating the sprite of the grid
723
723
  * entity after the type is changed.
724
+ *
725
+ * Setting the new type to `GridEntityType.NULL` (0) will have no effect.
724
726
  */
725
727
  export function setGridEntityType(
726
728
  gridEntity: GridEntity,
@@ -732,6 +734,8 @@ export function setGridEntityType(
732
734
  const anm2Path = GRID_ENTITY_TYPE_TO_ANM2_PATH[gridEntityType];
733
735
  if (anm2Path !== undefined) {
734
736
  sprite.Load(anm2Path, true);
737
+ const defaultAnimation = sprite.GetDefaultAnimation();
738
+ sprite.Play(defaultAnimation, true);
735
739
  }
736
740
  }
737
741