* Import bird sprites and define basic mob. * SKREEEEEEEEE * Move hair styles to new sprite accessory prototypes. Basic stuff, no multi-species stuff yet. * Vox hair styles and clothes * Make HumanoidCharacterProfile.Default() a static default to fix tests. Usages that wanted the previous random behavior now call Random(). * Remove names from hair style prototypes. (They're in localization files) * Update Content.Shared/Actions/ActionType.cs (sk)reeee github Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
#nullable enable
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Robust.Shared.Maths;
|
|
|
|
namespace Content.Shared.Preferences.Appearance
|
|
{
|
|
public static class HairStyles
|
|
{
|
|
public const string DefaultHairStyle = "HairBald";
|
|
public const string DefaultFacialHairStyle = "FacialHairShaved";
|
|
|
|
public static readonly IReadOnlyList<Color> RealisticHairColors = new List<Color>
|
|
{
|
|
Color.Yellow,
|
|
Color.Black,
|
|
Color.SandyBrown,
|
|
Color.Brown,
|
|
Color.Wheat,
|
|
Color.Gray
|
|
};
|
|
|
|
// These comparers put the default hair style (shaved/bald) at the very top.
|
|
// For in the hair style pickers.
|
|
|
|
public static readonly IComparer<SpriteAccessoryPrototype> SpriteAccessoryComparer =
|
|
Comparer<SpriteAccessoryPrototype>.Create((a, b) =>
|
|
{
|
|
var cmp = -a.Priority.CompareTo(b.Priority);
|
|
if (cmp != 0)
|
|
return cmp;
|
|
|
|
return string.Compare(a.ID, b.ID, StringComparison.CurrentCulture);
|
|
});
|
|
}
|
|
}
|