всплывающее окно для исцеления цели

This commit is contained in:
Jabak
2024-07-08 21:24:40 +03:00
parent 14e413b38a
commit 63da5d4064
2 changed files with 12 additions and 0 deletions

View File

@@ -10,12 +10,14 @@ using Content.Shared.Damage;
using Content.Shared.Database;
using Content.Shared.DoAfter;
using Content.Shared.FixedPoint;
using Content.Shared.IdentityManagement;
using Content.Shared.Interaction;
using Content.Shared.Interaction.Events;
using Content.Shared.Medical;
using Content.Shared.Mobs;
using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Content.Shared.Popups;
using Content.Shared.Stacks;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Random;
@@ -189,6 +191,14 @@ public sealed class HealingSystem : EntitySystem
var isNotSelf = user != target;
//Amour
if (isNotSelf)
{
var msg = Loc.GetString("medical-item-popup-target", ("user", Identity.Entity(user, EntityManager)), ("item", uid));
_popupSystem.PopupEntity(msg, target, target, PopupType.Medium);
}
//Amour
var delay = isNotSelf
? component.Delay
: component.Delay * GetScaledHealingPenalty(user, component);