2023-04-29 17:32:14 +12:00
|
|
|
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
|
|
|
|
|
{
|
2024-01-03 04:07:02 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Amount of effective eye damage to add when this item is worn
|
|
|
|
|
/// </summary>
|
2023-04-29 17:32:14 +12:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("visionBonus"), AutoNetworkedField]
|
2024-01-03 04:07:02 -05:00
|
|
|
public float VisionBonus = 0f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Controls the exponent of the blur effect when worn
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("correctionPower"), AutoNetworkedField]
|
|
|
|
|
public float CorrectionPower = 2f;
|
2023-04-29 17:32:14 +12:00
|
|
|
}
|