Tooth and Tail Wiki
m (Hide "Attack Delay" row if its value is 0)
(Add default value for "Strategy" field)
Line 30: Line 30:
 
}}
 
}}
 
}}} }}
 
}}} }}
{{#vardefine: strat | {{{strat|<!-- TODO: Get strategy hint from game data -->}}} }}
+
{{#vardefine: strat | {{{strat|{{#invoke: TNTGame | get_unit_attr |{{#var: uid}}|strat_hint}} }}} }}
 
<!-- vars END -->
 
<!-- vars END -->
 
|-
 
|-

Revision as of 19:26, 9 May 2017

"The Distillery Brothers"
Squirrel.png
Conscripted into service and certain of their doom, the untrained Distillery Brothers charge into battle fueled by fermented acorn courage.
Details
Animal
Squirrel
Tier
Tier 1 unit
Defense
8 HP
Attack
2
Attack Speed
1 Attack(s) / second
Range
4 Tiles
Warren Cost
60 Food
Unit Cost
20 Food
Build Time
10 Seconds
Supply
3 Unit(s) per Warren
Trait(s)
Pistol
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 Delay
0.25 Seconds
Attack Speed
0.75 Attack(s) / second
Range
2 Tiles
Warren Cost
60 Food
Unit Cost
20 Food
Build Time
10 Seconds
Supply
3 Unit(s) per Warren
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
Build Time
40 Seconds
Supply
1 Unit(s) per Warren
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.
}}