forked from 0ad/0ad
Make wooden tower upgradable to the defense tower. Reviewed by fatherbushido, siole and Hannibal Barca, fixes #4125.
Let towers cost 50 wood and reduce the stone cost by 50. The upgrade costs so much that it's cheaper to build a stone tower than building and upgrading a wooden tower, but still cheaper than building a wooden and stone tower. Increase the minimum distance between wooden tower to 60, so that the upgrade won't circumstance the minDistance of the stone tower. Add missing newline to the entity limit tooltip of the upgrade component (refs #2706) that was never visible before. This was SVN commit r18754.
This commit is contained in:
parent
06bf79b7e8
commit
5d4604e767
@ -1080,7 +1080,7 @@ g_SelectionPanels.Upgrade = {
|
||||
if (data.item.cost)
|
||||
tooltip += "\n" + getEntityCostTooltip(data.item);
|
||||
|
||||
tooltip += formatLimitString(limits.entLimit, limits.entCount, limits.entLimitChangers);
|
||||
tooltip += "\n" + formatLimitString(limits.entLimit, limits.entCount, limits.entLimitChangers);
|
||||
if (!technologyEnabled)
|
||||
tooltip += "\n" + sprintf(translate("Requires %(technology)s"), {
|
||||
"technology": getEntityNames(GetTechnologyData(data.item.requiredTechnology))
|
||||
|
@ -12,8 +12,8 @@
|
||||
<PopulationBonus>5</PopulationBonus>
|
||||
<BuildTime>200</BuildTime>
|
||||
<Resources>
|
||||
<wood>0</wood>
|
||||
<stone>300</stone>
|
||||
<wood>50</wood>
|
||||
<stone>250</stone>
|
||||
</Resources>
|
||||
</Cost>
|
||||
<Footprint replace="">
|
||||
|
@ -3,6 +3,14 @@
|
||||
<Identity>
|
||||
<Civ>iber</Civ>
|
||||
</Identity>
|
||||
<Upgrade>
|
||||
<Tower>
|
||||
<Cost>
|
||||
<stone>250</stone>
|
||||
</Cost>
|
||||
<Time>120</Time>
|
||||
</Tower>
|
||||
</Upgrade>
|
||||
<VisualActor>
|
||||
<Actor>structures/iberians/wooden_tower.xml</Actor>
|
||||
</VisualActor>
|
||||
|
@ -14,13 +14,6 @@
|
||||
<MinRange>4.0</MinRange>
|
||||
</Ranged>
|
||||
</Attack>
|
||||
<BuildRestrictions>
|
||||
<Category>DefenseTower</Category>
|
||||
<Distance>
|
||||
<FromClass>DefenseTower</FromClass>
|
||||
<MinDistance>40</MinDistance>
|
||||
</Distance>
|
||||
</BuildRestrictions>
|
||||
<Capturable>
|
||||
<CapturePoints>800</CapturePoints>
|
||||
</Capturable>
|
||||
@ -68,6 +61,18 @@
|
||||
<HeightOffset>18.0</HeightOffset>
|
||||
</StatusBars>
|
||||
<TerritoryInfluence disable=""/>
|
||||
<Upgrade>
|
||||
<Tower>
|
||||
<Entity>structures/{civ}_defense_tower</Entity>
|
||||
<Tooltip>Enforce with stone and upgrade to a defense tower.</Tooltip>
|
||||
<RequiredTechnology>phase_town</RequiredTechnology>
|
||||
<Cost>
|
||||
<wood>50</wood>
|
||||
<stone>100</stone>
|
||||
</Cost>
|
||||
<Time>100</Time>
|
||||
</Tower>
|
||||
</Upgrade>
|
||||
<VisualActor>
|
||||
<Actor>props/special/palisade_rocks_fort.xml</Actor>
|
||||
</VisualActor>
|
||||
|
Loading…
Reference in New Issue
Block a user