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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user