Tooth and Tail Wiki
m (Remove empty space at the top of the template)
m (Hide "Attack Speed" row if its value is 0)
Line 16: Line 16:
 
{{#vardefine: atkdelay | {{{atkdelay|}}} }}
 
{{#vardefine: atkdelay | {{{atkdelay|}}} }}
 
{{#vardefine: cd | {{{cd|{{#invoke: TNTGame | get_unit_wpn_attr |{{#var: uid}}|cool}} }}} }}
 
{{#vardefine: cd | {{{cd|{{#invoke: TNTGame | get_unit_wpn_attr |{{#var: uid}}|cool}} }}} }}
  +
{{#ifeq: {{#var: cd}} | 0 | {{#vardefine: cd |}} }}
 
{{#vardefine: range | {{{range|{{#invoke: TNTGame | get_unit_wpn_attr |{{#var: uid}}|AtkRange}} }}} }}
 
{{#vardefine: range | {{{range|{{#invoke: TNTGame | get_unit_wpn_attr |{{#var: uid}}|AtkRange}} }}} }}
 
{{#vardefine: wc | {{{wc|{{#invoke: TNTGame | get_unit_attr |{{#var: uid}}|cost}} }}} }}
 
{{#vardefine: wc | {{{wc|{{#invoke: TNTGame | get_unit_attr |{{#var: uid}}|cost}} }}} }}
Line 24: Line 25:
 
{{#vardefine: traits | {{{traits|
 
{{#vardefine: traits | {{{traits|
 
{{#arraydefine:traits|{{#invoke: TNTGame | get_unit_attr |{{#var: uid}}|traits}}}}
 
{{#arraydefine:traits|{{#invoke: TNTGame | get_unit_attr |{{#var: uid}}|traits}}}}
{{#arrayprint:traits||@@@@|
+
{{#arrayprint:traits||@@@@
{{tooltip|{{#invoke: TNTGame | get_trait_attr |@@@@|label}}|{{#invoke: TNTGame | get_trait_attr |@@@@|desc}}}}
+
|{{tooltip|{{#invoke: TNTGame | get_trait_attr |@@@@|label}}|{{#invoke: TNTGame | get_trait_attr |@@@@|desc}}}}
 
|print=pretty
 
|print=pretty
 
}}
 
}}

Revision as of 14:25, 9 May 2017

"Nomads of the North"
Lizard.png
Immigrants from the tribal north wear furs to keep their cold blood running hot.
Details
Animal
Lizard
Tier
Tier 1 unit
Defense
8 HP
Attack
3
Attack Speed
0.75 Attack(s) / second
Range
2 Tiles
Warren Cost
60 Food
Unit Cost
20 Food
Trait(s)
Spear Throw and Swift
Template-info.png Documentation

New version of Template:TnT Unit template that provides default values for most parameters. Default values supplied by Module:TNTGame that pulls information from ingame files.

Usage

The value of "uid" param (unit id. Check out MediaWiki:Game_data.json for a list of available unit ids) will be used to populate default values for other params. You can still override those values by directly specifying them.

{{TnT Unit v2
| uid = 
| pic = 
| desc =  
| name = 
| type = 
| tier = 
| hp = 
| attack = 
| wc = 
| uc = 
| bt = 
| supply = 
| range = 
| vision = 
| traits = 
| verified_for_game_version = 1.0.8.1
}}

Example

"Nomads of the North"
Lizard.png
Immigrants from the tribal north wear furs to keep their cold blood running hot.
Details
Animal
Lizard
Tier
Tier 1 unit
Defense
8 HP
Attack
3
Attack Speed
0.75 Attack(s) / second
Range
2 Tiles
Warren Cost
60 Food
Unit Cost
20 Food
Trait(s)
Spear Throw and Swift
Strategy
Run, Forrest, Run!
{{TnT Unit v2
| uid=lizard
| strat=Run, Forrest, Run!
}}

TnT Unit v2 compatibility with TnT Unit template

"TnT Unit v2"
Wolf.png
A shy bureaucrat before the war, Drill Sergeant Volkov uncovered a side to his personality that no one knew was there: He now inspires unmitigated devotion and fear.
Details
Animal
Wolf
Tier
Tier 3 unit
Defense
50 HP
Attack
4
Trait(s)
Pistolwolf, stim
Strategy
The Wolf Sergeant's howl causes all nearby friendly units to fight with +20 attack strength.
"TnT Unit"
Wolf.png
A shy bureaucrat before the war, Drill Sergeant Volkov uncovered a side to his personality that no one knew was there: He now inspires unmitigated devotion and fear.
Details
Animal
Wolf
Tier
Tier 3 unit
Defense
50 HP
Attack
4
Trait(s)
Pistolwolf, stim
Strategy
The Wolf Sergeant's howl causes all nearby friendly units to fight with +20 attack strength.
{{TnT Unit
|pic=Wolf.png
|name=TnT Unit
|type=Wolf
|tier=3
|hp=50
|attack=4
|traits=Pistolwolf, stim
|strat=The Wolf Sergeant's howl causes all nearby friendly units to fight with +20 attack strength.
|desc=A shy bureaucrat before the war, Drill Sergeant Volkov uncovered a side to his personality that no one knew was there:  He now inspires unmitigated devotion and fear.
}}
{{TnT Unit v2
|pic=Wolf.png
|name=TnT Unit v2
|type=Wolf
|tier=3
|hp=50
|attack=4
|traits=Pistolwolf, stim
|strat=The Wolf Sergeant's howl causes all nearby friendly units to fight with +20 attack strength.
|desc=A shy bureaucrat before the war, Drill Sergeant Volkov uncovered a side to his personality that no one knew was there:  He now inspires unmitigated devotion and fear.
}}