Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
using Robust.Shared.Timing;
using Robust.Shared.Utility;
using Content.Shared.GameTicking;
using Content.Shared.Examine; // Ganimed-Add

namespace Content.Shared.Silicons.StationAi;

Expand Down Expand Up @@ -114,6 +115,8 @@ public override void Initialize()

SubscribeLocalEvent<StationAiCoreComponent, BreakageEventArgs>(OnBroken);
SubscribeLocalEvent<StationAiCoreComponent, RepairedEvent>(OnRepaired);

SubscribeLocalEvent<StationAiWhitelistComponent, ExaminedEvent>(OnExamined); // Ganimed-Add
}

private void OnCoreVerbs(Entity<StationAiCoreComponent> ent, ref GetVerbsEvent<Verb> args)
Expand Down Expand Up @@ -389,6 +392,13 @@ private void OnRepaired(Entity<StationAiCoreComponent> ent, ref RepairedEvent ar
_appearance.SetData(ent, StationAiVisuals.Broken, false, appearance);
}

// Ganimed-Add-Start
private void OnExamined(EntityUid uid, StationAiWhitelistComponent component, ExaminedEvent args)
{
args.PushMarkup(Loc.GetString("station-ai-whitelist-examine"));
}
// Ganimed-Add-End

Comment thread
Yuoko marked this conversation as resolved.
public virtual void KillHeldAi(Entity<StationAiCoreComponent> ent)
{
if (TryGetHeld((ent.Owner, ent.Comp), out var held))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
station-ai-whitelist-examine = This device can be controlled by an AI.
1 change: 1 addition & 0 deletions Resources/Locale/ru-RU/_Ganimed/silicons/station-ai.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
station-ai-whitelist-examine = Это устройство может управляться ИИ.
Loading