Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit 213a9ef

Browse files
authored
Renders reagent grinders over lights (space-wizards#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
1 parent 0d0eeb2 commit 213a9ef

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

Content.Shared/DrawDepth/DrawDepth.cs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,42 +81,46 @@ public enum DrawDepth
8181
WallMountedItems = DrawDepthTag.Default + 2,
8282

8383
/// <summary>
84-
/// Generic items. Things that should be above crates & tables, but underneath mobs.
84+
/// To use for objects that would usually fall under SmallObjects, but appear taller than 1 tile. For example: Reagent Grinder
8585
/// </summary>
86-
Items = DrawDepthTag.Default + 3,
86+
LargeObjects = DrawDepthTag.Default + 3,
8787

88+
/// <summary>
89+
/// Generic items. Things that should be above crates & tables, but underneath mobs.
90+
/// </summary>
91+
Items = DrawDepthTag.Default + 4,
8892
/// <summary>
8993
/// Stuff that should be drawn below mobs, but on top of items. Like muzzle flash.
9094
/// </summary>
91-
BelowMobs = DrawDepthTag.Default + 4,
95+
BelowMobs = DrawDepthTag.Default + 5,
9296

93-
Mobs = DrawDepthTag.Default + 5,
97+
Mobs = DrawDepthTag.Default + 6,
9498

95-
OverMobs = DrawDepthTag.Default + 6,
99+
OverMobs = DrawDepthTag.Default + 7,
96100

97-
Doors = DrawDepthTag.Default + 7,
101+
Doors = DrawDepthTag.Default + 8,
98102

99103
/// <summary>
100104
/// Blast doors and shutters which go over the usual doors.
101105
/// </summary>
102-
BlastDoors = DrawDepthTag.Default + 8,
106+
BlastDoors = DrawDepthTag.Default + 9,
103107

104108
/// <summary>
105109
/// Stuff that needs to draw over most things, but not effects, like Kudzu.
106110
/// </summary>
107-
Overdoors = DrawDepthTag.Default + 9,
111+
Overdoors = DrawDepthTag.Default + 10,
108112

109113
/// <summary>
110114
/// Explosions, fire, melee swings. Whatever.
111115
/// </summary>
112-
Effects = DrawDepthTag.Default + 10,
116+
Effects = DrawDepthTag.Default + 11,
113117

114-
Ghosts = DrawDepthTag.Default + 11,
118+
Ghosts = DrawDepthTag.Default + 12,
115119

116120
/// <summary>
117121
/// Use this selectively if it absolutely needs to be drawn above (almost) everything else. Examples include
118122
/// the pointing arrow, the drag & drop ghost-entity, and some debug tools.
119123
/// </summary>
120-
Overlays = DrawDepthTag.Default + 12,
124+
Overlays = DrawDepthTag.Default + 13,
121125
}
122126
}

Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- TabletopMachineLayer
3333
- type: Sprite
3434
sprite: Structures/Machines/grinder.rsi
35-
drawdepth: SmallObjects
35+
drawdepth: LargeObjects
3636
snapCardinals: true
3737
offset: "0.0,0.4"
3838
layers:

0 commit comments

Comments
 (0)