Template:PurchaseStat: Difference between revisions
From Melvor Idle
(Initial creation) |
m (Document new special stat) |
||
Line 2: | Line 2: | ||
Some special stat names include: | Some special stat names include: | ||
* '''buyLimit''' - Returns the maximum amount of times the purchase may be purchased | |||
* '''contents''' - Returns the contents of the purchase as a list | |||
* '''cost''' - Returns the cost of acquiring the purchase | * '''cost''' - Returns the cost of acquiring the purchase | ||
* '''requirements''' - Returns the requirements in order to be able to acquire the purchase | * '''requirements''' - Returns the requirements in order to be able to acquire the purchase | ||
* '''type''' - Contains the type of the purchase (Upgrade, Item Bundle, and so on) | * '''type''' - Contains the type of the purchase (Upgrade, Item Bundle, and so on) | ||
Latest revision as of 22:31, 17 March 2022
Given a Shop purchase and a stat name, returns the value of that stat. Lua powered by Module:Shop.
Some special stat names include:
- buyLimit - Returns the maximum amount of times the purchase may be purchased
- contents - Returns the contents of the purchase as a list
- cost - Returns the cost of acquiring the purchase
- requirements - Returns the requirements in order to be able to acquire the purchase
- type - Contains the type of the purchase (Upgrade, Item Bundle, and so on)
For example:
{{PurchaseStat|Basic Resupply|cost}}
produces: 5,000{{PurchaseStat|Master of Nature|requirements}}
produces: CompleteError creating thumbnail: File missingEarth God Dungeon