Skip to content

purchases beta ​

Variable of @v12-engine/engine

ts
purchases: import("./components").Component<Purchase[], PurchaseInfo[]>

The purchases a hero may still undo (Purchase, undoBuy): kept on the buyer, sent to its player (PurchaseInfo: each with the seconds left to undo it), dropped as they run out, as the hero leaves the shop or as the item is used (expirePurchases, the abilities system's every tick)