Fix clientside storage Whitelists (#24063)
* 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>
This commit is contained in:
36
Content.Shared/Light/Components/LightReplacerComponent.cs
Normal file
36
Content.Shared/Light/Components/LightReplacerComponent.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Content.Shared.Light.EntitySystems;
|
||||
using Content.Shared.Storage;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.Light.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Device that allows user to quikly change bulbs in <see cref="PoweredLightComponent"/>
|
||||
/// Can be reloaded by new light tubes or light bulbs
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedLightReplacerSystem))]
|
||||
public sealed partial class LightReplacerComponent : Component
|
||||
{
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Weapons/click.ogg")
|
||||
{
|
||||
Params = new()
|
||||
{
|
||||
Volume = -4f
|
||||
}
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Bulbs that were inserted inside light replacer
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public Container InsertedBulbs = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The default starting bulbs
|
||||
/// </summary>
|
||||
[DataField("contents")]
|
||||
public List<EntitySpawnEntry> Contents = new();
|
||||
}
|
||||
Reference in New Issue
Block a user