Eye damage (#10262)
This commit is contained in:
23
Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs
Normal file
23
Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.Eye.Blinding;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Content.Server.Chemistry.ReagentEffects
|
||||
{
|
||||
/// <summary>
|
||||
/// Heal eye damage (or deal)
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
public sealed class ChemHealEyeDamage : ReagentEffect
|
||||
{
|
||||
/// <summary>
|
||||
/// Add or remove eye damage?
|
||||
[DataField("add")]
|
||||
public bool Add = false;
|
||||
|
||||
public override void Effect(ReagentEffectArgs args)
|
||||
{
|
||||
EntitySystem.Get<SharedBlindingSystem>().AdjustEyeDamage(args.SolutionEntity, Add);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user