From 213a9ef36d5dc48e4304eadd11402000bf767210 Mon Sep 17 00:00:00 2001 From: 3nderall <101940324+3nderall@users.noreply.github.com> Date: Sat, 3 May 2025 04:27:20 +0000 Subject: [PATCH] Renders reagent grinders over lights (#31218) * Adds a new layer to DrawDepth.cs for use with objects similar to the reagent grinder and properly summarises its uses * applies new layer in DrawDepth.cs to reagent_grinder.yml * Fix merge conflict * oops --- Content.Shared/DrawDepth/DrawDepth.cs | 26 +++++++++++-------- .../Structures/Machines/reagent_grinder.yml | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Content.Shared/DrawDepth/DrawDepth.cs b/Content.Shared/DrawDepth/DrawDepth.cs index 2c1a130da4..dbec886971 100644 --- a/Content.Shared/DrawDepth/DrawDepth.cs +++ b/Content.Shared/DrawDepth/DrawDepth.cs @@ -81,42 +81,46 @@ namespace Content.Shared.DrawDepth WallMountedItems = DrawDepthTag.Default + 2, /// - /// Generic items. Things that should be above crates & tables, but underneath mobs. + /// To use for objects that would usually fall under SmallObjects, but appear taller than 1 tile. For example: Reagent Grinder /// - Items = DrawDepthTag.Default + 3, + LargeObjects = DrawDepthTag.Default + 3, + /// + /// Generic items. Things that should be above crates & tables, but underneath mobs. + /// + Items = DrawDepthTag.Default + 4, /// /// Stuff that should be drawn below mobs, but on top of items. Like muzzle flash. /// - BelowMobs = DrawDepthTag.Default + 4, + BelowMobs = DrawDepthTag.Default + 5, - Mobs = DrawDepthTag.Default + 5, + Mobs = DrawDepthTag.Default + 6, - OverMobs = DrawDepthTag.Default + 6, + OverMobs = DrawDepthTag.Default + 7, - Doors = DrawDepthTag.Default + 7, + Doors = DrawDepthTag.Default + 8, /// /// Blast doors and shutters which go over the usual doors. /// - BlastDoors = DrawDepthTag.Default + 8, + BlastDoors = DrawDepthTag.Default + 9, /// /// Stuff that needs to draw over most things, but not effects, like Kudzu. /// - Overdoors = DrawDepthTag.Default + 9, + Overdoors = DrawDepthTag.Default + 10, /// /// Explosions, fire, melee swings. Whatever. /// - Effects = DrawDepthTag.Default + 10, + Effects = DrawDepthTag.Default + 11, - Ghosts = DrawDepthTag.Default + 11, + Ghosts = DrawDepthTag.Default + 12, /// /// Use this selectively if it absolutely needs to be drawn above (almost) everything else. Examples include /// the pointing arrow, the drag & drop ghost-entity, and some debug tools. /// - Overlays = DrawDepthTag.Default + 12, + Overlays = DrawDepthTag.Default + 13, } } diff --git a/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml b/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml index 6456e043b8..f384de64ab 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml @@ -32,7 +32,7 @@ - TabletopMachineLayer - type: Sprite sprite: Structures/Machines/grinder.rsi - drawdepth: SmallObjects + drawdepth: LargeObjects snapCardinals: true offset: "0.0,0.4" layers: -- 2.51.2