ShopItem beta
Interface of @v12-engine/client
export interface ShopItemSomething a shop sells, the way its window shows it (ShopInfo.items)
Members
affordable
affordable: boolean;Whether the hero's player has the money for it now, with the parts it carries taken off
blocked
blocked?: string;Why it cannot be bought right now, if it cannot
carried
carried: string[];The parts of it the hero carries, by id: taken off the price, and lit in the build tree
description
description?: string;What it does, in words, for its tooltip and the details
from
from: string[];What it is made of, by id (ItemDef.from)
icon
icon?: string;Its picture (IconSet.items)
id
id: string;The item type's id
into
into: string[];What is made of it, by id, of what the shop sells
name
name: string;The item's name as the player reads it
owned
owned: number;How many the hero carries
price
price: number;What is left of that for this hero, which may carry parts of it
stock
stock?: number;How many are left, for what runs out
suited
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
suits: CallingTag[];The callings it is meant for (ItemDef.suits), as the game has them
tags
tags: ShopTag[];Its tags (ItemDef.tags), named and coloured where the game names them
tier
tier: string;Its tier (ItemDef.tier), epic read as intermediate: the heading it is under
total
total: number;What all of it costs