Issues #17034: Changed Dead Mob DrawDepth (#17052)

* Issues #17034: Changed Mob Dead DrawDepth from FloorObjects to Items

* Issues #17034: Added new DeadMobs Layer
This commit is contained in:
ArthurMousatov
2023-07-18 07:13:59 -04:00
committed by GitHub
parent f594403fe8
commit 7d1c576556
2 changed files with 12 additions and 10 deletions

View File

@@ -40,10 +40,10 @@ public sealed class DamageStateVisualizerSystem : VisualizerSystem<DamageStateVi
// So they don't draw over mobs anymore
if (data == MobState.Dead)
{
if (sprite.DrawDepth > (int) DrawDepth.FloorObjects)
if (sprite.DrawDepth > (int) DrawDepth.DeadMobs)
{
component.OriginalDrawDepth = sprite.DrawDepth;
sprite.DrawDepth = (int) DrawDepth.FloorObjects;
sprite.DrawDepth = (int) DrawDepth.DeadMobs;
}
}
else if (component.OriginalDrawDepth != null)