CatStation/Content.Shared/Tools/Components/LayerChangeOnWeldComponent.cs
Errant 967c45c1c5
High security door fixes (#45611)
* door inheritance fix

* wip comments

* cleanup 1

* move static price up the tree

* some comments

* undo name change

* cleanup

* more tweaks

* formatting
2026-08-24 18:02:46 +00:00

21 lines
670 B
C#

using Content.Shared.Physics;
using Content.Shared.Tools.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Tools.Components;
/// <summary>
/// This component changes the collision layer of airlocks when they are welded, so rats can't crawl under them
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(WeldableSystem))]
public sealed partial class LayerChangeOnWeldComponent : Component
{
[DataField("unWeldedLayer")]
[ViewVariables]
public CollisionGroup UnWeldedLayer = CollisionGroup.AirlockLayer;
[DataField("weldedLayer")]
[ViewVariables]
public CollisionGroup WeldedLayer = CollisionGroup.WallLayer;
}