Flashes, Expendablelights, and spray bottles will mark as trash when used up (#10430)

This commit is contained in:
Jessica M
2022-08-13 22:14:49 -07:00
committed by GitHub
parent c4fadd0783
commit 9aa4ae1fb4
6 changed files with 16 additions and 4 deletions

View File

@@ -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);