88 lines
3.6 KiB
XML
88 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Patch>
|
|
|
|
<!-- Slavers: the outlander "slaver" caravan, the tribal "slaver" caravan and the orbital "slave ship".
|
|
Vanilla weighs them 1 against 3 other trader kinds and drops them to zero once the colony is large. -->
|
|
|
|
<Operation Class="PatchOperationReplace">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[defName="Caravan_Outlander_PirateMerchant" or defName="Caravan_Neolithic_Slaver" or defName="Orbital_PirateMerchant"]/commonality</xpath>
|
|
<value>
|
|
<commonality>2</commonality>
|
|
</value>
|
|
</Operation>
|
|
<Operation Class="PatchOperationAdd">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[(defName="Caravan_Outlander_PirateMerchant" or defName="Caravan_Neolithic_Slaver" or defName="Orbital_PirateMerchant") and not(commonality)]</xpath>
|
|
<value>
|
|
<commonality>2</commonality>
|
|
</value>
|
|
</Operation>
|
|
|
|
<!-- Vanilla hides the slaver caravans from the comms console's "request trade caravan" (requestable false).
|
|
Allied outlanders and tribes can now send one. No faction lists the orbital slave ship, so it stays unrequestable. -->
|
|
<Operation Class="PatchOperationReplace">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[defName="Caravan_Outlander_PirateMerchant" or defName="Caravan_Neolithic_Slaver"]/requestable</xpath>
|
|
<value>
|
|
<requestable>true</requestable>
|
|
</value>
|
|
</Operation>
|
|
|
|
<!-- Vanilla: (0.2, 0) (1, 1) (2, 3), so a big colony never sees slavers. Keep at least half weight. -->
|
|
<Operation Class="PatchOperationReplace">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[defName="Caravan_Outlander_PirateMerchant" or defName="Caravan_Neolithic_Slaver" or defName="Orbital_PirateMerchant"]/commonalityMultFromPopulationIntent</xpath>
|
|
<value>
|
|
<commonalityMultFromPopulationIntent>
|
|
<points>
|
|
<li>(0, 0.5)</li>
|
|
<li>(1, 1)</li>
|
|
<li>(2, 2)</li>
|
|
</points>
|
|
</commonalityMultFromPopulationIntent>
|
|
</value>
|
|
</Operation>
|
|
|
|
<!-- Slaver stock: vanilla 2~4 each. -->
|
|
<Operation Class="PatchOperationReplace">
|
|
<xpath>Defs/TraderKindDef[defName="Caravan_Outlander_PirateMerchant"]/stockGenerators/li[@Class="StockGenerator_Slaves"]/countRange</xpath>
|
|
<value>
|
|
<countRange>5~9</countRange>
|
|
</value>
|
|
</Operation>
|
|
<Operation Class="PatchOperationReplace">
|
|
<xpath>Defs/TraderKindDef[defName="Caravan_Neolithic_Slaver"]/stockGenerators/li[@Class="StockGenerator_Slaves"]/countRange</xpath>
|
|
<value>
|
|
<countRange>4~7</countRange>
|
|
</value>
|
|
</Operation>
|
|
<Operation Class="PatchOperationReplace">
|
|
<xpath>Defs/TraderKindDef[defName="Orbital_PirateMerchant"]/stockGenerators/li[@Class="StockGenerator_Slaves"]/countRange</xpath>
|
|
<value>
|
|
<countRange>6~10</countRange>
|
|
</value>
|
|
</Operation>
|
|
|
|
<!-- Every other caravan and orbital trader: about half of them carry 1~2 slaves. -->
|
|
<Operation Class="PatchOperationAdd">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[(starts-with(defName, "Caravan_") or starts-with(defName, "Orbital_")) and not(stockGenerators/li[@Class="StockGenerator_Slaves"])]/stockGenerators</xpath>
|
|
<value>
|
|
<li Class="StockGenerator_Slaves">
|
|
<countRange>-1~2</countRange>
|
|
</li>
|
|
</value>
|
|
</Operation>
|
|
|
|
<!-- Settlements: vanilla -1~2. -->
|
|
<Operation Class="PatchOperationReplace">
|
|
<success>Always</success>
|
|
<xpath>Defs/TraderKindDef[starts-with(defName, "Base_")]/stockGenerators/li[@Class="StockGenerator_Slaves"]/countRange</xpath>
|
|
<value>
|
|
<countRange>1~4</countRange>
|
|
</value>
|
|
</Operation>
|
|
|
|
</Patch>
|