From edc911fbdbfe2c2f27739c47ccfb619ec8762784 Mon Sep 17 00:00:00 2001 From: Kill_Me_I_Noobs <118206719+Vonsant@users.noreply.github.com> Date: Wed, 24 Apr 2024 00:22:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=82?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=B0=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Systems/HumanoidAppearanceSystem.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs b/Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs index 37d8ba32841..505ad4f16c7 100644 --- a/Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs +++ b/Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs @@ -151,42 +151,4 @@ public void SetMarkingColor(EntityUid uid, MarkingCategories category, int index Dirty(uid, humanoid); } - - /// - /// Takes ID of the species prototype, returns UI-friendly name of the species. - /// - public string GetSpeciesRepresentation(string speciesId) - { - if (_prototypeManager.TryIndex(speciesId, out var species)) - { - return Loc.GetString(species.Name); - } - else - { - return Loc.GetString("humanoid-appearance-component-unknown-species"); - } - } - - public string GetAgeRepresentation(string species, int age) - { - _prototypeManager.TryIndex(species, out var speciesPrototype); - - if (speciesPrototype == null) - { - Log.Error("Tried to get age representation of species that couldn't be indexed: " + species); - return Loc.GetString("identity-age-young"); - } - - if (age < speciesPrototype.YoungAge) - { - return Loc.GetString("identity-age-young"); - } - - if (age < speciesPrototype.OldAge) - { - return Loc.GetString("identity-age-middle-aged"); - } - - return Loc.GetString("identity-age-old"); - } }