typed-adventureland
Version:
Strong TypeScript declarations for the game AdventureLand
64 lines (63 loc) • 2.07 kB
TypeScript
import type { SetKey } from "../sets/Sets";
export type RingKey = "armorring" | "cdarktristone" | "cring" | "ctristone" | "darktristone" | "dexring" | "goldring" | "intring" | "resistancering" | "ringhs" | "ringofluck" | "ringsj" | "solitaire" | "strring" | "suckerpunch" | "trigger" | "tristone" | "vitring" | "vring" | "zapper";
export interface GRing {
a?: boolean;
ability?: string;
action?: string;
apiercing?: number;
armor?: number;
attr0?: number;
bling?: number;
/** Contains information about what stats the item will gain with each compound level. Set if the item is compoundable. */
compound: {
apiercing?: number;
armor?: number;
bling?: number;
crit?: number;
dex?: number;
dreturn?: number;
gold?: number;
int?: number;
lifesteal?: number;
luck?: number;
reflection?: number;
resistance?: number;
rpiercing?: number;
str?: number;
stun?: number;
vit?: number;
};
courage?: number;
crit?: number;
dex?: number;
dreturn?: number;
edge?: number;
evasion?: number;
event?: boolean;
explanation?: string;
/** Cost of the item in gold, if an NPC were to sell this item. */
g: number;
gold?: 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;
int?: number;
lifesteal?: number;
luck?: number;
/** The full display name of an item. */
name: string;
onclick?: string;
pnresistance?: number;
resistance?: number;
rpiercing?: number;
/** The set this item is part of `G.sets.wanderers`. */
set?: SetKey;
/** The skin of the item. */
skin: string;
skin_a?: string;
str?: number;
stun?: number;
/** The type of item, `shield`, `weapon`, `gloves`... */
type: "ring";
vit?: number;
}