forked from 0ad/0ad
Refactor Capturable Farmstead feature/templates
Attempts to address Invalid warning messages for capturable farmsteads and creates a mixin as suggested by @Langbart Renames the "farmsteads_" template files to "mill_" to eliminate confusion with standard buildable farmsteads and changes the refs in the skirmish maps to suit. Genericizes the name to Rotary Mill instead of Farmstead, again to eliminate confusion between the two (the former is a capturable map object, while the latter is a player-buildable structure). Fixes #6818 Differential revision: https://code.wildfiregames.com/D5113 This was SVN commit r27835.
This commit is contained in:
parent
99e6a2fed8
commit
95530eb44a
BIN
binaries/data/mods/public/maps/skirmishes/alpine_valleys_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/alpine_valleys_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/arabian_oases_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/arabian_oases_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/bactria_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/bactria_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/deccan_plateau_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/deccan_plateau_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/gallic_highlands_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/gallic_highlands_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/libyan_oasis_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/libyan_oasis_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/miletus_peninsula_2p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/miletus_peninsula_2p.xml
(Stored with Git LFS)
Binary file not shown.
BIN
binaries/data/mods/public/maps/skirmishes/saharan_oases_4p.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/skirmishes/saharan_oases_4p.xml
(Stored with Git LFS)
Binary file not shown.
@ -1,12 +1,12 @@
|
||||
{
|
||||
"type": "range",
|
||||
"radius": 60,
|
||||
"affects": ["Gatherer", "Field"],
|
||||
"affects": ["Worker", "Field"],
|
||||
"modifications": [
|
||||
{ "value": "ResourceGatherer/Rates/food.grain", "multiply": 1.75 }
|
||||
],
|
||||
"auraName": "Farmland",
|
||||
"auraDescription": "Gatherers +75% farming rate around a captured Farmstead.",
|
||||
"auraDescription": "Workers +75% grain gather rate around a captured Rotary Mill.",
|
||||
"overlayIcon": "art/textures/ui/session/auras/farm_bonus.png",
|
||||
"rangeOverlay" : {
|
||||
"lineTexture": "outline_border.png",
|
||||
|
@ -1,59 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special">
|
||||
<Entity>
|
||||
<Auras datatype="tokens">
|
||||
structures/farmstead_60
|
||||
</Auras>
|
||||
<BuildRestrictions>
|
||||
<Territory>own neutral</Territory>
|
||||
<Category>RotaryMill</Category>
|
||||
</BuildRestrictions>
|
||||
<Capturable>
|
||||
<CapturePoints>500</CapturePoints>
|
||||
<RegenRate>0</RegenRate>
|
||||
<GarrisonRegenRate>3</GarrisonRegenRate>
|
||||
</Capturable>
|
||||
<Cost>
|
||||
<BuildTime>100</BuildTime>
|
||||
<Resources>
|
||||
<food>0</food>
|
||||
<wood>200</wood>
|
||||
<stone>100</stone>
|
||||
<metal>0</metal>
|
||||
</Resources>
|
||||
</Cost>
|
||||
<Footprint replace="">
|
||||
<Circle radius="10.0"/>
|
||||
<Height>6.0</Height>
|
||||
</Footprint>
|
||||
<GarrisonHolder disable=""/>
|
||||
<Health disable=""/>
|
||||
<Identity>
|
||||
<Civ>gaia</Civ>
|
||||
<GenericName>Farmstead</GenericName>
|
||||
<GenericName>Rotary Mill</GenericName>
|
||||
<SpecificName>Rotary Mill</SpecificName>
|
||||
<VisibleClasses datatype="tokens">Farmstead</VisibleClasses>
|
||||
<Classes datatype="tokens">
|
||||
<VisibleClasses datatype="tokens">
|
||||
RotaryMill
|
||||
</Classes>
|
||||
</VisibleClasses>
|
||||
<Tooltip>Dropsite for harvested Food. Capture one of these to increase nearby food production.</Tooltip>
|
||||
<Icon>structures/rotarymill.png</Icon>
|
||||
<Undeletable>true</Undeletable>
|
||||
</Identity>
|
||||
<Loot>
|
||||
<xp>100</xp>
|
||||
<food>100</food>
|
||||
</Loot>
|
||||
<Minimap>
|
||||
<Type>structure</Type>
|
||||
<Icon size="16.0">other.png</Icon>
|
||||
</Minimap>
|
||||
<Obstruction>
|
||||
<Static width="16.0" depth="16.0"/>
|
||||
</Obstruction>
|
||||
<RallyPoint disable=""/>
|
||||
<ResourceDropsite>
|
||||
<Types>food</Types>
|
||||
<Sharable>true</Sharable>
|
||||
</ResourceDropsite>
|
||||
<Researcher disable=""/>
|
||||
<Resistance replace=""/>
|
||||
<Selectable>
|
||||
<Overlay>
|
||||
<Outline>
|
||||
@ -79,7 +56,6 @@
|
||||
<Range>30</Range>
|
||||
</Vision>
|
||||
<VisualActor>
|
||||
<Actor>structures/celts/special.xml</Actor>
|
||||
<FoundationActor>structures/fndn_6x6.xml</FoundationActor>
|
||||
<FoundationActor>structures/fndn_5x5.xml</FoundationActor>
|
||||
</VisualActor>
|
||||
</Entity>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Identity>
|
||||
<Civ>brit</Civ>
|
||||
<SpecificName>Melonas</SpecificName>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Identity>
|
||||
<Civ>gaul</Civ>
|
||||
<SpecificName>Brauon</SpecificName>
|
||||
|
@ -1,12 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="12.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
||||
<Identity>
|
||||
<Civ>ptol</Civ>
|
||||
<Lang>napatan</Lang>
|
||||
<SpecificName>snwt</SpecificName>
|
||||
</Identity>
|
||||
<Obstruction>
|
@ -3,7 +3,6 @@
|
||||
<Capturable disable=""/>
|
||||
<Health disable=""/>
|
||||
<Identity>
|
||||
<Civ>gaia</Civ>
|
||||
<SpecificName>Wheat Field</SpecificName>
|
||||
</Identity>
|
||||
<Resistance replace=""/>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="11.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="11.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="12.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="13.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
||||
<Identity>
|
||||
<Lang>persian</Lang>
|
||||
<SpecificName>Kaštašta</SpecificName>
|
||||
</Identity>
|
||||
<Obstruction>
|
@ -1,12 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Footprint replace="">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Footprint>
|
||||
<Circle radius="12.0"/>
|
||||
<Height>10.0</Height>
|
||||
</Footprint>
|
||||
<Identity>
|
||||
<Civ>kush</Civ>
|
||||
<Lang>napatan</Lang>
|
||||
<SpecificName>snwt</SpecificName>
|
||||
</Identity>
|
||||
<Obstruction>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Entity parent="template_structure_special_rotarymill">
|
||||
<Entity parent="rotary_mill|template_structure_economic_farmstead">
|
||||
<Identity>
|
||||
<SpecificName>Melonas</SpecificName>
|
||||
</Identity>
|
Loading…
Reference in New Issue
Block a user