/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled = true;
+
+ /// <summary>
+ /// Should the flash protection be shown when examining the entity?
+ /// </summary>
+ [DataField, AutoNetworkedField]
+ public bool ShowInExamine = true;
}
private void OnExamine(Entity<FlashImmunityComponent> ent, ref ExaminedEvent args)
{
- args.PushMarkup(Loc.GetString("flash-protection"));
+ if (ent.Comp.ShowInExamine)
+ args.PushMarkup(Loc.GetString("flash-protection"));
}
}