From Brotato Wiki
m (Protected "Template:Weapon Data": Protecting Data ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
(Coloured Rarity Text: Use Template:Color, instead of spans with classes + Error: minor tidyup) |
||
| Line 2,522: | Line 2,522: | ||
===Error=== | ===Error=== | ||
* <code><nowiki>{{Weapon Data|Invalid name|damage|common}}</nowiki></code> = {{Weapon Data|Acid|damage|common}} | |||
<code><nowiki | |||
< | ===Tier Colors=== | ||
< | |||
< | Wrap the template in [[Template:Color]] to show tier colors: | ||
< | |||
* <code><nowiki>{{Color|tier1|{{Weapon Data|Wrench|damage|1}}}}</nowiki></code> = {{Color|tier1|{{Weapon Data|Wrench|damage|1}}}} | |||
* <code><nowiki>{{Color|tier2|{{Weapon Data|Wrench|damage|2}}}}</nowiki></code> = {{Color|tier2|{{Weapon Data|Wrench|damage|2}}}} | |||
* <code><nowiki>{{Color|tier3|{{Weapon Data|Wrench|damage|3}}}}</nowiki></code> = {{Color|tier3|{{Weapon Data|Wrench|damage|3}}}} | |||
* <code><nowiki>{{Color|tier4|{{Weapon Data|Wrench|damage|4}}}}</nowiki></code> = {{Color|tier4|{{Weapon Data|Wrench|damage|4}}}} | |||
<templatedata> | <templatedata> | ||
Revision as of 11:18, 9 December 2022
Database for all Weapon stats. Use the template to get data for the specified Weapon.
Usage
{{Weapon Data
|any weapon name
|rarity/types/damage/attackspeed/dps/crit/range/knockback/lifesteal/special/price/unlockedby
|common/rare/epic/legendary/1/2/3/4
}}
Examples
| Data | Code | Preview | Alias |
|---|---|---|---|
| Class | {{Weapon Data|Hand|type|1}}
|
Unarmed, Support | |
| Damage Tier 1 | {{Weapon Data|Hand|damage|1}}
|
1(50% |
{{Weapon Data|Hand|damage|common}}
|
| Damage Tier 2 | {{Weapon Data|Hand|damage|2}}
|
1(50% |
{{Weapon Data|Hand|damage|rare}}
|
| Damage Tier 3 | {{Weapon Data|Hand|damage|3}}
|
1(50% |
{{Weapon Data|Hand|damage|epic}}
|
| Damage Tier 4 | {{Weapon Data|Hand|damage|4}}
|
1(50% |
{{Weapon Data|Hand|damage|legendary}}
|
| Attack Speed | {{Weapon Data|Hand|attackspeed|1}}
|
1.01s | |
| DPS | {{Weapon Data|Hand|dps|1}}
|
1.0(49% |
|
| Crit | {{Weapon Data|Hand|crit|1}}
|
1%(x1.5) | |
| Range | {{Weapon Data|Hand|range|1}}
|
150 | |
| Knockback | {{Weapon Data|Hand|knockback|1}}
|
30 | |
| Life Steal | {{Weapon Data|Hand|lifesteal|1}}
|
0.0 | |
| Special Effects | {{Weapon Data|Hand|special|1}}
|
+3/+6/+9/+18 Harvesting | |
| Price | {{Weapon Data|Hand|price|1}}
|
10 | |
| Unlocked By | {{Weapon Data|Hand|unlockedby|1}}
|
Default |
Error
{{Weapon Data|Invalid name|damage|common}}= Weapon name not found
Tier Colors
Wrap the template in Template:Color to show tier colors:
{{Color|tier1|{{Weapon Data|Wrench|damage|1}}}}= 12(100%
){{Color|tier2|{{Weapon Data|Wrench|damage|2}}}}= 16(100%
){{Color|tier3|{{Weapon Data|Wrench|damage|3}}}}= 20(100%
){{Color|tier4|{{Weapon Data|Wrench|damage|4}}}}= 24(100%
)
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | 1 | As shown on the Weapons page
| String | required |
| Data | 2 | Options: rarity, types, damage, attackspeed, dps, crit, range, knockback, lifesteal, special, price, unlockedby
| String | required |
| Tier | 3 | Options: 1, 2, 3, 4
| String | required |