From d68d71807db824d7fe53934a080cda4899317fb0 Mon Sep 17 00:00:00 2001 From: Hugal31 Date: Sun, 31 May 2020 19:46:50 +0200 Subject: [PATCH] Draw ghosts at the ghost layer (#1045) * Draw ghosts at the ghost layer * Add ghosts draw depth --- Content.Shared/GameObjects/DrawDepth.cs | 3 ++- Resources/Prototypes/Entities/Mobs/observer.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Shared/GameObjects/DrawDepth.cs b/Content.Shared/GameObjects/DrawDepth.cs index 1b4520b8f9..5d9524ea3d 100644 --- a/Content.Shared/GameObjects/DrawDepth.cs +++ b/Content.Shared/GameObjects/DrawDepth.cs @@ -22,6 +22,7 @@ namespace Content.Shared.GameObjects Objects = DrawDepthTag.Default, Items = DrawDepthTag.Default + 1, Mobs = DrawDepthTag.Default + 2, - Overlays = DrawDepthTag.Default + 3, + Ghosts = DrawDepthTag.Default + 3, + Overlays = DrawDepthTag.Default + 4, } } diff --git a/Resources/Prototypes/Entities/Mobs/observer.yml b/Resources/Prototypes/Entities/Mobs/observer.yml index 362ce3d704..4cfb02728e 100644 --- a/Resources/Prototypes/Entities/Mobs/observer.yml +++ b/Resources/Prototypes/Entities/Mobs/observer.yml @@ -18,7 +18,7 @@ - type: Ghost - type: Sprite netsync: false - drawdepth: Mobs + drawdepth: Ghosts sprite: Mob/ghost.rsi state: animated color: "#fff8"