You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
priceMode: ITEMS. An article is sold against one or several items instead of currency: itemPrice on the item lists what it costs (an ItemCost = item + quantity per unit bought), defaultItemPrice on the shop covers every ITEMS article that declares none. The article's
list replaces the shop's, it is never added to it. One item for several, or several for
several: every line is required at once, and buying N units multiplies every line.
An ITEMS article with no price anywhere is refused and logged, never given away: an empty
price is not a zero price.
Payment is simulated on the whole inventory before anything is removed — two price lines
targeting the same stacks cannot both claim it — and the bought item's space is checked before
the withdrawal, since a barter has no refund. Catalogue items are matched by identity.
cannotAffordItemsMessage ({missing}, {amount}) and the {item_price} lore token, one
dash-prefixed line per requested item. {buy}/{sell} lines are dropped on such an article;
the buy_price/sell_price placeholders read —. "Buy max" works on barter articles.
An ITEMS article cannot be sold back for currency: its sell price is zero.