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:
committed by
Pieter-Jan Briers
parent
5af5a02e31
commit
46ce6bf45e
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user