]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Welder Blindness Effect Increase (#22304)
authorNairod <110078045+Nairodian@users.noreply.github.com>
Sun, 10 Dec 2023 23:10:07 +0000 (17:10 -0600)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 23:10:07 +0000 (15:10 -0800)
Content.Client/Eye/Blinding/BlurryVisionOverlay.cs
Content.Shared/Eye/Blinding/Components/BlindableComponent.cs
Content.Shared/Eye/Blinding/Components/BlurryVisionComponent.cs

index 94590b54a50a249598e37b097309ac98db3af7ba..7d0e7916da2422ed28307d79ac930f0884fee054 100644 (file)
@@ -54,7 +54,7 @@ namespace Content.Client.Eye.Blinding
             // Maybe gradually shrink the view-size?
             // Make the effect only apply to the edge of the viewport?
             // Actually make it blurry??
-            var opacity =  0.75f * _magnitude / BlurryVisionComponent.MaxMagnitude;
+            var opacity =  1f * _magnitude / BlurryVisionComponent.MaxMagnitude;
             var worldHandle = args.WorldHandle;
             var viewport = args.WorldBounds;
             worldHandle.SetTransform(Matrix3.Identity);
index 32bd4c1c793094c1f5011825149877729b5697e0..15f008e6eaa4f711a3a312939d00cb7e19a71fb0 100644 (file)
@@ -24,7 +24,7 @@ public sealed partial class BlindableComponent : Component
     [ViewVariables(VVAccess.ReadWrite), DataField("EyeDamage"), AutoNetworkedField]
     public int EyeDamage = 0;
 
-    public const int MaxDamage = 8;
+    public const int MaxDamage = 3;
 
     /// <description>
     /// Used to ensure that this doesn't break with sandbox or admin tools.
index 8182dfe97412adbd7bc6989b27c244bb81304708..a0a64ba46e4f906ec31256fac9a30ac9de9a98a4 100644 (file)
@@ -17,5 +17,5 @@ public sealed partial class BlurryVisionComponent : Component
     [ViewVariables(VVAccess.ReadWrite), DataField("magnitude"), AutoNetworkedField]
     public float Magnitude;
 
-    public const float MaxMagnitude = 10;
+    public const float MaxMagnitude = 3;
 }