typed-adventureland
Version:
Strong TypeScript declarations for the game AdventureLand
20 lines (19 loc) • 884 B
TypeScript
export type GemKey = "candy0" | "candy0v2" | "candy0v3" | "candy1" | "candy1v2" | "candy1v3" | "candycane" | "gem0" | "gem1" | "gem2" | "gem3" | "gift0" | "gift1" | "greenenvelope" | "mistletoe" | "redenvelope" | "redenvelopev2" | "redenvelopev3" | "redenvelopev4";
export interface GGem {
a?: number | boolean;
/** 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;
ignore?: boolean;
/** The full display name of an item. */
name: string;
/** Indicates how many of this items you can stack. Set if the item is stackable. */
s: number;
/** The skin of the item. */
skin: GemKey;
/** The type of item, `shield`, `weapon`, `gloves`... */
type: "gem";
}