Made evergrowth Genitalia tick configurable
This commit is contained in:
parent
7c22dcd348
commit
57bb1950e4
|
@ -8,6 +8,7 @@
|
||||||
- Simple Gene that removes Sex need (called asexual, `rjw_genes_no_sex_need`)
|
- Simple Gene that removes Sex need (called asexual, `rjw_genes_no_sex_need`)
|
||||||
- New Gene that grows Penisses on Oral sex. Configurable in XML.
|
- New Gene that grows Penisses on Oral sex. Configurable in XML.
|
||||||
- New Gene Lifeforce Empath: Gain Lifeforce for sexually satisfied pawns, loose for frustrated pawns.
|
- New Gene Lifeforce Empath: Gain Lifeforce for sexually satisfied pawns, loose for frustrated pawns.
|
||||||
|
- More genes are configurable with XML, e.g. tick speed, distances or multipliers. I am getting the hang of it.
|
||||||
|
|
||||||
**Fixes:**
|
**Fixes:**
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,12 @@
|
||||||
<li>PenisSize</li>
|
<li>PenisSize</li>
|
||||||
<li>VaginaSize</li>
|
<li>VaginaSize</li>
|
||||||
</exclusionTags>
|
</exclusionTags>
|
||||||
|
<modExtensions>
|
||||||
|
<li Class="RJW_Genes.TickIntervalExtension">
|
||||||
|
<!-- One day has 60k ticks-->
|
||||||
|
<tickInterval>60000</tickInterval>
|
||||||
|
</li>
|
||||||
|
</modExtensions>
|
||||||
</GeneDef>
|
</GeneDef>
|
||||||
|
|
||||||
</Defs>
|
</Defs>
|
|
@ -265,8 +265,8 @@
|
||||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||||
<displayOrderInCategory>3</displayOrderInCategory>
|
<displayOrderInCategory>3</displayOrderInCategory>
|
||||||
<displayCategory>rjw_genes_fertilin</displayCategory>
|
<displayCategory>rjw_genes_fertilin</displayCategory>
|
||||||
<biostatCpx>1</biostatCpx>
|
<biostatCpx>3</biostatCpx>
|
||||||
<biostatMet>-1</biostatMet>
|
<biostatMet>-2</biostatMet>
|
||||||
|
|
||||||
<modExtensions>
|
<modExtensions>
|
||||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||||
|
|
|
@ -16,13 +16,14 @@ namespace RJW_Genes
|
||||||
public const int RESIZING_AGE = 20;
|
public const int RESIZING_AGE = 20;
|
||||||
|
|
||||||
//public const int GROWTH_INTERVAL = 1000; // Test value for Quick Trials
|
//public const int GROWTH_INTERVAL = 1000; // Test value for Quick Trials
|
||||||
public const int GROWTH_INTERVAL = 60000; // 60k == 1 day
|
public const int GROWTH_INTERVAL_FALLBACK = 60000; // 60k == 1 day
|
||||||
|
|
||||||
public override void Tick()
|
public override void Tick()
|
||||||
{
|
{
|
||||||
base.Tick();
|
base.Tick();
|
||||||
|
|
||||||
if (pawn.IsHashIntervalTick(GROWTH_INTERVAL)
|
int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, GROWTH_INTERVAL_FALLBACK);
|
||||||
|
if (pawn.IsHashIntervalTick(interval)
|
||||||
&& this.pawn.Map != null
|
&& this.pawn.Map != null
|
||||||
&& pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
|
&& pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue