From 829143dd5510f2fe7ea7f44e7b1bb6e440b7faa5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:01:06 +1100 Subject: [PATCH] Add clickable to lava (#14353) --- .../StepTrigger/Components/StepTriggerComponent.cs | 6 +++--- Resources/Prototypes/Entities/Tiles/lava.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs b/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs index 08e794ffad..0e0e48f25d 100644 --- a/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs +++ b/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs @@ -26,19 +26,19 @@ public sealed class StepTriggerComponent : Component /// Whether or not this component will currently try to trigger for entities. /// [DataField("active")] - public bool Active { get; set; } = true; + public bool Active = true; /// /// Ratio of shape intersection for a trigger to occur. /// [DataField("intersectRatio")] - public float IntersectRatio { get; set; } = 0.3f; + public float IntersectRatio = 0.3f; /// /// Entities will only be triggered if their speed exceeds this limit. /// [DataField("requiredTriggeredSpeed")] - public float RequiredTriggerSpeed { get; set; } = 3.5f; + public float RequiredTriggerSpeed = 3.5f; } [RegisterComponent] diff --git a/Resources/Prototypes/Entities/Tiles/lava.yml b/Resources/Prototypes/Entities/Tiles/lava.yml index ee91e83ecb..5d17c23692 100644 --- a/Resources/Prototypes/Entities/Tiles/lava.yml +++ b/Resources/Prototypes/Entities/Tiles/lava.yml @@ -13,6 +13,7 @@ - type: Transform anchored: true - type: SyncSprite + - type: Clickable - type: Sprite sprite: Tiles/Planet/lava.rsi netsync: false