HomeWildfire Games

Clean up tower classes and related changes.

Description

Clean up tower classes and related changes.

Classes:
The Defensive class is made visible (cf. Civic, Economic, Military).
The Fortress class is made visible (because of build restrictions).
The Tower class defined in template_structure_defensive_tower.xml is now visible.
The unused GarrisonTower class is removed.
The DefenseTower class is deprecated in favour of one unique class in each of the *_tower.xml children templates:
*_artillery.xml → ArtilleryTower
*_bolt.xml → BoltTower
*_sentry.xml → SentryTower
*_stone.xml → StoneTower
template_structure_defensive_wall_tower.xml does not inherit from *_tower and therefore has a WallTower class instead of a Tower class.
Updated the Identity.js file accordingly.
Updated the Petra AI files accordingly (DefenseTower → Tower).
Tower build restrictions are changed to simply Tower.
Technologies:
tower_armour.json affects all towers, but not outposts (unchanged).
tower_decay.json and tower_vision.json affect only outposts (unchanged).
tower_crenellations.json, tower_murderholes.json, tower_range.json, and tower_watch.json affect now only the Sentry and Stone towers, instead of all towers. This alters gameplay for the Artillery and Bolt tower, but those shouldn't have been benefitting from arrow tower technologies anyway.
Standardized the tooltips per the style guide.
Updated the <Identity/Tooltip> in the tower templates.
Inserted <BatchTimeModifier>1.0</BatchTimeModifier> in template_structure.xml, where the <ProductionQueue> is defined, and removed the <BatchTimeModifier> from templates that can't train any units.

Patch by: Nescio
Reviewed by: Angen
Differential Revision: https://code.wildfiregames.com/D2549

Details

Committed
SilierJul 19 2020, 1:45 PM
Reviewer
Silier
Differential Revision
D2549: clean up tower classes
Parents
rP23852: Fix tests after rP23850
Branches
Unknown
Tags
Unknown
Build Status
Buildable 12499
Build 23982: Post-Commit BuildJenkins
Build 23981: Post-Commit Build (macOS)Jenkins