kolmafia 5.29273.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 +3 -2
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- // v5.29273.0
2
- // Generated by KoLmafia r29273 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);
@@ -820,6 +820,7 @@ export function write(string: string): void;
820
820
  export function writeCcs(data: string, name: string): boolean;
821
821
  export function writeln(string: string): void;
822
822
  export function xpath(html: string, xpath: string): string[];
823
+ export function yamBatteryEffects(daycount?: number): { [effect: string]: number };
823
824
  export function zap(item: Item): Item;
824
825
  declare abstract class MafiaClass {
825
826
  static get<T extends MafiaClass>(this: { new (): T; }, name: (string | number)): T;
package/index.js CHANGED
@@ -603,6 +603,7 @@ module.exports.write = function write() { throw new Error(`Cannot access the KoL
603
603
  module.exports.writeCcs = function writeCcs() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
604
604
  module.exports.writeln = function writeln() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
605
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.`); };
606
607
  module.exports.zap = function zap() { throw new Error(`Cannot access the KoLmafia standard library from a normal JavaScript context.`); };
607
608
  module.exports.Item = class Item { static get = (v) => Array.isArray(v) ? v.map(() => new Item()) : new Item(); static all = () => []; static none = new Item(); }
608
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.29273.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",