libram 0.6.11 → 0.6.12
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/lib.d.ts +12 -1
- package/dist/lib.js +22 -1
- package/dist/mood.d.ts +3 -2
- package/dist/mood.js +21 -15
- package/dist/propertyTypes.d.ts +2 -2
- package/dist/propertyTypes.js +2 -2
- package/dist/resources/2014/CrimboShrub.d.ts +30 -0
- package/dist/resources/2014/CrimboShrub.js +65 -0
- package/dist/resources/2017/Robortender.d.ts +33 -0
- package/dist/resources/2017/Robortender.js +84 -0
- package/dist/resources/2021/CrystalBall.d.ts +8 -2
- package/dist/resources/2021/CrystalBall.js +17 -10
- package/dist/resources/2022/CombatLoversLocket.d.ts +3 -3
- package/dist/resources/2022/CombatLoversLocket.js +7 -6
- package/dist/resources/2022/GreyGoose.d.ts +14 -0
- package/dist/resources/2022/GreyGoose.js +44 -0
- package/dist/resources/index.d.ts +4 -1
- package/dist/resources/index.js +4 -1
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const goose: import("kolmafia").Familiar;
|
|
2
|
+
export declare function have(): boolean;
|
|
3
|
+
export declare function currentExperience(): number;
|
|
4
|
+
export declare function currentWeight(): number;
|
|
5
|
+
export declare function expectedDrones(weight?: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* @param weight The goose weight you care about; defaults to current weight
|
|
8
|
+
* @returns In Grey You, returns the fullstats you'll gain from goose levelling; outside Grey You, returns substats
|
|
9
|
+
*/
|
|
10
|
+
export declare function expectedExperience(weight?: number): number;
|
|
11
|
+
export declare function expectedMeat(weight?: number): number;
|
|
12
|
+
export declare function hasMeatified(): boolean;
|
|
13
|
+
export declare function fightsUntil(target: number, bonusExperience?: number): number;
|
|
14
|
+
export declare function currentDrones(): number;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { toInt, 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";
|
|
6
|
+
export const goose = $familiar `Grey Goose`;
|
|
7
|
+
export function have() {
|
|
8
|
+
return have_(goose);
|
|
9
|
+
}
|
|
10
|
+
export function currentExperience() {
|
|
11
|
+
return goose.experience ||
|
|
12
|
+
(have_($familiar `Shorter-Order Cook`) && !get("gooseReprocessed"))
|
|
13
|
+
? 81 + (have_($item `blue plate`) ? 19 : 0)
|
|
14
|
+
: 0;
|
|
15
|
+
}
|
|
16
|
+
export function currentWeight() {
|
|
17
|
+
return Math.min(Math.floor(Math.sqrt(currentExperience())), 20);
|
|
18
|
+
}
|
|
19
|
+
export function expectedDrones(weight = currentWeight()) {
|
|
20
|
+
return Math.max(0, weight - 5);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param weight The goose weight you care about; defaults to current weight
|
|
24
|
+
* @returns In Grey You, returns the fullstats you'll gain from goose levelling; outside Grey You, returns substats
|
|
25
|
+
*/
|
|
26
|
+
export function expectedExperience(weight = currentWeight()) {
|
|
27
|
+
return Math.pow(Math.max(weight - 5, 0), toInt(myClass()) === 27 ? 2 : 3);
|
|
28
|
+
}
|
|
29
|
+
export function expectedMeat(weight = currentWeight()) {
|
|
30
|
+
return Math.pow(Math.max(weight - 5, 0), 4);
|
|
31
|
+
}
|
|
32
|
+
export function hasMeatified() {
|
|
33
|
+
return get("_meatifyMatterUsed");
|
|
34
|
+
}
|
|
35
|
+
export function fightsUntil(target, bonusExperience = getModifier("Familiar Experience")) {
|
|
36
|
+
const diff = target - currentWeight();
|
|
37
|
+
if (diff <= 0)
|
|
38
|
+
return 0;
|
|
39
|
+
return Math.ceil(diff /
|
|
40
|
+
(1 + bonusExperience + (have_($skill `Testudinal Teachings`) ? 1 / 6 : 0)));
|
|
41
|
+
}
|
|
42
|
+
export function currentDrones() {
|
|
43
|
+
return get("gooseDronesRemaining");
|
|
44
|
+
}
|
|
@@ -5,6 +5,7 @@ import * as ObtuseAngel from "./2011/ObtuseAngel";
|
|
|
5
5
|
import * as StompingBoots from "./2011/StompingBoots";
|
|
6
6
|
import * as RainDoh from "./2012/RainDoh";
|
|
7
7
|
import * as FloristFriar from "./2013/Florist";
|
|
8
|
+
import * as CrimboShrub from "./2014/CrimboShrub";
|
|
8
9
|
import * as DNALab from "./2014/DNALab";
|
|
9
10
|
import * as WinterGarden from "./2014/WinterGarden";
|
|
10
11
|
import * as ChateauMantegna from "./2015/ChateauMantegna";
|
|
@@ -14,6 +15,7 @@ import * as Witchess from "./2016/Witchess";
|
|
|
14
15
|
import * as AsdonMartin from "./2017/AsdonMartin";
|
|
15
16
|
import * as MummingTrunk from "./2017/MummingTrunk";
|
|
16
17
|
import * as Pantogram from "./2017/Pantogram";
|
|
18
|
+
import * as Robortender from "./2017/Robortender";
|
|
17
19
|
import * as TunnelOfLove from "./2017/TunnelOfLove";
|
|
18
20
|
import * as Latte from "./2018/LatteLoversMembersMug";
|
|
19
21
|
import * as SongBoom from "./2018/SongBoom";
|
|
@@ -24,6 +26,7 @@ import * as RetroCape from "./2020/RetroCape";
|
|
|
24
26
|
import * as CrystalBall from "./2021/CrystalBall";
|
|
25
27
|
import * as DaylightShavings from "./2021/DaylightShavings";
|
|
26
28
|
import * as CombatLoversLocket from "./2022/CombatLoversLocket";
|
|
27
|
-
|
|
29
|
+
import * as GreyGoose from "./2022/GreyGoose";
|
|
30
|
+
export { AsdonMartin, Bandersnatch, BeachComb, ChateauMantegna, CombatLoversLocket, CrimboShrub, CrownOfThrones, CrystalBall, DaylightShavings, DNALab, FloristFriar, GreyGoose, Guzzlr, Latte, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, RainDoh, RetroCape, Robortender, Snapper, SongBoom, SourceTerminal, SpookyPutty, StompingBoots, TunnelOfLove, WinterGarden, Witchess, };
|
|
28
31
|
export * from "./putty-likes";
|
|
29
32
|
export * from "./LibramSummon";
|
package/dist/resources/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import * as ObtuseAngel from "./2011/ObtuseAngel";
|
|
|
5
5
|
import * as StompingBoots from "./2011/StompingBoots";
|
|
6
6
|
import * as RainDoh from "./2012/RainDoh";
|
|
7
7
|
import * as FloristFriar from "./2013/Florist";
|
|
8
|
+
import * as CrimboShrub from "./2014/CrimboShrub";
|
|
8
9
|
import * as DNALab from "./2014/DNALab";
|
|
9
10
|
import * as WinterGarden from "./2014/WinterGarden";
|
|
10
11
|
import * as ChateauMantegna from "./2015/ChateauMantegna";
|
|
@@ -14,6 +15,7 @@ import * as Witchess from "./2016/Witchess";
|
|
|
14
15
|
import * as AsdonMartin from "./2017/AsdonMartin";
|
|
15
16
|
import * as MummingTrunk from "./2017/MummingTrunk";
|
|
16
17
|
import * as Pantogram from "./2017/Pantogram";
|
|
18
|
+
import * as Robortender from "./2017/Robortender";
|
|
17
19
|
import * as TunnelOfLove from "./2017/TunnelOfLove";
|
|
18
20
|
import * as Latte from "./2018/LatteLoversMembersMug";
|
|
19
21
|
import * as SongBoom from "./2018/SongBoom";
|
|
@@ -24,6 +26,7 @@ import * as RetroCape from "./2020/RetroCape";
|
|
|
24
26
|
import * as CrystalBall from "./2021/CrystalBall";
|
|
25
27
|
import * as DaylightShavings from "./2021/DaylightShavings";
|
|
26
28
|
import * as CombatLoversLocket from "./2022/CombatLoversLocket";
|
|
27
|
-
|
|
29
|
+
import * as GreyGoose from "./2022/GreyGoose";
|
|
30
|
+
export { AsdonMartin, Bandersnatch, BeachComb, ChateauMantegna, CombatLoversLocket, CrimboShrub, CrownOfThrones, CrystalBall, DaylightShavings, DNALab, FloristFriar, GreyGoose, Guzzlr, Latte, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, RainDoh, RetroCape, Robortender, Snapper, SongBoom, SourceTerminal, SpookyPutty, StompingBoots, TunnelOfLove, WinterGarden, Witchess, };
|
|
28
31
|
export * from "./putty-likes";
|
|
29
32
|
export * from "./LibramSummon";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libram",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"description": "JavaScript helper library for KoLmafia",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
46
46
|
"eslint-plugin-import": "^2.25.4",
|
|
47
47
|
"eslint-plugin-jest": "^25.2.3",
|
|
48
|
-
"eslint-plugin-libram": "^0.2.
|
|
48
|
+
"eslint-plugin-libram": "^0.2.11",
|
|
49
49
|
"husky": "^4.3.6",
|
|
50
50
|
"java-parser": "^1.4.0",
|
|
51
51
|
"jest": "^27.1.0",
|