]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix medipen injectors not respecting entity identity (#39735)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Mon, 18 Aug 2025 20:42:40 +0000 (22:42 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Aug 2025 20:42:40 +0000 (22:42 +0200)
* Remove StaminaResistance from places where it should not be

* I lost a nukie round because of this bug

* Who put the god damn changes on the god damn branch

Content.Shared/Chemistry/EntitySystems/HypospraySystem.cs
Resources/Locale/en-US/chemistry/components/hypospray-component.ftl

index 34bc44f1cb0eadf328a7a23a7a78f08779bf8b9b..324858afd7bd17a05fc7f7890fa2606c724060d8 100644 (file)
@@ -144,7 +144,7 @@ public sealed class HypospraySystem : EntitySystem
             return false;
         }
 
-        _popup.PopupClient(Loc.GetString(msgFormat ?? "hypospray-component-inject-other-message", ("other", target)), target, user);
+        _popup.PopupClient(Loc.GetString(msgFormat ?? "hypospray-component-inject-other-message", ("other", Identity.Entity(target, EntityManager))), target, user);
 
         if (target != user)
         {
index 96ebaa3ed016ab0ff013339edd0b82784aa30883..36d229e78f02696c925f7a32a04a943bb74423ac 100644 (file)
@@ -8,7 +8,7 @@ hypospray-volume-label = Volume: [color=white]{$currentVolume}/{$totalVolume}u[/
 
 ## Entity
 
-hypospray-component-inject-other-message = You inject {$other}.
+hypospray-component-inject-other-message = You inject {THE($other)}.
 hypospray-component-inject-self-message = You inject yourself.
 hypospray-component-empty-message = Nothing to inject.
 hypospray-component-feel-prick-message = You feel a tiny prick!