fix species skin colors (#19417)

This commit is contained in:
Nemanja
2023-08-21 22:05:24 -04:00
committed by GitHub
parent 376521d818
commit 3f2ea17bb7
5 changed files with 15 additions and 7 deletions

View File

@@ -163,9 +163,9 @@ namespace Content.Shared.Humanoid
break;
case HumanoidSkinColor.Hues:
case HumanoidSkinColor.TintedHues:
var rbyte = random.Next(0, 255);
var gbyte = random.Next(0, 255);
var bbyte = random.Next(0, 255);
var rbyte = random.NextByte();
var gbyte = random.NextByte();
var bbyte = random.NextByte();
newSkinColor = new Color(rbyte, gbyte, bbyte);
break;
}

View File

@@ -118,7 +118,7 @@ public static class SkinColor
public static Color TintedHues(Color color)
{
var newColor = Color.ToHsv(color);
newColor.Y = .1f;
newColor.Y *= 0.1f;
return Color.FromHsv(newColor);
}

View File

@@ -12,13 +12,19 @@
- Radius
- Ulna
- Carpals
- Phanages
- Phalanges
- Pelvis
- Femur
- Tibia
- Fibula
- Marrow
- Tarsalls
- Tarsals
- Patella
- Tailbone
- Boner
- Rib
- Hyoid
- Coccyx
- Tarsus
- Lacrimal
- Bone

View File

@@ -4,6 +4,7 @@
roundStart: true
prototype: MobDiona
sprites: MobDionaSprites
defaultSkinTone: "#cdb369"
markingLimits: MobDionaMarkingLimits
dollPrototype: MobDionaDummy
skinColoration: Hues

View File

@@ -4,6 +4,7 @@
roundStart: false
prototype: MobSkeletonPerson
sprites: MobSkeletonSprites
defaultSkinTone: "#fff9e2"
markingLimits: MobHumanMarkingLimits
maleFirstNames: skeletonNamesFirst
femaleFirstNames: skeletonNamesFirst