Unhardcode species age ranges (#11979)

This commit is contained in:
Rane
2022-10-22 18:13:46 -04:00
committed by GitHub
parent 471f5dbf10
commit 916c4f9522
5 changed files with 50 additions and 17 deletions

View File

@@ -95,6 +95,31 @@ public sealed class SpeciesPrototype : IPrototype
[DataField("sexes")]
public List<Sex> Sexes { get; } = new List<Sex>(){ Sex.Male, Sex.Female };
/// <summary>
/// Characters younger than this are too young to be hired by Nanotrasen.
/// <summary>
[DataField("minAge")]
public int MinAge = 18;
/// <summary>
/// Characters younger than this appear young.
/// <summary>
[DataField("youngAge")]
public int YoungAge = 30;
/// <summary>
/// Characters older than this appear old. Characters in between young and old age appear middle aged.
/// </summary>
[DataField("oldAge")]
public int OldAge = 60;
/// <summary>
/// Characters cannot be older than this. Only used for restrictions...
/// although imagine if ghosts could age people WYCI...
/// <summary>
[DataField("maxAge")]
public int MaxAge = 120;
}
public enum SpeciesNaming : byte