Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Oct 30, 2024
1 parent 570f13b commit 102b817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Content.Server/Holosign/HolosignSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,16 @@ private void OnBeforeInteract(EntityUid uid, HolosignProjectorComponent componen
// WD EDIT START
private void OnUse(EntityUid uid, HolosignProjectorComponent component, UseInHandEvent args)
{
if (args.Handled)
return;

foreach (var sign in component.Signs.ToList())
{
component.Signs.Remove(sign);
QueueDel(sign);
}

args.Handled = true;
component.Uses = component.MaxUses;
_popup.PopupEntity(Loc.GetString("holoprojector-delete-signs"), args.User, args.User, PopupType.Medium);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@
- type: Sprite
sprite: Nyanotrasen/Objects/Devices/Holoprojectors/eng.rsi
state: icon
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellMedium
locked: true

0 comments on commit 102b817

Please sign in to comment.