Template:UnitData2: Difference between revisions

From Mechabellum Wiki
m (added Abyss and Mountain)
m (trying to fix abyss damage calculation)
Line 32: Line 32:
  | Farseer = 11991 ; 16 ; 1114 ; 1.6 ; 125 ; 8.0 ; Air & Ground ; 1 ; No ; Ground ; 300 ; 0 ; Yes ; 0
  | Farseer = 11991 ; 16 ; 1114 ; 1.6 ; 125 ; 8.0 ; Air & Ground ; 1 ; No ; Ground ; 300 ; 0 ; Yes ; 0
  | 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 ; 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 ; 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  

Revision as of 07:13, 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.

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!