mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Flash immunity examine visibility toggle (#40848)
This commit is contained in:
parent
20175bffb2
commit
beb3db14f0
3 changed files with 9 additions and 1 deletions
|
|
@ -15,4 +15,10 @@ public sealed partial class FlashImmunityComponent : Component
|
|||
/// </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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,6 +268,7 @@ public abstract class SharedFlashSystem : EntitySystem
|
|||
|
||||
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"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@
|
|||
- type: FireVisuals
|
||||
alternateState: Standing
|
||||
- type: FlashImmunity
|
||||
showInExamine: false
|
||||
- type: Inventory
|
||||
femaleDisplacements:
|
||||
jumpsuit:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue