Fix zombie eye appearance (#19427)
This commit is contained in:
@@ -20,6 +20,7 @@ using Content.Shared.Zombies;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Random;
|
||||
using Robust.Shared.Timing;
|
||||
using Content.Shared.Humanoid;
|
||||
|
||||
namespace Content.Server.Zombies
|
||||
{
|
||||
@@ -256,7 +257,11 @@ namespace Content.Server.Zombies
|
||||
_humanoidAppearance.SetBaseLayerColor(target, layer, info.Color);
|
||||
_humanoidAppearance.SetBaseLayerId(target, layer, info.ID);
|
||||
}
|
||||
_humanoidAppearance.SetSkinColor(target, zombiecomp.BeforeZombifiedSkinColor);
|
||||
if(TryComp<HumanoidAppearanceComponent>(target, out var appcomp))
|
||||
{
|
||||
appcomp.EyeColor = zombiecomp.BeforeZombifiedEyeColor;
|
||||
}
|
||||
_humanoidAppearance.SetSkinColor(target, zombiecomp.BeforeZombifiedSkinColor, false);
|
||||
_bloodstream.ChangeBloodReagent(target, zombiecomp.BeforeZombifiedBloodReagent);
|
||||
|
||||
_metaData.SetEntityName(target, zombiecomp.BeforeZombifiedEntityName);
|
||||
|
||||
Reference in New Issue
Block a user