Calculator:Template/ItemEconomy/doc: Difference between revisions

From Melvor Idle
(First version)
 
m (Correct optionality of parameters)
Line 14: Line 14:
| Number
| Number
| The result of the calculation. Either required inputs or estimated outputs.
| The result of the calculation. Either required inputs or estimated outputs.
| True
| False
|-
|-
| <code>economyType</code>
| <code>economyType</code>
Line 21: Line 21:
* <code>Input</code> to calculate the estimated input items required.
* <code>Input</code> to calculate the estimated input items required.
* <code>Output</code> to calculate the estimated output items.
* <code>Output</code> to calculate the estimated output items.
| True
| False
|-
|-
| <code>preservationChance</code>
| <code>preservationChance</code>
| Number
| Number
| The player's [[PreservationChance]] ranging from 0 - 80
| The player's [[PreservationChance]] ranging from 0 - 80
| False
| True
|-
|-
| <code>duplicationChance</code>
| <code>duplicationChance</code>
| Number
| Number
| The player's [[DuplicationChance]] ranging from 0 - 100
| The player's [[DuplicationChance]] ranging from 0 - 100
| False
| True
|-
|-
| <code>extraItemChance</code>
| <code>extraItemChance</code>
| Number
| Number
| The player's [[ExtraItemChance]] ranging from 0 - ?
| The player's [[ExtraItemChance]] ranging from 0 - ?
| False
| True
|-
|-
|}
|}

Revision as of 00:04, 1 March 2024

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: