Calculator:Template/ItemEconomy/doc: Difference between revisions

From Melvor Idle
m (Correct optionality of parameters)
Line 41: Line 41:


==Example==
==Example==
The following calculates how many bars the player will get from smelting 1000 mithril ores.
The following calculates how many [[Spirit Rune]]s the player will receive when using up 1,000 [[Rune Essence]]. The following assumes boosts like the [[Runecrafting Skillcape]], the [[Crow]], 99 mastery and some other boosts.
<pre>
<pre>
{{:Calculator:Template/ItemEconomy
{{:Calculator:Template/ItemEconomy
|targetAmount=1000
|targetAmount = 1000
|economyType=Output
|inputsPerAction = 1
|preservationChance=75
|outputsPerAction = 16
|duplicationChance=45
|preservationChance = 51
|extraItemChance=20
|duplicationChance = 26
|extraItemChance = 10
|extraItemAmount = 1
|flatExtraItems = 7
|extraBaseItemChance = 0
|extraBaseItems = 0
}}
}}
</pre>
</pre>
Line 54: Line 59:
The following is the result:
The following is the result:
{{:Calculator:Template/ItemEconomy
{{:Calculator:Template/ItemEconomy
|targetAmount=1000
|targetAmount = 1000
|economyType=Output
|inputsPerAction = 1
|preservationChance=75
|outputsPerAction = 16
|duplicationChance=45
|preservationChance = 51
|extraItemChance=20
|duplicationChance = 26
|extraItemChance = 10
|extraItemAmount = 1
|flatExtraItems = 7
|extraBaseItemChance = 0
|extraBaseItems = 0
}}
}}

Revision as of 02:06, 18 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 Spirit Runes the player will receive when using up 1,000 Rune Essence. The following assumes boosts like the Runecrafting Skillcape, the Crow, 99 mastery and some other boosts.

{{:Calculator:Template/ItemEconomy
|targetAmount = 1000
|inputsPerAction = 1
|outputsPerAction = 16
|preservationChance = 51
|duplicationChance = 26
|extraItemChance = 10
|extraItemAmount = 1
|flatExtraItems = 7
|extraBaseItemChance = 0
|extraBaseItems = 0
}}

The following is the result: