typed-adventureland
Version:
Strong TypeScript declarations for the game AdventureLand
21 lines (20 loc) • 947 B
TypeScript
export type QuestKey = "basketofeggs" | "egg0" | "egg1" | "egg2" | "egg3" | "egg4" | "egg5" | "egg6" | "egg7" | "egg8" | "gemfragment" | "goldenegg" | "leather" | "ornament" | "seashell" | "x0" | "x1" | "x2" | "x3" | "x4" | "x5" | "x6" | "x7" | "x8" | "xbox";
export interface GQuest {
a?: 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;
/** The full display name of an item. */
name: string;
/** Indicates the `quest` that this item is needed to complete. */
quest?: QuestKey;
/** Indicates how many of this items you can stack. Set if the item is stackable. */
s: number;
/** The skin of the item. */
skin: QuestKey;
/** The type of item, `shield`, `weapon`, `gloves`... */
type: "quest";
}