isaacscript-common 1.2.204 → 1.2.205

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.
@@ -42,4 +42,6 @@ export declare function newRNG(seed?: Seed): RNG;
42
42
  * RNG objects.
43
43
  */
44
44
  export declare function nextSeed(seed: Seed): Seed;
45
+ /** Helper function to set a seed to an RNG object using Blade's recommended shift index. */
46
+ export declare function setSeed(rng: RNG, seed: Seed): void;
45
47
  export {};
@@ -103,4 +103,7 @@ function ____exports.nextSeed(self, seed)
103
103
  rng:Next()
104
104
  return rng:GetSeed()
105
105
  end
106
+ function ____exports.setSeed(self, rng, seed)
107
+ rng:SetSeed(seed, RECOMMENDED_SHIFT_IDX)
108
+ end
106
109
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.204",
3
+ "version": "1.2.205",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",