Added Tax Collectors

This commit is contained in:
CanonOverseer
2024-10-05 15:59:26 +08:00
parent e6b582b532
commit a2a8ebf193
3 changed files with 89 additions and 0 deletions
+19
View File
@@ -268,6 +268,25 @@
</guards>
</li>
<!-- Special: Tax Collector -->
<li>
<!-- Normal fights, heavy troopers -->
<kindDef>FCP_PawnGroupKind_TaxCollector</kindDef>
<traders>
<FCP_NCR_Crimson_Caravan_Trader>1</FCP_NCR_Crimson_Caravan_Trader>
</traders>
<carriers>
<FCP_Animal_Brahmin>2</FCP_Animal_Brahmin>
</carriers>
<guards>
<FCP_NCR_Trooper_Heavy>1</FCP_NCR_Trooper_Heavy>
<FCP_NCR_Trooper>5</FCP_NCR_Trooper>
<FCP_NCR_Officer>1</FCP_NCR_Officer>
<FCP_NCR_Ranger_Veteran>3</FCP_NCR_Ranger_Veteran>
<FCP_NCR_Citizen>2</FCP_NCR_Citizen>
</guards>
</li>
<!-- NCR Settlement -->
<li>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<Defs>
<IncidentDef ParentName="FCP_CaravanArrivalTaxCollectorBase">
<defName>FCP_CaravanArrivalTaxCollector_NCR</defName>
<label>NCR tax collector caravan arrival</label>
<letterLabel>NCR Tax Collectors</letterLabel>
<letterText>A tax collector from the NCR is approaching.\n\nThey will accept tax in gold, silver, and NCR dollars, you can also hand in prisoners and forgo any bounty in exchange. The one who gives over the tax will receive Service Points for doing their civic duty.\n\nYou can expect a tax collector to arrive roughly twice per year as long as you are not enemies with the NCR.\n\n&lt;color="#808080"&gt;"Pay Taxes"&lt;/color&gt; ~ President Kimball</letterText>
<modExtensions>
<li Class="FCP.Factions.FactionTaxCollectorsExtension">
<factionDef>FCP_Faction_NCR</factionDef>
<traderKindDef>FCP_Trader_NCRTaxCollector</traderKindDef>
</li>
</modExtensions>
</IncidentDef>
<TraderKindDef>
<defName>FCP_Trader_NCRTaxCollector</defName>
<label>NCR tax collector</label>
<requestable>False</requestable>
<commonality>1</commonality>
<category>TributeCollector</category>
<tradeCurrency>Favor</tradeCurrency>
<faction>FCP_Faction_NCR</faction>
<hideThingsNotWillingToTrade>False</hideThingsNotWillingToTrade>
<stockGenerators>
<!-- Buying -->
<li Class="StockGenerator_BuySlaves" />
<li Class="StockGenerator_BuySingleDef">
<thingDef>Gold</thingDef>
</li>
<li Class="StockGenerator_BuySingleDef">
<thingDef>Silver</thingDef>
</li>
<li Class="StockGenerator_BuySingleDef">
<thingDef>FCP_Currency_NCR_Dollar</thingDef>
</li>
</stockGenerators>
<modExtensions>
<!-- Just so NCR dollars show up -->
<li Class="FCP.Currencies.CurrencyReplacement">
<currency>Wood</currency>
</li>
</modExtensions>
</TraderKindDef>
</Defs>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>Defs/StorytellerDef[@Name = "BaseStoryteller"]/comps</xpath>
<value>
<li Class="StorytellerCompProperties_FactionInteraction">
<incident>FCP_CaravanArrivalTaxCollector_NCR</incident>
<minDaysPassed>20</minDaysPassed>
<baseIncidentsPerYear>2</baseIncidentsPerYear>
<minSpacingDays>30</minSpacingDays>
<minWealth>20000</minWealth>
<allowedTargetTags>
<li>Map_PlayerHome</li>
</allowedTargetTags>
<enableIfAnyModActive>
<li>Ludeon.RimWorld.Royalty</li>
</enableIfAnyModActive>
</li>
</value>
</Operation>
</Patch>