Files
Delta-v/Content.Shared/Eye/Blinding/Components/VisionCorrectionComponent.cs
T
lyxcasterandlyxcaster 13cedc593b Make prescription glasses actually work (#42990)
* Made prescription glasses actually correct your vision

* Makes prescription glasses actually correct your vision

* Bug fix

* Bug fix

---------

Co-authored-by: lyxcaster <mser956@gmail.com>
2026-06-29 12:43:54 +02:00

24 lines
770 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Eye.Blinding.Components;
/// <summary>
/// This component allows equipment to offset blurry vision.
/// </summary>
[RegisterComponent]
[NetworkedComponent, AutoGenerateComponentState]
public sealed partial class VisionCorrectionComponent : Component
{
/// <summary>
/// Amount of effective eye damage to add when this item is worn
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("visionBonus"), AutoNetworkedField]
public float VisionBonus = 0f;
/// <summary>
/// Controls the exponent of the blur effect when worn
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("correctionPower"), AutoNetworkedField]
public float CorrectionPower = 7f;
}