kolmafia 5.29272.0 → 5.29274.0

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.
Files changed (3) hide show
  1. package/index.d.ts +4 -2
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- // v5.29272.0
2
- // Generated by KoLmafia r29272 with type generator v5
1
+ // v5.29274.0
2
+ // Generated by KoLmafia r29274 with type generator v5
3
3
  export type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
4
4
  export type ModifierValueType = "boolean" | "multinumeric" | "multistring" | "none" | "numeric" | "string";
5
5
  export type CombatFilter = string | ((round: number, monster: Monster, text: string) => string);
@@ -626,6 +626,7 @@ export function shopAmount(item: Item): number;
626
626
  export function shopLimit(item: Item): number;
627
627
  export function shopPrice(item: Item): number;
628
628
  export function shrunkenHeadZombie(monster: Monster, path?: Path): string[];
629
+ export function shrunkenHeadZombieWeights(monster: Monster, path?: Path): { [key: string]: number };
629
630
  export function skillModifier(type: string, modifier: string): Skill;
630
631
  export function skillModifier(type: string, modifier: Modifier): Skill;
631
632
  export function skillModifier(item: Item, modifier: string): Skill;
@@ -819,6 +820,7 @@ export function write(string: string): void;
819
820
  export function writeCcs(data: string, name: string): boolean;
820
821
  export function writeln(string: string): void;
821
822
  export function xpath(html: string, xpath: string): string[];
823
+ export function yamBatteryEffects(daycount?: number): { [effect: string]: number };
822
824
  export function zap(item: Item): Item;
823
825
  declare abstract class MafiaClass {
824
826
  static get<T extends MafiaClass>(this: { new (): T; }, name: (string | number)): T;
package/index.js CHANGED
@@ -488,6 +488,7 @@ module.exports.shopAmount = function shopAmount() { throw new Error(`Cannot acce
488
488
  module.exports.shopLimit = function shopLimit() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
489
489
  module.exports.shopPrice = function shopPrice() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
490
490
  module.exports.shrunkenHeadZombie = function shrunkenHeadZombie() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
491
+ module.exports.shrunkenHeadZombieWeights = function shrunkenHeadZombieWeights() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
491
492
  module.exports.skillModifier = function skillModifier() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
492
493
  module.exports.skillsModifier = function skillsModifier() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
493
494
  module.exports.slashCount = function slashCount() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
@@ -602,6 +603,7 @@ module.exports.write = function write() { throw new Error(`Cannot access the KoL
602
603
  module.exports.writeCcs = function writeCcs() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
603
604
  module.exports.writeln = function writeln() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
604
605
  module.exports.xpath = function xpath() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
606
+ module.exports.yamBatteryEffects = function yamBatteryEffects() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
605
607
  module.exports.zap = function zap() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
606
608
  module.exports.Item = class Item { static get = (v) => Array.isArray(v) ? v.map(() => new Item()) : new Item(); static all = () => []; static none = new Item(); }
607
609
  module.exports.Location = class Location { static get = (v) => Array.isArray(v) ? v.map(() => new Location()) : new Location(); static all = () => []; static none = new Location(); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kolmafia",
3
- "version": "5.29272.0",
3
+ "version": "5.29274.0",
4
4
  "description": "Typings for the KoLmafia JS standard library",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",