- add: database for genitals

This commit is contained in:
2024-02-16 21:21:19 +03:00
parent 52628d0393
commit c3e8e64fb8
14 changed files with 3907 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using Content.Shared._Amour.Hole;
using Content.Shared.Decals;
using Content.Shared.Humanoid.Markings;
using Content.Shared.Humanoid.Prototypes;
@@ -23,6 +24,7 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem
[Dependency] private readonly INetManager _netManager = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly MarkingManager _markingManager = default!;
[Dependency] private readonly SharedHoleSystem _holeSystem = default!;
[ValidatePrototypeId<SpeciesPrototype>]
public const string DefaultSpecies = "Human";
@@ -274,6 +276,12 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem
SetSkinColor(uid, profile.Appearance.SkinColor, false);
//AMOUR
foreach (var genitals in profile.Appearance.Genitals)
{
_holeSystem.AddHole(uid,genitals.GenitalId,genitals.Color);
}
humanoid.MarkingSet.Clear();
// Add markings that doesn't need coloring. We store them until we add all other markings that doesn't need it.