* Fix outdated component name in assaultbelt whitelist RangedMagazine was replaced with BallisticAmmoProvider in the Gun refactor (#8301) * Move FlashOnTrigger, SmokeOnTrigger, Flash components to Shared * Move LightReplacerComponent to Shared * Move Utensil, Mousetrap components to Shared * Move SprayPainterComponent to Shared The PaintableAirlock tag has also been removed, as it was unused & unnecessary, likely a vestige of spray painter development when the PaintableAirlock component wasn't in Content.Shared. * Add trivial Produce and Seed components to Client This allows the plant bag and botanical belt whitelists to correctly match produce and seeds on the client, fixing the extraneous "Can't insert" message that previously appeared. --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
30 lines
797 B
C#
30 lines
797 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.SprayPainter.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class SprayPainterComponent : Component
|
|
{
|
|
[DataField("spraySound")]
|
|
public SoundSpecifier SpraySound = new SoundPathSpecifier("/Audio/Effects/spray2.ogg");
|
|
|
|
[DataField("airlockSprayTime")]
|
|
public float AirlockSprayTime = 3.0f;
|
|
|
|
[DataField("pipeSprayTime")]
|
|
public float PipeSprayTime = 1.0f;
|
|
|
|
[DataField("isSpraying")]
|
|
public bool IsSpraying = false;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? PickedColor;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("colorPalette")]
|
|
public Dictionary<string, Color> ColorPalette = new();
|
|
|
|
public int Index = default!;
|
|
}
|