fix stop bleeding popup (#34729)

* fix stop bleeding popup

* add identity
This commit is contained in:
lzk
2025-01-29 14:13:50 +01:00
committed by GitHub
parent 5fe94f8811
commit 467b68690b
2 changed files with 6 additions and 2 deletions

View File

@@ -72,7 +72,10 @@ public sealed class HealingSystem : EntitySystem
_bloodstreamSystem.TryModifyBleedAmount(entity.Owner, healing.BloodlossModifier);
if (isBleeding != bloodstream.BleedAmount > 0)
{
_popupSystem.PopupEntity(Loc.GetString("medical-item-stop-bleeding"), entity, args.User);
var popup = (args.User == entity.Owner)
? Loc.GetString("medical-item-stop-bleeding-self")
: Loc.GetString("medical-item-stop-bleeding", ("target", Identity.Entity(entity.Owner, EntityManager)));
_popupSystem.PopupEntity(popup, entity, args.User);
}
}

View File

@@ -1,4 +1,5 @@
medical-item-finished-using = You have finished healing with the {$item}
medical-item-cant-use = There is no damage you can heal with the {$item}
medical-item-stop-bleeding = They have stopped bleeding
medical-item-stop-bleeding = {CAPITALIZE($target)} has stopped bleeding
medical-item-stop-bleeding-self = You have stopped bleeding
medical-item-popup-target = {CAPITALIZE(THE($user))} is trying to heal you with the {$item}!