Added a configurable AgeTransferExtension for AgeDrain and YouthFountain, some logging #35

This commit is contained in:
Vegapnk 2023-05-10 20:57:49 +02:00
parent d00834049b
commit 2a7a1be7e1
5 changed files with 111 additions and 24 deletions

View file

@ -12,17 +12,17 @@
</modExtensions>
</GeneDef>
<GeneDef ParentName="SpecialBaseBase">
<GeneDef ParentName="SpecialBase">
<defName>rjw_genes_orgasm_rush</defName>
<label>Orgasm Rush</label>
<description>On Orgasm, carriers of this gene get a boost in activity. (rest-need is partially filled)</description>
<description>On orgasm, carriers of this gene get a boost in activity. (rest-need is partially filled)</description>
<biostatCpx>1</biostatCpx>
<biostatMet>-2</biostatMet>
<iconPath>UI/Memes/FleshPurity</iconPath>
<displayOrderInCategory>1</displayOrderInCategory>
</GeneDef>
<GeneDef ParentName="SpecialBaseBase">
<GeneDef ParentName="SpecialBase">
<defName>rjw_genes_youth_fountain</defName>
<label>Youth Fountain</label>
<description>Having sex with a carrier of this gene makes the partner slightly younger. (Partner stays adult)</description>
@ -30,9 +30,16 @@
<biostatMet>-2</biostatMet>
<iconPath>UI/Ideoligions/FireLeaves</iconPath>
<displayOrderInCategory>2</displayOrderInCategory>
<modExtensions>
<li Class="RJW_Genes.AgeTransferExtension">
<!-- 60k = 1 day -->
<ageTickChange>60000</ageTickChange>
<minAgeInYears>18</minAgeInYears>
</li>
</modExtensions>
</GeneDef>
<GeneDef ParentName="SpecialBaseBase">
<GeneDef ParentName="SpecialBase">
<defName>rjw_genes_sex_age_drain</defName>
<label>Sexual Age Drain</label>
<description>Having sex transfers some of the partners life-time to themselves. (Pawn stays adult)</description>
@ -40,12 +47,19 @@
<biostatMet>-1</biostatMet>
<iconPath>UI/Icons/ColonistBar/Idle</iconPath>
<displayOrderInCategory>3</displayOrderInCategory>
<modExtensions>
<li Class="RJW_Genes.AgeTransferExtension">
<!-- 120k = 2 days -->
<ageTickChange>120000</ageTickChange>
<minAgeInYears>18</minAgeInYears>
</li>
</modExtensions>
</GeneDef>
<GeneDef ParentName="SpecialBaseBase">
<GeneDef ParentName="SpecialBase">
<defName>rjw_genes_aphrodisiac_pheromones</defName>
<label>Aphrodisiac Pheromones</label>
<geneClass>RJW_Genes.Gene_Aphrodisiac_Pheromones</geneClass>
<geneClass>RJW_Genes.Gene_Aphrodisiac_Pheromones</geneClass>
<description>Pheremones of this pawn induce an incressed sexdrive to others nearby.</description>
<iconPath>Genes/Icons/Pheromones</iconPath>
<displayOrderInCategory>4</displayOrderInCategory>