libram 0.4.5 → 0.4.6

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.
@@ -61,7 +61,7 @@ export class MenuItem {
61
61
  $item `distention pill`,
62
62
  {
63
63
  organ: "food",
64
- maximum: get("_distentionPillUsed") ? 0 : 1,
64
+ maximum: !have($item `distention pill`) || get("_distentionPillUsed") ? 0 : 1,
65
65
  size: -1,
66
66
  },
67
67
  ],
@@ -69,7 +69,10 @@ export class MenuItem {
69
69
  $item `synthetic dog hair pill`,
70
70
  {
71
71
  organ: "booze",
72
- maximum: get("_syntheticDogHairPillUsed") ? 0 : 1,
72
+ maximum: !have($item `synthetic dog hair pill`) ||
73
+ get("_syntheticDogHairPillUsed")
74
+ ? 0
75
+ : 1,
73
76
  size: -1,
74
77
  },
75
78
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libram",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "JavaScript helper library for KoLmafia",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",