Flashes, Expendablelights, and spray bottles will mark as trash when used up (#10430)
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Clothing.EntitySystems;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Light.Component;
|
||||
using Content.Shared.Tag;
|
||||
using Content.Shared.Verbs;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.GameObjects;
|
||||
@@ -17,6 +18,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
[Dependency] private readonly SharedItemSystem _item = default!;
|
||||
[Dependency] private readonly ClothingSystem _clothing = default!;
|
||||
[Dependency] private readonly TagSystem _tagSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -60,6 +62,8 @@ namespace Content.Server.Light.EntitySystems
|
||||
meta.EntityName = Loc.GetString(component.SpentName);
|
||||
meta.EntityDescription = Loc.GetString(component.SpentDesc);
|
||||
|
||||
_tagSystem.AddTag(component.Owner, "Trash");
|
||||
|
||||
UpdateSpriteAndSounds(component);
|
||||
UpdateVisualizer(component);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user