Flash immunity examine visibility toggle (#40848)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user