libram 0.8.26 → 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 -50
  177. package/dist/resources/2024/AprilingBandHelmet.js +0 -103
  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,392 +0,0 @@
1
- import { Monster } from "kolmafia";
2
- import { Modifiers } from "../../modifier";
3
- /**
4
- * @returns Whether we `have` the latte lovers member's mug
5
- */
6
- export declare function have(): boolean;
7
- /**
8
- * @returns The current target of `Offer Latte`, assuming the effect is active; otherwise, `null`
9
- */
10
- export declare function sniffedMonster(): Monster | null;
11
- /**
12
- * @returns The number of latte refills remaining for the day
13
- */
14
- export declare function refillsRemaining(): number;
15
- declare const INGREDIENTS: {
16
- readonly ancient: {
17
- readonly modifier: {
18
- readonly "Spooky Damage": 50;
19
- };
20
- readonly location: import("kolmafia").Location;
21
- };
22
- readonly asp: {
23
- readonly modifier: {
24
- readonly "Weapon Damage": 25;
25
- };
26
- readonly location: import("kolmafia").Location;
27
- };
28
- readonly basil: {
29
- readonly modifier: {
30
- readonly "HP Regen Min": 5;
31
- readonly "HP Regen Max": 5;
32
- };
33
- readonly location: import("kolmafia").Location;
34
- };
35
- readonly belgian: {
36
- readonly modifier: {
37
- readonly "Moxie Percent": 20;
38
- readonly "Mysticality Percent": 20;
39
- readonly "Muscle Percent": 20;
40
- };
41
- readonly location: import("kolmafia").Location;
42
- };
43
- readonly chalk: {
44
- readonly modifier: {
45
- readonly "Cold Damage": 25;
46
- };
47
- readonly location: import("kolmafia").Location;
48
- };
49
- readonly "bug-thistle": {
50
- readonly modifier: {
51
- readonly Mysticality: 20;
52
- };
53
- readonly location: import("kolmafia").Location;
54
- };
55
- readonly butternut: {
56
- readonly modifier: {
57
- readonly "Spell Damage": 10;
58
- };
59
- readonly location: import("kolmafia").Location;
60
- };
61
- readonly cajun: {
62
- readonly modifier: {
63
- readonly "Meat Drop": 40;
64
- };
65
- readonly location: import("kolmafia").Location;
66
- };
67
- readonly carrot: {
68
- readonly modifier: {
69
- readonly "Item Drop": 20;
70
- };
71
- readonly location: import("kolmafia").Location;
72
- };
73
- readonly carrrdamom: {
74
- readonly modifier: {
75
- readonly "MP Regen Min": 4;
76
- readonly "MP Regen Max": 6;
77
- };
78
- readonly location: import("kolmafia").Location;
79
- };
80
- readonly chili: {
81
- readonly modifier: {
82
- readonly "Hot Resistance": 3;
83
- };
84
- readonly location: import("kolmafia").Location;
85
- };
86
- readonly clove: {
87
- readonly modifier: {
88
- readonly "Stench Resistance": 3;
89
- };
90
- readonly location: import("kolmafia").Location;
91
- };
92
- readonly coal: {
93
- readonly modifier: {
94
- readonly "Hot Damage": 25;
95
- };
96
- readonly location: import("kolmafia").Location;
97
- };
98
- readonly cocoa: {
99
- readonly modifier: {
100
- readonly "Cold Resistance": 3;
101
- };
102
- readonly location: import("kolmafia").Location;
103
- };
104
- readonly diet: {
105
- readonly modifier: {
106
- readonly Initiative: 50;
107
- };
108
- readonly location: import("kolmafia").Location;
109
- };
110
- readonly dwarf: {
111
- readonly modifier: {
112
- readonly Muscle: 30;
113
- };
114
- readonly location: import("kolmafia").Location;
115
- };
116
- readonly dyspepsi: {
117
- readonly modifier: {
118
- readonly Initiative: 25;
119
- };
120
- readonly location: import("kolmafia").Location;
121
- };
122
- readonly filth: {
123
- readonly modifier: {
124
- readonly "Damage Reduction": 20;
125
- };
126
- readonly location: import("kolmafia").Location;
127
- };
128
- readonly grass: {
129
- readonly modifier: {
130
- readonly Experience: 3;
131
- };
132
- readonly location: import("kolmafia").Location;
133
- };
134
- readonly fungus: {
135
- readonly modifier: {
136
- readonly "Maximum MP": 30;
137
- };
138
- readonly location: import("kolmafia").Location;
139
- };
140
- readonly mold: {
141
- readonly modifier: {
142
- readonly "Spooky Damage": 20;
143
- };
144
- readonly location: import("kolmafia").Location;
145
- };
146
- readonly greek: {
147
- readonly modifier: {
148
- readonly "Sleaze Damage": 25;
149
- };
150
- readonly location: import("kolmafia").Location;
151
- };
152
- readonly grobold: {
153
- readonly modifier: {
154
- readonly "Sleaze Damage": 25;
155
- };
156
- readonly location: import("kolmafia").Location;
157
- };
158
- readonly guarna: {
159
- readonly modifier: {
160
- readonly Adventures: 4;
161
- };
162
- readonly location: import("kolmafia").Location;
163
- };
164
- readonly gunpowder: {
165
- readonly modifier: {
166
- readonly "Weapon Damage": 50;
167
- };
168
- readonly location: import("kolmafia").Location;
169
- };
170
- readonly healing: {
171
- readonly modifier: {
172
- readonly "HP Regen Min": 10;
173
- readonly "HP Regen Max": 20;
174
- };
175
- readonly location: import("kolmafia").Location;
176
- };
177
- readonly hellion: {
178
- readonly modifier: {
179
- readonly "PvP Fights": 6;
180
- };
181
- readonly location: import("kolmafia").Location;
182
- };
183
- readonly hobo: {
184
- readonly modifier: {
185
- readonly "Damage Absorption": 50;
186
- };
187
- readonly location: import("kolmafia").Location;
188
- };
189
- readonly greasy: {
190
- readonly modifier: {
191
- readonly "Muscle Percent": 50;
192
- };
193
- readonly location: import("kolmafia").Location;
194
- };
195
- readonly wing: {
196
- readonly modifier: {
197
- readonly "Combat Rate": 10;
198
- };
199
- readonly location: import("kolmafia").Location;
200
- };
201
- readonly ink: {
202
- readonly modifier: {
203
- readonly "Combat Rate": -10;
204
- };
205
- readonly location: import("kolmafia").Location;
206
- };
207
- readonly kombucha: {
208
- readonly modifier: {
209
- readonly "Stench Damage": 25;
210
- };
211
- readonly location: import("kolmafia").Location;
212
- };
213
- readonly lihc: {
214
- readonly modifier: {
215
- readonly "Spooky Damage": 25;
216
- };
217
- readonly location: import("kolmafia").Location;
218
- };
219
- readonly lizard: {
220
- readonly modifier: {
221
- readonly "MP Regen Min": 5;
222
- readonly "MP Regen Max": 15;
223
- };
224
- readonly location: import("kolmafia").Location;
225
- };
226
- readonly macaroni: {
227
- readonly modifier: {
228
- readonly "Maximum HP": 20;
229
- };
230
- readonly location: import("kolmafia").Location;
231
- };
232
- readonly mega: {
233
- readonly modifier: {
234
- readonly "Moxie Percent": 50;
235
- };
236
- readonly location: import("kolmafia").Location;
237
- };
238
- readonly oil: {
239
- readonly modifier: {
240
- readonly "Sleaze Damage": 20;
241
- };
242
- readonly location: import("kolmafia").Location;
243
- };
244
- readonly msg: {
245
- readonly modifier: {
246
- readonly "Critical Hit Percent": 15;
247
- };
248
- readonly location: import("kolmafia").Location;
249
- };
250
- readonly norwhal: {
251
- readonly modifier: {
252
- readonly "Maximum HP Percent": 200;
253
- };
254
- readonly location: import("kolmafia").Location;
255
- };
256
- readonly paint: {
257
- readonly modifier: {
258
- readonly "Prismatic Damage": 5;
259
- };
260
- readonly location: import("kolmafia").Location;
261
- };
262
- readonly paradise: {
263
- readonly modifier: {
264
- readonly Moxie: 20;
265
- readonly Muscle: 20;
266
- readonly Mysticality: 20;
267
- };
268
- readonly location: import("kolmafia").Location;
269
- };
270
- readonly rawhide: {
271
- readonly modifier: {
272
- readonly "Familiar Weight": 5;
273
- };
274
- readonly location: import("kolmafia").Location;
275
- };
276
- readonly rock: {
277
- readonly modifier: {
278
- readonly "Critical Hit Percent": 10;
279
- };
280
- readonly location: import("kolmafia").Location;
281
- };
282
- readonly salt: {
283
- readonly modifier: {
284
- readonly "Critical Hit Percent": 5;
285
- };
286
- readonly location: import("kolmafia").Location;
287
- };
288
- readonly sandalwood: {
289
- readonly modifier: {
290
- readonly Moxie: 5;
291
- readonly Muscle: 5;
292
- readonly Mysticality: 5;
293
- };
294
- readonly location: import("kolmafia").Location;
295
- };
296
- readonly sausage: {
297
- readonly modifier: {
298
- readonly "Mysticality Percent": 50;
299
- };
300
- readonly location: import("kolmafia").Location;
301
- };
302
- readonly space: {
303
- readonly modifier: {
304
- readonly Moxie: 10;
305
- readonly Muscle: 10;
306
- readonly Mysticality: 10;
307
- };
308
- readonly location: import("kolmafia").Location;
309
- };
310
- readonly squash: {
311
- readonly modifier: {
312
- readonly "Spell Damage": 10;
313
- };
314
- readonly location: import("kolmafia").Location;
315
- };
316
- readonly teeth: {
317
- readonly modifier: {
318
- readonly "Spooky Damage": 25;
319
- readonly "Weapon Damage": 25;
320
- };
321
- readonly location: import("kolmafia").Location;
322
- };
323
- readonly vitamin: {
324
- readonly modifier: {
325
- readonly "Familiar Experience": 3;
326
- };
327
- readonly location: import("kolmafia").Location;
328
- };
329
- readonly flour: {
330
- readonly modifier: {
331
- readonly "Sleaze Resistance": 3;
332
- };
333
- readonly location: import("kolmafia").Location;
334
- };
335
- readonly squamous: {
336
- readonly modifier: {
337
- readonly "Spooky Resistance": 3;
338
- };
339
- readonly location: import("kolmafia").Location;
340
- };
341
- readonly pumpkin: {
342
- readonly modifier: {
343
- readonly "Mysticality Experience": 1;
344
- readonly "Spell Damage": 5;
345
- readonly "Mysticality Percent": 5;
346
- };
347
- readonly location: null;
348
- };
349
- readonly cinnamon: {
350
- readonly modifier: {
351
- readonly "Moxie Experience": 1;
352
- readonly "Pickpocket Rate": 5;
353
- readonly "Moxie Percent": 5;
354
- };
355
- readonly location: null;
356
- };
357
- readonly vanilla: {
358
- readonly modifier: {
359
- readonly "Muscle Experience": 1;
360
- readonly "Weapon Damage Percent": 5;
361
- readonly "Muscle Percent": 5;
362
- };
363
- readonly location: null;
364
- };
365
- };
366
- export declare type Ingredient = keyof typeof INGREDIENTS;
367
- /**
368
- * @returns An array consisting of the Ingredients you've unlocked so far this ascension
369
- */
370
- export declare function ingredientsUnlocked(): Ingredient[];
371
- /**
372
- * Fill the latte with ingredients of your choosing
373
- *
374
- * @param ingredients Ingredients to fill the latte with
375
- * @returns Whether we succeeded in this endeavor
376
- */
377
- export declare function fill(...ingredients: [Ingredient, Ingredient, Ingredient]): boolean;
378
- /**
379
- * @param ingredient A latte ingredient
380
- * @returns An object containing the modifiers associated with that latte ingredient
381
- */
382
- export declare function modifierOf(ingredient: Ingredient): Modifiers;
383
- /**
384
- * @param ingredient A latte ingredient
385
- * @returns The location that can be used to unlock said ingredient; null if the ingredient is free
386
- */
387
- export declare function locationOf<T extends Ingredient>(ingredient: T): typeof INGREDIENTS[T]["location"];
388
- /**
389
- * @returns An array consisting of all Ingredients currently in your latte
390
- */
391
- export declare function currentIngredients(): Ingredient[];
392
- export {};
@@ -1,303 +0,0 @@
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";
7
- /**
8
- * @returns Whether we `have` the latte lovers member's mug
9
- */
10
- export function have() {
11
- return haveItem($item `latte lovers member's mug`);
12
- }
13
- /**
14
- * @returns The current target of `Offer Latte`, assuming the effect is active; otherwise, `null`
15
- */
16
- export function sniffedMonster() {
17
- return Counter.exists("Latte Monster") ? get("_latteMonster") : null;
18
- }
19
- /**
20
- * @returns The number of latte refills remaining for the day
21
- */
22
- export function refillsRemaining() {
23
- return clamp(3 - get("_latteRefillsUsed"), 0, 3);
24
- }
25
- const INGREDIENTS = {
26
- ancient: {
27
- modifier: { "Spooky Damage": 50 },
28
- location: $location `The Mouldering Mansion`,
29
- },
30
- asp: {
31
- modifier: { "Weapon Damage": 25 },
32
- location: $location `The Middle Chamber`,
33
- },
34
- basil: {
35
- modifier: { "HP Regen Min": 5, "HP Regen Max": 5 },
36
- location: $location `The Overgrown Lot`,
37
- },
38
- belgian: {
39
- modifier: {
40
- "Moxie Percent": 20,
41
- "Mysticality Percent": 20,
42
- "Muscle Percent": 20,
43
- },
44
- location: $location `Whitey's Grove`,
45
- },
46
- chalk: {
47
- modifier: { "Cold Damage": 25 },
48
- location: $location `The Haunted Billiards Room`,
49
- },
50
- "bug-thistle": {
51
- modifier: { Mysticality: 20 },
52
- location: $location `The Bugbear Pen`,
53
- },
54
- butternut: {
55
- modifier: { "Spell Damage": 10 },
56
- location: $location `Madness Bakery`,
57
- },
58
- cajun: {
59
- modifier: { "Meat Drop": 40 },
60
- location: $location `The Black Forest`,
61
- },
62
- carrot: {
63
- modifier: { "Item Drop": 20 },
64
- location: $location `The Dire Warren`,
65
- },
66
- carrrdamom: {
67
- modifier: { "MP Regen Min": 4, "MP Regen Max": 6 },
68
- location: $location `Barrrney's Barrr`,
69
- },
70
- chili: {
71
- modifier: { "Hot Resistance": 3 },
72
- location: $location `The Haunted Kitchen`,
73
- },
74
- clove: {
75
- modifier: { "Stench Resistance": 3 },
76
- location: $location `The Sleazy Back Alley`,
77
- },
78
- coal: {
79
- modifier: { "Hot Damage": 25 },
80
- location: $location `The Haunted Boiler Room`,
81
- },
82
- cocoa: {
83
- modifier: { "Cold Resistance": 3 },
84
- location: $location `The Icy Peak`,
85
- },
86
- diet: {
87
- modifier: { Initiative: 50 },
88
- location: $location `Battlefield (No Uniform)`,
89
- },
90
- dwarf: {
91
- modifier: { Muscle: 30 },
92
- location: $location `Itznotyerzitz Mine`,
93
- },
94
- dyspepsi: {
95
- modifier: { Initiative: 25 },
96
- location: $location `Battlefield (Dyspepsi Uniform)`,
97
- },
98
- filth: {
99
- modifier: { "Damage Reduction": 20 },
100
- location: $location `The Feeding Chamber`,
101
- },
102
- grass: {
103
- modifier: { Experience: 3 },
104
- location: $location `The Hidden Park`,
105
- },
106
- fungus: {
107
- modifier: { "Maximum MP": 30 },
108
- location: $location `The Fungal Nethers`,
109
- },
110
- mold: {
111
- modifier: { "Spooky Damage": 20 },
112
- location: $location `The Unquiet Garves`,
113
- },
114
- greek: {
115
- modifier: { "Sleaze Damage": 25 },
116
- location: $location `Wartime Frat House`,
117
- },
118
- grobold: {
119
- modifier: { "Sleaze Damage": 25 },
120
- location: $location `The Old Rubee Mine`,
121
- },
122
- guarna: {
123
- modifier: { Adventures: 4 },
124
- location: $location `The Bat Hole Entrance`,
125
- },
126
- gunpowder: {
127
- modifier: { "Weapon Damage": 50 },
128
- location: $location `1st Floor, Shiawase-Mitsuhama Building`,
129
- },
130
- healing: {
131
- modifier: { "HP Regen Min": 10, "HP Regen Max": 20 },
132
- location: $location `The Daily Dungeon`,
133
- },
134
- hellion: {
135
- modifier: { "PvP Fights": 6 },
136
- location: $location `The Dark Neck of the Woods`,
137
- },
138
- hobo: {
139
- modifier: { "Damage Absorption": 50 },
140
- location: $location `Hobopolis Town Square`,
141
- },
142
- greasy: {
143
- modifier: { "Muscle Percent": 50 },
144
- location: $location `Cobb's Knob Barracks`,
145
- },
146
- wing: {
147
- modifier: { "Combat Rate": 10 },
148
- location: $location `The Dark Heart of the Woods`,
149
- },
150
- ink: {
151
- modifier: { "Combat Rate": -10 },
152
- location: $location `The Haunted Library`,
153
- },
154
- kombucha: {
155
- modifier: { "Stench Damage": 25 },
156
- location: $location `Wartime Hippy Camp`,
157
- },
158
- lihc: {
159
- modifier: { "Spooky Damage": 25 },
160
- location: $location `The Defiled Niche`,
161
- },
162
- lizard: {
163
- modifier: { "MP Regen Min": 5, "MP Regen Max": 15 },
164
- location: $location `The Arid, Extra-Dry Desert`,
165
- },
166
- macaroni: {
167
- modifier: { "Maximum HP": 20 },
168
- location: $location `The Haunted Pantry`,
169
- },
170
- mega: {
171
- modifier: { "Moxie Percent": 50 },
172
- location: $location `Cobb's Knob Laboratory`,
173
- },
174
- oil: {
175
- modifier: { "Sleaze Damage": 20 },
176
- location: $location `The Old Landfill`,
177
- },
178
- msg: {
179
- modifier: { "Critical Hit Percent": 15 },
180
- location: $location `The Briniest Deepests`,
181
- },
182
- norwhal: {
183
- modifier: { "Maximum HP Percent": 200 },
184
- location: $location `The Ice Hole`,
185
- },
186
- paint: {
187
- modifier: { "Prismatic Damage": 5 },
188
- location: $location `The Haunted Gallery`,
189
- },
190
- paradise: {
191
- modifier: { Moxie: 20, Muscle: 20, Mysticality: 20 },
192
- location: $location `The Stately Pleasure Dome`,
193
- },
194
- rawhide: {
195
- modifier: { "Familiar Weight": 5 },
196
- location: $location `The Spooky Forest`,
197
- },
198
- rock: {
199
- modifier: { "Critical Hit Percent": 10 },
200
- location: $location `The Brinier Deepers`,
201
- },
202
- salt: {
203
- modifier: { "Critical Hit Percent": 5 },
204
- location: $location `The Briny Deeps`,
205
- },
206
- sandalwood: {
207
- modifier: { Moxie: 5, Muscle: 5, Mysticality: 5 },
208
- location: $location `Noob Cave`,
209
- },
210
- sausage: {
211
- modifier: { "Mysticality Percent": 50 },
212
- location: $location `Cobb's Knob Kitchens`,
213
- },
214
- space: {
215
- modifier: { Moxie: 10, Muscle: 10, Mysticality: 10 },
216
- location: $location `The Hole in the Sky`,
217
- },
218
- squash: {
219
- modifier: { "Spell Damage": 10 },
220
- location: $location `The Copperhead Club`,
221
- },
222
- teeth: {
223
- modifier: { "Spooky Damage": 25, "Weapon Damage": 25 },
224
- location: $location `The VERY Unquiet Garves`,
225
- },
226
- vitamin: {
227
- modifier: { "Familiar Experience": 3 },
228
- location: $location `The Dark Elbow of the Woods`,
229
- },
230
- flour: {
231
- modifier: { "Sleaze Resistance": 3 },
232
- location: $location `The Road to the White Citadel`,
233
- },
234
- squamous: {
235
- modifier: { "Spooky Resistance": 3 },
236
- location: $location `The Caliginous Abyss`,
237
- },
238
- pumpkin: {
239
- modifier: {
240
- "Mysticality Experience": 1,
241
- "Spell Damage": 5,
242
- "Mysticality Percent": 5,
243
- },
244
- location: null,
245
- },
246
- cinnamon: {
247
- modifier: {
248
- "Moxie Experience": 1,
249
- "Pickpocket Rate": 5,
250
- "Moxie Percent": 5,
251
- },
252
- location: null,
253
- },
254
- vanilla: {
255
- modifier: {
256
- "Muscle Experience": 1,
257
- "Weapon Damage Percent": 5,
258
- "Muscle Percent": 5,
259
- },
260
- location: null,
261
- },
262
- };
263
- /**
264
- * @returns An array consisting of the Ingredients you've unlocked so far this ascension
265
- */
266
- export function ingredientsUnlocked() {
267
- return get("latteUnlocks").split(",");
268
- }
269
- /**
270
- * Fill the latte with ingredients of your choosing
271
- *
272
- * @param ingredients Ingredients to fill the latte with
273
- * @returns Whether we succeeded in this endeavor
274
- */
275
- export function fill(...ingredients) {
276
- if (refillsRemaining() <= 0)
277
- return false;
278
- if (new Set(ingredients).size < 3)
279
- return false;
280
- if (ingredients.some((i) => !ingredientsUnlocked().includes(i)))
281
- return false;
282
- return cliExecute(`latte refill ${ingredients.join(" ")}`);
283
- }
284
- /**
285
- * @param ingredient A latte ingredient
286
- * @returns An object containing the modifiers associated with that latte ingredient
287
- */
288
- export function modifierOf(ingredient) {
289
- return INGREDIENTS[ingredient].modifier;
290
- }
291
- /**
292
- * @param ingredient A latte ingredient
293
- * @returns The location that can be used to unlock said ingredient; null if the ingredient is free
294
- */
295
- export function locationOf(ingredient) {
296
- return INGREDIENTS[ingredient].location;
297
- }
298
- /**
299
- * @returns An array consisting of all Ingredients currently in your latte
300
- */
301
- export function currentIngredients() {
302
- return getProperty("latteIngredients").split(",");
303
- }