The template structure tree currently is:
- template_structure_defense_defense_tower.xml
- template_structure_defense_outpost.xml
- template_structure_defense_sentry_tower.xml
However, the sentry tower has the defense tower as its parent, which is not reflected in its name (cf. template_structure_civic_civil_centre_military_colony.xml)
This patch creates a new generic tower template and changes the situation into:
- template_structure_defense_tower.xml
- template_structure_defense_tower_outpost.xml
- template_structure_defense_tower_sentry.xml
- template_structure_defense_tower_stone.xml
All dependent templates are changed accordingly
The advantage of this patch is that if you want to edit the stats (e.g. costs, health, vision range, etc) of all towers, you can simply edit the generic tower file, and all towers will automatically change accordingly; and if you want to change the stats of the defense tower only, you only have to edit the stone tower file.
Without this patch this was not possible. If you wanted to change the defensive tower, you also had to look at the sentry tower template, because the sentry tower had the defensive tower as its parent, something which is easy to overlook. With this patch this is no longer the case.
Furthermore:
- Renamed technologies for naming consistency (e.g. tower_armour instead of attack_tower_defense)
- added a missing skirmish/structures/default_sentry_tower.xml