libram 0.8.28 → 0.8.29

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/dist/Clan.d.ts +128 -0
  2. package/dist/Clan.js +300 -0
  3. package/dist/Copier.d.ts +9 -0
  4. package/dist/Copier.js +15 -0
  5. package/dist/Dungeon.d.ts +45 -0
  6. package/dist/Dungeon.js +115 -0
  7. package/dist/Kmail.d.ts +133 -0
  8. package/dist/Kmail.js +259 -0
  9. package/dist/actions/ActionSource.d.ts +131 -0
  10. package/dist/actions/ActionSource.js +178 -0
  11. package/dist/actions/Banish.d.ts +16 -0
  12. package/dist/actions/Banish.js +121 -0
  13. package/dist/actions/FreeKill.d.ts +16 -0
  14. package/dist/actions/FreeKill.js +94 -0
  15. package/dist/actions/FreeRun.d.ts +16 -0
  16. package/dist/actions/FreeRun.js +81 -0
  17. package/dist/actions/index.d.ts +4 -0
  18. package/dist/actions/index.js +4 -0
  19. package/dist/ascend.d.ts +83 -0
  20. package/dist/ascend.js +268 -0
  21. package/dist/challengePaths/2014/HeavyRains.d.ts +22 -0
  22. package/dist/challengePaths/2014/HeavyRains.js +75 -0
  23. package/dist/challengePaths/2015/CommunityService.d.ts +125 -0
  24. package/dist/challengePaths/2015/CommunityService.js +334 -0
  25. package/dist/challengePaths/2016/NuclearAutumn.d.ts +13 -0
  26. package/dist/challengePaths/2016/NuclearAutumn.js +21 -0
  27. package/dist/challengePaths/index.d.ts +4 -0
  28. package/dist/challengePaths/index.js +4 -0
  29. package/dist/combat.d.ts +414 -0
  30. package/dist/combat.js +711 -0
  31. package/dist/console.d.ts +12 -0
  32. package/dist/console.js +14 -0
  33. package/dist/counter.d.ts +22 -0
  34. package/dist/counter.js +37 -0
  35. package/dist/diet/index.d.ts +80 -0
  36. package/dist/diet/index.js +680 -0
  37. package/dist/diet/knapsack.d.ts +8 -0
  38. package/dist/diet/knapsack.js +128 -0
  39. package/dist/index.d.ts +29 -0
  40. package/dist/index.js +26 -0
  41. package/dist/lib.d.ts +507 -0
  42. package/dist/lib.js +970 -0
  43. package/dist/logger.d.ts +35 -0
  44. package/dist/logger.js +62 -0
  45. package/dist/maximize.d.ts +122 -0
  46. package/dist/maximize.js +531 -0
  47. package/dist/modifier.d.ts +41 -0
  48. package/dist/modifier.js +160 -0
  49. package/dist/modifierTypes.d.ts +16 -0
  50. package/dist/modifierTypes.js +9 -0
  51. package/dist/mood.d.ts +105 -0
  52. package/dist/mood.js +349 -0
  53. package/dist/moonSign.d.ts +13 -0
  54. package/dist/moonSign.js +25 -0
  55. package/dist/overlappingNames.d.ts +3 -0
  56. package/dist/overlappingNames.js +42 -0
  57. package/dist/property.d.ts +222 -0
  58. package/dist/property.js +385 -0
  59. package/dist/propertyTypes.d.ts +19 -0
  60. package/dist/propertyTypes.js +10 -0
  61. package/dist/propertyTyping.d.ts +65 -0
  62. package/dist/propertyTyping.js +91 -0
  63. package/dist/resources/2007/CandyHearts.d.ts +9 -0
  64. package/dist/resources/2007/CandyHearts.js +24 -0
  65. package/dist/resources/2008/DivineFavors.d.ts +9 -0
  66. package/dist/resources/2008/DivineFavors.js +27 -0
  67. package/dist/resources/2008/Stickers.d.ts +49 -0
  68. package/dist/resources/2008/Stickers.js +84 -0
  69. package/dist/resources/2009/Bandersnatch.d.ts +56 -0
  70. package/dist/resources/2009/Bandersnatch.js +93 -0
  71. package/dist/resources/2009/LoveSongs.d.ts +9 -0
  72. package/dist/resources/2009/LoveSongs.js +24 -0
  73. package/dist/resources/2009/SpookyPutty.d.ts +31 -0
  74. package/dist/resources/2009/SpookyPutty.js +49 -0
  75. package/dist/resources/2010/Brickos.d.ts +9 -0
  76. package/dist/resources/2010/Brickos.js +21 -0
  77. package/dist/resources/2010/CrownOfThrones.d.ts +68 -0
  78. package/dist/resources/2010/CrownOfThrones.js +418 -0
  79. package/dist/resources/2010/LookingGlass.d.ts +29 -0
  80. package/dist/resources/2010/LookingGlass.js +89 -0
  81. package/dist/resources/2011/Gygaxian.d.ts +9 -0
  82. package/dist/resources/2011/Gygaxian.js +24 -0
  83. package/dist/resources/2011/ObtuseAngel.d.ts +33 -0
  84. package/dist/resources/2011/ObtuseAngel.js +51 -0
  85. package/dist/resources/2011/StompingBoots.d.ts +37 -0
  86. package/dist/resources/2011/StompingBoots.js +57 -0
  87. package/dist/resources/2012/RainDoh.d.ts +25 -0
  88. package/dist/resources/2012/RainDoh.js +37 -0
  89. package/dist/resources/2012/ReagnimatedGnome.d.ts +31 -0
  90. package/dist/resources/2012/ReagnimatedGnome.js +46 -0
  91. package/dist/resources/2012/Resolutions.d.ts +9 -0
  92. package/dist/resources/2012/Resolutions.js +28 -0
  93. package/dist/resources/2013/Florist.d.ts +81 -0
  94. package/dist/resources/2013/Florist.js +245 -0
  95. package/dist/resources/2013/JungMan.d.ts +33 -0
  96. package/dist/resources/2013/JungMan.js +69 -0
  97. package/dist/resources/2013/PulledTaffy.d.ts +9 -0
  98. package/dist/resources/2013/PulledTaffy.js +33 -0
  99. package/dist/resources/2014/CrimboShrub.d.ts +42 -0
  100. package/dist/resources/2014/CrimboShrub.js +89 -0
  101. package/dist/resources/2014/DNALab.d.ts +56 -0
  102. package/dist/resources/2014/DNALab.js +162 -0
  103. package/dist/resources/2014/WinterGarden.d.ts +23 -0
  104. package/dist/resources/2014/WinterGarden.js +35 -0
  105. package/dist/resources/2015/BarrelShrine.d.ts +8 -0
  106. package/dist/resources/2015/BarrelShrine.js +25 -0
  107. package/dist/resources/2015/ChateauMantegna.d.ts +52 -0
  108. package/dist/resources/2015/ChateauMantegna.js +99 -0
  109. package/dist/resources/2015/DeckOfEveryCard.d.ts +29 -0
  110. package/dist/resources/2015/DeckOfEveryCard.js +122 -0
  111. package/dist/resources/2015/Dinseylandfill.d.ts +89 -0
  112. package/dist/resources/2015/Dinseylandfill.js +205 -0
  113. package/dist/resources/2015/MayoClinic.d.ts +23 -0
  114. package/dist/resources/2015/MayoClinic.js +49 -0
  115. package/dist/resources/2016/GingerBread.d.ts +32 -0
  116. package/dist/resources/2016/GingerBread.js +73 -0
  117. package/dist/resources/2016/SourceTerminal.d.ts +181 -0
  118. package/dist/resources/2016/SourceTerminal.js +275 -0
  119. package/dist/resources/2016/Witchess.d.ts +17 -0
  120. package/dist/resources/2016/Witchess.js +47 -0
  121. package/dist/resources/2017/AsdonMartin.d.ts +59 -0
  122. package/dist/resources/2017/AsdonMartin.js +238 -0
  123. package/dist/resources/2017/Horsery.d.ts +19 -0
  124. package/dist/resources/2017/Horsery.js +42 -0
  125. package/dist/resources/2017/MummingTrunk.d.ts +8 -0
  126. package/dist/resources/2017/MummingTrunk.js +33 -0
  127. package/dist/resources/2017/Pantogram.d.ts +92 -0
  128. package/dist/resources/2017/Pantogram.js +174 -0
  129. package/dist/resources/2017/Robortender.d.ts +30 -0
  130. package/dist/resources/2017/Robortender.js +90 -0
  131. package/dist/resources/2017/Spacegate.d.ts +86 -0
  132. package/dist/resources/2017/Spacegate.js +178 -0
  133. package/dist/resources/2017/TunnelOfLove.d.ts +39 -0
  134. package/dist/resources/2017/TunnelOfLove.js +120 -0
  135. package/dist/resources/2018/LatteLoversMembersMug.d.ts +392 -0
  136. package/dist/resources/2018/LatteLoversMembersMug.js +303 -0
  137. package/dist/resources/2018/SongBoom.d.ts +33 -0
  138. package/dist/resources/2018/SongBoom.js +55 -0
  139. package/dist/resources/2019/BeachComb.d.ts +72 -0
  140. package/dist/resources/2019/BeachComb.js +118 -0
  141. package/dist/resources/2019/CampAway.d.ts +39 -0
  142. package/dist/resources/2019/CampAway.js +72 -0
  143. package/dist/resources/2019/Snapper.d.ts +33 -0
  144. package/dist/resources/2019/Snapper.js +73 -0
  145. package/dist/resources/2020/Cartography.d.ts +16 -0
  146. package/dist/resources/2020/Cartography.js +48 -0
  147. package/dist/resources/2020/Guzzlr.d.ts +160 -0
  148. package/dist/resources/2020/Guzzlr.js +275 -0
  149. package/dist/resources/2020/RetroCape.d.ts +51 -0
  150. package/dist/resources/2020/RetroCape.js +115 -0
  151. package/dist/resources/2021/CrystalBall.d.ts +14 -0
  152. package/dist/resources/2021/CrystalBall.js +41 -0
  153. package/dist/resources/2021/DaylightShavings.d.ts +40 -0
  154. package/dist/resources/2021/DaylightShavings.js +74 -0
  155. package/dist/resources/2022/AutumnAton.d.ts +78 -0
  156. package/dist/resources/2022/AutumnAton.js +182 -0
  157. package/dist/resources/2022/CombatLoversLocket.d.ts +44 -0
  158. package/dist/resources/2022/CombatLoversLocket.js +82 -0
  159. package/dist/resources/2022/GreyGoose.d.ts +59 -0
  160. package/dist/resources/2022/GreyGoose.js +90 -0
  161. package/dist/resources/2022/JuneCleaver.d.ts +47 -0
  162. package/dist/resources/2022/JuneCleaver.js +69 -0
  163. package/dist/resources/2022/TrainSet.d.ts +146 -0
  164. package/dist/resources/2022/TrainSet.js +228 -0
  165. package/dist/resources/2023/AugustScepter.d.ts +25 -0
  166. package/dist/resources/2023/AugustScepter.js +40 -0
  167. package/dist/resources/2023/BurningLeaves.d.ts +25 -0
  168. package/dist/resources/2023/BurningLeaves.js +74 -0
  169. package/dist/resources/2023/CinchoDeMayo.d.ts +25 -0
  170. package/dist/resources/2023/CinchoDeMayo.js +45 -0
  171. package/dist/resources/2023/ClosedCircuitPayphone.d.ts +80 -0
  172. package/dist/resources/2023/ClosedCircuitPayphone.js +129 -0
  173. package/dist/resources/2023/CursedMonkeyPaw.d.ts +46 -0
  174. package/dist/resources/2023/CursedMonkeyPaw.js +113 -0
  175. package/dist/resources/2024/AprilingBandHelmet.d.ts +57 -0
  176. package/dist/resources/2024/AprilingBandHelmet.js +118 -0
  177. package/dist/resources/2024/ChestMimic.d.ts +42 -0
  178. package/dist/resources/2024/ChestMimic.js +125 -0
  179. package/dist/resources/LibramSummon.d.ts +18 -0
  180. package/dist/resources/LibramSummon.js +74 -0
  181. package/dist/resources/index.d.ts +54 -0
  182. package/dist/resources/index.js +54 -0
  183. package/dist/resources/putty-likes.d.ts +21 -0
  184. package/dist/resources/putty-likes.js +33 -0
  185. package/dist/session.d.ts +169 -0
  186. package/dist/session.js +284 -0
  187. package/dist/since.d.ts +51 -0
  188. package/dist/since.js +108 -0
  189. package/dist/template-string.d.ts +324 -0
  190. package/dist/template-string.js +265 -0
  191. package/dist/url.d.ts +35 -0
  192. package/dist/url.js +67 -0
  193. package/dist/utils.d.ts +178 -0
  194. package/dist/utils.js +255 -0
  195. package/package.json +2 -2
@@ -0,0 +1,414 @@
1
+ import { Class, Effect, Item, Location, Monster, Skill, Stat } from "kolmafia";
2
+ /**
3
+ * Get the KoL native ID of the macro with name name.
4
+ *
5
+ * @param name Name of the macro
6
+ * @category Combat
7
+ * @returns {number} The macro ID.
8
+ */
9
+ export declare function getMacroId(name?: string): number;
10
+ declare type ItemOrName = Item | string;
11
+ declare type PreBALLSPredicate = string | Monster | Monster[] | Effect | Skill | Item | Location | Class | Stat;
12
+ declare type SkillOrName = Skill | string;
13
+ declare type Constructor<T> = {
14
+ new (): T;
15
+ };
16
+ export declare class InvalidMacroError extends Error {
17
+ }
18
+ /**
19
+ * BALLS macro builder for direct submission to KoL.
20
+ * Create a new macro with `new Macro()` and add steps using the instance methods.
21
+ * Uses a fluent interface, so each step returns the object for easy chaining of steps.
22
+ * Each method is also defined as a static method that creates a new Macro with only that step.
23
+ * For example, you can do `Macro.skill('Saucestorm').attack()`.
24
+ */
25
+ export declare class Macro {
26
+ static SAVED_MACRO_PROPERTY: string;
27
+ static cachedMacroIds: Map<string, number>;
28
+ static cachedAutoAttacks: Map<string, string>;
29
+ components: string[];
30
+ name: string;
31
+ /**
32
+ * Convert macro to string.
33
+ *
34
+ * @returns BALLS macro
35
+ */
36
+ toString(): string;
37
+ /**
38
+ * Gives your macro a new name to be used when saving an autoattack.
39
+ *
40
+ * @param name The name to be used when saving as an autoattack.
41
+ * @returns The macro in question
42
+ */
43
+ rename(name: string): this;
44
+ /**
45
+ * Creates a new Macro with a name other than the default name.
46
+ *
47
+ * @param name The name to assign this macro.
48
+ * @returns A new Macro with the assigned name.
49
+ */
50
+ static rename<T extends Macro>(this: Constructor<T>, name: string): T;
51
+ /**
52
+ * Save a macro to a Mafia property for use in a consult script.
53
+ */
54
+ save(): void;
55
+ /**
56
+ * Load a saved macro from the Mafia property.
57
+ *
58
+ * @returns Loaded macro text
59
+ */
60
+ static load<T extends Macro>(this: Constructor<T>): T;
61
+ /**
62
+ * Clear the saved macro in the Mafia property.
63
+ */
64
+ static clearSaved(): void;
65
+ /**
66
+ * Statefully add one or several steps to a macro.
67
+ *
68
+ * @param nextSteps The steps to add to the macro.
69
+ * @returns {Macro} This object itself.
70
+ */
71
+ step(...nextSteps: (string | Macro)[]): this;
72
+ /**
73
+ * Statefully add one or several steps to a macro.
74
+ *
75
+ * @param nextSteps The steps to add to the macro.
76
+ * @returns {Macro} This object itself.
77
+ */
78
+ static step<T extends Macro>(this: Constructor<T>, ...nextSteps: (string | Macro)[]): T;
79
+ /**
80
+ * Submit the built macro to KoL. Only works inside combat.
81
+ *
82
+ * @returns Contents of the fight page after macro submission
83
+ */
84
+ submit(): string;
85
+ /**
86
+ * Set this macro as a KoL native autoattack.
87
+ */
88
+ setAutoAttack(): void;
89
+ /**
90
+ * Renames the macro, then sets it as an autoattack.
91
+ *
92
+ * @param name The name to save the macro under as an autoattack.
93
+ */
94
+ setAutoAttackAs(name: string): void;
95
+ /**
96
+ * Clear all cached autoattacks, and delete all stored macros server-side.
97
+ */
98
+ static clearAutoAttackMacros(): void;
99
+ /**
100
+ * Add an "abort" step to this macro.
101
+ *
102
+ * @returns {Macro} This object itself.
103
+ */
104
+ abort(): this;
105
+ /**
106
+ * Create a new macro with an "abort" step.
107
+ *
108
+ * @returns {Macro} This object itself.
109
+ */
110
+ static abort<T extends Macro>(this: Constructor<T>): T;
111
+ /**
112
+ * Adds an "abort" step to this macro, with a warning message to print
113
+ *
114
+ * @param warning The warning message to print
115
+ * @returns {Macro} This object itself.
116
+ */
117
+ abortWithWarning(warning: string): this;
118
+ /**
119
+ * Create a new macro with an "abort" step to this macro, with a warning message to print
120
+ *
121
+ * @param warning The warning message to print
122
+ * @returns {Macro} This object itself.
123
+ */
124
+ static abortWithWarning<T extends Macro>(this: Constructor<T>, warning: string): T;
125
+ /**
126
+ * Add a "runaway" step to this macro.
127
+ *
128
+ * @returns {Macro} This object itself.
129
+ */
130
+ runaway(): this;
131
+ /**
132
+ * Create a new macro with an "runaway" step.
133
+ *
134
+ * @returns {Macro} This object itself.
135
+ */
136
+ static runaway<T extends Macro>(this: Constructor<T>): T;
137
+ private static makeBALLSPredicate;
138
+ /**
139
+ * Add an "if" statement to this macro.
140
+ *
141
+ * @param condition The BALLS condition for the if statement.
142
+ * @param ifTrue Continuation if the condition is true.
143
+ * @returns {Macro} This object itself.
144
+ */
145
+ if_(condition: PreBALLSPredicate, ifTrue: string | Macro): this;
146
+ /**
147
+ * Create a new macro with an "if" statement.
148
+ *
149
+ * @param condition The BALLS condition for the if statement.
150
+ * @param ifTrue Continuation if the condition is true.
151
+ * @returns {Macro} This object itself.
152
+ */
153
+ static if_<T extends Macro>(this: Constructor<T>, condition: PreBALLSPredicate, ifTrue: string | Macro): T;
154
+ /**
155
+ * Add an "if" statement to this macro, inverting the condition.
156
+ *
157
+ * @param condition The BALLS condition for the if statement.
158
+ * @param ifTrue Continuation if the condition is true.
159
+ * @returns {Macro} This object itself.
160
+ */
161
+ ifNot(condition: PreBALLSPredicate, ifTrue: string | Macro): this;
162
+ /**
163
+ * Create a new macro with an "if" statement, inverting the condition.
164
+ *
165
+ * @param condition The BALLS condition for the if statement.
166
+ * @param ifTrue Continuation if the condition is true.
167
+ * @returns {Macro} This object itself.
168
+ */
169
+ static ifNot<T extends Macro>(this: Constructor<T>, condition: PreBALLSPredicate, ifTrue: string | Macro): T;
170
+ /**
171
+ * Add a "while" statement to this macro.
172
+ *
173
+ * @param condition The BALLS condition for the if statement.
174
+ * @param contents Loop to repeat while the condition is true.
175
+ * @returns {Macro} This object itself.
176
+ */
177
+ while_(condition: string, contents: string | Macro): this;
178
+ /**
179
+ * Create a new macro with a "while" statement.
180
+ *
181
+ * @param condition The BALLS condition for the if statement.
182
+ * @param contents Loop to repeat while the condition is true.
183
+ * @returns {Macro} This object itself.
184
+ */
185
+ static while_<T extends Macro>(this: Constructor<T>, condition: string, contents: string | Macro): T;
186
+ /**
187
+ * Conditionally add a step to a macro based on a condition evaluated at the time of building the macro.
188
+ *
189
+ * @param condition The JS condition.
190
+ * @param ifTrue Continuation to add if the condition is true.
191
+ * @param ifFalse Optional input to turn this into an if...else statement.
192
+ * @returns {Macro} This object itself.
193
+ */
194
+ externalIf(condition: boolean, ifTrue: string | Macro, ifFalse?: string | Macro): this;
195
+ /**
196
+ * Create a new macro with a condition evaluated at the time of building the macro.
197
+ *
198
+ * @param condition The JS condition.
199
+ * @param ifTrue Continuation to add if the condition is true.
200
+ * @param ifFalse Optional input to turn this into an if...else statement.
201
+ * @returns {Macro} This object itself.
202
+ */
203
+ static externalIf<T extends Macro>(this: Constructor<T>, condition: boolean, ifTrue: string | Macro, ifFalse?: string | Macro): T;
204
+ /**
205
+ * Add a repeat step to the macro.
206
+ *
207
+ * @returns {Macro} This object itself.
208
+ */
209
+ repeat(): this;
210
+ /**
211
+ * Add one or more skill cast steps to the macro.
212
+ *
213
+ * @param skills Skills to cast.
214
+ * @returns {Macro} This object itself.
215
+ */
216
+ skill(...skills: SkillOrName[]): this;
217
+ /**
218
+ * Create a new macro with one or more skill cast steps.
219
+ *
220
+ * @param skills Skills to cast.
221
+ * @returns {Macro} This object itself.
222
+ */
223
+ static skill<T extends Macro>(this: Constructor<T>, ...skills: SkillOrName[]): T;
224
+ /**
225
+ * Add one or more skill cast steps to the macro, where each step checks if you have the skill first.
226
+ *
227
+ * @param skills Skills to try casting.
228
+ * @returns {Macro} This object itself.
229
+ */
230
+ trySkill(...skills: SkillOrName[]): this;
231
+ /**
232
+ * Create a new macro with one or more skill cast steps, where each step checks if you have the skill first.
233
+ *
234
+ * @param skills Skills to try casting.
235
+ * @returns {Macro} This object itself.
236
+ */
237
+ static trySkill<T extends Macro>(this: Constructor<T>, ...skills: SkillOrName[]): T;
238
+ /**
239
+ * Add one or more skill-cast-and-repeat steps to the macro, where each step checks if you have the skill first.
240
+ *
241
+ * @param skills Skills to try repeatedly casting.
242
+ * @returns {Macro} This object itself.
243
+ */
244
+ trySkillRepeat(...skills: SkillOrName[]): this;
245
+ /**
246
+ * Create a new macro with one or more skill-cast-and-repeat steps, where each step checks if you have the skill first.
247
+ *
248
+ * @param skills Skills to try repeatedly casting.
249
+ * @returns {Macro} This object itself.
250
+ */
251
+ static trySkillRepeat<T extends Macro>(this: Constructor<T>, ...skills: SkillOrName[]): T;
252
+ /**
253
+ * Add one or more item steps to the macro.
254
+ *
255
+ * @param items Items to use. Pass a tuple [item1, item2] to funksling.
256
+ * @returns {Macro} This object itself.
257
+ */
258
+ item(...items: (ItemOrName | [ItemOrName, ItemOrName])[]): this;
259
+ /**
260
+ * Create a new macro with one or more item steps.
261
+ *
262
+ * @param items Items to use. Pass a tuple [item1, item2] to funksling.
263
+ * @returns {Macro} This object itself.
264
+ */
265
+ static item<T extends Macro>(this: Constructor<T>, ...items: (ItemOrName | [ItemOrName, ItemOrName])[]): T;
266
+ /**
267
+ * Add one or more item steps to the macro, where each step checks to see if you have the item first.
268
+ *
269
+ * @param items Items to try using. Pass a tuple [item1, item2] to funksling.
270
+ * @returns {Macro} This object itself.
271
+ */
272
+ tryItem(...items: (ItemOrName | [ItemOrName, ItemOrName])[]): this;
273
+ /**
274
+ * Create a new macro with one or more item steps, where each step checks to see if you have the item first.
275
+ *
276
+ * @param items Items to try using. Pass a tuple [item1, item2] to funksling.
277
+ * @returns {Macro} This object itself.
278
+ */
279
+ static tryItem<T extends Macro>(this: Constructor<T>, ...items: (ItemOrName | [ItemOrName, ItemOrName])[]): T;
280
+ /**
281
+ * Add an attack step to the macro.
282
+ *
283
+ * @returns {Macro} This object itself.
284
+ */
285
+ attack(): this;
286
+ /**
287
+ * Create a new macro with an attack step.
288
+ *
289
+ * @returns {Macro} This object itself.
290
+ */
291
+ static attack<T extends Macro>(this: Constructor<T>): T;
292
+ /**
293
+ * Create an if_ statement based on what holiday of loathing it currently is. On non-holidays, returns the original macro, unmutated.
294
+ *
295
+ * @param macro The macro to place in the if_ statement
296
+ * @returns This macro with supplied macro wapped in if statement matching holiday wanderers
297
+ */
298
+ ifHolidayWanderer(macro: Macro): this;
299
+ /**
300
+ * Create a new macro starting with an ifHolidayWanderer step.
301
+ *
302
+ * @param macro The macro to place inside the if_ statement
303
+ * @returns New macro with supplied macro wrapped in if statement matching holiday wanderers
304
+ */
305
+ static ifHolidayWanderer<T extends Macro>(this: Constructor<T>, macro: Macro): T;
306
+ /**
307
+ * Create an if_ statement based on what holiday of loathing it currently is. On non-holidays, returns the original macro, with the input macro appended.
308
+ *
309
+ * @param macro The macro to place in the if_ statement.
310
+ * @returns This macro with supplied macro wrapped in if statement matching monsters that are not holiday wanderers
311
+ */
312
+ ifNotHolidayWanderer(macro: Macro): this;
313
+ /**
314
+ * Create a new macro starting with an ifNotHolidayWanderer step.
315
+ *
316
+ * @param macro The macro to place inside the if_ statement
317
+ * @returns New macro with supplied macro wrapped in if statement matching monsters that are not holiday wanderers
318
+ */
319
+ static ifNotHolidayWanderer<T extends Macro>(this: Constructor<T>, macro: Macro): T;
320
+ }
321
+ /**
322
+ * Adventure in a location and handle all combats with a given macro.
323
+ * To use this function you will need to create a consult script that runs Macro.load().submit() and a CCS that calls that consult script.
324
+ * See examples/consult.ts for an example.
325
+ *
326
+ * @category Combat
327
+ * @param loc Location to adventure in.
328
+ * @param macro Macro to execute.
329
+ */
330
+ export declare function adventureMacro(loc: Location, macro: Macro): void;
331
+ /**
332
+ * Adventure in a location and handle all combats with a given autoattack and manual macro.
333
+ * To use the nextMacro parameter you will need to create a consult script that runs Macro.load().submit() and a CCS that calls that consult script.
334
+ * See examples/consult.ts for an example.
335
+ *
336
+ * @category Combat
337
+ * @param loc Location to adventure in.
338
+ * @param autoMacro Macro to execute via KoL autoattack.
339
+ * @param nextMacro Macro to execute manually after autoattack completes.
340
+ */
341
+ export declare function adventureMacroAuto(loc: Location, autoMacro: Macro, nextMacro?: Macro | null): void;
342
+ export declare class StrictMacro extends Macro {
343
+ /**
344
+ * Add one or more skill cast steps to the macro.
345
+ *
346
+ * @param skills Skills to cast.
347
+ * @returns {StrictMacro} This object itself.
348
+ */
349
+ skill(...skills: Skill[]): this;
350
+ /**
351
+ * Create a new macro with one or more skill cast steps.
352
+ *
353
+ * @param skills Skills to cast.
354
+ * @returns {StrictMacro} This object itself.
355
+ */
356
+ static skill<T extends StrictMacro>(this: Constructor<T>, ...skills: Skill[]): T;
357
+ /**
358
+ * Add one or more item steps to the macro.
359
+ *
360
+ * @param items Items to use. Pass a tuple [item1, item2] to funksling.
361
+ * @returns {StrictMacro} This object itself.
362
+ */
363
+ item(...items: (Item | [Item, Item])[]): this;
364
+ /**
365
+ * Create a new macro with one or more item steps.
366
+ *
367
+ * @param items Items to use. Pass a tuple [item1, item2] to funksling.
368
+ * @returns {StrictMacro} This object itself.
369
+ */
370
+ static item<T extends StrictMacro>(this: Constructor<T>, ...items: (Item | [Item, Item])[]): T;
371
+ /**
372
+ * Add one or more skill cast steps to the macro, where each step checks if you have the skill first.
373
+ *
374
+ * @param skills Skills to try casting.
375
+ * @returns {StrictMacro} This object itself.
376
+ */
377
+ trySkill(...skills: Skill[]): this;
378
+ /**
379
+ * Create a new macro with one or more skill cast steps, where each step checks if you have the skill first.
380
+ *
381
+ * @param skills Skills to try casting.
382
+ * @returns {StrictMacro} This object itself.
383
+ */
384
+ static trySkill<T extends StrictMacro>(this: Constructor<T>, ...skills: Skill[]): T;
385
+ /**
386
+ * Add one or more item steps to the macro, where each step checks to see if you have the item first.
387
+ *
388
+ * @param items Items to try using. Pass a tuple [item1, item2] to funksling.
389
+ * @returns {StrictMacro} This object itself.
390
+ */
391
+ tryItem(...items: (Item | [Item, Item])[]): this;
392
+ /**
393
+ * Create a new macro with one or more item steps, where each step checks to see if you have the item first.
394
+ *
395
+ * @param items Items to try using. Pass a tuple [item1, item2] to funksling.
396
+ * @returns {StrictMacro} This object itself.
397
+ */
398
+ static tryItem<T extends StrictMacro>(this: Constructor<T>, ...items: (Item | [Item, Item])[]): T;
399
+ /**
400
+ * Add one or more skill-cast-and-repeat steps to the macro, where each step checks if you have the skill first.
401
+ *
402
+ * @param skills Skills to try repeatedly casting.
403
+ * @returns {StrictMacro} This object itself.
404
+ */
405
+ trySkillRepeat(...skills: Skill[]): this;
406
+ /**
407
+ * Create a new macro with one or more skill-cast-and-repeat steps, where each step checks if you have the skill first.
408
+ *
409
+ * @param skills Skills to try repeatedly casting.
410
+ * @returns {StrictMacro} This object itself.
411
+ */
412
+ static trySkillRepeat<T extends StrictMacro>(this: Constructor<T>, ...skills: Skill[]): T;
413
+ }
414
+ export {};