mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* 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>
(cherry picked from commit 9cd6e4dccd)
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
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();
|
|
}
|