1
0
forked from 0ad/0ad

[Gameplay] "Satrapy Tribute" feature for the Persian Throne Hall structure

This adds an upgrade option for the Persian "Apadana" (will be renamed
later to "Tachara"), where the player can choose to receive a trickle of
a desired resource, like taxes or tribute from their subject peoples.
Call this the "Satrapy Tribute" feature.

Patch by: @wowgetoffyourcellphone
Accepted by: @real_tabasco_sauce
Comments by: @chrstgtr, @borg-

Differential Revision: https://code.wildfiregames.com/D5192
This was SVN commit r27954.
This commit is contained in:
wowgetoffyourcellphone 2023-11-24 02:58:32 +00:00
parent 949be94aab
commit a0592a3c37
9 changed files with 115 additions and 7 deletions

BIN
binaries/data/mods/public/art/textures/particles/stone.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,4 @@
{
"auraName": "Satrapy Tribute",
"auraDescription": "Upgrade the Throne Hall to receive a free trickle of a desired resource."
}

View File

@ -32,8 +32,13 @@
},
{
"Name": "Time of War",
"History": "The Persians were known for their large cavalry contingent",
"History": "The Persians were known for their large cavalry contingent.",
"Description": "Stable −10% batch training time per phase advance."
},
{
"Name": "Satrapy Tribute",
"History": "The empire was divided into provinces, called “Satrapies,” that sent yearly tribute to the ruling Persian dynasty in Persepolis as a form of tax.",
"Description": "Upgrade the Throne Hall to receive a free trickle of a desired resource."
}
],
"WallSets": [

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_special">
<Auras datatype="tokens">
structures/satrapy_tribute
</Auras>
<BuildRestrictions>
<Category>Palace</Category>
</BuildRestrictions>
@ -45,15 +48,18 @@
</Researcher>
<ResourceTrickle>
<Rates>
<food>1.0</food>
<wood>1.0</wood>
<food>0</food>
<wood>0</wood>
<stone>0</stone>
<metal>0</metal>
</Rates>
<Interval>1000</Interval>
<Interval>2000</Interval>
</ResourceTrickle>
<Sound>
<SoundGroups>
<select>interface/select/building/sel_broch.xml</select>
<constructed>interface/complete/building/complete_broch.xml</constructed>
<select>interface/select/building/sel_greek_theater.xml</select>
<constructed>interface/complete/building/complete_greek_theater.xml</constructed>
<upgraded>interface/complete/building/complete_greek_theater.xml</upgraded>
</SoundGroups>
</Sound>
<TerritoryInfluence>
@ -70,6 +76,28 @@
units/{civ}/hero_xerxes_i
</Entities>
</Trainer>
<Upgrade>
<TributeFood>
<Entity>structures/pers/apadana_food</Entity>
<Tooltip>Receive free Food tribute to your treasury from your subject peoples.</Tooltip>
<Time>10</Time>
</TributeFood>
<TributeWood>
<Entity>structures/pers/apadana_wood</Entity>
<Tooltip>Receive free Wood tribute to your treasury from your subject peoples.</Tooltip>
<Time>10</Time>
</TributeWood>
<TributeStone>
<Entity>structures/pers/apadana_stone</Entity>
<Tooltip>Receive free Stone tribute to your treasury from your subject peoples.</Tooltip>
<Time>10</Time>
</TributeStone>
<TributeMetal>
<Entity>structures/pers/apadana_metal</Entity>
<Tooltip>Receive free Metal tribute to your treasury from your subject peoples.</Tooltip>
<Time>10</Time>
</TributeMetal>
</Upgrade>
<Vision>
<Range>40</Range>
</Vision>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="structures/pers/apadana">
<Identity>
<Icon>structures/palace_food.png</Icon>
</Identity>
<ResourceTrickle>
<Rates>
<food>10</food>
<wood>0</wood>
<stone>0</stone>
<metal>0</metal>
</Rates>
</ResourceTrickle>
<Upgrade>
<TributeFood disable=""/>
</Upgrade>
</Entity>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="structures/pers/apadana">
<Identity>
<Icon>structures/palace_metal.png</Icon>
</Identity>
<ResourceTrickle>
<Rates>
<food>0</food>
<wood>0</wood>
<stone>0</stone>
<metal>10</metal>
</Rates>
</ResourceTrickle>
<Upgrade>
<TributeMetal disable=""/>
</Upgrade>
</Entity>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="structures/pers/apadana">
<Identity>
<Icon>structures/palace_stone.png</Icon>
</Identity>
<ResourceTrickle>
<Rates>
<food>0</food>
<wood>0</wood>
<stone>10</stone>
<metal>0</metal>
</Rates>
</ResourceTrickle>
<Upgrade>
<TributeStone disable=""/>
</Upgrade>
</Entity>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="structures/pers/apadana">
<Identity>
<Icon>structures/palace_wood.png</Icon>
</Identity>
<ResourceTrickle>
<Rates>
<food>0</food>
<wood>10</wood>
<stone>0</stone>
<metal>0</metal>
</Rates>
</ResourceTrickle>
<Upgrade>
<TributeWood disable=""/>
</Upgrade>
</Entity>

View File

@ -28,7 +28,7 @@
<Library>1</Library>
<Lighthouse>1</Lighthouse>
<Monument>5</Monument>
<Palace>2</Palace>
<Palace>1</Palace>
<Pillar>0</Pillar>
<PyramidLarge>2</PyramidLarge>
<TempleOfAmun>1</TempleOfAmun>