diff --git a/Content.Client/Doors/ClientDoorComponent.cs b/Content.Client/Doors/ClientDoorComponent.cs index aecc1c1762..37201e4a66 100644 --- a/Content.Client/Doors/ClientDoorComponent.cs +++ b/Content.Client/Doors/ClientDoorComponent.cs @@ -2,6 +2,11 @@ using System; using Content.Shared.Doors; using JetBrains.Annotations; using Robust.Shared.GameObjects; +using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; +using DrawDepthTag = Robust.Shared.GameObjects.DrawDepth; +using DrawDepth = Content.Shared.DrawDepth.DrawDepth; + namespace Content.Client.Doors { @@ -13,6 +18,12 @@ namespace Content.Client.Doors [ComponentReference(typeof(SharedDoorComponent))] public class ClientDoorComponent : SharedDoorComponent { + [DataField("openDrawDepth", customTypeSerializer: typeof(ConstantSerializer))] + public int OpenDrawDepth = (int) DrawDepth.Doors; + + [DataField("closedDrawDepth", customTypeSerializer: typeof(ConstantSerializer))] + public int ClosedDrawDepth = (int) DrawDepth.Doors; + private bool _stateChangeHasProgressed = false; private TimeSpan _timeOffset; @@ -27,7 +38,7 @@ namespace Content.Client.Doors base.State = value; - Owner.EntityManager.EventBus.RaiseEvent(EventSource.Local, new DoorStateMessage(this, State)); + Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new DoorStateChangedEvent(State), false); } } @@ -85,16 +96,4 @@ namespace Content.Client.Doors } } } - - public sealed class DoorStateMessage : EntityEventArgs - { - public ClientDoorComponent Component { get; } - public SharedDoorComponent.DoorState State { get; } - - public DoorStateMessage(ClientDoorComponent component, SharedDoorComponent.DoorState state) - { - Component = component; - State = state; - } - } } diff --git a/Content.Client/Doors/DoorSystem.cs b/Content.Client/Doors/DoorSystem.cs index e9dfceab69..80ee1384e4 100644 --- a/Content.Client/Doors/DoorSystem.cs +++ b/Content.Client/Doors/DoorSystem.cs @@ -1,6 +1,9 @@ using System; using System.Collections.Generic; using Content.Shared.Doors; +using Robust.Client.GameObjects; +using Robust.Shared.GameObjects; +using static Content.Shared.Doors.SharedDoorComponent; namespace Content.Client.Doors { @@ -18,28 +21,32 @@ namespace Content.Client.Doors { base.Initialize(); - SubscribeLocalEvent(HandleDoorState); + SubscribeLocalEvent(OnDoorStateChanged); } - /// - /// Registers doors to be periodically checked. - /// - /// A message corresponding to the component under consideration, raised when its state changes. - private void HandleDoorState(DoorStateMessage message) + private void OnDoorStateChanged(EntityUid uid, ClientDoorComponent door, DoorStateChangedEvent args) { - switch (message.State) + switch (args.State) { - case SharedDoorComponent.DoorState.Closed: - case SharedDoorComponent.DoorState.Open: - _activeDoors.Remove(message.Component); + case DoorState.Closed: + case DoorState.Open: + _activeDoors.Remove(door); break; - case SharedDoorComponent.DoorState.Closing: - case SharedDoorComponent.DoorState.Opening: - _activeDoors.Add(message.Component); + case DoorState.Closing: + case DoorState.Opening: + _activeDoors.Add(door); break; default: throw new ArgumentOutOfRangeException(); } + + if (!EntityManager.TryGetComponent(uid, out SpriteComponent sprite)) + return; + + // Update sprite draw depth. If the door is opening or closing, we will use the closed-draw depth. + sprite.DrawDepth = (args.State == DoorState.Open) + ? door.OpenDrawDepth + : door.ClosedDrawDepth; } /// diff --git a/Content.Client/MobState/DamageStateVisualizer.cs b/Content.Client/MobState/DamageStateVisualizer.cs index 00dc0c175d..6aba63f85d 100644 --- a/Content.Client/MobState/DamageStateVisualizer.cs +++ b/Content.Client/MobState/DamageStateVisualizer.cs @@ -69,10 +69,10 @@ namespace Content.Client.MobState } // So they don't draw over mobs anymore - if (_data == DamageState.Dead) + if (_data == DamageState.Dead && sprite.DrawDepth > (int) DrawDepth.Items) { _originalDrawDepth = sprite.DrawDepth; - sprite.DrawDepth = (int) DrawDepth.FloorObjects; + sprite.DrawDepth = (int) DrawDepth.Items; } else if (_originalDrawDepth != null) { diff --git a/Content.Server/Doors/DoorEvents.cs b/Content.Shared/Doors/DoorEvents.cs similarity index 85% rename from Content.Server/Doors/DoorEvents.cs rename to Content.Shared/Doors/DoorEvents.cs index 73a0986664..91d02cd4c8 100644 --- a/Content.Server/Doors/DoorEvents.cs +++ b/Content.Shared/Doors/DoorEvents.cs @@ -1,10 +1,7 @@ -#nullable enable -using System; -using Content.Shared.Doors; using Content.Shared.Interaction; using Robust.Shared.GameObjects; -namespace Content.Server.Doors +namespace Content.Shared.Doors { /// /// Raised when the door's State variable is changed to a new variable that it was not equal to before. @@ -27,13 +24,6 @@ namespace Content.Server.Doors { } - /// - /// Raised when the door is successfully opened. - /// - public class OnDoorOpenedEvent : HandledEntityEventArgs - { - } - /// /// Raised when the door is determining whether it is able to close. /// Cancel to stop the door from being closed. @@ -42,13 +32,6 @@ namespace Content.Server.Doors { } - /// - /// Raised when the door is successfully closed. - /// - public class OnDoorClosedEvent : HandledEntityEventArgs - { - } - /// /// Called when the door is determining whether it is able to deny. /// Cancel to stop the door from being able to deny. @@ -57,13 +40,6 @@ namespace Content.Server.Doors { } - /// - /// Raised when access to the door is denied. - /// - public class OnDoorDeniedEvent : HandledEntityEventArgs - { - } - /// /// Raised to determine whether the door's safety is on. /// Modify Safety to set the door's safety. diff --git a/Content.Shared/DrawDepth/DrawDepth.cs b/Content.Shared/DrawDepth/DrawDepth.cs index 6ea6bb3f3a..6dfe4c0440 100644 --- a/Content.Shared/DrawDepth/DrawDepth.cs +++ b/Content.Shared/DrawDepth/DrawDepth.cs @@ -6,25 +6,73 @@ namespace Content.Shared.DrawDepth [ConstantsFor(typeof(DrawDepthTag))] public enum DrawDepth { - LowFloors = DrawDepthTag.Default - 7, /// - /// Things that are beneath regular floors, such as wires. + /// This is for sub-floors, the floors you see after prying off a tile. + /// + LowFloors = DrawDepthTag.Default - 7, + + /// + /// Things that are beneath regular floors, such as wires or pipes. vents/scrubbers also use this to ensure + /// that they appear below carpets. /// BelowFloor = DrawDepthTag.Default - 6, - FloorTiles = DrawDepthTag.Default - 5, + /// - /// Things that are actually right on the floor, like vents. + /// Used for entities like carpets. + /// + FloorTiles = DrawDepthTag.Default - 5, + + /// + /// Things that are actually right on the floor, like puddles. This does not mean objects like + /// tables, even though they are technically "on the floor". /// FloorObjects = DrawDepthTag.Default - 4, + Walls = DrawDepthTag.Default - 3, + + /// + /// Used for windows (grilles use walls) and misc signage. Useful if you want to have an APC in the middle + /// of some wall-art or something. + /// WallTops = DrawDepthTag.Default - 2, + + /// + /// Posters, APCs, air alarms, etc. + /// WallMountedItems = DrawDepthTag.Default - 1, + + /// + /// Furniture, crates, etc. + /// Objects = DrawDepthTag.Default, - Items = DrawDepthTag.Default + 1, - Mobs = DrawDepthTag.Default + 2, - HighlightedItems = DrawDepthTag.Default + 3, - Effects = DrawDepthTag.Default + 4, - Ghosts = DrawDepthTag.Default + 5, - Overlays = DrawDepthTag.Default + 6, + + /// + /// In-between an furniture and an item. Useful for entities that need to appear on top of tables, but are + /// not items. E.g., power cell chargers. Also useful for pizza boxes, which appear above crates, but not + /// above the pizza itself. + /// + SmallObjects = DrawDepthTag.Default + 1, + + /// + /// Generic items. Things that should be above crates & tables, but underneath mobs. + /// + Items = DrawDepthTag.Default + 2, + + Mobs = DrawDepthTag.Default + 3, + + Doors = DrawDepthTag.Default + 4, + + /// + /// Explosions, fire, melee swings. Whatever. + /// + Effects = DrawDepthTag.Default + 5, + + Ghosts = DrawDepthTag.Default + 6, + + /// + /// 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 + 7, } } diff --git a/Resources/Prototypes/Entities/Effects/weapon_arc.yml b/Resources/Prototypes/Entities/Effects/weapon_arc.yml index 0c67751638..58ed1b675b 100644 --- a/Resources/Prototypes/Entities/Effects/weapon_arc.yml +++ b/Resources/Prototypes/Entities/Effects/weapon_arc.yml @@ -7,5 +7,5 @@ sprite: Effects/arcs.rsi noRot: false offset: 0, -0.85 - drawdepth: Overlays + drawdepth: Effects - type: MeleeWeaponArcAnimation diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/box.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/box.yml index c9a70d7764..255d820006 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/box.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/Containers/box.yml @@ -144,7 +144,7 @@ components: - type: Sprite sprite: Objects/Consumable/Food/Baked/pizza.rsi - drawdepth: FloorObjects + drawdepth: SmallObjects layers: - state: box - state: box-open diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/antimaterial.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/antimaterial.yml index 56663cd1be..3eafe1ad36 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/antimaterial.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/antimaterial.yml @@ -14,7 +14,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/clrifle.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/clrifle.yml index b08e0e5d70..8819a4e8de 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/clrifle.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/clrifle.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/lrifle.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/lrifle.yml index e80e00d633..75c4bf7f04 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/lrifle.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/lrifle.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/magnum.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/magnum.yml index 6b1b95e63f..3a3cd682cb 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/magnum.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/magnum.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/pistol.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/pistol.yml index 86867c4340..293a609057 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/pistol.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/pistol.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml index 62384b9d8b..b7b7906d9c 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml @@ -20,7 +20,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/srifle.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/srifle.yml index 31a97675ed..33ee4d433e 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/srifle.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/srifle.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/toy.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/toy.yml index 5166e6dc2c..ef2500cf77 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/toy.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/toy.yml @@ -13,7 +13,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: entity id: CartridgeCap diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml index b82141afd1..623c4c179d 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml @@ -12,7 +12,6 @@ netsync: false sprite: Objects/Weapons/Guns/Ammunition/Explosives/rpg.rsi state: frag - drawdepth: FloorObjects - type: entity id: GrenadeBaton @@ -28,7 +27,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer @@ -47,7 +45,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer @@ -66,7 +63,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer @@ -85,7 +81,6 @@ layers: - state: base map: ["enum.AmmoVisualLayers.Base"] - drawdepth: FloorObjects - type: Appearance visuals: - type: SpentAmmoVisualizer diff --git a/Resources/Prototypes/Entities/Structures/Doors/Airlocks/assembly.yml b/Resources/Prototypes/Entities/Structures/Doors/Airlocks/assembly.yml index 6fd5cb2953..22303658f3 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Airlocks/assembly.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Airlocks/assembly.yml @@ -7,7 +7,6 @@ - type: InteractionOutline - type: Sprite netsync: false - drawdepth: Mobs sprite: Structures/Doors/Airlocks/Standard/basic.rsi state: "assembly" - type: Physics diff --git a/Resources/Prototypes/Entities/Structures/Doors/Airlocks/base.yml b/Resources/Prototypes/Entities/Structures/Doors/Airlocks/base.yml index adffd0c88f..931801a274 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Airlocks/base.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Airlocks/base.yml @@ -7,7 +7,6 @@ - type: InteractionOutline - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Airlocks/Standard/basic.rsi layers: - state: closed diff --git a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml index bc40f68f76..7e47c40ce3 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml @@ -18,7 +18,6 @@ acts: ["Destruction"] - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Airlocks/Standard/firelock.rsi layers: - state: closed @@ -48,6 +47,7 @@ - VaultImpassable - SmallImpassable - type: Door + openDrawDepth: WallTops closeTimeOne: 0.1 closeTimeTwo: 0.6 openTimeOne: 0.1 diff --git a/Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door.yml b/Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door.yml index 7bdfca213b..d723241b78 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Shutter/blast_door.yml @@ -6,7 +6,6 @@ components: - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Shutters/blastdoor.rsi layers: - state: closed diff --git a/Resources/Prototypes/Entities/Structures/Doors/Shutter/shutters.yml b/Resources/Prototypes/Entities/Structures/Doors/Shutter/shutters.yml index 2cd2ca5a1c..b64aa6e7bf 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Shutter/shutters.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Shutter/shutters.yml @@ -7,7 +7,6 @@ components: - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Shutters/shutters.rsi layers: - state: closed @@ -98,7 +97,6 @@ components: - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Shutters/shutters_radiation.rsi layers: - state: closed @@ -121,7 +119,6 @@ components: - type: Sprite netsync: false - drawdepth: Mobs # They're on the same layer as mobs, perspective. sprite: Structures/Doors/Shutters/shutters_window.rsi layers: - state: closed diff --git a/Resources/Prototypes/Entities/Structures/Doors/Windoors/assembly.yml b/Resources/Prototypes/Entities/Structures/Doors/Windoors/assembly.yml index 003c64ca64..e402c6a1bf 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Windoors/assembly.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Windoors/assembly.yml @@ -7,7 +7,6 @@ - type: InteractionOutline - type: Sprite netsync: false - drawdepth: FloorObjects sprite: Structures/Doors/Windoors/windoor.rsi layers: - state: assembly @@ -53,7 +52,6 @@ components: - type: Sprite netsync: false - drawdepth: Mobs sprite: Structures/Doors/Windoors/windoor.rsi layers: - state: secure_underlay diff --git a/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml b/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml index bdec85619d..41d320d298 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml @@ -21,7 +21,6 @@ - VaultImpassable - type: Sprite netsync: false - drawdepth: FloorObjects sprite: Structures/Doors/Windoors/windoor.rsi layers: - state: closed @@ -104,7 +103,6 @@ components: - type: Sprite netsync: false - drawdepth: FloorObjects sprite: Structures/Doors/Windoors/windoor.rsi layers: - state: secure_underlay diff --git a/Resources/Prototypes/Entities/Structures/Furniture/Tables/base.yml b/Resources/Prototypes/Entities/Structures/Furniture/Tables/base.yml index f8979afb05..3c0f3b9b47 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/Tables/base.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/Tables/base.yml @@ -11,7 +11,6 @@ - type: PlaceableSurface - type: Sprite netsync: false - drawdepth: FloorTiles - type: Icon state: full - type: IconSmooth diff --git a/Resources/Prototypes/Entities/Structures/Furniture/carpets.yml b/Resources/Prototypes/Entities/Structures/Furniture/carpets.yml index fa2d20d58f..236a45b7b5 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/carpets.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/carpets.yml @@ -5,7 +5,7 @@ abstract: true components: - type: Sprite - drawdepth: BelowFloor + drawdepth: FloorTiles - type: Icon state: full - type: IconSmooth diff --git a/Resources/Prototypes/Entities/Structures/Machines/microwave.yml b/Resources/Prototypes/Entities/Structures/Machines/microwave.yml index 6ce9ae49a4..89b2724e0d 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/microwave.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/microwave.yml @@ -32,7 +32,7 @@ - type: Sprite netsync: false sprite: Structures/Machines/microwave.rsi - drawdepth: WallMountedItems + drawdepth: SmallObjects layers: - state: mw0 map: ["enum.MicrowaveVisualizerLayers.Base"] diff --git a/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml b/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml index 57e8a2a5bc..4bc8139697 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/reagent_grinder.yml @@ -28,4 +28,4 @@ netsync: false sprite: Structures/Machines/juicer.rsi state: juicer0 - drawdepth: Items + drawdepth: SmallObjects diff --git a/Resources/Prototypes/Entities/Structures/Power/chargers.yml b/Resources/Prototypes/Entities/Structures/Power/chargers.yml index 77dcebc5a2..79ee567ff8 100644 --- a/Resources/Prototypes/Entities/Structures/Power/chargers.yml +++ b/Resources/Prototypes/Entities/Structures/Power/chargers.yml @@ -5,7 +5,7 @@ - type: Sprite netsync: false sprite: Structures/Power/cell_recharger.rsi - drawdepth: Items + drawdepth: SmallObjects - type: Icon sprite: Structures/Power/cell_recharger.rsi state: empty @@ -27,7 +27,7 @@ - type: Sprite netsync: false sprite: Structures/Power/recharger.rsi - drawdepth: Items + drawdepth: SmallObjects - type: Icon sprite: Structures/Power/recharger.rsi state: empty @@ -49,7 +49,7 @@ - type: Sprite netsync: false sprite: Structures/Power/wall_recharger.rsi - drawdepth: Items + drawdepth: SmallObjects - type: Icon sprite: Structures/Power/wall_recharger.rsi state: empty diff --git a/Resources/Prototypes/Entities/Structures/Storage/storage.yml b/Resources/Prototypes/Entities/Structures/Storage/storage.yml index bf392e9473..9a2cf4cd59 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/storage.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/storage.yml @@ -13,7 +13,6 @@ - type: Sprite sprite: Structures/Furniture/furniture.rsi state: rack - drawdepth: FloorObjects - type: Physics bodyType: Static fixtures: diff --git a/Resources/Prototypes/Entities/Structures/Walls/barricades.yml b/Resources/Prototypes/Entities/Structures/Walls/barricades.yml index 382c7928ce..1310a3a9ea 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/barricades.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/barricades.yml @@ -65,4 +65,4 @@ sprite: Effects/fire.rsi normalState: 1 Sprite: - drawdepth: Overlays + drawdepth: Effects diff --git a/Resources/Prototypes/Entities/Structures/hydro_tray.yml b/Resources/Prototypes/Entities/Structures/hydro_tray.yml index fbbb64be0d..7039d8bb75 100644 --- a/Resources/Prototypes/Entities/Structures/hydro_tray.yml +++ b/Resources/Prototypes/Entities/Structures/hydro_tray.yml @@ -17,7 +17,6 @@ - type: Sprite sprite: Structures/Hydroponics/containers.rsi state: hydrotray3 - drawdepth: FloorObjects - type: PlantHolder drawWarnings: true - type: Construction diff --git a/Resources/Prototypes/Entities/Structures/soil.yml b/Resources/Prototypes/Entities/Structures/soil.yml index 55bf07b60a..dc2cec7cd3 100644 --- a/Resources/Prototypes/Entities/Structures/soil.yml +++ b/Resources/Prototypes/Entities/Structures/soil.yml @@ -38,7 +38,6 @@ - type: Sprite sprite: Structures/Hydroponics/misc.rsi state: soil - drawdepth: FloorObjects - type: PlantHolder drawWarnings: false - type: SolutionContainerManager