Implemented random character creation (#548)

* Implemented random character creation

* Pick from a list and apply a bit of randomness instead

* Rename SetInitialData, unselect list entries properly
This commit is contained in:
DamianX
2020-01-24 00:56:26 +01:00
committed by Pieter-Jan Briers
parent 5af5a02e31
commit 46ce6bf45e
5 changed files with 125 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Robust.Shared.Maths;
namespace Content.Shared.Preferences.Appearance
{
@@ -268,5 +269,15 @@ namespace Content.Shared.Preferences.Appearance
return string.Compare(styleA, styleB, StringComparison.CurrentCulture);
});
public static IReadOnlyList<Color> RealisticHairColors = new List<Color>
{
Color.Yellow,
Color.Black,
Color.SandyBrown,
Color.Brown,
Color.Wheat,
Color.Gray
};
}
}

View File

@@ -9,6 +9,8 @@ namespace Content.Shared.Preferences
public class HumanoidCharacterProfile : ICharacterProfile
{
private readonly Dictionary<string, JobPriority> _jobPriorities;
public static int MinimumAge = 18;
public static int MaximumAge = 90;
private HumanoidCharacterProfile(
string name,