Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rosieposieeee committed Jan 28, 2025
1 parent c3c1d79 commit cb436ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
using System.Threading.Channels;
using Content.Server.Radio.EntitySystems;
using Content.Shared._DV.NanoChat;
using Content.Shared.Access;
using Content.Shared.Access.Components;
using Content.Shared.CartridgeLoader;
using Content.Shared.PDA;
using Content.Shared.Popups;
using Robust.Server.Containers;
using Robust.Shared.Containers;
using Robust.Shared.Profiling;
using YamlDotNet.Core.Tokens;

namespace Content.Server.CartridgeLoader.Cartridges;

public sealed class SOSCartridgeSystem : EntitySystem
{
[Dependency] private readonly CartridgeLoaderSystem _cartridgeLoaderSystem = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
[Dependency] private readonly ContainerSystem _containerSystem = default!;
[Dependency] private readonly RadioSystem _radio = default!;

public override void Initialize()
Expand Down Expand Up @@ -71,9 +64,11 @@ private void OnActivated(EntityUid uid, SOSCartridgeComponent component, Cartrid
}

component.Timer = SOSCartridgeComponent.TimeOut;
// DeltaV - send feedback that you succeeded
_popupSystem.PopupEntity(Loc.GetString("sos-message-sent-success"), uid, PopupType.Medium);
}
}
// DeltaV - send feedback that you failed
else
{
_popupSystem.PopupEntity(Loc.GetString("sos-message-sent-cooldown"), uid, PopupType.MediumCaution);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
name: SOS cartridge
description: A program to call for help.
components:
# Begin Delta-V Section - added cartridge sprite
- type: Sprite
sprite: _DV/Objects/Devices/cartridge.rsi
state: cart-sos
- type: Icon
sprite: _DV/Objects/Devices/cartridge.rsi
state: cart-sos
# End Delta-V Section
- type: Cartridge
programName: sos-program-name
icon:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "impstation at f82f7f0f236179bfdba0dcae5b188ccf4b03506e",
"copyright": "impstation at https://github.com/impstation/imp-station-14/pull/1450",
"size": {
"x": 32,
"y": 32
Expand Down

0 comments on commit cb436ee

Please sign in to comment.