diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 58633d2a2a..0f2feac203 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Preferences private readonly Dictionary _jobPriorities; private readonly List _antagPreferences; public static int MinimumAge = 18; - public static int MaximumAge = 90; + public static int MaximumAge = 120; private HumanoidCharacterProfile( string name, @@ -69,7 +69,7 @@ namespace Content.Shared.Preferences public HumanoidCharacterProfile WithAge(int age) { - return new HumanoidCharacterProfile(Name, age, Sex, Appearance, _jobPriorities, PreferenceUnavailable, _antagPreferences); + return new HumanoidCharacterProfile(Name, Math.Clamp(age, MinimumAge, MaximumAge), Sex, Appearance, _jobPriorities, PreferenceUnavailable, _antagPreferences); } public HumanoidCharacterProfile WithSex(Sex sex)