[SHEKELS]reider207 ghost

This commit is contained in:
RavMorgan
2023-05-14 02:35:20 +03:00
committed by Aviu00
parent 36185582b4
commit f1c9f1ba2b
6 changed files with 39 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ public sealed class CustomGhostSpriteSystem : EntitySystem
if (string.Equals(customGhostPrototype.Ckey, ckey, StringComparison.CurrentCultureIgnoreCase))
{
_appearanceSystem.SetData(ghostUid, CustomGhostAppearance.Sprite, customGhostPrototype.CustomSpritePath.ToString());
_appearanceSystem.SetData(ghostUid, CustomGhostAppearance.SizeOverride, customGhostPrototype.SizeOverride);
if(customGhostPrototype.AlphaOverride > 0)
{
@@ -56,6 +57,9 @@ public sealed class CustomGhostSpriteSystem : EntitySystem
_metaData.SetEntityDescription(ghostUid, customGhostPrototype.GhostDescription);
}
return;
}