Welder Blindness Effect Increase (#22304)

This commit is contained in:
Nairod
2023-12-10 17:10:07 -06:00
committed by GitHub
parent aaad3bc8e6
commit 3589ad9d0c
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ namespace Content.Client.Eye.Blinding
// Maybe gradually shrink the view-size? // Maybe gradually shrink the view-size?
// Make the effect only apply to the edge of the viewport? // Make the effect only apply to the edge of the viewport?
// Actually make it blurry?? // Actually make it blurry??
var opacity = 0.75f * _magnitude / BlurryVisionComponent.MaxMagnitude; var opacity = 1f * _magnitude / BlurryVisionComponent.MaxMagnitude;
var worldHandle = args.WorldHandle; var worldHandle = args.WorldHandle;
var viewport = args.WorldBounds; var viewport = args.WorldBounds;
worldHandle.SetTransform(Matrix3.Identity); worldHandle.SetTransform(Matrix3.Identity);

View File

@@ -24,7 +24,7 @@ public sealed partial class BlindableComponent : Component
[ViewVariables(VVAccess.ReadWrite), DataField("EyeDamage"), AutoNetworkedField] [ViewVariables(VVAccess.ReadWrite), DataField("EyeDamage"), AutoNetworkedField]
public int EyeDamage = 0; public int EyeDamage = 0;
public const int MaxDamage = 8; public const int MaxDamage = 3;
/// <description> /// <description>
/// Used to ensure that this doesn't break with sandbox or admin tools. /// Used to ensure that this doesn't break with sandbox or admin tools.

View File

@@ -17,5 +17,5 @@ public sealed partial class BlurryVisionComponent : Component
[ViewVariables(VVAccess.ReadWrite), DataField("magnitude"), AutoNetworkedField] [ViewVariables(VVAccess.ReadWrite), DataField("magnitude"), AutoNetworkedField]
public float Magnitude; public float Magnitude;
public const float MaxMagnitude = 10; public const float MaxMagnitude = 3;
} }