typed-adventureland
Version:
Strong TypeScript declarations for the game AdventureLand
27 lines (26 loc) • 1.2 kB
TypeScript
export type MiscKey = "5bucks" | "coal" | "glitch" | "ledger" | "mysterybox" | "stick" | "storagebox" | "troll";
export interface GMisc {
a?: boolean;
/** Contains information about what stats the item will gain with each compound level. Set if the item is compoundable. */
compound?: {};
/** Refers to how many items are needed to exchange (see .quest as well!) */
e?: number;
event?: boolean;
explanation: string;
/** Cost of the item in gold, if an NPC were to sell this item. */
g: number;
/** The first number refers to what level the item begins being `high` grade, the second for `rare`. */
grades?: [number, number, number, number];
ignore?: boolean;
/** The full display name of an item. */
name: string;
rare?: boolean;
/** Indicates how many of this items you can stack. Set if the item is stackable. */
s?: number;
/** The skin of the item. */
skin: MiscKey;
/** The type of item, `shield`, `weapon`, `gloves`... */
type: "misc";
/** Contains information about what stats the item will gain with each upgrade level. Set if the item is upgradable. */
upgrade?: {};
}