Skip to content

ShopItem beta ​

Interface of @v12-engine/client

ts
export interface ShopItem

Something a shop sells, the way its window shows it (ShopInfo.items)

Members ​

affordable ​

ts
affordable: boolean;

Whether the hero's player has the money for it now, with the parts it carries taken off

blocked ​

ts
blocked?: string;

Why it cannot be bought right now, if it cannot

carried ​

ts
carried: string[];

The parts of it the hero carries, by id: taken off the price, and lit in the build tree

description ​

ts
description?: string;

What it does, in words, for its tooltip and the details

from ​

ts
from: string[];

What it is made of, by id (ItemDef.from)

icon ​

ts
icon?: string;

Its picture (IconSet.items)

id ​

ts
id: string;

The item type's id

into ​

ts
into: string[];

What is made of it, by id, of what the shop sells

name ​

ts
name: string;

The item's name as the player reads it

owned ​

ts
owned: number;

How many the hero carries

price ​

ts
price: number;

What is left of that for this hero, which may carry parts of it

stock ​

ts
stock?: number;

How many are left, for what runs out

suited ​

ts
suited: number;

How well it suits the hero: the sum of the hero's strengths in the callings it is for (HeroDef.callings), 0 for one that suits none of them. What the shop's recommendations for the hero are sorted by

suits ​

ts
suits: CallingTag[];

The callings it is meant for (ItemDef.suits), as the game has them

tags ​

ts
tags: ShopTag[];

Its tags (ItemDef.tags), named and coloured where the game names them

tier ​

ts
tier: string;

Its tier (ItemDef.tier), epic read as intermediate: the heading it is under

total ​

ts
total: number;

What all of it costs