kolmafia 5.27916.0 → 5.27918.0
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/index.d.ts +92 -165
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
// v5.
|
|
2
|
-
// Generated by KoLmafia
|
|
1
|
+
// v5.27918.0
|
|
2
|
+
// Generated by KoLmafia r27918 with type generator v5
|
|
3
3
|
type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
|
|
4
4
|
type ModifierValueType = "boolean" | "none" | "numeric" | "string";
|
|
5
|
-
export function abort(string
|
|
6
|
-
export function abort(): never;
|
|
5
|
+
export function abort(string?: string): never;
|
|
7
6
|
export function absorbedMonsters(): { [monster: string]: boolean };
|
|
8
7
|
export function addItemCondition(count: number, item: Item): void;
|
|
9
8
|
export function addItemCondition(item: Item, count: number): void;
|
|
10
|
-
export function adv1(locationValue: Location, adventuresUsedValue
|
|
11
|
-
export function adv1(locationValue: Location, adventuresUsedValue: number): boolean;
|
|
12
|
-
export function adv1(locationValue: Location): boolean;
|
|
9
|
+
export function adv1(locationValue: Location, adventuresUsedValue?: number): boolean;
|
|
10
|
+
export function adv1(locationValue: Location, adventuresUsedValue: number, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
|
|
13
11
|
export function advCost(skill: Skill): number;
|
|
14
|
-
export function adventure(location: Location, count: number): boolean;
|
|
15
|
-
export function adventure(
|
|
16
|
-
export function adventure(count: number, location: Location): boolean;
|
|
17
|
-
export function adventure(count: number, location: Location, filterFunction: string | ((round: number, monster: Monster, text: string) => string)): boolean;
|
|
12
|
+
export function adventure(location: Location, count: number, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
|
|
13
|
+
export function adventure(count: number, location: Location, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
|
|
18
14
|
export function allMonstersWithId(): { [monster: string]: boolean };
|
|
19
15
|
export function allNormalOutfits(): string[];
|
|
20
|
-
export function appearanceRates(location: Location): { [monster: string]: number };
|
|
21
|
-
export function appearanceRates(location: Location, includeQueue: boolean): { [monster: string]: number };
|
|
16
|
+
export function appearanceRates(location: Location, includeQueue?: boolean): { [monster: string]: number };
|
|
22
17
|
export function append(buffer: string, s: string): string;
|
|
23
18
|
export function attack(): string;
|
|
24
19
|
export function autosell(item: Item, count: number): boolean;
|
|
25
20
|
export function autosell(count: number, item: Item): boolean;
|
|
26
21
|
export function autosellPrice(item: Item): number;
|
|
27
22
|
export function availableAmount(item: Item): number;
|
|
28
|
-
export function availableChoiceOptions(): { [key: number]: string };
|
|
29
|
-
export function availableChoiceOptions(spoilers: boolean): { [key: number]: string };
|
|
23
|
+
export function availableChoiceOptions(spoilers?: boolean): { [key: number]: string };
|
|
30
24
|
export function availableChoiceSelectInputs(decision: number): { [key: string]: { [key: string]: string } };
|
|
31
25
|
export function availableChoiceTextInputs(decision: number): { [key: string]: string };
|
|
32
26
|
export function availablePocket(monster: Monster): number;
|
|
@@ -48,42 +42,35 @@ export function booleanModifier(effect: Effect, modifier: string): boolean;
|
|
|
48
42
|
export function booleanModifier(effect: Effect, modifier: Modifier): boolean;
|
|
49
43
|
export function buffedHitStat(): number;
|
|
50
44
|
export function bufferToFile(buffer: string, filename: string): boolean;
|
|
51
|
-
export function buy(item: Item): boolean;
|
|
52
|
-
export function buy(item: Item, quantity: number): boolean;
|
|
53
|
-
export function buy(item: Item, quantity: number, price: number): number;
|
|
45
|
+
export function buy(item: Item, quantity?: number): boolean;
|
|
54
46
|
export function buy(quantity: number, item: Item): boolean;
|
|
47
|
+
export function buy(item: Item, quantity: number, price: number): number;
|
|
55
48
|
export function buy(quantity: number, item: Item, price: number): number;
|
|
56
49
|
export function buy(coinmaster: Coinmaster, quantity: number, item: Item): boolean;
|
|
57
50
|
export function buyPrice(master: Coinmaster, item: Item): number;
|
|
58
|
-
export function buyUsingStorage(item: Item): boolean;
|
|
59
|
-
export function buyUsingStorage(item: Item, quantity: number): boolean;
|
|
60
|
-
export function buyUsingStorage(item: Item, quantity: number, price: number): number;
|
|
51
|
+
export function buyUsingStorage(item: Item, quantity?: number): boolean;
|
|
61
52
|
export function buyUsingStorage(quantity: number, item: Item): boolean;
|
|
53
|
+
export function buyUsingStorage(item: Item, quantity: number, price: number): number;
|
|
62
54
|
export function buyUsingStorage(quantity: number, item: Item, price: number): number;
|
|
63
55
|
export function buysItem(master: Coinmaster, item: Item): boolean;
|
|
64
56
|
export function canAdventure(location: Location): boolean;
|
|
65
57
|
export function canDrink(): boolean;
|
|
66
58
|
export function canEat(): boolean;
|
|
67
59
|
export function canEquip(equipment: Item): boolean;
|
|
68
|
-
export function canEquip(familiar: Familiar): boolean;
|
|
69
|
-
export function
|
|
70
|
-
export function canFaxbot(monster: Monster): boolean;
|
|
71
|
-
export function canFaxbot(monster: Monster, faxbot: string): boolean;
|
|
60
|
+
export function canEquip(familiar: Familiar, item?: Item): boolean;
|
|
61
|
+
export function canFaxbot(monster: Monster, faxbot?: string): boolean;
|
|
72
62
|
export function canInteract(): boolean;
|
|
73
63
|
export function canStillSteal(): boolean;
|
|
74
64
|
export function canadiaAvailable(): boolean;
|
|
75
|
-
export function candyForTier(tier: number): Item[];
|
|
76
|
-
export function candyForTier(tier: number, flags: number): Item[];
|
|
65
|
+
export function candyForTier(tier: number, flags?: number): Item[];
|
|
77
66
|
export function ceil(val: number): number;
|
|
78
67
|
export function changeMcd(level: number): boolean;
|
|
79
68
|
export function charAt(source: string, index: number): string;
|
|
80
|
-
export function chatClan(messageValue: string): void;
|
|
81
|
-
export function chatClan(messageValue: string, recipientValue: string): void;
|
|
69
|
+
export function chatClan(messageValue: string, recipientValue?: string): void;
|
|
82
70
|
export function chatMacro(macroValue: string): void;
|
|
83
71
|
export function chatNotify(messageValue: string, colorValue: string): void;
|
|
84
72
|
export function chatPrivate(recipientValue: string, messageValue: string): void;
|
|
85
|
-
export function chew(item: Item): boolean;
|
|
86
|
-
export function chew(item: Item, count: number): boolean;
|
|
73
|
+
export function chew(item: Item, count?: number): boolean;
|
|
87
74
|
export function chew(count: number, item: Item): boolean;
|
|
88
75
|
export function choiceFollowsFight(): boolean;
|
|
89
76
|
export function classModifier(type: string, modifier: string): Class;
|
|
@@ -107,11 +94,9 @@ export function count(agg: any): number;
|
|
|
107
94
|
export function craft(modeValue: string, countValue: number, item1: Item, item2: Item): number;
|
|
108
95
|
export function craftType(item: Item): string;
|
|
109
96
|
export function creatableAmount(item: Item): number;
|
|
110
|
-
export function creatableTurns(itemId: Item): number;
|
|
111
|
-
export function creatableTurns(itemId: Item, count: number): number;
|
|
112
|
-
export function
|
|
113
|
-
export function create(item: Item): boolean;
|
|
114
|
-
export function create(item: Item, count: number): boolean;
|
|
97
|
+
export function creatableTurns(itemId: Item, count?: number): number;
|
|
98
|
+
export function creatableTurns(itemId: Item, count: number, freeCrafting?: boolean): number;
|
|
99
|
+
export function create(item: Item, count?: number): boolean;
|
|
115
100
|
export function create(count: number, item: Item): boolean;
|
|
116
101
|
export function currentHitStat(): Stat;
|
|
117
102
|
export function currentMcd(): number;
|
|
@@ -132,22 +117,17 @@ export function descToItem(value: string): Item;
|
|
|
132
117
|
export function disable(name: string): void;
|
|
133
118
|
export function dispensaryAvailable(): boolean;
|
|
134
119
|
export function displayAmount(item: Item): number;
|
|
135
|
-
export function drink(item: Item): boolean;
|
|
136
|
-
export function drink(item: Item, count: number): boolean;
|
|
120
|
+
export function drink(item: Item, count?: number): boolean;
|
|
137
121
|
export function drink(count: number, item: Item): boolean;
|
|
138
|
-
export function drinksilent(item: Item): boolean;
|
|
139
|
-
export function drinksilent(item: Item, count: number): boolean;
|
|
122
|
+
export function drinksilent(item: Item, count?: number): boolean;
|
|
140
123
|
export function drinksilent(count: number, item: Item): boolean;
|
|
141
|
-
export function dump(arg: any): void;
|
|
142
|
-
export function
|
|
143
|
-
export function eat(item: Item): boolean;
|
|
144
|
-
export function eat(item: Item, count: number): boolean;
|
|
124
|
+
export function dump(arg: any, color?: string): void;
|
|
125
|
+
export function eat(item: Item, count?: number): boolean;
|
|
145
126
|
export function eat(count: number, item: Item): boolean;
|
|
146
|
-
export function eatsilent(item: Item): boolean;
|
|
147
|
-
export function eatsilent(item: Item, count: number): boolean;
|
|
127
|
+
export function eatsilent(item: Item, count?: number): boolean;
|
|
148
128
|
export function eatsilent(count: number, item: Item): boolean;
|
|
149
|
-
export function effectFact(cls: Class, path: Path, monster: Monster): Effect;
|
|
150
129
|
export function effectFact(monster: Monster): Effect;
|
|
130
|
+
export function effectFact(cls: Class, path: Path, monster: Monster): Effect;
|
|
151
131
|
export function effectModifier(type: string, modifier: string): Effect;
|
|
152
132
|
export function effectModifier(type: string, modifier: Modifier): Effect;
|
|
153
133
|
export function effectModifier(item: Item, modifier: string): Effect;
|
|
@@ -155,8 +135,7 @@ export function effectModifier(item: Item, modifier: Modifier): Effect;
|
|
|
155
135
|
export function effectPockets(): { [key: number]: boolean };
|
|
156
136
|
export function eightBitPoints(locationValue: Location): number;
|
|
157
137
|
export function eightBitPoints(locationValue: Location, colorValue: string, modValue: number): number;
|
|
158
|
-
export function elementalResistance(element
|
|
159
|
-
export function elementalResistance(): number;
|
|
138
|
+
export function elementalResistance(element?: Element): number;
|
|
160
139
|
export function elementalResistance(monster: Monster): number;
|
|
161
140
|
export function emptyCloset(): boolean;
|
|
162
141
|
export function enable(name: string): void;
|
|
@@ -164,39 +143,34 @@ export function endsWith(source: string, suffix: string): boolean;
|
|
|
164
143
|
export function enthroneFamiliar(familiar: Familiar): boolean;
|
|
165
144
|
export function entityDecode(string: string): string;
|
|
166
145
|
export function entityEncode(string: string): string;
|
|
167
|
-
export function equip(item: Item): boolean;
|
|
168
|
-
export function equip(item: Item, slot: Slot): boolean;
|
|
146
|
+
export function equip(item: Item, slot?: Slot): boolean;
|
|
169
147
|
export function equip(slot: Slot, item: Item): boolean;
|
|
170
148
|
export function equip(item: Item, familiar: Familiar): boolean;
|
|
171
149
|
export function equip(familiar: Familiar, item: Item): boolean;
|
|
172
150
|
export function equipAllFamiliars(): boolean;
|
|
173
|
-
export function equippedAmount(item: Item): number;
|
|
174
|
-
export function equippedAmount(item: Item, includeAllFamiliars: boolean): number;
|
|
151
|
+
export function equippedAmount(item: Item, includeAllFamiliars?: boolean): number;
|
|
175
152
|
export function equippedItem(slot: Slot): Item;
|
|
176
153
|
export function eudora(): string;
|
|
177
154
|
export function eudora(newEudora: string): boolean;
|
|
178
155
|
export function eudoraItem(): Item;
|
|
179
156
|
export function everyCardName(name: string): string;
|
|
180
157
|
export function expectedColdMedicineCabinet(): { [key: string]: Item };
|
|
181
|
-
export function expectedDamage(): number;
|
|
182
|
-
export function expectedDamage(monster: Monster): number;
|
|
158
|
+
export function expectedDamage(monster?: Monster): number;
|
|
183
159
|
export function experienceBonus(): number;
|
|
184
160
|
export function expressionEval(expr: string): number;
|
|
185
161
|
export function extractItems(string: string): { [item: string]: number };
|
|
186
162
|
export function extractMeat(string: string): number;
|
|
187
|
-
export function factType(cls: Class, path: Path, monster: Monster): "none" | "effect" | "item" | "stats" | "hp" | "mp" | "meat" | "modifier";
|
|
188
163
|
export function factType(monster: Monster): "none" | "effect" | "item" | "stats" | "hp" | "mp" | "meat" | "modifier";
|
|
164
|
+
export function factType(cls: Class, path: Path, monster: Monster): "none" | "effect" | "item" | "stats" | "hp" | "mp" | "meat" | "modifier";
|
|
189
165
|
export function familiarEquipment(familiar: Familiar): Item;
|
|
190
166
|
export function familiarEquippedEquipment(familiar: Familiar): Item;
|
|
191
167
|
export function familiarWeight(familiar: Familiar): number;
|
|
192
168
|
export function favoriteFamiliars(): { [familiar: string]: boolean };
|
|
193
|
-
export function faxbot(monsterName: Monster): boolean;
|
|
194
|
-
export function faxbot(monsterName: Monster, botName: string): boolean;
|
|
169
|
+
export function faxbot(monsterName: Monster, botName?: string): boolean;
|
|
195
170
|
export function fightFollowsChoice(): boolean;
|
|
196
171
|
export function fileToArray(filename: string): { [key: number]: string };
|
|
197
172
|
export function fileToBuffer(filename: string): string;
|
|
198
|
-
export function fileToMap(filename: string, result: any): boolean;
|
|
199
|
-
export function fileToMap(filename: string, result: any, compact: boolean): boolean;
|
|
173
|
+
export function fileToMap(filename: string, result: any, compact?: boolean): boolean;
|
|
200
174
|
export function floor(val: number): number;
|
|
201
175
|
export function floristAvailable(): boolean;
|
|
202
176
|
export function flushMonsterManuelCache(): boolean;
|
|
@@ -235,8 +209,7 @@ export function getIngredients(item: Item): { [item: string]: number };
|
|
|
235
209
|
export function getInventory(): { [item: string]: number };
|
|
236
210
|
export function getLocationMonsters(location: Location): { [monster: string]: boolean };
|
|
237
211
|
export function getLocketMonsters(): { [monster: string]: boolean };
|
|
238
|
-
export function getMonsterMapping(): { [monster: string]: Monster };
|
|
239
|
-
export function getMonsterMapping(path: string): { [monster: string]: Monster };
|
|
212
|
+
export function getMonsterMapping(path?: string): { [monster: string]: Monster };
|
|
240
213
|
export function getMonsters(location: Location): Monster[];
|
|
241
214
|
export function getMoods(): string[];
|
|
242
215
|
export function getOutfits(): string[];
|
|
@@ -247,8 +220,7 @@ export function getPermedSkills(): { [skill: string]: boolean };
|
|
|
247
220
|
export function getPlayerId(playerNameValue: string): string;
|
|
248
221
|
export function getPlayerName(playerIdValue: number): string;
|
|
249
222
|
export function getPower(item: Item): number;
|
|
250
|
-
export function getProperty(name: string): string;
|
|
251
|
-
export function getProperty(name: string, globalValue: boolean): string;
|
|
223
|
+
export function getProperty(name: string, globalValue?: boolean): string;
|
|
252
224
|
export function getRelated(item: Item, type: string): { [item: string]: number };
|
|
253
225
|
export function getRevision(): number;
|
|
254
226
|
export function getShop(): { [item: string]: number };
|
|
@@ -304,8 +276,7 @@ export function inMuscleSign(): boolean;
|
|
|
304
276
|
export function inMysticalitySign(): boolean;
|
|
305
277
|
export function inTerrarium(familiar: Familiar): boolean;
|
|
306
278
|
export function inaccessibleReason(master: Coinmaster): string;
|
|
307
|
-
export function indexOf(source: string, search: string): number;
|
|
308
|
-
export function indexOf(source: string, search: string, start: number): number;
|
|
279
|
+
export function indexOf(source: string, search: string, start?: number): number;
|
|
309
280
|
export function inebrietyLimit(): number;
|
|
310
281
|
export function initiativeModifier(): number;
|
|
311
282
|
export function insert(buffer: string, index: number, s: string): string;
|
|
@@ -337,29 +308,23 @@ export function isUnrestricted(thing: string): boolean;
|
|
|
337
308
|
export function isWearingOutfit(outfit: string): boolean;
|
|
338
309
|
export function itemAmount(item: Item): number;
|
|
339
310
|
export function itemDropModifier(): number;
|
|
340
|
-
export function itemDrops(): { [item: string]: number };
|
|
341
|
-
export function
|
|
342
|
-
export function itemDropsArray(): { drop: Item; rate: number; type: string; }[];
|
|
343
|
-
export function itemDropsArray(monster: Monster): { drop: Item; rate: number; type: string; }[];
|
|
344
|
-
export function itemFact(cls: Class, path: Path, monster: Monster): Item;
|
|
311
|
+
export function itemDrops(monster?: Monster): { [item: string]: number };
|
|
312
|
+
export function itemDropsArray(monster?: Monster): { drop: Item; rate: number; type: string; }[];
|
|
345
313
|
export function itemFact(monster: Monster): Item;
|
|
314
|
+
export function itemFact(cls: Class, path: Path, monster: Monster): Item;
|
|
346
315
|
export function itemPockets(): { [key: number]: boolean };
|
|
347
316
|
export function itemType(item: Item): string;
|
|
348
|
-
export function joinStrings(strings: string[]): string;
|
|
349
|
-
export function joinStrings(strings: string[], joiner: string): string;
|
|
317
|
+
export function joinStrings(strings: string[], joiner?: string): string;
|
|
350
318
|
export function jokePockets(): { [key: number]: boolean };
|
|
351
|
-
export function jumpChance(): number;
|
|
352
|
-
export function jumpChance(monster: Monster): number;
|
|
353
|
-
export function jumpChance(
|
|
354
|
-
export function jumpChance(monster: Monster, init: number, ml
|
|
355
|
-
export function jumpChance(location: Location): number;
|
|
356
|
-
export function jumpChance(location: Location, init: number): number;
|
|
357
|
-
export function jumpChance(location: Location, init: number, ml: number): number;
|
|
319
|
+
export function jumpChance(monster?: Monster): number;
|
|
320
|
+
export function jumpChance(monster: Monster, init?: number): number;
|
|
321
|
+
export function jumpChance(location: Location, init?: number): number;
|
|
322
|
+
export function jumpChance(monster: Monster, init: number, ml?: number): number;
|
|
323
|
+
export function jumpChance(location: Location, init: number, ml?: number): number;
|
|
358
324
|
export function knollAvailable(): boolean;
|
|
359
325
|
export function lastChoice(): number;
|
|
360
326
|
export function lastDecision(): number;
|
|
361
|
-
export function lastIndexOf(source: string, search: string): number;
|
|
362
|
-
export function lastIndexOf(source: string, search: string, start: number): number;
|
|
327
|
+
export function lastIndexOf(source: string, search: string, start?: number): number;
|
|
363
328
|
export function lastItemMessage(): string;
|
|
364
329
|
export function lastMonster(): Monster;
|
|
365
330
|
export function lastSkillMessage(): string;
|
|
@@ -369,25 +334,20 @@ export function lightningCost(skill: Skill): number;
|
|
|
369
334
|
export function limitMode(): string;
|
|
370
335
|
export function loadHtml(string: string): string;
|
|
371
336
|
export function lockFamiliarEquipment(lock: boolean): void;
|
|
372
|
-
export function logN(val: number): number;
|
|
373
|
-
export function logN(val: number, base: number): number;
|
|
337
|
+
export function logN(val: number, base?: number): number;
|
|
374
338
|
export function logprint(string: string): void;
|
|
375
339
|
export function makeUrl(string: string, usePostMethod: boolean, encoded: boolean): string;
|
|
376
|
-
export function mallPrice(item: Item): number;
|
|
377
|
-
export function mallPrice(item: Item, maxAge: number): number;
|
|
340
|
+
export function mallPrice(item: Item, maxAge?: number): number;
|
|
378
341
|
export function mallPrices(items: { [key: number]: boolean }): number;
|
|
379
|
-
export function mallPrices(category: string): number;
|
|
380
|
-
export function mallPrices(category: string, tiers: string): number;
|
|
342
|
+
export function mallPrices(category: string, tiers?: string): number;
|
|
381
343
|
export function manaCostModifier(): number;
|
|
382
|
-
export function mapToFile(map: any, filename: string): boolean;
|
|
383
|
-
export function mapToFile(map: any, filename: string, compact: boolean): boolean;
|
|
344
|
+
export function mapToFile(map: any, filename: string, compact?: boolean): boolean;
|
|
384
345
|
export function max(val: number, ...otherVal: number[]): number;
|
|
385
346
|
export function max(val: number, ...otherVal: number[]): number;
|
|
386
347
|
export function maximize(maximizerStringValue: string, isSpeculateOnlyValue: boolean): boolean;
|
|
387
348
|
export function maximize(maximizerStringValue: string, maxPriceValue: number, priceLevelValue: number, isSpeculateOnlyValue: boolean): boolean;
|
|
388
349
|
export function maximize(maximizerStringValue: string, maxPriceValue: number, priceLevelValue: number, isSpeculateOnlyValue: boolean, showEquipment: boolean): { display: string; command: string; score: number; effect: Effect; item: Item; skill: Skill; }[];
|
|
389
|
-
export function meatDrop(): number;
|
|
390
|
-
export function meatDrop(monster: Monster): number;
|
|
350
|
+
export function meatDrop(monster?: Monster): number;
|
|
391
351
|
export function meatDropModifier(): number;
|
|
392
352
|
export function meatPockets(): { [key: number]: number };
|
|
393
353
|
export function min(val: number, ...otherVal: number[]): number;
|
|
@@ -399,24 +359,18 @@ export function modifierEval(expr: string): number;
|
|
|
399
359
|
export function monkeyPaw(item: Item): boolean;
|
|
400
360
|
export function monkeyPaw(effect: Effect): boolean;
|
|
401
361
|
export function monkeyPaw(wish: string): boolean;
|
|
402
|
-
export function monsterAttack(): number;
|
|
403
|
-
export function
|
|
404
|
-
export function
|
|
405
|
-
export function monsterDefense(monster: Monster): number;
|
|
406
|
-
export function monsterElement(): Element;
|
|
407
|
-
export function monsterElement(monster: Monster): Element;
|
|
362
|
+
export function monsterAttack(monster?: Monster): number;
|
|
363
|
+
export function monsterDefense(monster?: Monster): number;
|
|
364
|
+
export function monsterElement(monster?: Monster): Element;
|
|
408
365
|
export function monsterEval(expr: string): number;
|
|
409
366
|
export function monsterFactoidsAvailable(monster: Monster, cachedOnly: boolean): number;
|
|
410
|
-
export function monsterHp(): number;
|
|
411
|
-
export function
|
|
412
|
-
export function monsterInitiative(): number;
|
|
413
|
-
export function monsterInitiative(monster: Monster): number;
|
|
367
|
+
export function monsterHp(monster?: Monster): number;
|
|
368
|
+
export function monsterInitiative(monster?: Monster): number;
|
|
414
369
|
export function monsterLevelAdjustment(): number;
|
|
415
370
|
export function monsterManuelText(monster: Monster): string;
|
|
416
371
|
export function monsterModifier(effect: Effect, modifier: string): Monster;
|
|
417
372
|
export function monsterModifier(effect: Effect, modifier: Modifier): Monster;
|
|
418
|
-
export function monsterPhylum(): Phylum;
|
|
419
|
-
export function monsterPhylum(monster: Monster): Phylum;
|
|
373
|
+
export function monsterPhylum(monster?: Monster): Phylum;
|
|
420
374
|
export function monsterPockets(): { [key: number]: boolean };
|
|
421
375
|
export function moodExecute(multiplicity: number): void;
|
|
422
376
|
export function moodList(): string[];
|
|
@@ -486,8 +440,8 @@ export function nowToInt(): number;
|
|
|
486
440
|
export function nowToString(dateFormatValue: string): string;
|
|
487
441
|
export function npcPrice(item: Item): number;
|
|
488
442
|
export function numberologyPrize(num: number): string;
|
|
489
|
-
export function numericFact(cls: Class, path: Path, monster: Monster): number;
|
|
490
443
|
export function numericFact(monster: Monster): number;
|
|
444
|
+
export function numericFact(cls: Class, path: Path, monster: Monster): number;
|
|
491
445
|
export function numericModifier(modifier: string): number;
|
|
492
446
|
export function numericModifier(modifier: Modifier): number;
|
|
493
447
|
export function numericModifier(type: string, modifier: string): number;
|
|
@@ -498,15 +452,14 @@ export function numericModifier(effect: Effect, modifier: string): number;
|
|
|
498
452
|
export function numericModifier(effect: Effect, modifier: Modifier): number;
|
|
499
453
|
export function numericModifier(skill: Skill, modifier: string): number;
|
|
500
454
|
export function numericModifier(skill: Skill, modifier: Modifier): number;
|
|
501
|
-
export function numericModifier(familiar: Familiar, modifier: string, weight: number, item: Item): number;
|
|
502
455
|
export function numericModifier(thrall: Thrall, modifier: string): number;
|
|
503
456
|
export function numericModifier(thrall: Thrall, modifier: Modifier): number;
|
|
457
|
+
export function numericModifier(familiar: Familiar, modifier: string, weight: number, item: Item): number;
|
|
504
458
|
export function outfit(outfit: string): boolean;
|
|
505
459
|
export function outfitPieces(outfit: string): Item[];
|
|
506
460
|
export function outfitTattoo(outfit: string): string;
|
|
507
461
|
export function outfitTreats(outfit: string): { [item: string]: number };
|
|
508
|
-
export function overdrink(item: Item): boolean;
|
|
509
|
-
export function overdrink(item: Item, count: number): boolean;
|
|
462
|
+
export function overdrink(item: Item, count?: number): boolean;
|
|
510
463
|
export function overdrink(count: number, item: Item): boolean;
|
|
511
464
|
/** @deprecated Changing 'path_id_to_name(xxx)' to 'my_path(xxx).name' will remove this warning */
|
|
512
465
|
export function pathIdToName(value: number): string;
|
|
@@ -519,9 +472,8 @@ export function pickPocket(stat: Stat): { [stat: string]: number };
|
|
|
519
472
|
export function pickPocket(pocketNumber: number): boolean;
|
|
520
473
|
export function pickedPockets(): { [key: number]: boolean };
|
|
521
474
|
export function pickedScraps(): { [key: number]: boolean };
|
|
522
|
-
export function ping(): { page: string; count: number; low: number; high: number; total: number; bytes: number; average: number; bps: number; };
|
|
475
|
+
export function ping(pingTest?: string): { page: string; count: number; low: number; high: number; total: number; bytes: number; average: number; bps: number; };
|
|
523
476
|
export function ping(count: number, page: string): { page: string; count: number; low: number; high: number; total: number; bytes: number; average: number; bps: number; };
|
|
524
|
-
export function ping(pingTest: string): { page: string; count: number; low: number; high: number; total: number; bytes: number; average: number; bps: number; };
|
|
525
477
|
export function pocketEffects(pocket: number): { [effect: string]: number };
|
|
526
478
|
export function pocketItems(pocket: number): { [item: string]: number };
|
|
527
479
|
export function pocketJoke(pocket: number): string;
|
|
@@ -537,19 +489,15 @@ export function potentialPockets(item: Item): { [key: number]: number };
|
|
|
537
489
|
export function potentialPockets(stat: Stat): { [key: number]: number };
|
|
538
490
|
export function preValidateAdventure(location: Location): boolean;
|
|
539
491
|
export function prepareForAdventure(location: Location): boolean;
|
|
540
|
-
export function print(): void;
|
|
541
|
-
export function print(string: string): void;
|
|
542
|
-
export function
|
|
543
|
-
export function printHtml(string: string, logToSession: boolean): void;
|
|
544
|
-
export function printHtml(string: string): void;
|
|
492
|
+
export function print(string?: string): void;
|
|
493
|
+
export function print(string: string, color?: string): void;
|
|
494
|
+
export function printHtml(string: string, logToSession?: boolean): void;
|
|
545
495
|
export function propertyDefaultValue(nameValue: string): string;
|
|
546
|
-
export function propertyExists(nameValue: string): boolean;
|
|
547
|
-
export function propertyExists(nameValue: string, globalValue: boolean): boolean;
|
|
496
|
+
export function propertyExists(nameValue: string, globalValue?: boolean): boolean;
|
|
548
497
|
export function propertyHasDefault(nameValue: string): boolean;
|
|
549
498
|
export function pullsRemaining(): number;
|
|
550
499
|
export function putCloset(meat: number): boolean;
|
|
551
|
-
export function putCloset(item: Item): boolean;
|
|
552
|
-
export function putCloset(item: Item, count: number): boolean;
|
|
500
|
+
export function putCloset(item: Item, count?: number): boolean;
|
|
553
501
|
export function putCloset(count: number, item: Item): boolean;
|
|
554
502
|
export function putDisplay(count: number, item: Item): boolean;
|
|
555
503
|
export function putDisplay(item: Item, count: number): boolean;
|
|
@@ -570,8 +518,7 @@ export function refreshStash(): boolean;
|
|
|
570
518
|
export function refreshStatus(): boolean;
|
|
571
519
|
export function removeItemCondition(count: number, item: Item): void;
|
|
572
520
|
export function removeItemCondition(item: Item, count: number): void;
|
|
573
|
-
export function removeProperty(nameValue: string): string;
|
|
574
|
-
export function removeProperty(nameValue: string, globalValue: boolean): string;
|
|
521
|
+
export function removeProperty(nameValue: string, globalValue?: boolean): string;
|
|
575
522
|
export function renameProperty(oldNameValue: string, newNameValue: string): boolean;
|
|
576
523
|
export function replace(buffer: string, start: number, finish: number, s: string): string;
|
|
577
524
|
export function replaceString(source: string, searchValue: string, replaceValue: string): string;
|
|
@@ -581,24 +528,19 @@ export function repriceShop(priceValue: number, limitValue: number, itemValue: I
|
|
|
581
528
|
export function restorationPockets(): { [key: number]: boolean };
|
|
582
529
|
export function restoreHp(amount: number): boolean;
|
|
583
530
|
export function restoreMp(amount: number): boolean;
|
|
584
|
-
export function retrieveItem(item: Item): boolean;
|
|
585
|
-
export function retrieveItem(item: Item, count: number): boolean;
|
|
531
|
+
export function retrieveItem(item: Item, count?: number): boolean;
|
|
586
532
|
export function retrieveItem(count: number, item: Item): boolean;
|
|
587
|
-
export function retrievePrice(item: Item): number;
|
|
588
|
-
export function retrievePrice(item: Item, count: number): number;
|
|
589
|
-
export function retrievePrice(count: number, item: Item): number;
|
|
590
|
-
export function retrievePrice(item: Item, count: number, exact: boolean): number;
|
|
591
|
-
export function retrievePrice(count: number, item: Item, exact: boolean): number;
|
|
533
|
+
export function retrievePrice(item: Item, count?: number): number;
|
|
534
|
+
export function retrievePrice(item: Item, count: number, exact?: boolean): number;
|
|
535
|
+
export function retrievePrice(count: number, item: Item, exact?: boolean): number;
|
|
592
536
|
export function reverseNumberology(): { [key: number]: number };
|
|
593
537
|
export function reverseNumberology(advDelta: number, spleenDelta: number): { [key: number]: number };
|
|
594
538
|
export function rollover(): number;
|
|
595
539
|
export function round(val: number): number;
|
|
596
|
-
export function runChoice(decision: number): string;
|
|
597
|
-
export function runChoice(decision: number, extra: string): string;
|
|
540
|
+
export function runChoice(decision: number, extra?: string): string;
|
|
598
541
|
export function runChoice(decision: number, extra: boolean): string;
|
|
599
542
|
export function runChoice(decision: number, custom: boolean, more: string): string;
|
|
600
|
-
export function runCombat(): string;
|
|
601
|
-
export function runCombat(filterFunction: string | ((round: number, monster: Monster, text: string) => string)): string;
|
|
543
|
+
export function runCombat(filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): string;
|
|
602
544
|
export function runTurn(): string;
|
|
603
545
|
export function runaway(): string;
|
|
604
546
|
export function sausageGoblinChance(): number;
|
|
@@ -627,8 +569,7 @@ export function slashCount(item: Item): number;
|
|
|
627
569
|
export function soulsauceCost(skill: Skill): number;
|
|
628
570
|
export function spleenLimit(): number;
|
|
629
571
|
export function splitModifiers(modifiers: string): { [modifier: string]: string };
|
|
630
|
-
export function splitString(string: string): string[];
|
|
631
|
-
export function splitString(string: string, regex: string): string[];
|
|
572
|
+
export function splitString(string: string, regex?: string): string[];
|
|
632
573
|
export function squareRoot(val: number): number;
|
|
633
574
|
export function startsWith(source: string, prefix: string): boolean;
|
|
634
575
|
export function stashAmount(item: Item): number;
|
|
@@ -641,8 +582,8 @@ export function steal(): string;
|
|
|
641
582
|
export function stillsAvailable(): number;
|
|
642
583
|
export function stopCounter(label: string): void;
|
|
643
584
|
export function storageAmount(item: Item): number;
|
|
644
|
-
export function stringFact(cls: Class, path: Path, monster: Monster): string;
|
|
645
585
|
export function stringFact(monster: Monster): string;
|
|
586
|
+
export function stringFact(cls: Class, path: Path, monster: Monster): string;
|
|
646
587
|
export function stringModifier(modifier: string): string;
|
|
647
588
|
export function stringModifier(modifier: Modifier): string;
|
|
648
589
|
export function stringModifier(type: string, modifier: string): string;
|
|
@@ -652,26 +593,20 @@ export function stringModifier(item: Item, modifier: Modifier): string;
|
|
|
652
593
|
export function stringModifier(effect: Effect, modifier: string): string;
|
|
653
594
|
export function stringModifier(effect: Effect, modifier: Modifier): string;
|
|
654
595
|
export function stunSkill(): Skill;
|
|
655
|
-
export function substring(source: string, start: number): string;
|
|
656
|
-
export function substring(source: string, start: number, finish: number): string;
|
|
596
|
+
export function substring(source: string, start: number, finish?: number): string;
|
|
657
597
|
export function svnAtHead(project: string): boolean;
|
|
658
598
|
export function svnExists(project: string): boolean;
|
|
659
599
|
export function svnInfo(script: string): { url: string; revision: number; last_changed_author: string; last_changed_rev: number; last_changed_date: string; };
|
|
660
600
|
export function svnList(): string[];
|
|
661
|
-
export function sweetSynthesis(effect: Effect): boolean;
|
|
662
|
-
export function sweetSynthesis(count: number, effect: Effect): boolean;
|
|
663
|
-
export function sweetSynthesis(effect: Effect, count: number): boolean;
|
|
664
|
-
export function sweetSynthesis(count: number, effect: Effect, flags: number): boolean;
|
|
601
|
+
export function sweetSynthesis(effect: Effect, count?: number): boolean;
|
|
665
602
|
export function sweetSynthesis(item1: Item, item2: Item): boolean;
|
|
603
|
+
export function sweetSynthesis(count: number, effect: Effect, flags?: number): boolean;
|
|
666
604
|
export function sweetSynthesis(count: number, item1: Item, item2: Item): boolean;
|
|
667
|
-
export function sweetSynthesisPair(effect: Effect): Item[];
|
|
668
|
-
export function
|
|
669
|
-
export function sweetSynthesisPairing(effect: Effect, item: Item): Item[];
|
|
670
|
-
export function sweetSynthesisPairing(effect: Effect, item: Item, flags: number): Item[];
|
|
605
|
+
export function sweetSynthesisPair(effect: Effect, flags?: number): Item[];
|
|
606
|
+
export function sweetSynthesisPairing(effect: Effect, item: Item, flags?: number): Item[];
|
|
671
607
|
export function sweetSynthesisResult(item1: Item, item2: Item): Effect;
|
|
672
608
|
export function takeCloset(meat: number): boolean;
|
|
673
|
-
export function takeCloset(item: Item): boolean;
|
|
674
|
-
export function takeCloset(item: Item, count: number): boolean;
|
|
609
|
+
export function takeCloset(item: Item, count?: number): boolean;
|
|
675
610
|
export function takeCloset(count: number, item: Item): boolean;
|
|
676
611
|
export function takeDisplay(item: Item, count: number): boolean;
|
|
677
612
|
export function takeDisplay(count: number, item: Item): boolean;
|
|
@@ -681,8 +616,7 @@ export function takeStash(item: Item, count: number): boolean;
|
|
|
681
616
|
export function takeStash(count: number, item: Item): boolean;
|
|
682
617
|
export function takeStorage(item: Item, count: number): boolean;
|
|
683
618
|
export function takeStorage(count: number, item: Item): boolean;
|
|
684
|
-
export function tavern(): number;
|
|
685
|
-
export function tavern(goal: string): number;
|
|
619
|
+
export function tavern(goal?: string): number;
|
|
686
620
|
export function throwItem(item: Item): string;
|
|
687
621
|
export function throwItems(item1: Item, item2: Item): string;
|
|
688
622
|
export function thunderCost(skill: Skill): number;
|
|
@@ -737,10 +671,9 @@ export function toPhylum(value: string): Phylum;
|
|
|
737
671
|
export function toPlural(item: Item): string;
|
|
738
672
|
export function toServant(value: string): Servant;
|
|
739
673
|
export function toServant(value: number): Servant;
|
|
740
|
-
export function toSkill(name: string): Skill;
|
|
741
|
-
export function toSkill(name: string, type: string): Skill;
|
|
742
674
|
export function toSkill(id: number): Skill;
|
|
743
675
|
export function toSkill(effect: Effect): Skill;
|
|
676
|
+
export function toSkill(name: string, type?: string): Skill;
|
|
744
677
|
export function toSlot(item: string): Slot;
|
|
745
678
|
export function toSlot(item: Item): Slot;
|
|
746
679
|
export function toStat(value: string): Stat;
|
|
@@ -773,28 +706,22 @@ export function unusualConstructDisc(): Item;
|
|
|
773
706
|
export function updateCandyPrices(): void;
|
|
774
707
|
export function urlDecode(string: string): string;
|
|
775
708
|
export function urlEncode(string: string): string;
|
|
776
|
-
export function use(item: Item): boolean;
|
|
777
|
-
export function use(item: Item, count: number): boolean;
|
|
709
|
+
export function use(item: Item, count?: number): boolean;
|
|
778
710
|
export function use(count: number, item: Item): boolean;
|
|
779
711
|
export function useFamiliar(familiar: Familiar): boolean;
|
|
780
712
|
export function useServant(servant: Servant): boolean;
|
|
781
|
-
export function useSkill(skill: Skill, count: number): boolean;
|
|
782
|
-
export function useSkill(count: number, skill: Skill): boolean;
|
|
783
|
-
export function useSkill(skill: Skill, count: number, target: string): boolean;
|
|
784
|
-
export function useSkill(count: number, skill: Skill, target: string): boolean;
|
|
785
713
|
export function useSkill(skill: Skill): string;
|
|
714
|
+
export function useSkill(skill: Skill, count: number, target?: string): boolean;
|
|
715
|
+
export function useSkill(count: number, skill: Skill, target?: string): boolean;
|
|
786
716
|
export function userConfirm(message: string): boolean;
|
|
787
717
|
export function userConfirm(message: string, timeOut: number, defaultBoolean: boolean): boolean;
|
|
788
|
-
export function userNotify(message: string): void;
|
|
789
|
-
export function
|
|
790
|
-
export function userPrompt(message: string): string;
|
|
791
|
-
export function userPrompt(message: string, options: any): string;
|
|
718
|
+
export function userNotify(message: string, onlyShowWhenHidden?: boolean): void;
|
|
719
|
+
export function userPrompt(message: string, options?: any): string;
|
|
792
720
|
export function userPrompt(message: string, timeOut: number, defaultString: string): string;
|
|
793
721
|
export function visit(master: Coinmaster): boolean;
|
|
794
|
-
export function visitUrl(): string;
|
|
795
|
-
export function visitUrl(string: string): string;
|
|
796
|
-
export function visitUrl(string: string, usePostMethod: boolean): string;
|
|
797
|
-
export function visitUrl(string: string, usePostMethod: boolean, encoded: boolean): string;
|
|
722
|
+
export function visitUrl(string?: string): string;
|
|
723
|
+
export function visitUrl(string: string, usePostMethod?: boolean): string;
|
|
724
|
+
export function visitUrl(string: string, usePostMethod: boolean, encoded?: boolean): string;
|
|
798
725
|
export function votingBoothInitiatives(clss: Class, path: Path, daycount: number): { [key: string]: boolean };
|
|
799
726
|
export function votingBoothInitiatives(clss: number, path: number, daycount: number): { [key: string]: boolean };
|
|
800
727
|
export function wait(delay: number): void;
|