libram 0.8.27 → 0.8.28

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.
Files changed (195) hide show
  1. package/package.json +9 -8
  2. package/dist/Clan.d.ts +0 -128
  3. package/dist/Clan.js +0 -300
  4. package/dist/Copier.d.ts +0 -9
  5. package/dist/Copier.js +0 -15
  6. package/dist/Dungeon.d.ts +0 -45
  7. package/dist/Dungeon.js +0 -115
  8. package/dist/Kmail.d.ts +0 -104
  9. package/dist/Kmail.js +0 -182
  10. package/dist/actions/ActionSource.d.ts +0 -131
  11. package/dist/actions/ActionSource.js +0 -177
  12. package/dist/actions/Banish.d.ts +0 -16
  13. package/dist/actions/Banish.js +0 -121
  14. package/dist/actions/FreeKill.d.ts +0 -16
  15. package/dist/actions/FreeKill.js +0 -94
  16. package/dist/actions/FreeRun.d.ts +0 -16
  17. package/dist/actions/FreeRun.js +0 -77
  18. package/dist/actions/index.d.ts +0 -4
  19. package/dist/actions/index.js +0 -4
  20. package/dist/ascend.d.ts +0 -83
  21. package/dist/ascend.js +0 -268
  22. package/dist/challengePaths/2014/HeavyRains.d.ts +0 -22
  23. package/dist/challengePaths/2014/HeavyRains.js +0 -75
  24. package/dist/challengePaths/2015/CommunityService.d.ts +0 -125
  25. package/dist/challengePaths/2015/CommunityService.js +0 -334
  26. package/dist/challengePaths/2016/NuclearAutumn.d.ts +0 -13
  27. package/dist/challengePaths/2016/NuclearAutumn.js +0 -21
  28. package/dist/challengePaths/index.d.ts +0 -4
  29. package/dist/challengePaths/index.js +0 -4
  30. package/dist/combat.d.ts +0 -414
  31. package/dist/combat.js +0 -711
  32. package/dist/console.d.ts +0 -12
  33. package/dist/console.js +0 -14
  34. package/dist/counter.d.ts +0 -22
  35. package/dist/counter.js +0 -37
  36. package/dist/diet/index.d.ts +0 -80
  37. package/dist/diet/index.js +0 -662
  38. package/dist/diet/knapsack.d.ts +0 -8
  39. package/dist/diet/knapsack.js +0 -128
  40. package/dist/index.d.ts +0 -29
  41. package/dist/index.js +0 -26
  42. package/dist/lib.d.ts +0 -497
  43. package/dist/lib.js +0 -958
  44. package/dist/logger.d.ts +0 -35
  45. package/dist/logger.js +0 -62
  46. package/dist/maximize.d.ts +0 -121
  47. package/dist/maximize.js +0 -525
  48. package/dist/modifier.d.ts +0 -41
  49. package/dist/modifier.js +0 -160
  50. package/dist/modifierTypes.d.ts +0 -16
  51. package/dist/modifierTypes.js +0 -9
  52. package/dist/mood.d.ts +0 -105
  53. package/dist/mood.js +0 -349
  54. package/dist/moonSign.d.ts +0 -13
  55. package/dist/moonSign.js +0 -25
  56. package/dist/overlappingNames.d.ts +0 -3
  57. package/dist/overlappingNames.js +0 -42
  58. package/dist/property.d.ts +0 -222
  59. package/dist/property.js +0 -385
  60. package/dist/propertyTypes.d.ts +0 -19
  61. package/dist/propertyTypes.js +0 -10
  62. package/dist/propertyTyping.d.ts +0 -65
  63. package/dist/propertyTyping.js +0 -91
  64. package/dist/resources/2007/CandyHearts.d.ts +0 -9
  65. package/dist/resources/2007/CandyHearts.js +0 -24
  66. package/dist/resources/2008/DivineFavors.d.ts +0 -9
  67. package/dist/resources/2008/DivineFavors.js +0 -27
  68. package/dist/resources/2008/Stickers.d.ts +0 -49
  69. package/dist/resources/2008/Stickers.js +0 -84
  70. package/dist/resources/2009/Bandersnatch.d.ts +0 -56
  71. package/dist/resources/2009/Bandersnatch.js +0 -93
  72. package/dist/resources/2009/LoveSongs.d.ts +0 -9
  73. package/dist/resources/2009/LoveSongs.js +0 -24
  74. package/dist/resources/2009/SpookyPutty.d.ts +0 -31
  75. package/dist/resources/2009/SpookyPutty.js +0 -49
  76. package/dist/resources/2010/Brickos.d.ts +0 -9
  77. package/dist/resources/2010/Brickos.js +0 -21
  78. package/dist/resources/2010/CrownOfThrones.d.ts +0 -68
  79. package/dist/resources/2010/CrownOfThrones.js +0 -418
  80. package/dist/resources/2010/LookingGlass.d.ts +0 -29
  81. package/dist/resources/2010/LookingGlass.js +0 -89
  82. package/dist/resources/2011/Gygaxian.d.ts +0 -9
  83. package/dist/resources/2011/Gygaxian.js +0 -24
  84. package/dist/resources/2011/ObtuseAngel.d.ts +0 -33
  85. package/dist/resources/2011/ObtuseAngel.js +0 -51
  86. package/dist/resources/2011/StompingBoots.d.ts +0 -37
  87. package/dist/resources/2011/StompingBoots.js +0 -57
  88. package/dist/resources/2012/RainDoh.d.ts +0 -25
  89. package/dist/resources/2012/RainDoh.js +0 -37
  90. package/dist/resources/2012/ReagnimatedGnome.d.ts +0 -31
  91. package/dist/resources/2012/ReagnimatedGnome.js +0 -46
  92. package/dist/resources/2012/Resolutions.d.ts +0 -9
  93. package/dist/resources/2012/Resolutions.js +0 -28
  94. package/dist/resources/2013/Florist.d.ts +0 -81
  95. package/dist/resources/2013/Florist.js +0 -245
  96. package/dist/resources/2013/JungMan.d.ts +0 -33
  97. package/dist/resources/2013/JungMan.js +0 -69
  98. package/dist/resources/2013/PulledTaffy.d.ts +0 -9
  99. package/dist/resources/2013/PulledTaffy.js +0 -33
  100. package/dist/resources/2014/CrimboShrub.d.ts +0 -42
  101. package/dist/resources/2014/CrimboShrub.js +0 -89
  102. package/dist/resources/2014/DNALab.d.ts +0 -56
  103. package/dist/resources/2014/DNALab.js +0 -162
  104. package/dist/resources/2014/WinterGarden.d.ts +0 -23
  105. package/dist/resources/2014/WinterGarden.js +0 -35
  106. package/dist/resources/2015/BarrelShrine.d.ts +0 -8
  107. package/dist/resources/2015/BarrelShrine.js +0 -25
  108. package/dist/resources/2015/ChateauMantegna.d.ts +0 -52
  109. package/dist/resources/2015/ChateauMantegna.js +0 -99
  110. package/dist/resources/2015/DeckOfEveryCard.d.ts +0 -29
  111. package/dist/resources/2015/DeckOfEveryCard.js +0 -122
  112. package/dist/resources/2015/Dinseylandfill.d.ts +0 -89
  113. package/dist/resources/2015/Dinseylandfill.js +0 -205
  114. package/dist/resources/2015/MayoClinic.d.ts +0 -23
  115. package/dist/resources/2015/MayoClinic.js +0 -49
  116. package/dist/resources/2016/GingerBread.d.ts +0 -32
  117. package/dist/resources/2016/GingerBread.js +0 -73
  118. package/dist/resources/2016/SourceTerminal.d.ts +0 -181
  119. package/dist/resources/2016/SourceTerminal.js +0 -275
  120. package/dist/resources/2016/Witchess.d.ts +0 -17
  121. package/dist/resources/2016/Witchess.js +0 -47
  122. package/dist/resources/2017/AsdonMartin.d.ts +0 -59
  123. package/dist/resources/2017/AsdonMartin.js +0 -238
  124. package/dist/resources/2017/Horsery.d.ts +0 -19
  125. package/dist/resources/2017/Horsery.js +0 -42
  126. package/dist/resources/2017/MummingTrunk.d.ts +0 -8
  127. package/dist/resources/2017/MummingTrunk.js +0 -33
  128. package/dist/resources/2017/Pantogram.d.ts +0 -92
  129. package/dist/resources/2017/Pantogram.js +0 -174
  130. package/dist/resources/2017/Robortender.d.ts +0 -30
  131. package/dist/resources/2017/Robortender.js +0 -90
  132. package/dist/resources/2017/Spacegate.d.ts +0 -86
  133. package/dist/resources/2017/Spacegate.js +0 -178
  134. package/dist/resources/2017/TunnelOfLove.d.ts +0 -39
  135. package/dist/resources/2017/TunnelOfLove.js +0 -120
  136. package/dist/resources/2018/LatteLoversMembersMug.d.ts +0 -392
  137. package/dist/resources/2018/LatteLoversMembersMug.js +0 -303
  138. package/dist/resources/2018/SongBoom.d.ts +0 -33
  139. package/dist/resources/2018/SongBoom.js +0 -55
  140. package/dist/resources/2019/BeachComb.d.ts +0 -72
  141. package/dist/resources/2019/BeachComb.js +0 -118
  142. package/dist/resources/2019/CampAway.d.ts +0 -39
  143. package/dist/resources/2019/CampAway.js +0 -72
  144. package/dist/resources/2019/Snapper.d.ts +0 -33
  145. package/dist/resources/2019/Snapper.js +0 -73
  146. package/dist/resources/2020/Cartography.d.ts +0 -16
  147. package/dist/resources/2020/Cartography.js +0 -48
  148. package/dist/resources/2020/Guzzlr.d.ts +0 -160
  149. package/dist/resources/2020/Guzzlr.js +0 -275
  150. package/dist/resources/2020/RetroCape.d.ts +0 -51
  151. package/dist/resources/2020/RetroCape.js +0 -115
  152. package/dist/resources/2021/CrystalBall.d.ts +0 -14
  153. package/dist/resources/2021/CrystalBall.js +0 -39
  154. package/dist/resources/2021/DaylightShavings.d.ts +0 -40
  155. package/dist/resources/2021/DaylightShavings.js +0 -74
  156. package/dist/resources/2022/AutumnAton.d.ts +0 -78
  157. package/dist/resources/2022/AutumnAton.js +0 -182
  158. package/dist/resources/2022/CombatLoversLocket.d.ts +0 -44
  159. package/dist/resources/2022/CombatLoversLocket.js +0 -82
  160. package/dist/resources/2022/GreyGoose.d.ts +0 -59
  161. package/dist/resources/2022/GreyGoose.js +0 -90
  162. package/dist/resources/2022/JuneCleaver.d.ts +0 -47
  163. package/dist/resources/2022/JuneCleaver.js +0 -69
  164. package/dist/resources/2022/TrainSet.d.ts +0 -146
  165. package/dist/resources/2022/TrainSet.js +0 -228
  166. package/dist/resources/2023/AugustScepter.d.ts +0 -25
  167. package/dist/resources/2023/AugustScepter.js +0 -40
  168. package/dist/resources/2023/BurningLeaves.d.ts +0 -25
  169. package/dist/resources/2023/BurningLeaves.js +0 -74
  170. package/dist/resources/2023/CinchoDeMayo.d.ts +0 -25
  171. package/dist/resources/2023/CinchoDeMayo.js +0 -45
  172. package/dist/resources/2023/ClosedCircuitPayphone.d.ts +0 -80
  173. package/dist/resources/2023/ClosedCircuitPayphone.js +0 -129
  174. package/dist/resources/2023/CursedMonkeyPaw.d.ts +0 -46
  175. package/dist/resources/2023/CursedMonkeyPaw.js +0 -113
  176. package/dist/resources/2024/AprilingBandHelmet.d.ts +0 -57
  177. package/dist/resources/2024/AprilingBandHelmet.js +0 -118
  178. package/dist/resources/2024/ChestMimic.d.ts +0 -35
  179. package/dist/resources/2024/ChestMimic.js +0 -108
  180. package/dist/resources/LibramSummon.d.ts +0 -18
  181. package/dist/resources/LibramSummon.js +0 -74
  182. package/dist/resources/index.d.ts +0 -54
  183. package/dist/resources/index.js +0 -54
  184. package/dist/resources/putty-likes.d.ts +0 -21
  185. package/dist/resources/putty-likes.js +0 -33
  186. package/dist/session.d.ts +0 -169
  187. package/dist/session.js +0 -284
  188. package/dist/since.d.ts +0 -51
  189. package/dist/since.js +0 -108
  190. package/dist/template-string.d.ts +0 -324
  191. package/dist/template-string.js +0 -265
  192. package/dist/url.d.ts +0 -35
  193. package/dist/url.js +0 -67
  194. package/dist/utils.d.ts +0 -178
  195. package/dist/utils.js +0 -255
@@ -1,18 +0,0 @@
1
- import { Skill, Item } from "kolmafia";
2
- /**
3
- *
4
- * @param summonSkill The libram summoning skill
5
- * @returns map containing the chance of an item to be summoned
6
- */
7
- export declare function expectedLibramSummon(summonSkill: Skill): Map<Item, number>;
8
- /**
9
- *
10
- * @returns map containing the chance of items to be summoned for each libram summoning skill available
11
- */
12
- export declare function possibleLibramSummons(): Map<Skill, Map<Item, number>>;
13
- /**
14
- * Determines the best libram to cast, based on expected meat value in mall
15
- *
16
- * @returns The best libram to cast, based on expected meat value in mall
17
- */
18
- export declare function bestLibramToCast(): Skill | null;
@@ -1,74 +0,0 @@
1
- import { getSaleValue } from "../lib";
2
- import { $skill } from "../template-string";
3
- import { sum, maxBy } from "../utils";
4
- import { expected as candyHeartsExpected, have as candyHeartsHave, } from "./2007/CandyHearts";
5
- import { expected as divineFavorsExpected, have as divineFavorsHave, } from "./2008/DivineFavors";
6
- import { expected as loveSongsExpected, have as loveSongsHave, } from "./2009/LoveSongs";
7
- import { expected as brickosExpected, have as brickosHave, } from "./2010/Brickos";
8
- import { expected as diceExpected, have as diceHave } from "./2011/Gygaxian";
9
- import { expected as resolutionsExpected, have as resolutionsHave, } from "./2012/Resolutions";
10
- import { expected as taffyExpected, have as taffyHave, } from "./2013/PulledTaffy";
11
- /**
12
- *
13
- * @param summonSkill The libram summoning skill
14
- * @returns map containing the chance of an item to be summoned
15
- */
16
- export function expectedLibramSummon(summonSkill) {
17
- switch (summonSkill) {
18
- case $skill `Summon Candy Heart`:
19
- return candyHeartsExpected();
20
- case $skill `Summon Party Favor`:
21
- return divineFavorsExpected();
22
- case $skill `Summon Love Song`:
23
- return loveSongsExpected();
24
- case $skill `Summon BRICKOs`:
25
- return brickosExpected();
26
- case $skill `Summon Dice`:
27
- return diceExpected();
28
- case $skill `Summon Resolutions`:
29
- return resolutionsExpected();
30
- case $skill `Summon Taffy`:
31
- return taffyExpected();
32
- }
33
- return new Map();
34
- }
35
- /**
36
- *
37
- * @returns map containing the chance of items to be summoned for each libram summoning skill available
38
- */
39
- export function possibleLibramSummons() {
40
- const results = new Map();
41
- if (candyHeartsHave()) {
42
- results.set($skill `Summon Candy Heart`, candyHeartsExpected());
43
- }
44
- if (divineFavorsHave()) {
45
- results.set($skill `Summon Party Favor`, divineFavorsExpected());
46
- }
47
- if (loveSongsHave()) {
48
- results.set($skill `Summon Love Song`, loveSongsExpected());
49
- }
50
- if (brickosHave()) {
51
- results.set($skill `Summon BRICKOs`, brickosExpected());
52
- }
53
- if (diceHave()) {
54
- results.set($skill `Summon Dice`, diceExpected());
55
- }
56
- if (resolutionsHave()) {
57
- results.set($skill `Summon Resolutions`, resolutionsExpected());
58
- }
59
- if (taffyHave()) {
60
- results.set($skill `Summon Taffy`, taffyExpected());
61
- }
62
- return results;
63
- }
64
- /**
65
- * Determines the best libram to cast, based on expected meat value in mall
66
- *
67
- * @returns The best libram to cast, based on expected meat value in mall
68
- */
69
- export function bestLibramToCast() {
70
- const arr = Array.from(possibleLibramSummons().entries());
71
- if (!arr.length)
72
- return null;
73
- return maxBy(arr, ([, itemMap]) => sum(Array.from(itemMap.entries()), ([item, weight]) => weight * getSaleValue(item)))[0];
74
- }
@@ -1,54 +0,0 @@
1
- import * as Stickers from "./2008/Stickers";
2
- import * as Bandersnatch from "./2009/Bandersnatch";
3
- import * as SpookyPutty from "./2009/SpookyPutty";
4
- import * as CrownOfThrones from "./2010/CrownOfThrones";
5
- import * as LookingGlass from "./2010/LookingGlass";
6
- import * as ObtuseAngel from "./2011/ObtuseAngel";
7
- import * as StompingBoots from "./2011/StompingBoots";
8
- import * as RainDoh from "./2012/RainDoh";
9
- import * as ReagnimatedGnome from "./2012/ReagnimatedGnome";
10
- import * as FloristFriar from "./2013/Florist";
11
- import * as JungMan from "./2013/JungMan";
12
- import * as CrimboShrub from "./2014/CrimboShrub";
13
- import * as DNALab from "./2014/DNALab";
14
- import * as WinterGarden from "./2014/WinterGarden";
15
- import * as BarrelShrine from "./2015/BarrelShrine";
16
- import * as ChateauMantegna from "./2015/ChateauMantegna";
17
- import * as DeckOfEveryCard from "./2015/DeckOfEveryCard";
18
- import * as Dinseylandfill from "./2015/Dinseylandfill";
19
- import * as MayoClinic from "./2015/MayoClinic";
20
- import * as GingerBread from "./2016/GingerBread";
21
- import * as SourceTerminal from "./2016/SourceTerminal";
22
- import * as Witchess from "./2016/Witchess";
23
- import * as AsdonMartin from "./2017/AsdonMartin";
24
- import * as Horsery from "./2017/Horsery";
25
- import * as MummingTrunk from "./2017/MummingTrunk";
26
- import * as Pantogram from "./2017/Pantogram";
27
- import * as Robortender from "./2017/Robortender";
28
- import * as Spacegate from "./2017/Spacegate";
29
- import * as TunnelOfLove from "./2017/TunnelOfLove";
30
- import * as Latte from "./2018/LatteLoversMembersMug";
31
- import * as SongBoom from "./2018/SongBoom";
32
- import * as BeachComb from "./2019/BeachComb";
33
- import * as CampAway from "./2019/CampAway";
34
- import * as Snapper from "./2019/Snapper";
35
- import * as Cartography from "./2020/Cartography";
36
- import * as Guzzlr from "./2020/Guzzlr";
37
- import * as RetroCape from "./2020/RetroCape";
38
- import * as CrystalBall from "./2021/CrystalBall";
39
- import * as DaylightShavings from "./2021/DaylightShavings";
40
- import * as AutumnAton from "./2022/AutumnAton";
41
- import * as CombatLoversLocket from "./2022/CombatLoversLocket";
42
- import * as GreyGoose from "./2022/GreyGoose";
43
- import * as JuneCleaver from "./2022/JuneCleaver";
44
- import * as TrainSet from "./2022/TrainSet";
45
- import * as AugustScepter from "./2023/AugustScepter";
46
- import * as BurningLeaves from "./2023/BurningLeaves";
47
- import * as CinchoDeMayo from "./2023/CinchoDeMayo";
48
- import * as ClosedCircuitPayphone from "./2023/ClosedCircuitPayphone";
49
- import * as CursedMonkeyPaw from "./2023/CursedMonkeyPaw";
50
- import * as AprilingBandHelmet from "./2024/AprilingBandHelmet";
51
- import * as ChestMimic from "./2024/ChestMimic";
52
- export { AprilingBandHelmet, AugustScepter, AutumnAton, AsdonMartin, Bandersnatch, BarrelShrine, BeachComb, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, DaylightShavings, DeckOfEveryCard, Dinseylandfill, DNALab, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LookingGlass, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, RainDoh, ReagnimatedGnome, RetroCape, Robortender, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StompingBoots, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
53
- export * from "./putty-likes";
54
- export * from "./LibramSummon";
@@ -1,54 +0,0 @@
1
- import * as Stickers from "./2008/Stickers";
2
- import * as Bandersnatch from "./2009/Bandersnatch";
3
- import * as SpookyPutty from "./2009/SpookyPutty";
4
- import * as CrownOfThrones from "./2010/CrownOfThrones";
5
- import * as LookingGlass from "./2010/LookingGlass";
6
- import * as ObtuseAngel from "./2011/ObtuseAngel";
7
- import * as StompingBoots from "./2011/StompingBoots";
8
- import * as RainDoh from "./2012/RainDoh";
9
- import * as ReagnimatedGnome from "./2012/ReagnimatedGnome";
10
- import * as FloristFriar from "./2013/Florist";
11
- import * as JungMan from "./2013/JungMan";
12
- import * as CrimboShrub from "./2014/CrimboShrub";
13
- import * as DNALab from "./2014/DNALab";
14
- import * as WinterGarden from "./2014/WinterGarden";
15
- import * as BarrelShrine from "./2015/BarrelShrine";
16
- import * as ChateauMantegna from "./2015/ChateauMantegna";
17
- import * as DeckOfEveryCard from "./2015/DeckOfEveryCard";
18
- import * as Dinseylandfill from "./2015/Dinseylandfill";
19
- import * as MayoClinic from "./2015/MayoClinic";
20
- import * as GingerBread from "./2016/GingerBread";
21
- import * as SourceTerminal from "./2016/SourceTerminal";
22
- import * as Witchess from "./2016/Witchess";
23
- import * as AsdonMartin from "./2017/AsdonMartin";
24
- import * as Horsery from "./2017/Horsery";
25
- import * as MummingTrunk from "./2017/MummingTrunk";
26
- import * as Pantogram from "./2017/Pantogram";
27
- import * as Robortender from "./2017/Robortender";
28
- import * as Spacegate from "./2017/Spacegate";
29
- import * as TunnelOfLove from "./2017/TunnelOfLove";
30
- import * as Latte from "./2018/LatteLoversMembersMug";
31
- import * as SongBoom from "./2018/SongBoom";
32
- import * as BeachComb from "./2019/BeachComb";
33
- import * as CampAway from "./2019/CampAway";
34
- import * as Snapper from "./2019/Snapper";
35
- import * as Cartography from "./2020/Cartography";
36
- import * as Guzzlr from "./2020/Guzzlr";
37
- import * as RetroCape from "./2020/RetroCape";
38
- import * as CrystalBall from "./2021/CrystalBall";
39
- import * as DaylightShavings from "./2021/DaylightShavings";
40
- import * as AutumnAton from "./2022/AutumnAton";
41
- import * as CombatLoversLocket from "./2022/CombatLoversLocket";
42
- import * as GreyGoose from "./2022/GreyGoose";
43
- import * as JuneCleaver from "./2022/JuneCleaver";
44
- import * as TrainSet from "./2022/TrainSet";
45
- import * as AugustScepter from "./2023/AugustScepter";
46
- import * as BurningLeaves from "./2023/BurningLeaves";
47
- import * as CinchoDeMayo from "./2023/CinchoDeMayo";
48
- import * as ClosedCircuitPayphone from "./2023/ClosedCircuitPayphone";
49
- import * as CursedMonkeyPaw from "./2023/CursedMonkeyPaw";
50
- import * as AprilingBandHelmet from "./2024/AprilingBandHelmet";
51
- import * as ChestMimic from "./2024/ChestMimic";
52
- export { AprilingBandHelmet, AugustScepter, AutumnAton, AsdonMartin, Bandersnatch, BarrelShrine, BeachComb, BurningLeaves, CampAway, Cartography, ChateauMantegna, ChestMimic, CinchoDeMayo, ClosedCircuitPayphone, CombatLoversLocket, CrimboShrub, CrownOfThrones, CrystalBall, CursedMonkeyPaw, DaylightShavings, DeckOfEveryCard, Dinseylandfill, DNALab, FloristFriar, GingerBread, GreyGoose, Guzzlr, Horsery, JuneCleaver, JungMan, Latte, LookingGlass, MayoClinic, MummingTrunk, ObtuseAngel, Pantogram, RainDoh, ReagnimatedGnome, RetroCape, Robortender, Snapper, SongBoom, SourceTerminal, Spacegate, SpookyPutty, Stickers, StompingBoots, TrainSet, TunnelOfLove, WinterGarden, Witchess, };
53
- export * from "./putty-likes";
54
- export * from "./LibramSummon";
@@ -1,21 +0,0 @@
1
- import { Copier } from "../Copier";
2
- /**
3
- * Get total putty-like copies made
4
- *
5
- * @returns Total copies made
6
- */
7
- export declare function getTotalPuttyLikeCopiesMade(): number;
8
- /**
9
- * Determine if Rain-Doh black box can be used
10
- *
11
- * @returns Whether it can be used
12
- */
13
- export declare function couldUseRainDohBlackBox(): boolean;
14
- export declare const RainDohBlackBox: Copier;
15
- /**
16
- * Determines whether you can still use a spooky putty sheet
17
- *
18
- * @returns Whether you can still use a spooky putty sheet
19
- */
20
- export declare function couldUseSpookyPuttySheet(): boolean;
21
- export declare const SpookyPuttySheet: Copier;
@@ -1,33 +0,0 @@
1
- import { Copier } from "../Copier";
2
- import { getSpookyPuttySheetCopiesMade, getSpookyPuttySheetMonster, have as haveSpookyPutty, prepareSpookyPuttySheet, useSpookyPuttySheet, } from "./2009/SpookyPutty";
3
- import { getRainDohBlackBoxCopiesMade, getRainDohBlackBoxMonster, have as haveRainDoh, useRainDohBlackBox, } from "./2012/RainDoh";
4
- /**
5
- * Get total putty-like copies made
6
- *
7
- * @returns Total copies made
8
- */
9
- export function getTotalPuttyLikeCopiesMade() {
10
- return getSpookyPuttySheetCopiesMade() + getRainDohBlackBoxCopiesMade();
11
- }
12
- /**
13
- * Determine if Rain-Doh black box can be used
14
- *
15
- * @returns Whether it can be used
16
- */
17
- export function couldUseRainDohBlackBox() {
18
- return (haveRainDoh() &&
19
- getRainDohBlackBoxCopiesMade() < 5 &&
20
- getTotalPuttyLikeCopiesMade() < 6);
21
- }
22
- export const RainDohBlackBox = new Copier(() => couldUseRainDohBlackBox(), null, () => couldUseRainDohBlackBox(), () => getRainDohBlackBoxMonster(), () => useRainDohBlackBox());
23
- /**
24
- * Determines whether you can still use a spooky putty sheet
25
- *
26
- * @returns Whether you can still use a spooky putty sheet
27
- */
28
- export function couldUseSpookyPuttySheet() {
29
- return (haveSpookyPutty() &&
30
- getSpookyPuttySheetCopiesMade() < 5 &&
31
- getTotalPuttyLikeCopiesMade() < 6);
32
- }
33
- export const SpookyPuttySheet = new Copier(() => couldUseSpookyPuttySheet(), () => prepareSpookyPuttySheet(), () => couldUseSpookyPuttySheet(), () => getSpookyPuttySheetMonster(), () => useSpookyPuttySheet());
package/dist/session.d.ts DELETED
@@ -1,169 +0,0 @@
1
- import { Item } from "kolmafia";
2
- /**
3
- * An entry showing the value of each Item in a session
4
- *
5
- * @member item the item associated with this detail
6
- * @member value the numeric value of the full quantity of items (to get value of each item, do value / quantity) (can be negative)
7
- * @member quantity the number of items for this detail
8
- */
9
- export interface ItemDetail {
10
- item: Item;
11
- value: number;
12
- quantity: number;
13
- }
14
- /**
15
- * The full value (in meat) results of a session
16
- *
17
- * @member meat the value of this session in pure meat
18
- * @member items the value of the items in this session in meat
19
- * @member total sum of meat and items
20
- * @member itemDetails a list of the detailed accounting for each item in this session
21
- * @member turns the number of turns associated with this session
22
- */
23
- export interface ItemResult {
24
- meat: number;
25
- items: number;
26
- total: number;
27
- itemDetails: ItemDetail[];
28
- turns: number;
29
- }
30
- export interface MeatPerAdventureAnalysis {
31
- mpa: {
32
- effective: number;
33
- meat: number;
34
- items: number;
35
- total: number;
36
- };
37
- values: {
38
- effective: number;
39
- meat: number;
40
- items: number;
41
- total: number;
42
- };
43
- outlierItems: ItemDetail[];
44
- turns: number;
45
- }
46
- /**
47
- * A wrapper around tracking items and meat gained from this session
48
- * Smartly handles foldables being added/removed based on their state
49
- * Provides operations to add sessions and subtract Sessions so you can isolate the value of each Session using a baseline
50
- *
51
- * @member meat the raw meat associated with this Session
52
- * @member items a map representing the items gained/lost during this Session
53
- */
54
- export declare class Session {
55
- meat: number;
56
- items: Map<Item, number>;
57
- totalTurns: number;
58
- /**
59
- * Construct a new session
60
- *
61
- * @param meat the amount of meat associated with this session
62
- * @param items the items associated with this session
63
- * @param totalTurns the number of turns associated with this session
64
- */
65
- private constructor();
66
- /**
67
- * Register session results that do not get tracked natively
68
- *
69
- * @param target either the Item or a string saying "meat" of what quantity to modify
70
- * @param quantity How much to modify the tracked amount by
71
- */
72
- register(target: Item | "meat", quantity: number): void;
73
- /**
74
- * Value this session
75
- *
76
- * @param itemValue a function that, when given an item, will give a meat value of the item
77
- * @returns ItemResult with the full value of this session given the input function
78
- */
79
- value(itemValue: (item: Item) => number): ItemResult;
80
- /**
81
- * Subtract the contents of another session from this one, removing any items that have a resulting quantity of 0
82
- * (this will ignore elements in b but not in a)
83
- *
84
- * @param other the session from which to pull values to remove from this session
85
- * @returns a new session representing the difference between this session and the other session
86
- */
87
- diff(other: Session): Session;
88
- /**
89
- * Subtract the contents of snasphot b from session a, removing any items that have a resulting quantity of 0
90
- * (this will ignore elements in b but not in a)
91
- *
92
- * @param a the session from which to subtract elements
93
- * @param b the session from which to add elements
94
- * @returns a new session representing the difference between a and b
95
- */
96
- static diff(a: Session, b: Session): Session;
97
- /**
98
- * Generate a new session combining multiple sessions together
99
- *
100
- * @param other the session from which to add elements to this set
101
- * @returns a new session representing the addition of other to this
102
- */
103
- add(other: Session): Session;
104
- /**
105
- * Combine the contents of sessions
106
- *
107
- * @param sessions the set of sessions to combine together
108
- * @returns a new session representing the difference between a and b
109
- */
110
- static add(...sessions: Session[]): Session;
111
- static getFilepath(filename: string): string;
112
- /**
113
- * Export this session to a file in the data/ directory. Conventionally this file should end in ".json"
114
- *
115
- * @param filename The file into which to export
116
- */
117
- toFile(filename: string): void;
118
- /**
119
- * Import a session from a file in the data/ directory. Conventionally the file should end in ".json"
120
- *
121
- * @param filename The file from which to import
122
- * @returns the session represented by the file
123
- */
124
- static fromFile(filename: string): Session;
125
- /**
126
- * Return the meat and items for the current session
127
- *
128
- * @param sessionOnly should closet, DC, and storage be ignored for the session calculation
129
- * @returns current session
130
- */
131
- static current(sessionOnly?: boolean): Session;
132
- /**
133
- * @param baseline the base session to use when computing MPA
134
- * @param full the full session to use when computing MPA
135
- * @param options options for computing MPA
136
- * @param options.value a function to compute the meat value of a given item
137
- * @param options.isOutlier a function to compute if an item is considered an outlier. By default, no items are outliers
138
- * @param options.excludeValue meat values to exclude when calculating specific portions of the MPA
139
- * @param options.excludeValue.meat how much meat to exclude when calculating the meat portion of MPA
140
- * @param options.excludeValue.item how much meat to exclude when calculating hte item portion of MPA
141
- * @returns an analysis of the effective MPA for the given session
142
- */
143
- static computeMPA(baseline: Session, full: Session, options: {
144
- value: (item: Item) => number;
145
- isOutlier?: (item: ItemDetail) => boolean;
146
- excludeValue?: {
147
- meat?: number;
148
- item?: number;
149
- };
150
- }): MeatPerAdventureAnalysis;
151
- /**
152
- * @param other the session to diff against this session when computing MPA
153
- * @param options options for computing MPA
154
- * @param options.value a function to compute the meat value of a given item
155
- * @param options.isOutlier a function to compute if an item is considered an outlier. By default, no items are outliers
156
- * @param options.excludeValue meat values to exclude when calculating specific portions of the MPA
157
- * @param options.excludeValue.meat how much meat to exclude when calculating the meat portion of MPA
158
- * @param options.excludeValue.item how much meat to exclude when calculating hte item portion of MPA
159
- * @returns an analysis of the effective MPA for the given session
160
- */
161
- computeMPA(other: Session, options: {
162
- value: (item: Item) => number;
163
- isOutlier?: (item: ItemDetail) => boolean;
164
- excludeValue?: {
165
- meat?: number;
166
- item?: number;
167
- };
168
- }): MeatPerAdventureAnalysis;
169
- }