mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
settings, random genitalia selectio
This commit is contained in:
parent
25614f42ae
commit
95b48cc008
17 changed files with 74 additions and 142 deletions
|
@ -9,22 +9,15 @@ namespace RJW_Genes
|
|||
public class Gene_EvergrowingGenitalia : RJW_Gene
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The age (in years) at which the Pawns Genes will take effect, resizing their genitalia.
|
||||
/// </summary>
|
||||
public const int RESIZING_AGE = 20;
|
||||
|
||||
//public const int GROWTH_INTERVAL = 1000; // Test value for Quick Trials
|
||||
public const int GROWTH_INTERVAL_FALLBACK = 60000; // 60k == 1 day
|
||||
|
||||
public override void Tick()
|
||||
{
|
||||
base.Tick();
|
||||
|
||||
int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, GROWTH_INTERVAL_FALLBACK);
|
||||
int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, RJW_Genes_Settings.rjw_genes_evergrowth_ticks);
|
||||
if (pawn.IsHashIntervalTick(interval)
|
||||
&& this.pawn.Map != null
|
||||
&& pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
|
||||
&& pawn.ageTracker.AgeBiologicalYears >= RJW_Genes_Settings.rjw_genes_resizing_age)
|
||||
{
|
||||
GrowPenisses();
|
||||
GrowVaginas();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue