UNPKG

typed-adventureland

Version:
21 lines (20 loc) 812 B
import type { NpcRole } from "../npcs/Npcs"; export type CosmeticItemKey = "cosmo0" | "cosmo1" | "cosmo2" | "cosmo3" | "cosmo4"; export interface GCosmeticItem { cash: number; /** Refers to how many items are needed to exchange (see .quest as well!) */ e?: number; 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: NpcRole; /** Indicates how many of this items you can stack. Set if the item is stackable. */ s: number; /** The skin of the item. */ skin: CosmeticItemKey; /** The type of item, `shield`, `weapon`, `gloves`... */ type: "cosmetics"; }