Calculator:Template/ItemEconomy/doc

Revision as of 00:04, 1 March 2024 by Ricewind (talk | contribs) (Correct optionality of parameters)

Calculator used to estimate inputs or output items given the player's item economy. It can be used to get an estimated output, provided a base amount of items, and the player's PreservationChance, DuplicationChance and ExtraItemChance. (ie. Ores to Bars)

Inversely, the estimated required inputs can be calculated if the player desires a certain amount of target items. (ie. Ores requires for a certain amount of Bars).

Lastly, it will also notify the player if the Ring of Wealth has a positive effect on their item economy.

Arg name Arg type Description Optional
targetAmount Number The result of the calculation. Either required inputs or estimated outputs. False
economyType String The type of economy.
  • Input to calculate the estimated input items required.
  • Output to calculate the estimated output items.
False
preservationChance Number The player's PreservationChance ranging from 0 - 80 True
duplicationChance Number The player's DuplicationChance ranging from 0 - 100 True
extraItemChance Number The player's ExtraItemChance ranging from 0 - ? True

Example

The following calculates how many bars the player will get from smelting 1000 mithril ores.

{{:Calculator:Template/ItemEconomy
|targetAmount=1000
|economyType=Output
|preservationChance=75
|duplicationChance=45
|extraItemChance=20
}}

The following is the result: