Allow walls and fields to be captured by territory but not by capture attack, by using restricted classes. Reviewed by mimo and Imarok.

Differential Revision: https://code.wildfiregames.com/D450
This was SVN commit r19694.
This commit is contained in:
fatherbushido
2017-05-29 20:27:09 +00:00
parent 5de66b24b1
commit d5db047c9a
12 changed files with 17 additions and 19 deletions
@@ -39,9 +39,6 @@
<Door width="11" depth="5" x="0" z="0"/>
</Obstructions>
</Obstruction>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<VisualActor>
<Actor>structures/romans/siege_wall_gate.xml</Actor>
@@ -62,9 +62,6 @@
<Obstruction>
<Static width="37.0" depth="5.0"/>
</Obstruction>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<Upgrade>
<Gate>
@@ -56,9 +56,6 @@
<Obstruction>
<Static width="25.0" depth="5.0"/>
</Obstruction>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<VisualActor>
<Actor>structures/romans/siege_wall_medium.xml</Actor>
@@ -43,9 +43,6 @@
<Obstruction>
<Static width="13.0" depth="5.0"/>
</Obstruction>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<VisualActor>
<Actor>structures/romans/siege_wall_short.xml</Actor>
@@ -40,9 +40,6 @@
<Obstruction>
<Static width="7.0" depth="7.0"/>
</Obstruction>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TerritoryInfluence disable=""/>
<VisualActor>
<Actor>structures/romans/siege_wall_tower.xml</Actor>
@@ -4,7 +4,9 @@
<PlacementType>land-shore</PlacementType>
<Category>Wall</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Capturable>
<CapturePoints>1200</CapturePoints>
</Capturable>
<Cost>
<BuildTime>25</BuildTime>
<Resources>
@@ -45,6 +47,9 @@
<death>attack/destruction/building_collapse_large.xml</death>
</SoundGroups>
</Sound>
<TerritoryDecay>
<DecayRate>5.0</DecayRate>
</TerritoryDecay>
<TerritoryInfluence>
<Root>false</Root>
<Radius>20</Radius>
@@ -23,7 +23,9 @@
<PlacementType>land-shore</PlacementType>
<Category>Wall</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Capturable>
<CapturePoints>1200</CapturePoints>
</Capturable>
<Cost>
<BuildTime>80</BuildTime>
<Resources>
@@ -81,6 +83,9 @@
<StatusBars>
<HeightOffset>20.0</HeightOffset>
</StatusBars>
<TerritoryDecay>
<DecayRate>5.0</DecayRate>
</TerritoryDecay>
<TerritoryInfluence>
<Root>false</Root>
<Radius>20</Radius>
@@ -8,7 +8,6 @@
<BuildRestrictions>
<Category>Field</Category>
</BuildRestrictions>
<Capturable disable=""/>
<Cost>
<BuildTime>50</BuildTime>
<Resources>
@@ -62,7 +61,7 @@
<HeightOffset>8.0</HeightOffset>
</StatusBars>
<TerritoryDecay>
<DecayRate>Infinity</DecayRate>
<DecayRate>5.0</DecayRate>
</TerritoryDecay>
<Vision>
<Range>0</Range>
@@ -10,6 +10,7 @@
<Value>2</Value>
<MaxRange>4</MaxRange>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses>
</Capture>
<Slaughter>
<Hack>100.0</Hack>
@@ -5,6 +5,7 @@
<Value>5</Value>
<MaxRange>4</MaxRange>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses>
</Capture>
</Attack>
<Identity>
@@ -10,6 +10,7 @@
<Value>15</Value>
<MaxRange>4</MaxRange>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses>
</Capture>
</Attack>
<Auras datatype="tokens">
@@ -10,6 +10,7 @@
<Value>2</Value>
<MaxRange>4</MaxRange>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses>
</Capture>
<Slaughter>
<Hack>50.0</Hack>