Skip to content

Release V.1.10 - TW v0.9 - 177

Choose a tag to compare

@RenaudRl RenaudRl released this 14 Sep 20:43
· 10 commits to main since this release

Typewriter 0.9.0-beta-177 compatibility release

  • Built with engine 0.9.0-beta-177.
  • Built with module plugin 2.2.0.
  • Built with Kotlin 2.2.10 and Java 21.
  • Built against OmniGUI v0.17.

Added — barter, prices paid in items

  • 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.