fix stop bleeding popup (#34729)
* fix stop bleeding popup * add identity
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}!
|
||||
|
||||
Reference in New Issue
Block a user