Add a popup message when ghost Boo action does nothing (#34369)

This commit is contained in:
Tayrtahn
2025-01-10 17:57:46 -05:00
committed by GitHub
parent bbb551a01b
commit fdc0853053
2 changed files with 8 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Content.Shared.Movement.Events;
using Content.Shared.Movement.Systems;
using Content.Shared.Popups;
using Content.Shared.Storage.Components;
using Robust.Server.GameObjects;
using Robust.Server.Player;
@@ -61,6 +62,7 @@ namespace Content.Server.Ghost
[Dependency] private readonly SharedMindSystem _mind = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
[Dependency] private readonly DamageableSystem _damageable = default!;
[Dependency] private readonly SharedPopupSystem _popup = default!;
private EntityQuery<GhostComponent> _ghostQuery;
private EntityQuery<PhysicsComponent> _physicsQuery;
@@ -139,6 +141,9 @@ namespace Content.Server.Ghost
break;
}
if (booCounter == 0)
_popup.PopupEntity(Loc.GetString("ghost-component-boo-action-failed"), uid, uid);
args.Handled = true;
}

View File

@@ -1,3 +1,5 @@
ghost-component-on-examine-death-time-info-minutes = {$minutes} minutes ago
ghost-component-on-examine-death-time-info-seconds = {$seconds} seconds ago
ghost-component-on-examine-message = Died [color=yellow]{$timeOfDeath}[/color].
ghost-component-on-examine-message = Died [color=yellow]{$timeOfDeath}[/color].
ghost-component-boo-action-failed = Despite your best efforts, nothing spooky happens