User:Artoire/Sandbox/2: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#invoke:Sandbox/User:Artoire/1|main}}</includeonly></onlyinclude><!-- |
|||
⚫ | |||
-->Blacksmithing calculator. |
|||
Includes the xp gained from smelting the ore, unlike [[Blacksmith#Active activities]]. |
|||
In the xp fields, if you enter 0-500, that is assumed to be a level instead of xp. |
|||
==Calculator== |
|||
{{Form calculator |
|||
⚫ | |||
|template = User:Artoire/Sandbox/2 |
|||
|form = BlacksmithForm |
|||
|result = BlacksmithResult |
|||
|outputtype = basic |
|||
|field1 = {{Form calculator field |
|||
|param = current_xp |
|||
|label = Current XP |
|||
|default = 20 |
|||
|type = int |
|||
|range = 0-{{XP/At level|500}} |
|||
}} |
|||
|field2 = {{Form calculator field |
|||
|param = target_xp |
|||
|label = Turrent XP |
|||
|default = 30 |
|||
|type = int |
|||
|range = 0-{{XP/At level|500}} |
|||
}} |
|||
|field3 = {{Form calculator field |
|||
|param = ingot |
|||
|label = Ingot |
|||
|default = Laterite Iron Ingot |
|||
|type = select |
|||
|range = {{#invoke:Sandbox/User:Artoire/1|ingots}} |
|||
}} |
|||
|field4 = {{Form calculator field |
|||
|param = pole_buy |
|||
|label = Buying timber? |
|||
|default = poles |
|||
|type = buttonselect |
|||
|range = none,logs,poles |
|||
}} |
|||
}} |
|||
==Test== |
|||
{{User:Artoire/Sandbox/2|current_xp=24|target_xp=37|ingot=Maloic Adathril Ingot|pole_buy=none}} |
|||
{{User:Artoire/Sandbox/2|current_xp=267|target_xp=294|ingot=Eysite Flantium Ingot|pole_buy=poles}} |
|||
{{User:Artoire/Sandbox/2|current_xp=193|target_xp=220|ingot=Magnetite Iron Ore|pole_buy=poles}} |