Fix some locale strings and make some code for them looks better (#32003)

* Fix a lot locale strings

add functions using
fix identity for meat spike and creaming

* comma

* fixes for fixes

* yeah

* fuck
This commit is contained in:
lzk
2025-04-21 22:15:20 +02:00
committed by GitHub
parent ded94ebc3d
commit 9e39f99a92
9 changed files with 47 additions and 21 deletions

View File

@@ -93,13 +93,19 @@ namespace Content.Server.Nutrition.EntitySystems
protected override void CreamedEntity(EntityUid uid, CreamPiedComponent creamPied, ThrowHitByEvent args)
{
_popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message", ("thrower", args.Thrown)), uid, args.Target);
_popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message",
("thrower", Identity.Entity(args.Thrown, EntityManager))),
uid, args.Target);
var otherPlayers = Filter.Empty().AddPlayersByPvs(uid);
if (TryComp<ActorComponent>(args.Target, out var actor))
{
otherPlayers.RemovePlayer(actor.PlayerSession);
}
_popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message-others", ("owner", Identity.Name(uid, EntityManager)), ("thrower", args.Thrown)), uid, otherPlayers, false);
_popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message-others",
("owner", Identity.Entity(uid, EntityManager)),
("thrower", Identity.Entity(args.Thrown, EntityManager))),
uid, otherPlayers, false);
}
private void OnRejuvenate(Entity<CreamPiedComponent> entity, ref RejuvenateEvent args)