libram 0.7.11 → 0.7.14
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.d.ts +34 -6
- package/dist/Clan.js +33 -6
- package/dist/Copier.d.ts +5 -5
- package/dist/Dungeon.d.ts +45 -0
- package/dist/Dungeon.js +115 -0
- package/dist/Kmail.d.ts +8 -5
- package/dist/Kmail.js +8 -5
- package/dist/actions/ActionSource.d.ts +5 -0
- package/dist/actions/ActionSource.js +20 -2
- package/dist/actions/FreeKill.d.ts +2 -0
- package/dist/actions/FreeKill.js +2 -0
- package/dist/actions/FreeRun.d.ts +2 -0
- package/dist/actions/FreeRun.js +2 -0
- package/dist/ascend.d.ts +20 -4
- package/dist/ascend.js +32 -4
- package/dist/challengePaths/2015/CommunityService.d.ts +7 -0
- package/dist/challengePaths/2015/CommunityService.js +12 -1
- package/dist/combat.d.ts +55 -0
- package/dist/combat.js +85 -0
- package/dist/counter.d.ts +3 -0
- package/dist/counter.js +3 -0
- package/dist/diet/index.d.ts +2 -0
- package/dist/diet/index.js +27 -8
- package/dist/diet/knapsack.d.ts +1 -0
- package/dist/diet/knapsack.js +11 -3
- package/dist/index.d.ts +3 -7
- package/dist/index.js +1 -3
- package/dist/lib.d.ts +101 -33
- package/dist/lib.js +132 -42
- package/dist/logger.d.ts +24 -11
- package/dist/logger.js +38 -12
- package/dist/maximize.d.ts +20 -1
- package/dist/maximize.js +30 -3
- package/dist/modifier.d.ts +13 -1
- package/dist/modifier.js +87 -3
- package/dist/mood.d.ts +15 -1
- package/dist/mood.js +15 -1
- package/dist/property.d.ts +52 -17
- package/dist/property.js +64 -7
- package/dist/propertyTypes.d.ts +5 -5
- package/dist/propertyTypes.js +5 -5
- package/dist/propertyTyping.d.ts +54 -0
- package/dist/propertyTyping.js +54 -0
- package/dist/resources/2008/Stickers.d.ts +28 -0
- package/dist/resources/2008/Stickers.js +28 -0
- package/dist/resources/2009/Bandersnatch.d.ts +17 -7
- package/dist/resources/2009/Bandersnatch.js +17 -7
- package/dist/resources/2009/SpookyPutty.d.ts +25 -0
- package/dist/resources/2009/SpookyPutty.js +25 -0
- package/dist/resources/2010/CrownOfThrones.d.ts +23 -0
- package/dist/resources/2010/CrownOfThrones.js +31 -15
- package/dist/resources/2010/LookingGlass.d.ts +4 -0
- package/dist/resources/2010/LookingGlass.js +5 -0
- package/dist/resources/2011/ObtuseAngel.d.ts +8 -6
- package/dist/resources/2011/ObtuseAngel.js +8 -6
- package/dist/resources/2011/StompingBoots.d.ts +9 -15
- package/dist/resources/2011/StompingBoots.js +9 -15
- package/dist/resources/2012/RainDoh.d.ts +20 -0
- package/dist/resources/2012/RainDoh.js +20 -0
- package/dist/resources/2012/ReagnimatedGnome.d.ts +18 -0
- package/dist/resources/2012/ReagnimatedGnome.js +18 -0
- package/dist/resources/2012/Resolutions.d.ts +2 -2
- package/dist/resources/2012/Resolutions.js +2 -2
- package/dist/resources/2013/Florist.d.ts +15 -0
- package/dist/resources/2013/Florist.js +21 -0
- package/dist/resources/2014/CrimboShrub.d.ts +12 -0
- package/dist/resources/2014/CrimboShrub.js +22 -1
- package/dist/resources/2014/DNALab.d.ts +10 -2
- package/dist/resources/2014/DNALab.js +10 -2
- package/dist/resources/2014/WinterGarden.d.ts +15 -0
- package/dist/resources/2014/WinterGarden.js +15 -0
- package/dist/resources/2015/BarrelShrine.d.ts +6 -0
- package/dist/resources/2015/BarrelShrine.js +8 -1
- package/dist/resources/2015/ChateauMantegna.d.ts +35 -0
- package/dist/resources/2015/ChateauMantegna.js +35 -0
- package/dist/resources/2015/DeckOfEveryCard.d.ts +23 -1
- package/dist/resources/2015/DeckOfEveryCard.js +24 -0
- package/dist/resources/2015/Dinseylandfill.d.ts +1 -0
- package/dist/resources/2015/Dinseylandfill.js +2 -0
- package/dist/resources/2015/MayoClinic.d.ts +8 -1
- package/dist/resources/2015/MayoClinic.js +8 -1
- package/dist/resources/2016/SourceTerminal.d.ts +42 -21
- package/dist/resources/2016/SourceTerminal.js +42 -21
- package/dist/resources/2016/Witchess.d.ts +12 -0
- package/dist/resources/2016/Witchess.js +12 -0
- package/dist/resources/2017/AsdonMartin.d.ts +11 -3
- package/dist/resources/2017/AsdonMartin.js +44 -7
- package/dist/resources/2017/MummingTrunk.d.ts +1 -0
- package/dist/resources/2017/MummingTrunk.js +8 -1
- package/dist/resources/2017/Pantogram.d.ts +9 -0
- package/dist/resources/2017/Pantogram.js +33 -0
- package/dist/resources/2017/Robortender.d.ts +1 -0
- package/dist/resources/2017/Robortender.js +1 -0
- package/dist/resources/2017/Spacegate.js +1 -0
- package/dist/resources/2017/TunnelOfLove.d.ts +19 -0
- package/dist/resources/2017/TunnelOfLove.js +37 -0
- package/dist/resources/2018/LatteLoversMembersMug.d.ts +388 -0
- package/dist/resources/2018/LatteLoversMembersMug.js +294 -4
- package/dist/resources/2018/SongBoom.d.ts +9 -4
- package/dist/resources/2018/SongBoom.js +9 -4
- package/dist/resources/2019/BeachComb.d.ts +38 -1
- package/dist/resources/2019/BeachComb.js +39 -2
- package/dist/resources/2019/Snapper.d.ts +4 -0
- package/dist/resources/2019/Snapper.js +4 -0
- package/dist/resources/2020/Cartography.d.ts +13 -0
- package/dist/resources/2020/Cartography.js +13 -0
- package/dist/resources/2020/Guzzlr.d.ts +89 -23
- package/dist/resources/2020/Guzzlr.js +100 -29
- package/dist/resources/2020/RetroCape.d.ts +4 -0
- package/dist/resources/2020/RetroCape.js +4 -0
- package/dist/resources/2021/CrystalBall.d.ts +6 -0
- package/dist/resources/2021/CrystalBall.js +13 -1
- package/dist/resources/2021/DaylightShavings.d.ts +6 -0
- package/dist/resources/2021/DaylightShavings.js +6 -0
- package/dist/resources/2022/AutumnAton.d.ts +15 -0
- package/dist/resources/2022/AutumnAton.js +21 -0
- package/dist/resources/2022/CombatLoversLocket.d.ts +9 -0
- package/dist/resources/2022/CombatLoversLocket.js +10 -2
- package/dist/resources/2022/GreyGoose.d.ts +46 -0
- package/dist/resources/2022/GreyGoose.js +47 -1
- package/dist/resources/2022/JuneCleaver.d.ts +20 -0
- package/dist/resources/2022/JuneCleaver.js +20 -0
- package/dist/resources/2022/TrainSet.d.ts +48 -0
- package/dist/resources/2022/TrainSet.js +54 -0
- package/dist/resources/2023/ClosedCircuitPayphone.d.ts +75 -0
- package/dist/resources/2023/ClosedCircuitPayphone.js +117 -0
- package/dist/resources/LibramSummon.d.ts +5 -0
- package/dist/resources/LibramSummon.js +5 -0
- package/dist/resources/index.d.ts +2 -1
- package/dist/resources/index.js +2 -1
- package/dist/resources/putty-likes.d.ts +15 -0
- package/dist/resources/putty-likes.js +15 -0
- package/dist/session.d.ts +12 -0
- package/dist/session.js +20 -17
- package/dist/since.d.ts +3 -2
- package/dist/since.js +4 -2
- package/dist/utils.d.ts +90 -6
- package/dist/utils.js +108 -0
- package/package.json +4 -8
- package/dist/dungeons/Dreadsylvania.d.ts +0 -5
- package/dist/dungeons/Dreadsylvania.js +0 -14
- package/dist/dungeons/Dungeon.d.ts +0 -29
- package/dist/dungeons/Dungeon.js +0 -99
- package/dist/dungeons/Hobopolis.d.ts +0 -5
- package/dist/dungeons/Hobopolis.js +0 -14
- package/dist/dungeons/SlimeTube.d.ts +0 -5
- package/dist/dungeons/SlimeTube.js +0 -14
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const item: import("kolmafia").Item;
|
|
2
|
+
/**
|
|
3
|
+
* @returns Whether we `have` the SongBoom™ BoomBox
|
|
4
|
+
*/
|
|
2
5
|
export declare function have(): boolean;
|
|
3
6
|
declare const keywords: {
|
|
4
7
|
"Eye of the Giger": string;
|
|
@@ -10,20 +13,22 @@ declare const keywords: {
|
|
|
10
13
|
export declare type SongBoomSong = keyof typeof keywords | null;
|
|
11
14
|
export declare const songBoomSongs: Set<string>;
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
16
|
+
* @returns The `SongBoomSong` you currently have active; `null` if none is active at this time
|
|
14
17
|
*/
|
|
15
18
|
export declare function song(): SongBoomSong;
|
|
16
19
|
/**
|
|
17
|
-
* Song changes left today.
|
|
20
|
+
* @returns Song changes left today.
|
|
18
21
|
*/
|
|
19
22
|
export declare function songChangesLeft(): number;
|
|
20
23
|
/**
|
|
21
|
-
* Change the song.
|
|
24
|
+
* Change the song. Throws an error if unable.
|
|
25
|
+
*
|
|
22
26
|
* @param newSong Song to change to.
|
|
27
|
+
* @returns Whether we successfully changed the song; `false` thus means that this was already our current song.
|
|
23
28
|
*/
|
|
24
29
|
export declare function setSong(newSong: SongBoomSong): boolean;
|
|
25
30
|
/**
|
|
26
|
-
* Progress to next song drop (e.g. gathered meat-clip).
|
|
31
|
+
* @returns Progress to next song drop (e.g. gathered meat-clip).
|
|
27
32
|
*/
|
|
28
33
|
export declare function dropProgress(): number;
|
|
29
34
|
export {};
|
|
@@ -3,6 +3,9 @@ import { have as haveItem } from "../../lib";
|
|
|
3
3
|
import { get } from "../../property";
|
|
4
4
|
import { $item } from "../../template-string";
|
|
5
5
|
export const item = $item `SongBoom™ BoomBox`;
|
|
6
|
+
/**
|
|
7
|
+
* @returns Whether we `have` the SongBoom™ BoomBox
|
|
8
|
+
*/
|
|
6
9
|
export function have() {
|
|
7
10
|
return haveItem(item);
|
|
8
11
|
}
|
|
@@ -15,21 +18,23 @@ const keywords = {
|
|
|
15
18
|
};
|
|
16
19
|
export const songBoomSongs = new Set(Object.keys(keywords));
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* @returns The `SongBoomSong` you currently have active; `null` if none is active at this time
|
|
19
22
|
*/
|
|
20
23
|
export function song() {
|
|
21
24
|
const stored = get("boomBoxSong");
|
|
22
25
|
return songBoomSongs.has(stored) ? stored : null;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
|
-
* Song changes left today.
|
|
28
|
+
* @returns Song changes left today.
|
|
26
29
|
*/
|
|
27
30
|
export function songChangesLeft() {
|
|
28
31
|
return get("_boomBoxSongsLeft");
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
|
-
* Change the song.
|
|
34
|
+
* Change the song. Throws an error if unable.
|
|
35
|
+
*
|
|
32
36
|
* @param newSong Song to change to.
|
|
37
|
+
* @returns Whether we successfully changed the song; `false` thus means that this was already our current song.
|
|
33
38
|
*/
|
|
34
39
|
export function setSong(newSong) {
|
|
35
40
|
if (song() !== newSong) {
|
|
@@ -43,7 +48,7 @@ export function setSong(newSong) {
|
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
|
-
* Progress to next song drop (e.g. gathered meat-clip).
|
|
51
|
+
* @returns Progress to next song drop (e.g. gathered meat-clip).
|
|
47
52
|
*/
|
|
48
53
|
export function dropProgress() {
|
|
49
54
|
return get("_boomBoxFights");
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Effect } from "kolmafia";
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether we `have` the beach comb
|
|
4
|
+
*
|
|
5
|
+
* @returns Whether we `have` the beach comb
|
|
6
|
+
*/
|
|
2
7
|
export declare function have(): boolean;
|
|
3
8
|
export declare const headBuffs: readonly [Effect, Effect, Effect, Effect, Effect, Effect, Effect, Effect, Effect, Effect, Effect];
|
|
4
9
|
export declare const head: {
|
|
@@ -21,9 +26,41 @@ export declare type BeachTile = {
|
|
|
21
26
|
row: number;
|
|
22
27
|
column: number;
|
|
23
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Calculates the tide level for a given game day
|
|
31
|
+
*
|
|
32
|
+
* @param day The day to check the tide level of; defaults to today
|
|
33
|
+
* @returns The tide level as an integer
|
|
34
|
+
*/
|
|
24
35
|
export declare function tideLevel(day?: number): number;
|
|
25
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Determines whether a given tile can currently be combed, based on the tide level
|
|
38
|
+
*
|
|
39
|
+
* @param tile The tile to check
|
|
40
|
+
* @returns Whether today's tides permit the combing of this tile
|
|
41
|
+
*/
|
|
42
|
+
export declare function canComb(tile: BeachTile): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @returns The number of free combs we have available for today
|
|
45
|
+
*/
|
|
26
46
|
export declare function freeCombs(): number;
|
|
47
|
+
/**
|
|
48
|
+
* Comb a tile or tiles; skips any presently uncombablle tiles
|
|
49
|
+
*
|
|
50
|
+
* @param tiles The tiles to comb
|
|
51
|
+
*/
|
|
27
52
|
export declare function comb(...tiles: BeachTile[]): void;
|
|
53
|
+
/**
|
|
54
|
+
* Determines whether a given Beach Head can be combed today
|
|
55
|
+
*
|
|
56
|
+
* @param target The head in question, either as the Effect it grants or as its name
|
|
57
|
+
* @returns Whether the given head is combable
|
|
58
|
+
*/
|
|
28
59
|
export declare function headAvailable(target: Effect | keyof typeof head): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Tries to comb a given Beach Head
|
|
62
|
+
*
|
|
63
|
+
* @param target The Beach Head to comb, given either as its effect or as its name
|
|
64
|
+
* @returns Whether we have the head effect at the end of the whole rigamarole; this means that if you `tryHead` when you already have the effect, it will (presumably) fail to comb but will return `true`
|
|
65
|
+
*/
|
|
29
66
|
export declare function tryHead(target: Effect | keyof typeof head): boolean;
|
|
@@ -3,6 +3,11 @@ import { have as have_ } from "../../lib";
|
|
|
3
3
|
import { get } from "../../property";
|
|
4
4
|
import { $effect } from "../../template-string";
|
|
5
5
|
import { clamp } from "../../utils";
|
|
6
|
+
/**
|
|
7
|
+
* Determines whether we `have` the beach comb
|
|
8
|
+
*
|
|
9
|
+
* @returns Whether we `have` the beach comb
|
|
10
|
+
*/
|
|
6
11
|
export function have() {
|
|
7
12
|
return have_(Item.get("Beach Comb"));
|
|
8
13
|
}
|
|
@@ -31,16 +36,36 @@ export const head = {
|
|
|
31
36
|
FAMILIAR: $effect `Do I Know You From Somewhere?`,
|
|
32
37
|
EXPERIENCE: $effect `You Learned Something Maybe!`,
|
|
33
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Calculates the tide level for a given game day
|
|
41
|
+
*
|
|
42
|
+
* @param day The day to check the tide level of; defaults to today
|
|
43
|
+
* @returns The tide level as an integer
|
|
44
|
+
*/
|
|
34
45
|
export function tideLevel(day = gamedayToInt()) {
|
|
35
46
|
const dayOfMonth = 1 + (day % 8);
|
|
36
47
|
return 4 - Math.abs(4 - dayOfMonth);
|
|
37
48
|
}
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Determines whether a given tile can currently be combed, based on the tide level
|
|
51
|
+
*
|
|
52
|
+
* @param tile The tile to check
|
|
53
|
+
* @returns Whether today's tides permit the combing of this tile
|
|
54
|
+
*/
|
|
55
|
+
export function canComb(tile) {
|
|
56
|
+
return tile.row > tideLevel();
|
|
40
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @returns The number of free combs we have available for today
|
|
60
|
+
*/
|
|
41
61
|
export function freeCombs() {
|
|
42
62
|
return have() ? clamp(11 - get("_freeBeachWalksUsed"), 0, 11) : 0;
|
|
43
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Comb a tile or tiles; skips any presently uncombablle tiles
|
|
66
|
+
*
|
|
67
|
+
* @param tiles The tiles to comb
|
|
68
|
+
*/
|
|
44
69
|
export function comb(...tiles) {
|
|
45
70
|
if (!have() || !tiles.length)
|
|
46
71
|
return;
|
|
@@ -54,6 +79,12 @@ export function comb(...tiles) {
|
|
|
54
79
|
if (handlingChoice())
|
|
55
80
|
runChoice(5);
|
|
56
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Determines whether a given Beach Head can be combed today
|
|
84
|
+
*
|
|
85
|
+
* @param target The head in question, either as the Effect it grants or as its name
|
|
86
|
+
* @returns Whether the given head is combable
|
|
87
|
+
*/
|
|
57
88
|
export function headAvailable(target) {
|
|
58
89
|
const effect = target instanceof Effect ? target : head[target];
|
|
59
90
|
const headNumber = 1 + headBuffs.indexOf(effect);
|
|
@@ -62,6 +93,12 @@ export function headAvailable(target) {
|
|
|
62
93
|
.includes(headNumber.toString()) &&
|
|
63
94
|
!getProperty("_beachHeadsUsed").split(",").includes(headNumber.toString()));
|
|
64
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Tries to comb a given Beach Head
|
|
98
|
+
*
|
|
99
|
+
* @param target The Beach Head to comb, given either as its effect or as its name
|
|
100
|
+
* @returns Whether we have the head effect at the end of the whole rigamarole; this means that if you `tryHead` when you already have the effect, it will (presumably) fail to comb but will return `true`
|
|
101
|
+
*/
|
|
65
102
|
export function tryHead(target) {
|
|
66
103
|
const effect = target instanceof Effect ? target : head[target];
|
|
67
104
|
if (!headBuffs.includes(effect))
|
|
@@ -9,21 +9,25 @@ export declare const phylumItem: Map<Phylum, Item>;
|
|
|
9
9
|
export declare const itemPhylum: Map<Item, Phylum>;
|
|
10
10
|
/**
|
|
11
11
|
* Return whether you have a Red-Nosed Snapper.
|
|
12
|
+
*
|
|
12
13
|
* @returns True if you have a Red-Nosed Snapper, false otherwise.
|
|
13
14
|
*/
|
|
14
15
|
export declare function have(): boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Get the phylum currently being tracked by the snapper.
|
|
18
|
+
*
|
|
17
19
|
* @returns Tracked phylum, or null if no phylum tracked.
|
|
18
20
|
*/
|
|
19
21
|
export declare function getTrackedPhylum(): Phylum | null;
|
|
20
22
|
/**
|
|
21
23
|
* Set snapper tracking to a certain phylum.
|
|
24
|
+
*
|
|
22
25
|
* @param phylum Phylum to track.
|
|
23
26
|
*/
|
|
24
27
|
export declare function trackPhylum(phylum: Phylum): void;
|
|
25
28
|
/**
|
|
26
29
|
* Get progress to next snapper drop.
|
|
30
|
+
*
|
|
27
31
|
* @returns Number of fights completed (out of 11) to reach next drop.
|
|
28
32
|
*/
|
|
29
33
|
export declare function getProgress(): number;
|
|
@@ -34,6 +34,7 @@ export const phylumItem = new Map([
|
|
|
34
34
|
export const itemPhylum = new Map([...phylumItem].map(([phylum, item]) => [item, phylum]));
|
|
35
35
|
/**
|
|
36
36
|
* Return whether you have a Red-Nosed Snapper.
|
|
37
|
+
*
|
|
37
38
|
* @returns True if you have a Red-Nosed Snapper, false otherwise.
|
|
38
39
|
*/
|
|
39
40
|
export function have() {
|
|
@@ -41,6 +42,7 @@ export function have() {
|
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* Get the phylum currently being tracked by the snapper.
|
|
45
|
+
*
|
|
44
46
|
* @returns Tracked phylum, or null if no phylum tracked.
|
|
45
47
|
*/
|
|
46
48
|
export function getTrackedPhylum() {
|
|
@@ -48,6 +50,7 @@ export function getTrackedPhylum() {
|
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Set snapper tracking to a certain phylum.
|
|
53
|
+
*
|
|
51
54
|
* @param phylum Phylum to track.
|
|
52
55
|
*/
|
|
53
56
|
export function trackPhylum(phylum) {
|
|
@@ -62,6 +65,7 @@ export function trackPhylum(phylum) {
|
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
67
|
* Get progress to next snapper drop.
|
|
68
|
+
*
|
|
65
69
|
* @returns Number of fights completed (out of 11) to reach next drop.
|
|
66
70
|
*/
|
|
67
71
|
export function getProgress() {
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { Location, Monster } from "kolmafia";
|
|
2
2
|
export declare const passive: import("kolmafia").Skill;
|
|
3
3
|
export declare const skill: import("kolmafia").Skill;
|
|
4
|
+
/**
|
|
5
|
+
* Determines whether you `have` the skill Comprehensive Cartography
|
|
6
|
+
*
|
|
7
|
+
* @returns Whether you currently `have` the skill
|
|
8
|
+
*/
|
|
4
9
|
export declare function have(): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Map a particular monster in a particular location
|
|
12
|
+
* You'll need to set your autoattack or CCS in advance of using this. Additionally, it will loop to try to avoid time-spinner pranks or zone intro adventures
|
|
13
|
+
*
|
|
14
|
+
* @param location The location to target
|
|
15
|
+
* @param monster The monster to target
|
|
16
|
+
* @returns Whether we successfully mapped the monster
|
|
17
|
+
*/
|
|
5
18
|
export declare function mapMonster(location: Location, monster: Monster): boolean;
|
|
@@ -4,9 +4,22 @@ import { get } from "../../property";
|
|
|
4
4
|
import { $skill } from "../../template-string";
|
|
5
5
|
export const passive = $skill `Comprehensive Cartography`;
|
|
6
6
|
export const skill = $skill `Map the Monsters`;
|
|
7
|
+
/**
|
|
8
|
+
* Determines whether you `have` the skill Comprehensive Cartography
|
|
9
|
+
*
|
|
10
|
+
* @returns Whether you currently `have` the skill
|
|
11
|
+
*/
|
|
7
12
|
export function have() {
|
|
8
13
|
return _have(passive);
|
|
9
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Map a particular monster in a particular location
|
|
17
|
+
* You'll need to set your autoattack or CCS in advance of using this. Additionally, it will loop to try to avoid time-spinner pranks or zone intro adventures
|
|
18
|
+
*
|
|
19
|
+
* @param location The location to target
|
|
20
|
+
* @param monster The monster to target
|
|
21
|
+
* @returns Whether we successfully mapped the monster
|
|
22
|
+
*/
|
|
10
23
|
export function mapMonster(location, monster) {
|
|
11
24
|
if (!have())
|
|
12
25
|
return false;
|
|
@@ -1,77 +1,123 @@
|
|
|
1
1
|
import { Item, Location } from "kolmafia";
|
|
2
2
|
export declare const item: Item;
|
|
3
|
+
/**
|
|
4
|
+
* Determines whether you `have` Guzzlr
|
|
5
|
+
*
|
|
6
|
+
* @returns Whether you `have` Guzzlr
|
|
7
|
+
*/
|
|
3
8
|
export declare function have(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Determines whether you currently have an active Guzzlr quest
|
|
11
|
+
*
|
|
12
|
+
* @returns Whether you currently have an active Guzzlr quest
|
|
13
|
+
*/
|
|
4
14
|
export declare function isQuestActive(): boolean;
|
|
5
15
|
/**
|
|
6
|
-
* Platinum deliveries completed
|
|
16
|
+
* Determines total number of Platinum deliveries completed
|
|
17
|
+
*
|
|
18
|
+
* @returns Platinum deliveries completed overall
|
|
7
19
|
*/
|
|
8
20
|
export declare function getPlatinum(): number;
|
|
9
21
|
/**
|
|
10
|
-
* Platinum deliveries completed today
|
|
22
|
+
* Determines the number of Platinum deliveries completed today
|
|
23
|
+
*
|
|
24
|
+
* @returns Platinum deliveries completed today
|
|
11
25
|
*/
|
|
12
26
|
export declare function getPlatinumToday(): number;
|
|
13
27
|
/**
|
|
14
|
-
*
|
|
28
|
+
* Determines whether you are currently eligible to do a Platinum delivery
|
|
29
|
+
*
|
|
30
|
+
* @returns Whether you are currently eligible to do a Platinum delivery
|
|
15
31
|
*/
|
|
16
32
|
export declare function canPlatinum(): boolean;
|
|
17
33
|
/**
|
|
18
|
-
*
|
|
34
|
+
* Determines whether you have fully unlocked the Platinum delivery bonuses (done >= 30)
|
|
35
|
+
*
|
|
36
|
+
* @returns Whether you have fully unlocked the Platinum delivery enchantment bonuses
|
|
19
37
|
*/
|
|
20
38
|
export declare function haveFullPlatinumBonus(): boolean;
|
|
21
39
|
/**
|
|
22
|
-
*
|
|
40
|
+
* Accepts a Platinum delivery
|
|
41
|
+
*
|
|
42
|
+
* @returns Whether we succeeded in this endeavor
|
|
23
43
|
*/
|
|
24
44
|
export declare function acceptPlatinum(): boolean;
|
|
25
45
|
/**
|
|
26
|
-
* Gold deliveries completed
|
|
46
|
+
* Determines total number of Gold deliveries completed
|
|
47
|
+
*
|
|
48
|
+
* @returns Gold deliveries completed overall
|
|
27
49
|
*/
|
|
28
50
|
export declare function getGold(): number;
|
|
29
51
|
/**
|
|
30
|
-
* Gold deliveries completed today
|
|
52
|
+
* Determines the number of Gold deliveries completed today
|
|
53
|
+
*
|
|
54
|
+
* @returns Gold deliveries completed today
|
|
31
55
|
*/
|
|
32
56
|
export declare function getGoldToday(): number;
|
|
33
57
|
/**
|
|
34
|
-
*
|
|
58
|
+
* Determines whether you are currently eligible to do a Gold delivery
|
|
59
|
+
*
|
|
60
|
+
* @returns Whether you are currently eligible to do a Gold delivery
|
|
35
61
|
*/
|
|
36
62
|
export declare function canGold(): boolean;
|
|
37
63
|
/**
|
|
38
|
-
*
|
|
64
|
+
* Determines whether you have fully unlocked the Gold delivery bonuses (done >= 150)
|
|
65
|
+
*
|
|
66
|
+
* @returns Whether you have fully unlocked the Gold delivery enchantment bonuses
|
|
39
67
|
*/
|
|
40
68
|
export declare function haveFullGoldBonus(): boolean;
|
|
41
69
|
/**
|
|
42
|
-
*
|
|
70
|
+
* Accepts a Gold delivery
|
|
71
|
+
*
|
|
72
|
+
* @returns Whether we succeeded in this endeavor
|
|
43
73
|
*/
|
|
44
74
|
export declare function acceptGold(): boolean;
|
|
45
75
|
/**
|
|
46
|
-
* Bronze deliveries completed
|
|
76
|
+
* Determines total number of Bronze deliveries completed
|
|
77
|
+
*
|
|
78
|
+
* @returns Bronze deliveries completed overall
|
|
47
79
|
*/
|
|
48
80
|
export declare function getBronze(): number;
|
|
49
81
|
/**
|
|
50
|
-
*
|
|
82
|
+
* Determines whether you have fully unlocked the Bronze delivery bonuses (done >= 196)
|
|
83
|
+
*
|
|
84
|
+
* @returns Whether you have fully unlocked the Bronze delivery enchantment bonuses
|
|
51
85
|
*/
|
|
52
|
-
export declare function
|
|
86
|
+
export declare function haveFullBronzeBonus(): boolean;
|
|
53
87
|
/**
|
|
54
|
-
*
|
|
88
|
+
* Accepts a Bronze delivery
|
|
89
|
+
*
|
|
90
|
+
* @returns Whether we succeeded in this endeavor
|
|
55
91
|
*/
|
|
56
|
-
export declare function
|
|
92
|
+
export declare function acceptBronze(): boolean;
|
|
57
93
|
/**
|
|
58
|
-
*
|
|
94
|
+
* Determines whether we can abandon the current Guzzlr quest
|
|
95
|
+
*
|
|
96
|
+
* @returns Whether we are able to abandon our current Guzzlr quest
|
|
59
97
|
*/
|
|
60
98
|
export declare function canAbandon(): boolean;
|
|
61
99
|
/**
|
|
62
|
-
*
|
|
100
|
+
* Abandons Guzzlr quest
|
|
101
|
+
*
|
|
102
|
+
* @returns `false` if we were unable to abandon a quest; `true` otherwise
|
|
63
103
|
*/
|
|
64
104
|
export declare function abandon(): boolean;
|
|
65
105
|
/**
|
|
66
|
-
*
|
|
106
|
+
* Determines the target location for your current Guzzlr quest
|
|
107
|
+
*
|
|
108
|
+
* @returns The current target location for your Guzzlr quest, if it exists
|
|
67
109
|
*/
|
|
68
110
|
export declare function getLocation(): Location | null;
|
|
69
111
|
/**
|
|
70
|
-
*
|
|
112
|
+
* Determines the tier of your current Guzzlr quest
|
|
113
|
+
*
|
|
114
|
+
* @returns The tier of your current Guzzlr quest; `null` if there is no active quest
|
|
71
115
|
*/
|
|
72
116
|
export declare function getTier(): "platinum" | "gold" | "bronze" | null;
|
|
73
117
|
/**
|
|
74
|
-
*
|
|
118
|
+
* Determines the current booze item you need to deliver for your current Guzzlr quest
|
|
119
|
+
*
|
|
120
|
+
* @returns The booze item associated with your Guzzlr quest if it exists; `null` otherwise
|
|
75
121
|
*/
|
|
76
122
|
export declare function getBooze(): Item | null;
|
|
77
123
|
/**
|
|
@@ -79,17 +125,37 @@ export declare function getBooze(): Item | null;
|
|
|
79
125
|
*/
|
|
80
126
|
export declare const Cocktails: Item[];
|
|
81
127
|
/**
|
|
82
|
-
*
|
|
128
|
+
* Determines whether you currently have a Platinum cocktail available
|
|
129
|
+
*
|
|
130
|
+
* @returns `true` if you have at least one Platinum cocktail in your inventory; `false` otherwise
|
|
83
131
|
*/
|
|
84
132
|
export declare function havePlatinumBooze(): boolean;
|
|
85
133
|
/**
|
|
86
|
-
*
|
|
134
|
+
* Determines if you currently have in your inventory the booze necessary to progress your Guzzlr quest
|
|
87
135
|
*
|
|
88
|
-
*
|
|
136
|
+
* @returns `true` if you have the booze necessary to progress your Guzzlr quest
|
|
89
137
|
*/
|
|
90
138
|
export declare function haveBooze(): boolean;
|
|
91
139
|
export declare const ingredientToPlatinumCocktail: Map<Item, Item>;
|
|
92
140
|
export declare const platinumCocktailToIngredient: Map<Item, Item>;
|
|
141
|
+
/**
|
|
142
|
+
* Determines the cheapest Platinum cocktail to obtain or produce
|
|
143
|
+
*
|
|
144
|
+
* @param freeCraft Defaults to `true`; if set to `false`, will count the price of any turns spent cocktailcrafting
|
|
145
|
+
* @returns The expected price of the cheapest Platinum cocktail to obtain or produce
|
|
146
|
+
*/
|
|
93
147
|
export declare function getCheapestPlatinumCocktail(freeCraft?: boolean): Item;
|
|
148
|
+
/**
|
|
149
|
+
* Calculates the number of turns remaining for your Guzzlr quest
|
|
150
|
+
*
|
|
151
|
+
* @param useShoes Whether or not the calculation should assume you are using Guzzlr shoes
|
|
152
|
+
* @returns The expected number of turns needed to finish your current delivery
|
|
153
|
+
*/
|
|
94
154
|
export declare function turnsLeftOnQuest(useShoes?: boolean): number;
|
|
155
|
+
/**
|
|
156
|
+
* Calculates the expected Guzzlrbuck reward for completing your current Guzzlr quest
|
|
157
|
+
*
|
|
158
|
+
* @param usePants Whether or not we should account for Guzzlr pants in our calculation
|
|
159
|
+
* @returns The expected Guzzlrbuck reward of our current Guzzlr quest
|
|
160
|
+
*/
|
|
95
161
|
export declare function expectedReward(usePants?: boolean): number;
|