Skip to content

Commit

Permalink
Added a popup message upon animating an item
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRCdev committed Sep 13, 2024
1 parent 1e3e2e6 commit a7a739a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
using Content.Shared.Weapons.Ranged.Systems;
using Content.Shared.Cuffs.Components;
using Content.Shared.Movement.Systems;
using Robust.Shared.Player;

namespace Content.Server.Revenant.EntitySystems;

Expand Down Expand Up @@ -415,6 +416,8 @@ public void AnimateObject(EntityUid target, TimeSpan? time = null, Entity<Revena

var animate = EnsureComp<RevenantAnimatedComponent>(target);

_popup.PopupEntity(Loc.GetString("revenant-animate-item-animate", ("name", Comp<MetaDataComponent>(target).EntityName)), target, Filter.Pvs(target), true);

EnsureComp<CombatModeComponent>(target);
if (!HasComp<MeleeWeaponComponent>(target))
{
Expand Down Expand Up @@ -487,6 +490,8 @@ public void InanimateTarget(EntityUid target, RevenantAnimatedComponent? comp =
RemComp<MeleeWeaponComponent>(target);

RemComp<RevenantAnimatedComponent>(target);

_popup.PopupEntity(Loc.GetString("revenant-animate-item-inanimate", ("name", Comp<MetaDataComponent>(target).EntityName)), target, Filter.Pvs(target), true);
}

private void OnAnimateAction(EntityUid uid, RevenantComponent comp, RevenantAnimateEvent args)
Expand Down
5 changes: 4 additions & 1 deletion Resources/Locale/en-US/revenant/revenant.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ revenant-user-interface-essence-amount = [color=plum]{$amount}[/color] Stolen Es
revenant-user-interface-cost = {$price} Essence
item-jump-into-pocket = The {$name} jumps into your pocket!
item-jump-into-hands = The {$name} jumps into your hands!
item-jump-into-hands = The {$name} jumps into your hands!
revenant-animate-item-animate = The {$name} becomes aggressive!
revenant-animate-item-inanimate = The {$name} falls inert.

0 comments on commit a7a739a

Please sign in to comment.