Template:UnitData: Difference between revisions

From Mechabellum Wiki
(0.7.28 hp and attack)
(Added Wraith Metrics)
Line 20: Line 20:
  | Arclight = 3903 ; 7 ; 346 ; 1.1 ; 93 ; 7.0 ; Ground Only ; 1 ; No ; Ground ; 100 ; 0 ; 0
  | Arclight = 3903 ; 7 ; 346 ; 1.1 ; 93 ; 7.0 ; Ground Only ; 1 ; No ; Ground ; 100 ; 0 ; 0
  | Phoenix = 1623 ; 16 ; 3367 ; 3.4 ; 120 ; 0 ; Air & Ground ; 2 ; No ; Air ; 200 ; 50 ; 0
  | Phoenix = 1623 ; 16 ; 3367 ; 3.4 ; 120 ; 0 ; Air & Ground ; 2 ; No ; Air ; 200 ; 50 ; 0
| Wraith = 15791 ; 10 ; 1008 ; 1.7 ; 50 ; 3 ; Air & Ground ; 1 ; No ; Air ; 300 ; 100 ; 0
<!-- ----------------------------- end data ----------------------------- -->
<!-- ----------------------------- end data ----------------------------- -->
   }}
   }}

Revision as of 01:27, 10 November 2023

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.

Missiles usually cam in packs of 4 but the damage/attack shown is for one missile, so add a multiplier e.g. "555 * 4" looks nicer and math works fine.


Error: Unit "UnitData" undefined!