kolmafia 5.27900.0 → 5.27902.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 +5 -59
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// v5.
|
|
2
|
-
// Generated by KoLmafia
|
|
1
|
+
// v5.27902.0
|
|
2
|
+
// Generated by KoLmafia r27902 with type generator v5
|
|
3
3
|
type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
|
|
4
4
|
type ModifierValueType = "boolean" | "none" | "numeric" | "string";
|
|
5
5
|
export function abort(string: string): never;
|
|
@@ -813,15 +813,12 @@ export function writeln(string: string): void;
|
|
|
813
813
|
export function xpath(html: string, xpath: string): string[];
|
|
814
814
|
export function zap(item: Item): Item;
|
|
815
815
|
declare abstract class MafiaClass {
|
|
816
|
-
static get<T extends MafiaClass>(name: (string | number)): T;
|
|
817
|
-
static get<T extends MafiaClass>(names: readonly (string | number)[]): T[];
|
|
818
|
-
static all<T extends MafiaClass>(): T[];
|
|
816
|
+
static get<T extends MafiaClass>(this: { new (): T; }, name: (string | number)): T;
|
|
817
|
+
static get<T extends MafiaClass>(this: { new (): T; }, names: readonly (string | number)[]): T[];
|
|
818
|
+
static all<T extends MafiaClass>(this: { new (): T; }): T[];
|
|
819
819
|
static none: MafiaClass;
|
|
820
820
|
}
|
|
821
821
|
export class Bounty extends MafiaClass {
|
|
822
|
-
static get(name: string): Bounty;
|
|
823
|
-
static get(names: readonly string[]): Bounty[];
|
|
824
|
-
static all<T = Bounty>(): T[];
|
|
825
822
|
static none: Bounty;
|
|
826
823
|
/**
|
|
827
824
|
* Plural */
|
|
@@ -847,9 +844,6 @@ export class Bounty extends MafiaClass {
|
|
|
847
844
|
}
|
|
848
845
|
export type ClassType = "Accordion Thief" | "Avatar of Boris" | "Avatar of Jarlsberg" | "Avatar of Sneaky Pete" | "Beanslinger" | "Cheese Wizard" | "Cow Puncher" | "Disco Bandit" | "Ed the Undying" | "Gelatinous Noob" | "Grey Goo" | "Jazz Agent" | "Pastamancer" | "Pig Skinner" | "Plumber" | "Sauceror" | "Seal Clubber" | "Snake Oiler" | "Turtle Tamer" | "Vampyre" | "WereProfessor" | "Zombie Master";
|
|
849
846
|
export class Class extends MafiaClass {
|
|
850
|
-
static get(name: (ClassType | number)): Class;
|
|
851
|
-
static get(names: readonly (ClassType | number)[]): Class[];
|
|
852
|
-
static all<T = Class>(): T[];
|
|
853
847
|
static none: Class;
|
|
854
848
|
toString(): ClassType;
|
|
855
849
|
/**
|
|
@@ -863,9 +857,6 @@ export class Class extends MafiaClass {
|
|
|
863
857
|
readonly path: Path;
|
|
864
858
|
}
|
|
865
859
|
export class Coinmaster extends MafiaClass {
|
|
866
|
-
static get(name: string): Coinmaster;
|
|
867
|
-
static get(names: readonly string[]): Coinmaster[];
|
|
868
|
-
static all<T = Coinmaster>(): T[];
|
|
869
860
|
static none: Coinmaster;
|
|
870
861
|
/**
|
|
871
862
|
* Token */
|
|
@@ -890,9 +881,6 @@ export class Coinmaster extends MafiaClass {
|
|
|
890
881
|
readonly nickname: string;
|
|
891
882
|
}
|
|
892
883
|
export class Effect extends MafiaClass {
|
|
893
|
-
static get(name: (string | number)): Effect;
|
|
894
|
-
static get(names: readonly (string | number)[]): Effect[];
|
|
895
|
-
static all<T = Effect>(): T[];
|
|
896
884
|
static none: Effect;
|
|
897
885
|
/**
|
|
898
886
|
* Id */
|
|
@@ -930,9 +918,6 @@ export class Effect extends MafiaClass {
|
|
|
930
918
|
}
|
|
931
919
|
export type ElementType = "bad spelling" | "cold" | "hot" | "shadow" | "sleaze" | "slime" | "spooky" | "stench" | "supercold";
|
|
932
920
|
export class Element extends MafiaClass {
|
|
933
|
-
static get(name: ElementType): Element;
|
|
934
|
-
static get(names: readonly ElementType[]): Element[];
|
|
935
|
-
static all<T = Element>(): T[];
|
|
936
921
|
static none: Element;
|
|
937
922
|
toString(): ElementType;
|
|
938
923
|
/**
|
|
@@ -940,9 +925,6 @@ export class Element extends MafiaClass {
|
|
|
940
925
|
readonly image: string;
|
|
941
926
|
}
|
|
942
927
|
export class Familiar extends MafiaClass {
|
|
943
|
-
static get(name: (string | number)): Familiar;
|
|
944
|
-
static get(names: readonly (string | number)[]): Familiar[];
|
|
945
|
-
static all<T = Familiar>(): T[];
|
|
946
928
|
static none: Familiar;
|
|
947
929
|
/**
|
|
948
930
|
* Id */
|
|
@@ -1069,9 +1051,6 @@ export class Familiar extends MafiaClass {
|
|
|
1069
1051
|
readonly pokeAttribute: string;
|
|
1070
1052
|
}
|
|
1071
1053
|
export class Item extends MafiaClass {
|
|
1072
|
-
static get(name: (string | number)): Item;
|
|
1073
|
-
static get(names: readonly (string | number)[]): Item[];
|
|
1074
|
-
static all<T = Item>(): T[];
|
|
1075
1054
|
static none: Item;
|
|
1076
1055
|
/**
|
|
1077
1056
|
* Id */
|
|
@@ -1213,9 +1192,6 @@ export class Item extends MafiaClass {
|
|
|
1213
1192
|
readonly recipe: Item;
|
|
1214
1193
|
}
|
|
1215
1194
|
export class Location extends MafiaClass {
|
|
1216
|
-
static get(name: (string | number)): Location;
|
|
1217
|
-
static get(names: readonly (string | number)[]): Location[];
|
|
1218
|
-
static all<T = Location>(): T[];
|
|
1219
1195
|
static none: Location;
|
|
1220
1196
|
/**
|
|
1221
1197
|
* Id */
|
|
@@ -1279,9 +1255,6 @@ export class Location extends MafiaClass {
|
|
|
1279
1255
|
readonly pledgeAllegiance: string;
|
|
1280
1256
|
}
|
|
1281
1257
|
export class Modifier extends MafiaClass {
|
|
1282
|
-
static get(name: string): Modifier;
|
|
1283
|
-
static get(names: readonly string[]): Modifier[];
|
|
1284
|
-
static all<T = Modifier>(): T[];
|
|
1285
1258
|
static none: Modifier;
|
|
1286
1259
|
/**
|
|
1287
1260
|
* Name */
|
|
@@ -1291,9 +1264,6 @@ export class Modifier extends MafiaClass {
|
|
|
1291
1264
|
readonly type: ModifierValueType;
|
|
1292
1265
|
}
|
|
1293
1266
|
export class Monster extends MafiaClass {
|
|
1294
|
-
static get(name: (string | number)): Monster;
|
|
1295
|
-
static get(names: readonly (string | number)[]): Monster[];
|
|
1296
|
-
static all<T = Monster>(): T[];
|
|
1297
1267
|
static none: Monster;
|
|
1298
1268
|
/**
|
|
1299
1269
|
* Name */
|
|
@@ -1408,9 +1378,6 @@ export class Monster extends MafiaClass {
|
|
|
1408
1378
|
readonly parts: readonly string[];
|
|
1409
1379
|
}
|
|
1410
1380
|
export class Path extends MafiaClass {
|
|
1411
|
-
static get(name: string): Path;
|
|
1412
|
-
static get(names: readonly string[]): Path[];
|
|
1413
|
-
static all<T = Path>(): T[];
|
|
1414
1381
|
static none: Path;
|
|
1415
1382
|
/**
|
|
1416
1383
|
* Id */
|
|
@@ -1433,9 +1400,6 @@ export class Path extends MafiaClass {
|
|
|
1433
1400
|
}
|
|
1434
1401
|
export type PhylumType = "beast" | "bug" | "constellation" | "construct" | "demon" | "dude" | "elemental" | "elf" | "fish" | "goblin" | "hippy" | "hobo" | "horror" | "humanoid" | "mer-kin" | "orc" | "penguin" | "pirate" | "plant" | "slime" | "undead" | "weird";
|
|
1435
1402
|
export class Phylum extends MafiaClass {
|
|
1436
|
-
static get(name: PhylumType): Phylum;
|
|
1437
|
-
static get(names: readonly PhylumType[]): Phylum[];
|
|
1438
|
-
static all<T = Phylum>(): T[];
|
|
1439
1403
|
static none: Phylum;
|
|
1440
1404
|
toString(): PhylumType;
|
|
1441
1405
|
/**
|
|
@@ -1444,9 +1408,6 @@ export class Phylum extends MafiaClass {
|
|
|
1444
1408
|
}
|
|
1445
1409
|
export type ServantType = "Assassin" | "Belly-Dancer" | "Bodyguard" | "Cat" | "Maid" | "Priest" | "Scribe";
|
|
1446
1410
|
export class Servant extends MafiaClass {
|
|
1447
|
-
static get(name: (ServantType | number)): Servant;
|
|
1448
|
-
static get(names: readonly (ServantType | number)[]): Servant[];
|
|
1449
|
-
static all<T = Servant>(): T[];
|
|
1450
1411
|
static none: Servant;
|
|
1451
1412
|
toString(): ServantType;
|
|
1452
1413
|
/**
|
|
@@ -1478,9 +1439,6 @@ export class Servant extends MafiaClass {
|
|
|
1478
1439
|
readonly level21Ability: string;
|
|
1479
1440
|
}
|
|
1480
1441
|
export class Skill extends MafiaClass {
|
|
1481
|
-
static get(name: (string | number)): Skill;
|
|
1482
|
-
static get(names: readonly (string | number)[]): Skill[];
|
|
1483
|
-
static all<T = Skill>(): T[];
|
|
1484
1442
|
static none: Skill;
|
|
1485
1443
|
/**
|
|
1486
1444
|
* Id */
|
|
@@ -1542,25 +1500,16 @@ export class Skill extends MafiaClass {
|
|
|
1542
1500
|
}
|
|
1543
1501
|
export type SlotType = "acc1" | "acc2" | "acc3" | "back" | "bootskin" | "bootspur" | "buddy-bjorn" | "card-sleeve" | "crown-of-thrones" | "fakehand" | "familiar" | "folder1" | "folder2" | "folder3" | "folder4" | "folder5" | "hat" | "holster" | "off-hand" | "pants" | "shirt" | "sticker1" | "sticker2" | "sticker3" | "weapon";
|
|
1544
1502
|
export class Slot extends MafiaClass {
|
|
1545
|
-
static get(name: (SlotType | number)): Slot;
|
|
1546
|
-
static get(names: readonly (SlotType | number)[]): Slot[];
|
|
1547
|
-
static all<T = Slot>(): T[];
|
|
1548
1503
|
static none: Slot;
|
|
1549
1504
|
toString(): SlotType;
|
|
1550
1505
|
}
|
|
1551
1506
|
export type StatType = "Moxie" | "Muscle" | "Mysticality";
|
|
1552
1507
|
export class Stat extends MafiaClass {
|
|
1553
|
-
static get(name: StatType): Stat;
|
|
1554
|
-
static get(names: readonly StatType[]): Stat[];
|
|
1555
|
-
static all<T = Stat>(): T[];
|
|
1556
1508
|
static none: Stat;
|
|
1557
1509
|
toString(): StatType;
|
|
1558
1510
|
}
|
|
1559
1511
|
export type ThrallType = "Angel Hair Wisp" | "Elbow Macaroni" | "Lasagmbie" | "Penne Dreadful" | "Spaghetti Elemental" | "Spice Ghost" | "Vampieroghi" | "Vermincelli";
|
|
1560
1512
|
export class Thrall extends MafiaClass {
|
|
1561
|
-
static get(name: (ThrallType | number)): Thrall;
|
|
1562
|
-
static get(names: readonly (ThrallType | number)[]): Thrall[];
|
|
1563
|
-
static all<T = Thrall>(): T[];
|
|
1564
1513
|
static none: Thrall;
|
|
1565
1514
|
toString(): ThrallType;
|
|
1566
1515
|
/**
|
|
@@ -1586,9 +1535,6 @@ export class Thrall extends MafiaClass {
|
|
|
1586
1535
|
readonly currentModifiers: string;
|
|
1587
1536
|
}
|
|
1588
1537
|
export class Vykea extends MafiaClass {
|
|
1589
|
-
static get(name: string): Vykea;
|
|
1590
|
-
static get(names: readonly string[]): Vykea[];
|
|
1591
|
-
static all<T = Vykea>(): T[];
|
|
1592
1538
|
static none: Vykea;
|
|
1593
1539
|
/**
|
|
1594
1540
|
* Id */
|