Template:UnitData2: Difference between revisions
m (updated text) |
m (updated mountain) |
||
Line 33: | Line 33: | ||
| Death Knell = 166021 ; 6 ; 2 - 9797 ; .2 ; 115 ; 3.0 ; Air & Ground ; 1 ; Yes ; Ground ; 800 ; 200 ; No ; 200 | | Death Knell = 166021 ; 6 ; 2 - 9797 ; .2 ; 115 ; 3.0 ; Air & Ground ; 1 ; Yes ; Ground ; 800 ; 200 ; No ; 200 | ||
| Abyss = 71191 ; 10 ; 3508 ; .1 - 4 ; 100 ; 10 ; Air & Ground ; 1 ; Yes ; Air ; 800 ; 200 ; No ; 200 | | Abyss = 71191 ; 10 ; 3508 ; .1 - 4 ; 100 ; 10 ; Air & Ground ; 1 ; Yes ; Air ; 800 ; 200 ; No ; 200 | ||
| Mountain = 180763 ; 6 ; 5086 ; 2 ; 100 ; 5 ; Ground Only ; 1 ; Yes ; Ground ; 800 ; 200 ; No ; 200 | | Mountain = 180763 ; 6 ; 5086 * 4 ; 2 ; 100 ; 5 ; Ground Only ; 1 ; Yes ; Ground ; 800 ; 200 ; No ; 200 | ||
| Larva = 5746 ; 16 ; 1027; 2 ; 0 ; 6.0 ; Ground Only ; 1 ; No ; Ground ; 0 ; 0 ; No ; 0 | | Larva = 5746 ; 16 ; 1027; 2 ; 0 ; 6.0 ; Ground Only ; 1 ; No ; Ground ; 0 ; 0 ; No ; 0 | ||
| Spider Mine = 750 ; 21 ; 4500 ; N/A ; 0 ; 9.0 ; Ground Only ; 1 ; No ; Ground ; 0 ; 0 ; No ; 0 | | Spider Mine = 750 ; 21 ; 4500 ; N/A ; 0 ; 9.0 ; Ground Only ; 1 ; No ; Ground ; 0 ; 0 ; No ; 0 |
Revision as of 07:55, 4 April 2025
This template contains all unit data (HP, Speed, Attack, (Attack) Interval, Range, Splash (Range), Target, Units, Giant, Mobility, Cost, Unlock Cost, Upkeep)
Using the Template with a unit name sets the variables {{UnitData|Fortress}}
On the unit pages the data is automatically pulled and placed in variables (hp, speed, atk, atkint, range, splash, target, units, giant, mobility, cost, unlockcost, burst, dps), ready to use on the page with e.g. {{#var:speed}}.
A single value can be pulled without overriding the variables {{UnitData|Fortress|speed}}.
Melting damage is set as a range "1 - 9000" allowing the math to work.
Abyss fire rate is set to ".1 -4s" to allow proper max dps calculation
Missiles usually come in packs of 4 but the damage/attack shown is for one missile, so add a multiplier e.g. "555 * 4" looks nicer and the math works fine.
Error: Unit "UnitData2" undefined!