libram 0.8.35 → 0.8.37
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.
- package/dist/Clan.js +3 -3
- package/dist/Dungeon.js +4 -4
- package/dist/Kmail.js +3 -3
- package/dist/Macro.test.d.ts +1 -0
- package/dist/Macro.test.js +126 -0
- package/dist/actions/ActionSource.d.ts +2 -2
- package/dist/actions/ActionSource.js +3 -3
- package/dist/actions/Banish.d.ts +1 -1
- package/dist/actions/Banish.js +7 -7
- package/dist/actions/FreeKill.d.ts +1 -1
- package/dist/actions/FreeKill.js +7 -7
- package/dist/actions/FreeRun.d.ts +1 -1
- package/dist/actions/FreeRun.js +8 -8
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +4 -4
- package/dist/ascend.d.ts +2 -2
- package/dist/ascend.js +5 -5
- package/dist/challengePaths/2014/HeavyRains.js +3 -3
- package/dist/challengePaths/2015/CommunityService.d.ts +1 -1
- package/dist/challengePaths/2015/CommunityService.js +6 -6
- package/dist/challengePaths/2016/NuclearAutumn.js +1 -1
- package/dist/challengePaths/index.d.ts +3 -3
- package/dist/challengePaths/index.js +3 -3
- package/dist/combat.d.ts +13 -7
- package/dist/combat.js +39 -30
- package/dist/diet/index.js +7 -7
- package/dist/diet/knapsack.js +1 -1
- package/dist/diet/knapsack.test.d.ts +1 -0
- package/dist/diet/knapsack.test.js +77 -0
- package/dist/index.d.ts +29 -29
- package/dist/index.js +26 -26
- package/dist/lib.d.ts +4 -2
- package/dist/lib.js +6 -4
- package/dist/lib.test.d.ts +1 -0
- package/dist/lib.test.js +142 -0
- package/dist/maximize.js +4 -4
- package/dist/modifier.d.ts +1 -1
- package/dist/modifier.js +4 -4
- package/dist/mood.js +5 -5
- package/dist/property.d.ts +2 -2
- package/dist/property.js +1 -1
- package/dist/propertyTypes.d.ts +2 -2
- package/dist/propertyTypes.js +2 -2
- package/dist/propertyTyping.d.ts +1 -1
- package/dist/propertyTyping.js +1 -1
- package/dist/resources/2007/CandyHearts.js +2 -2
- package/dist/resources/2008/DivineFavors.js +3 -3
- package/dist/resources/2008/Stickers.js +1 -1
- package/dist/resources/2009/Bandersnatch.js +3 -3
- package/dist/resources/2009/LoveSongs.js +2 -2
- package/dist/resources/2009/SpookyPutty.js +3 -3
- package/dist/resources/2010/Brickos.js +3 -3
- package/dist/resources/2010/CrownOfThrones.d.ts +1 -1
- package/dist/resources/2010/CrownOfThrones.js +4 -4
- package/dist/resources/2010/LookingGlass.js +3 -3
- package/dist/resources/2011/Gygaxian.js +2 -2
- package/dist/resources/2011/ObtuseAngel.d.ts +1 -1
- package/dist/resources/2011/ObtuseAngel.js +4 -4
- package/dist/resources/2011/StompingBoots.js +3 -3
- package/dist/resources/2012/RainDoh.js +3 -3
- package/dist/resources/2012/ReagnimatedGnome.js +2 -2
- package/dist/resources/2012/Resolutions.js +2 -2
- package/dist/resources/2013/Florist.d.ts +2 -2
- package/dist/resources/2013/Florist.js +4 -4
- package/dist/resources/2013/JungMan.js +2 -2
- package/dist/resources/2013/PulledTaffy.js +3 -3
- package/dist/resources/2014/CrimboShrub.js +3 -3
- package/dist/resources/2014/DNALab.js +5 -5
- package/dist/resources/2014/WinterGarden.d.ts +1 -1
- package/dist/resources/2014/WinterGarden.js +4 -4
- package/dist/resources/2015/BarrelShrine.js +3 -3
- package/dist/resources/2015/ChateauMantegna.d.ts +1 -1
- package/dist/resources/2015/ChateauMantegna.js +1 -1
- package/dist/resources/2015/DeckOfEveryCard.js +4 -4
- package/dist/resources/2015/Dinseylandfill.js +3 -3
- package/dist/resources/2015/MayoClinic.js +4 -4
- package/dist/resources/2016/GingerBread.js +2 -2
- package/dist/resources/2016/SourceTerminal.d.ts +1 -1
- package/dist/resources/2016/SourceTerminal.js +5 -5
- package/dist/resources/2016/Witchess.d.ts +1 -1
- package/dist/resources/2016/Witchess.js +3 -3
- package/dist/resources/2017/AsdonMartin.js +3 -3
- package/dist/resources/2017/Horsery.d.ts +1 -1
- package/dist/resources/2017/Horsery.js +1 -1
- package/dist/resources/2017/MummingTrunk.d.ts +1 -1
- package/dist/resources/2017/MummingTrunk.js +1 -1
- package/dist/resources/2017/Pantogram.js +2 -2
- package/dist/resources/2017/Robortender.js +2 -2
- package/dist/resources/2017/Spacegate.js +2 -2
- package/dist/resources/2017/TunnelOfLove.d.ts +1 -1
- package/dist/resources/2017/TunnelOfLove.js +4 -4
- package/dist/resources/2018/LatteLoversMembersMug.d.ts +1 -1
- package/dist/resources/2018/LatteLoversMembersMug.js +5 -5
- package/dist/resources/2018/SongBoom.js +3 -3
- package/dist/resources/2019/BeachComb.js +4 -4
- package/dist/resources/2019/CampAway.js +4 -4
- package/dist/resources/2019/Snapper.js +1 -1
- package/dist/resources/2020/Cartography.js +3 -3
- package/dist/resources/2020/Guzzlr.js +4 -4
- package/dist/resources/2020/RetroCape.d.ts +1 -1
- package/dist/resources/2020/RetroCape.js +3 -3
- package/dist/resources/2021/CrystalBall.js +3 -3
- package/dist/resources/2021/DaylightShavings.js +3 -3
- package/dist/resources/2022/AutumnAton.js +4 -4
- package/dist/resources/2022/CombatLoversLocket.d.ts +1 -1
- package/dist/resources/2022/CombatLoversLocket.js +4 -4
- package/dist/resources/2022/GreyGoose.js +4 -4
- package/dist/resources/2022/JuneCleaver.js +1 -1
- package/dist/resources/2022/TrainSet.d.ts +1 -1
- package/dist/resources/2022/TrainSet.js +4 -4
- package/dist/resources/2023/AugustScepter.d.ts +1 -1
- package/dist/resources/2023/AugustScepter.js +3 -3
- package/dist/resources/2023/BurningLeaves.js +3 -3
- package/dist/resources/2023/CinchoDeMayo.js +4 -4
- package/dist/resources/2023/ClosedCircuitPayphone.d.ts +2 -1
- package/dist/resources/2023/ClosedCircuitPayphone.js +5 -4
- package/dist/resources/2023/CursedMonkeyPaw.js +5 -5
- package/dist/resources/2024/AprilingBandHelmet.js +4 -4
- package/dist/resources/2024/ChestMimic.d.ts +1 -1
- package/dist/resources/2024/ChestMimic.js +3 -3
- package/dist/resources/2024/MayamCalendar.d.ts +12 -0
- package/dist/resources/2024/MayamCalendar.js +23 -6
- package/dist/resources/LibramSummon.js +10 -10
- package/dist/resources/index.d.ts +54 -54
- package/dist/resources/index.js +54 -54
- package/dist/resources/putty-likes.d.ts +1 -1
- package/dist/resources/putty-likes.js +3 -3
- package/dist/session.js +3 -3
- package/dist/template-string.d.ts +18 -1
- package/dist/template-string.js +2 -1
- package/dist/url.test.d.ts +1 -0
- package/dist/url.test.js +147 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/dist/utils.test.d.ts +1 -0
- package/dist/utils.test.js +8 -0
- package/package.json +7 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cliExecute, Effect, getWorkshed, haveEffect, itemAmount, Phylum, } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get as getModifier } from "../../modifier";
|
|
4
|
-
import { get } from "../../property";
|
|
5
|
-
import { $effect, $item, $phylum } from "../../template-string";
|
|
6
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get as getModifier } from "../../modifier.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
|
+
import { $effect, $item, $phylum } from "../../template-string.js";
|
|
6
|
+
import { clamp } from "../../utils.js";
|
|
7
7
|
const lab = $item `Little Geneticist DNA-Splicing Lab`;
|
|
8
8
|
/**
|
|
9
9
|
* @returns Whether or not you `have` DNA lab or it's installed
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Copier } from "../../Copier";
|
|
2
|
-
import { haveInCampground, have as haveItem } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
1
|
+
import { Copier } from "../../Copier.js";
|
|
2
|
+
import { haveInCampground, have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
5
|
/**
|
|
6
6
|
* @returns Whether the Winter Garden is our currently installed garden
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { availableAmount, runChoice, visitUrl } from "kolmafia";
|
|
2
|
-
import { get } from "../../property";
|
|
3
|
-
import { $items } from "../../template-string";
|
|
4
|
-
import { sum } from "../../utils";
|
|
2
|
+
import { get } from "../../property.js";
|
|
3
|
+
import { $items } from "../../template-string.js";
|
|
4
|
+
import { sum } from "../../utils.js";
|
|
5
5
|
const BARRELS = $items `little firkin, normal barrel, big tun, weathered barrel, dusty barrel, disintegrating barrel, moist barrel, rotting barrel, mouldering barrel, barnacled barrel`;
|
|
6
6
|
/**
|
|
7
7
|
* @returns Whether we have the barrel shrine
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cliExecute } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { clamp } from "../../utils.js";
|
|
6
6
|
/**
|
|
7
7
|
* @returns Do we `have` the Deck of Every Card?
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { indexOf, myAdventures, myAscensions, runChoice, visitUrl, } from "kolmafia";
|
|
2
|
-
import { getRemainingLiver, have as haveItem } from "../../lib";
|
|
3
|
-
import { get, set } from "../../property";
|
|
4
|
-
import { $item, $location } from "../../template-string";
|
|
2
|
+
import { getRemainingLiver, have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get, set } from "../../property.js";
|
|
4
|
+
import { $item, $location } from "../../template-string.js";
|
|
5
5
|
/**
|
|
6
6
|
* @returns Whether you permanently own Dinseylandfill
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { buy, getWorkshed, retrieveItem, use } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import logger from "../../logger";
|
|
4
|
-
import { get, withChoice } from "../../property";
|
|
5
|
-
import { $item } from "../../template-string";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import logger from "../../logger.js";
|
|
4
|
+
import { get, withChoice } from "../../property.js";
|
|
5
|
+
import { $item } from "../../template-string.js";
|
|
6
6
|
export const Mayo = {
|
|
7
7
|
nex: $item `Mayonex`,
|
|
8
8
|
diol: $item `Mayodiol`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canAdventure } from "kolmafia";
|
|
2
|
-
import { get } from "../../property";
|
|
3
|
-
import { $location, $locations } from "../../template-string";
|
|
2
|
+
import { get } from "../../property.js";
|
|
3
|
+
import { $location, $locations } from "../../template-string.js";
|
|
4
4
|
/**
|
|
5
5
|
* @returns Whether or not you can currently access Gingerbread City
|
|
6
6
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cliExecute, Path, myPath, Skill, } from "kolmafia";
|
|
2
|
-
import { Copier } from "../../Copier";
|
|
3
|
-
import { haveInCampground } from "../../lib";
|
|
4
|
-
import { get } from "../../property";
|
|
5
|
-
import { $effect, $item, $skill } from "../../template-string";
|
|
6
|
-
import { arrayEquals } from "../../utils";
|
|
2
|
+
import { Copier } from "../../Copier.js";
|
|
3
|
+
import { haveInCampground } from "../../lib.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
|
+
import { $effect, $item, $skill } from "../../template-string.js";
|
|
6
|
+
import { arrayEquals } from "../../utils.js";
|
|
7
7
|
const item = $item `Source terminal`;
|
|
8
8
|
/**
|
|
9
9
|
* @returns Is the terminal currently installed & available in our campground?
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Monster, myHash, runChoice, runCombat, visitUrl } from "kolmafia";
|
|
2
|
-
import { haveInCampground } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
2
|
+
import { haveInCampground } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
5
|
const item = $item `Witchess Set`;
|
|
6
6
|
/**
|
|
7
7
|
* @returns Is the Witchess installed and available in our campground?
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { autosellPrice, buy, canInteract, cliExecute, getFuel, getWorkshed, haveEffect, historicalAge, historicalPrice, isNpcItem, Item, itemAmount, mallPrice, mallPrices, retrieveItem, visitUrl, } from "kolmafia";
|
|
2
|
-
import { getAverageAdventures, have as haveItem } from "../../lib";
|
|
3
|
-
import { $effect, $item, $items } from "../../template-string";
|
|
4
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { getAverageAdventures, have as haveItem } from "../../lib.js";
|
|
3
|
+
import { $effect, $item, $items } from "../../template-string.js";
|
|
4
|
+
import { clamp } from "../../utils.js";
|
|
5
5
|
var PriceAge;
|
|
6
6
|
(function (PriceAge) {
|
|
7
7
|
PriceAge[PriceAge["HISTORICAL"] = 0] = "HISTORICAL";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Item, visitUrl } from "kolmafia";
|
|
2
|
-
import { directlyUse, have as haveItem } from "../../lib";
|
|
3
|
-
import { $item } from "../../template-string";
|
|
2
|
+
import { directlyUse, have as haveItem } from "../../lib.js";
|
|
3
|
+
import { $item } from "../../template-string.js";
|
|
4
4
|
const pantogram = $item `portable pantogram`;
|
|
5
5
|
const pants = $item `pantogram pants`;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { haveFamiliar, Item, itemAmount, Monster, myFamiliar, toItem, useFamiliar, visitUrl, } from "kolmafia";
|
|
2
|
-
import { get } from "../../property";
|
|
3
|
-
import { $familiar, $item, $items, $phylum } from "../../template-string";
|
|
2
|
+
import { get } from "../../property.js";
|
|
3
|
+
import { $familiar, $item, $items, $phylum } from "../../template-string.js";
|
|
4
4
|
/**
|
|
5
5
|
* The Robortender itself
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { availableAmount, cliExecute, visitUrl } from "kolmafia";
|
|
2
|
-
import { get } from "../../property";
|
|
3
|
-
import { $item } from "../../template-string";
|
|
2
|
+
import { get } from "../../property.js";
|
|
3
|
+
import { $item } from "../../template-string.js";
|
|
4
4
|
/**
|
|
5
5
|
* @returns Whether you have permanent Spacegate Access
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { adv1 } from "kolmafia";
|
|
2
|
-
import { Copier } from "../../Copier";
|
|
3
|
-
import { have as haveItem, haveWandererCounter, Wanderer } from "../../lib";
|
|
4
|
-
import { get, withChoices } from "../../property";
|
|
5
|
-
import { $item, $location } from "../../template-string";
|
|
2
|
+
import { Copier } from "../../Copier.js";
|
|
3
|
+
import { have as haveItem, haveWandererCounter, Wanderer } from "../../lib.js";
|
|
4
|
+
import { get, withChoices } from "../../property.js";
|
|
5
|
+
import { $item, $location } from "../../template-string.js";
|
|
6
6
|
/**
|
|
7
7
|
* @returns Is the love tunnel available?
|
|
8
8
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cliExecute, getProperty } from "kolmafia";
|
|
2
|
-
import * as Counter from "../../counter";
|
|
3
|
-
import { have as haveItem } from "../../lib";
|
|
4
|
-
import { get } from "../../property";
|
|
5
|
-
import { $item, $location } from "../../template-string";
|
|
6
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import * as Counter from "../../counter.js";
|
|
3
|
+
import { have as haveItem } from "../../lib.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
|
+
import { $item, $location } from "../../template-string.js";
|
|
6
|
+
import { clamp } from "../../utils.js";
|
|
7
7
|
/**
|
|
8
8
|
* @returns Whether we `have` the latte lovers member's mug
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cliExecute } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
5
|
const item = $item `SongBoom™ BoomBox`;
|
|
6
6
|
/**
|
|
7
7
|
* @returns Whether we `have` the SongBoom™ BoomBox
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cliExecute, Effect, gamedayToInt, getProperty, handlingChoice, Item, runChoice, } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $effect } from "../../template-string";
|
|
5
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $effect } from "../../template-string.js";
|
|
5
|
+
import { clamp } from "../../utils.js";
|
|
6
6
|
/**
|
|
7
7
|
* Determines whether we `have` the beach comb
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Effect, daycount, myPath, mySign, retrieveItem, use, visitUrl, } from "kolmafia";
|
|
2
|
-
import { signIdToName } from "../../moonSign";
|
|
3
|
-
import { get, withChoice } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { random } from "../../utils";
|
|
2
|
+
import { signIdToName } from "../../moonSign.js";
|
|
3
|
+
import { get, withChoice } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { random } from "../../utils.js";
|
|
6
6
|
/**
|
|
7
7
|
* Determines whether we `have` the campsite
|
|
8
8
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cliExecute, Familiar, haveFamiliar, Item, myFamiliar, Phylum, useFamiliar, } from "kolmafia";
|
|
2
|
-
import { get } from "../../property";
|
|
2
|
+
import { get } from "../../property.js";
|
|
3
3
|
const familiar = Familiar.get("Red-Nosed Snapper");
|
|
4
4
|
/**
|
|
5
5
|
* Map of phylum to item that phylum drops.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canAdventure, currentRound, handlingChoice, lastChoice, myTurncount, runChoice, toUrl, useSkill, visitUrl, } from "kolmafia";
|
|
2
|
-
import { have as _have } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $skill } from "../../template-string";
|
|
2
|
+
import { have as _have } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $skill } from "../../template-string.js";
|
|
5
5
|
const passive = $skill `Comprehensive Cartography`;
|
|
6
6
|
/**
|
|
7
7
|
* Determines whether you `have` the skill Comprehensive Cartography
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Item, itemAmount, mallPrice, runChoice, use, visitUrl, } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get, withChoice } from "../../property";
|
|
4
|
-
import { $item, $items } from "../../template-string";
|
|
5
|
-
import { invertMap, maxBy } from "../../utils";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get, withChoice } from "../../property.js";
|
|
4
|
+
import { $item, $items } from "../../template-string.js";
|
|
5
|
+
import { invertMap, maxBy } from "../../utils.js";
|
|
6
6
|
const item = $item `Guzzlr tablet`;
|
|
7
7
|
/**
|
|
8
8
|
* Determines whether you `have` Guzzlr
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cliExecute } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item, $skill } from "../../template-string";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item, $skill } from "../../template-string.js";
|
|
5
5
|
const item = $item `unwrapped knock-off retro superhero cape`;
|
|
6
6
|
/**
|
|
7
7
|
* Determines whether you have() the Retro Cape.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toLocation, toMonster, availableAmount, Item, visitUrl, myTotalTurnsSpent, totalTurnsPlayed, } from "kolmafia";
|
|
2
|
-
import { canVisitUrl } from "../../lib";
|
|
3
|
-
import logger from "../../logger";
|
|
4
|
-
import { get } from "../../property";
|
|
2
|
+
import { canVisitUrl } from "../../lib.js";
|
|
3
|
+
import logger from "../../logger.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
5
|
export const orb = Item.get("miniature crystal ball");
|
|
6
6
|
/**
|
|
7
7
|
* Determines whether you `have` the Miniature Crystal Ball
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { myClass, toEffect } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $effects, $item } from "../../template-string";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $effects, $item } from "../../template-string.js";
|
|
5
5
|
const helmet = $item `Daylight Shavings Helmet`;
|
|
6
6
|
/**
|
|
7
7
|
* Returns whether the player owns an unpackaged Daylight Shavings Helmet, and it's available in either the inventory or other zones as determined by autoSatisfy settings.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { availableAmount, availableChoiceOptions, handlingChoice, Item, Location, runChoice, toLocation, totalTurnsPlayed, visitUrl, xpath, } from "kolmafia";
|
|
2
|
-
import { directlyUse } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { arrayContains } from "../../utils";
|
|
2
|
+
import { directlyUse } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { arrayContains } from "../../utils.js";
|
|
6
6
|
const item = Item.get("autumn-aton");
|
|
7
7
|
/**
|
|
8
8
|
* Is the autumn-aton currently in your inventory, available to deploy?
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cliExecute, getLocketMonsters, runCombat, toMonster, } from "kolmafia";
|
|
2
|
-
import { have as haveItem } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { have as haveItem } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { clamp } from "../../utils.js";
|
|
6
6
|
const locket = $item `combat lover's locket`;
|
|
7
7
|
/**
|
|
8
8
|
* @returns Whether you `have` the Combat Lover's Locket
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { myClass } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get as getModifier } from "../../modifier";
|
|
4
|
-
import { get } from "../../property";
|
|
5
|
-
import { $familiar, $item, $skill } from "../../template-string";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get as getModifier } from "../../modifier.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
|
+
import { $familiar, $item, $skill } from "../../template-string.js";
|
|
6
6
|
const goose = $familiar `Grey Goose`;
|
|
7
7
|
/**
|
|
8
8
|
* Determines whether you `have` the Grey Goose
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Effect, getWorkshed, runChoice, visitUrl } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { clamp } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { clamp } from "../../utils.js";
|
|
6
6
|
const item = $item `model train set`;
|
|
7
7
|
/**
|
|
8
8
|
* Determines whether the Model Train Set is your current workshed
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toSkill } from "kolmafia";
|
|
2
|
-
import { gameDay, have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item, $skills } from "../../template-string";
|
|
2
|
+
import { gameDay, have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item, $skills } from "../../template-string.js";
|
|
5
5
|
/**
|
|
6
6
|
* @returns Whether you `have` the august scepter
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cliExecute, itemAmount, runChoice } from "kolmafia";
|
|
2
|
-
import { haveInCampground } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item, $monster } from "../../template-string";
|
|
2
|
+
import { haveInCampground } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item, $monster } from "../../template-string.js";
|
|
5
5
|
const item = $item `A Guide to Burning Leaves`;
|
|
6
6
|
export const burnFor = new Map([
|
|
7
7
|
[$monster `flaming leaflet`, 11],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { totalFreeRests } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item, $skill } from "../../template-string";
|
|
5
|
-
import { clamp, sum } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item, $skill } from "../../template-string.js";
|
|
5
|
+
import { clamp, sum } from "../../utils.js";
|
|
6
6
|
const cincho = $item `Cincho de Mayo`;
|
|
7
7
|
/**
|
|
8
8
|
* @returns Whether you `have` the Cincho de Mayo
|
|
@@ -68,9 +68,10 @@ export declare function rifts(): Location[];
|
|
|
68
68
|
* Picks an option based on your current shadow rift ingress
|
|
69
69
|
*
|
|
70
70
|
* @param options An object keyed by shadow rift ingress; it must either contain all possible ingresses, or have a `default` parameter.
|
|
71
|
+
* @param alternateSource An optional alternate way of determining which Ingress to choose by.
|
|
71
72
|
* @returns The option corresponding to your current shadow rift ingress.
|
|
72
73
|
*/
|
|
73
|
-
export declare const byIngress: <S>(options: import("../../utils").Switch<Ingress, S
|
|
74
|
+
export declare const byIngress: <S>(options: import("../../utils.js").Switch<Ingress, S>, alternateSource?: Ingress | ((...args: never[]) => Ingress) | undefined) => S;
|
|
74
75
|
/**
|
|
75
76
|
* Submit your Rufus quest
|
|
76
77
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Monster, Item, getMonsters, itemDrops, canAdventure, runChoice, toItem, use, } from "kolmafia";
|
|
2
|
-
import { directlyUse, have as have_, questStep } from "../../lib";
|
|
3
|
-
import { get, withChoice } from "../../property";
|
|
4
|
-
import { $item, $location, $monster } from "../../template-string";
|
|
5
|
-
import { makeByXFunction, maxBy } from "../../utils";
|
|
2
|
+
import { directlyUse, have as have_, questStep } from "../../lib.js";
|
|
3
|
+
import { get, withChoice } from "../../property.js";
|
|
4
|
+
import { $item, $location, $monster } from "../../template-string.js";
|
|
5
|
+
import { makeByXFunction, maxBy } from "../../utils.js";
|
|
6
6
|
const item = $item `closed-circuit pay phone`;
|
|
7
7
|
/**
|
|
8
8
|
* @returns Whether we currently have the closed-circuit pay phone
|
|
@@ -112,6 +112,7 @@ export function rifts() {
|
|
|
112
112
|
* Picks an option based on your current shadow rift ingress
|
|
113
113
|
*
|
|
114
114
|
* @param options An object keyed by shadow rift ingress; it must either contain all possible ingresses, or have a `default` parameter.
|
|
115
|
+
* @param alternateSource An optional alternate way of determining which Ingress to choose by.
|
|
115
116
|
* @returns The option corresponding to your current shadow rift ingress.
|
|
116
117
|
*/
|
|
117
118
|
export const byIngress = makeByXFunction(currentIngress);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Item, Location, canAdventure, getMonsters, itemDropsArray, Effect, toEffect, monkeyPaw, prepareForAdventure, cliExecute, } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import logger from "../../logger";
|
|
4
|
-
import { get } from "../../property";
|
|
5
|
-
import { $item } from "../../template-string";
|
|
6
|
-
import { clamp, flat } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import logger from "../../logger.js";
|
|
4
|
+
import { get } from "../../property.js";
|
|
5
|
+
import { $item } from "../../template-string.js";
|
|
6
|
+
import { clamp, flat } from "../../utils.js";
|
|
7
7
|
const item = $item `cursed monkey's paw`;
|
|
8
8
|
/**
|
|
9
9
|
* @returns Whether or not we currently `have` the cursed monkey's paw
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Effect, Item, myHash, runChoice, toEffect, toItem, totalTurnsPlayed, visitUrl, } from "kolmafia";
|
|
2
|
-
import { have as have_ } from "../../lib";
|
|
3
|
-
import { get } from "../../property";
|
|
4
|
-
import { $item } from "../../template-string";
|
|
5
|
-
import { arrayContains } from "../../utils";
|
|
2
|
+
import { have as have_ } from "../../lib.js";
|
|
3
|
+
import { get } from "../../property.js";
|
|
4
|
+
import { $item } from "../../template-string.js";
|
|
5
|
+
import { arrayContains } from "../../utils.js";
|
|
6
6
|
const helmet = $item `Apriling band helmet`;
|
|
7
7
|
/**
|
|
8
8
|
* @returns whether you `have` the Apriling band helmet
|