1
0
forked from 0ad/0ad

Garrison Domestic Animals into the Corral to get a <ResourceTrickle> of Food.

By aura.

Differential revision: D4380
Original patch by: @wowgetoffyourcellphone
Comments by: @chrstgtr, @borg-, @LetswaveaBook, @marder, @Micfild,
@Silier
Refs. #1907

This was SVN commit r27244.
This commit is contained in:
Freagarach 2022-11-24 09:53:34 +00:00
parent 26c2f2ac42
commit 42fe39d35c
6 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"type": "garrisonedUnits",
"affects": ["Domestic"],
"modifications": [
{ "value": "ResourceTrickle/Rates/food", "add": 1 }
],
"auraDescription" : "Garrison domesticated animals within the Corral to enable a slow trickle of food per animal.",
"auraName": "Ranching and Corralling"
}

View File

@ -25,6 +25,9 @@
<Max>70</Max>
<MaxGatherers>2</MaxGatherers>
</ResourceSupply>
<ResourceTrickle>
<Interval>5000</Interval>
</ResourceTrickle>
<Sound>
<SoundGroups>
<select>actor/fauna/animal/goat_select.xml</select>

View File

@ -25,6 +25,9 @@
<Max>150</Max>
<MaxGatherers>4</MaxGatherers>
</ResourceSupply>
<ResourceTrickle>
<Interval>3000</Interval>
</ResourceTrickle>
<Sound>
<SoundGroups>
<select>actor/fauna/animal/pig_select.xml</select>

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_resource">
<Auras datatype="tokens">
structures/corral_garrison
</Auras>
<Cost>
<BuildTime>50</BuildTime>
<Resources>
@ -10,6 +13,14 @@
<Square width="18.0" depth="17.0"/>
<Height>5.0</Height>
</Footprint>
<GarrisonHolder>
<Max>8</Max>
<EjectHealth>0.5</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Animal</EjectClassesOnDestroy>
<List datatype="tokens">Animal</List>
<BuffHeal>1</BuffHeal>
<LoadingRange>4</LoadingRange>
</GarrisonHolder>
<Health>
<Max>500</Max>
<SpawnEntityOnDeath>decay|rubble/rubble_stone_3x3</SpawnEntityOnDeath>
@ -17,7 +28,7 @@
<Identity>
<GenericName>Corral</GenericName>
<SelectionGroupName>template_structure_resource_corral</SelectionGroupName>
<Tooltip>Raise Domestic Animals for food.</Tooltip>
<Tooltip>Raise Domestic Animals for immediate slaughter, or garrison them instead to gain a free trickle of food.</Tooltip>
<VisibleClasses datatype="tokens">Economic Village Corral</VisibleClasses>
<Icon>structures/corral.png</Icon>
<RequiredTechnology>phase_village</RequiredTechnology>

View File

@ -2,7 +2,14 @@
<Entity parent="template_unit_fauna_herd">
<Identity>
<Classes datatype="tokens">Domestic</Classes>
<Tooltip>Kill to gather meat for quick food, or garrison in a Corral for a slow food trickle.</Tooltip>
</Identity>
<ResourceTrickle>
<Rates>
<food>0</food>
</Rates>
<Interval>4000</Interval>
</ResourceTrickle>
<Vision>
<Range>6</Range>
</Vision>

View File

@ -3,6 +3,9 @@
<Identity>
<RequiredTechnology>phase_city</RequiredTechnology>
</Identity>
<ResourceTrickle>
<Interval>2000</Interval>
</ResourceTrickle>
<Sound>
<SoundGroups>
<select>actor/fauna/animal/cattle_select.xml</select>