libram 0.9.3 → 0.9.4

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.
@@ -8,6 +8,10 @@ export type CombinationString = `${Ring<0>} ${Ring<1>} ${Ring<2>} ${Ring<3>}`;
8
8
  * @returns Whether you `have` the Mayam calendar
9
9
  */
10
10
  export declare function have(): boolean;
11
+ /**
12
+ * @returns The Mayam calendar symbols you've used so far today.
13
+ */
14
+ export declare function symbolsUsed(): MayamSymbol[];
11
15
  /**
12
16
  * Determine whether a certain Mayam symbol is available for use today
13
17
  *
@@ -57,6 +61,7 @@ export declare const RESONANCES: Readonly<{
57
61
  "chair yam2 yam3 clock": Effect;
58
62
  "yam1 yam2 cheese clock": Effect;
59
63
  }>;
64
+ export declare const RESONANCE_KEYS: ("sword yam2 eyepatch explosion" | "yam1 meat cheese yam4" | "yam1 meat eyepatch yam4" | "yam1 lightning yam3 clock" | "yam1 yam2 yam3 explosion" | "yam1 yam2 cheese clock" | "eye yam2 eyepatch yam4" | "chair yam2 yam3 clock" | "fur lightning eyepatch yam4" | "fur yam2 wall yam4" | "vessel yam2 cheese explosion")[];
60
65
  /**
61
66
  * Find the combination needed to get a particular resonance
62
67
  * @param target The Item or Effect granted by the resonance
@@ -14,7 +14,12 @@ export const RINGS = Object.freeze([
14
14
  export function have() {
15
15
  return have_($item `Mayam Calendar`);
16
16
  }
17
- const symbolsUsed = () => get("_mayamSymbolsUsed").split(",");
17
+ /**
18
+ * @returns The Mayam calendar symbols you've used so far today.
19
+ */
20
+ export function symbolsUsed() {
21
+ return get("_mayamSymbolsUsed").split(",");
22
+ }
18
23
  /**
19
24
  * Determine whether certain Mayam symbols are available for use today
20
25
  *
@@ -59,7 +64,7 @@ export function submit(...combination) {
59
64
  if (!available(...toCombination(combination))) {
60
65
  return false;
61
66
  }
62
- return cliExecute(`mayam ring ${combination.join(" ").replace(/yam\d/g, "yam")}`);
67
+ return cliExecute(`mayam rings ${combination.join(" ").replace(/yam\d/g, "yam")}`);
63
68
  }
64
69
  export const RESONANCES = Object.freeze({
65
70
  "eye yam2 eyepatch yam4": $item `Mayam spinach`,
@@ -74,6 +79,7 @@ export const RESONANCES = Object.freeze({
74
79
  "chair yam2 yam3 clock": $effect `Caught Yam-Handed`,
75
80
  "yam1 yam2 cheese clock": $effect `Memories of Cheesier Age`,
76
81
  });
82
+ export const RESONANCE_KEYS = Object.keys(RESONANCES);
77
83
  /**
78
84
  * Find the combination needed to get a particular resonance
79
85
  * @param target The Item or Effect granted by the resonance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libram",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "JavaScript helper library for KoLmafia",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",