Humanoid patches (#11467)

* restores species/age on examine

* makes the default human skin tone a little less green

* ensures human skin tone verification is rounded to the nearest integer value, adds tests for ensuring all human skin tones are valid and that the default skin tone is valid
This commit is contained in:
Flipp Syder
2022-09-22 18:25:56 -07:00
committed by GitHub
parent 61df1c7c27
commit caa5efcd6f
4 changed files with 69 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
using Content.Shared.Humanoid;
using NUnit.Framework;
namespace Content.Tests.Shared.Preferences.Humanoid;
[TestFixture]
public sealed class SkinTonesTest
{
[Test]
public void TestHumanSkinToneValidity()
{
for (var i = 0; i <= 100; i++)
{
var color = SkinColor.HumanSkinTone(i);
Assert.That(SkinColor.VerifyHumanSkinTone(color));
}
}
[Test]
public void TestDefaultSkinToneValid()
{
Assert.That(SkinColor.VerifyHumanSkinTone(SkinColor.ValidHumanSkinTone));
}
}