libram 0.11.16 → 0.11.18

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.
@@ -0,0 +1,33 @@
1
+ import { equippedItem, stringModifier } from "kolmafia";
2
+ import { have as have_ } from "../../lib.js";
3
+ import { $item, $slots } from "../../template-string.js";
4
+ import { parseModifierString } from "../../modifier";
5
+ /**
6
+ * @returns Whether or not you `have` The Eternity Codpiece
7
+ */
8
+ export function have() {
9
+ return have_($item `The Eternity Codpiece`);
10
+ }
11
+ export const SLOTS = Object.freeze($slots `codpiece1, codpiece2, codpiece3, codpiece4, codpiece5`);
12
+ /**
13
+ * @returns An array of the current gems you have equipped in your codpiece, regardless of whether the codpiece is active
14
+ */
15
+ export function currentGems() {
16
+ return SLOTS.map((slot) => equippedItem(slot));
17
+ }
18
+ /**
19
+ * Determines if a given item is a codpieceable gem
20
+ * @param item The gem in question
21
+ * @returns Whether or not it can be placed into your codpiece
22
+ */
23
+ export function equippable(item) {
24
+ return stringModifier(`EternityCodpiece:${item}`, "Modifiers").length > 0;
25
+ }
26
+ /**
27
+ * Parse the expected modifiers of a gem item into a `Modifiers` object
28
+ * @param item The gem in question
29
+ * @returns A `Modifiers` object representing the gem's enchantment in the codpiece
30
+ */
31
+ export function modifiers(item) {
32
+ return parseModifierString(stringModifier(`EternityCodpiece:${item}, "Modifiers`));
33
+ }
@@ -70,6 +70,7 @@ import * as PrismaticBeret from "./2025/PrismaticBeret.js";
70
70
  import * as BloodCubicZirconia from "./2025/BloodCubicZirconia.js";
71
71
  import * as SkeletonOfCrimboPast from "./2025/SkeletonOfCrimboPast.js";
72
72
  import * as LegendarySealClubbingClub from "./2026/LegendarySealClubbingClub.js";
73
- export { AprilingBandHelmet, AsdonMartin, AugustScepter, AutumnAton, Bandersnatch, BarrelShrine, BatWings, BeachComb, BloodCubicZirconia, BoxingDaycare, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CommaChameleon, ConspiracyIsland, CrepeParachute, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, CyberRealm, DaylightShavings, DeckOfEveryCard, DesignerSweatpants, Dinseylandfill, DNALab, EverfullDarts, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LegendarySealClubbingClub, Leprecondo, LookingGlass, MayamCalendar, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, PeridotOfPeril, PocketProfessor, PrismaticBeret, Raffle, RainDoh, ReagnimatedGnome, RetroCape, Robortender, SkeletonOfCrimboPast, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StillSuit, StompingBoots, TakerSpace, TearawayPants, ToyCupidBow, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
73
+ import * as EternityCodpiece from "./2026/EternityCodpiece.js";
74
+ export { AprilingBandHelmet, AsdonMartin, AugustScepter, AutumnAton, Bandersnatch, BarrelShrine, BatWings, BeachComb, BloodCubicZirconia, BoxingDaycare, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CommaChameleon, ConspiracyIsland, CrepeParachute, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, CyberRealm, DaylightShavings, DeckOfEveryCard, DesignerSweatpants, Dinseylandfill, DNALab, EternityCodpiece, EverfullDarts, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LegendarySealClubbingClub, Leprecondo, LookingGlass, MayamCalendar, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, PeridotOfPeril, PocketProfessor, PrismaticBeret, Raffle, RainDoh, ReagnimatedGnome, RetroCape, Robortender, SkeletonOfCrimboPast, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StillSuit, StompingBoots, TakerSpace, TearawayPants, ToyCupidBow, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
74
75
  export * from "./putty-likes.js";
75
76
  export * from "./LibramSummon.js";
@@ -70,6 +70,7 @@ import * as PrismaticBeret from "./2025/PrismaticBeret.js";
70
70
  import * as BloodCubicZirconia from "./2025/BloodCubicZirconia.js";
71
71
  import * as SkeletonOfCrimboPast from "./2025/SkeletonOfCrimboPast.js";
72
72
  import * as LegendarySealClubbingClub from "./2026/LegendarySealClubbingClub.js";
73
- export { AprilingBandHelmet, AsdonMartin, AugustScepter, AutumnAton, Bandersnatch, BarrelShrine, BatWings, BeachComb, BloodCubicZirconia, BoxingDaycare, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CommaChameleon, ConspiracyIsland, CrepeParachute, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, CyberRealm, DaylightShavings, DeckOfEveryCard, DesignerSweatpants, Dinseylandfill, DNALab, EverfullDarts, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LegendarySealClubbingClub, Leprecondo, LookingGlass, MayamCalendar, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, PeridotOfPeril, PocketProfessor, PrismaticBeret, Raffle, RainDoh, ReagnimatedGnome, RetroCape, Robortender, SkeletonOfCrimboPast, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StillSuit, StompingBoots, TakerSpace, TearawayPants, ToyCupidBow, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
73
+ import * as EternityCodpiece from "./2026/EternityCodpiece.js";
74
+ export { AprilingBandHelmet, AsdonMartin, AugustScepter, AutumnAton, Bandersnatch, BarrelShrine, BatWings, BeachComb, BloodCubicZirconia, BoxingDaycare, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CommaChameleon, ConspiracyIsland, CrepeParachute, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, CyberRealm, DaylightShavings, DeckOfEveryCard, DesignerSweatpants, Dinseylandfill, DNALab, EternityCodpiece, EverfullDarts, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LegendarySealClubbingClub, Leprecondo, LookingGlass, MayamCalendar, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, PeridotOfPeril, PocketProfessor, PrismaticBeret, Raffle, RainDoh, ReagnimatedGnome, RetroCape, Robortender, SkeletonOfCrimboPast, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StillSuit, StompingBoots, TakerSpace, TearawayPants, ToyCupidBow, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
74
75
  export * from "./putty-likes.js";
75
76
  export * from "./LibramSummon.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libram",
3
- "version": "0.11.16",
3
+ "version": "0.11.18",
4
4
  "description": "JavaScript helper library for KoLmafia",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",