mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
resizing age slider
This commit is contained in:
parent
35fbe09ab7
commit
60eef21c0e
13 changed files with 17 additions and 35 deletions
|
@ -17,10 +17,7 @@ namespace RJW_Genes
|
|||
public abstract class Gene_GenitaliaResizingGene : 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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the gene was already applied.
|
||||
|
@ -33,7 +30,7 @@ namespace RJW_Genes
|
|||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
if (pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
|
||||
if (pawn.ageTracker.AgeBiologicalYears >= RJW_Genes_Settings.rjw_genes_resizing_age)
|
||||
{
|
||||
Resize();
|
||||
ResizingWasApplied = true;
|
||||
|
@ -43,7 +40,7 @@ namespace RJW_Genes
|
|||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
if (pawn.ageTracker.AgeBiologicalYears >= RESIZING_AGE)
|
||||
if (pawn.ageTracker.AgeBiologicalYears >= RJW_Genes_Settings.rjw_genes_resizing_age)
|
||||
{
|
||||
Resize();
|
||||
ResizingWasApplied = true;
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace RJW_Genes
|
|||
|
||||
static void Postfix(Pawn ___pawn, int birthdayAge)
|
||||
{
|
||||
if (birthdayAge >= Gene_GenitaliaResizingGene.RESIZING_AGE)
|
||||
if (birthdayAge >= RJW_Genes_Settings.rjw_genes_resizing_age)
|
||||
{
|
||||
foreach(Gene_GenitaliaResizingGene gene in GeneUtility.GetGenitaliaResizingGenes(___pawn))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue