]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add clickable to lava (#14353)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 3 Mar 2023 00:01:06 +0000 (11:01 +1100)
committerGitHub <noreply@github.com>
Fri, 3 Mar 2023 00:01:06 +0000 (11:01 +1100)
Content.Shared/StepTrigger/Components/StepTriggerComponent.cs
Resources/Prototypes/Entities/Tiles/lava.yml

index 08e794ffad34bf180d30d7ca905d797c97964e73..0e0e48f25d547c843e5fb3572602c43616454221 100644 (file)
@@ -26,19 +26,19 @@ public sealed class StepTriggerComponent : Component
     ///     Whether or not this component will currently try to trigger for entities.
     /// </summary>
     [DataField("active")]
-    public bool Active { get; set; } = true;
+    public bool Active = true;
 
     /// <summary>
     ///     Ratio of shape intersection for a trigger to occur.
     /// </summary>
     [DataField("intersectRatio")]
-    public float IntersectRatio { get; set; } = 0.3f;
+    public float IntersectRatio = 0.3f;
 
     /// <summary>
     ///     Entities will only be triggered if their speed exceeds this limit.
     /// </summary>
     [DataField("requiredTriggeredSpeed")]
-    public float RequiredTriggerSpeed { get; set; } = 3.5f;
+    public float RequiredTriggerSpeed = 3.5f;
 }
 
 [RegisterComponent]
index ee91e83ecbffe8bcdf4d467a92d728f4821d677a..5d17c23692d5a7e5085fe1ad9e45549f9957b314 100644 (file)
@@ -13,6 +13,7 @@
   - type: Transform
     anchored: true
   - type: SyncSprite
+  - type: Clickable
   - type: Sprite
     sprite: Tiles/Planet/lava.rsi
     netsync: false