Makes unpowered flashlights emmagables. (#16143)

This commit is contained in:
AJCM-git
2023-05-07 02:08:03 -04:00
committed by GitHub
parent 6ebd784cb6
commit 94c558d73a
3 changed files with 55 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Actions.ActionTypes;
using Content.Shared.Decals;
using Robust.Shared.Audio;
namespace Content.Shared.Light.Component;
@@ -17,4 +18,12 @@ public sealed class UnpoweredFlashlightComponent : Robust.Shared.GameObjects.Com
[DataField("toggleAction", required: true)]
public InstantAction ToggleAction = new();
/// <summary>
/// <see cref="ColorPalettePrototype"/> ID that determines the list
/// of colors to select from when we get emagged
/// </summary>
[DataField("emaggedColorsPrototype")]
[ViewVariables(VVAccess.ReadWrite)]
public string EmaggedColorsPrototype = "Emagged";
}