Template:PurchaseStat

From Melvor Idle
Revision as of 22:40, 21 February 2022 by Auron956 (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Given a Shop purchase and a stat name, returns the value of that stat. Lua powered by Module:Shop.

Some special stat names include:

  • cost - Returns the cost of acquiring the purchase
  • requirements - Returns the requirements in order to be able to acquire the purchase
  • contents - Returns the contents of the purchase as a list
  • type - Contains the type of the purchase (Upgrade, Item Bundle, and so on)

For example: