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:
@@ -74,10 +74,13 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
return;
|
||||
|
||||
_suicide.ApplyLethalDamage((args.Victim, damageableComponent), "Piercing");
|
||||
var othersMessage = Loc.GetString("comp-kitchen-spike-suicide-other", ("victim", args.Victim));
|
||||
var othersMessage = Loc.GetString("comp-kitchen-spike-suicide-other",
|
||||
("victim", Identity.Entity(args.Victim, EntityManager)),
|
||||
("this", entity));
|
||||
_popupSystem.PopupEntity(othersMessage, args.Victim, Filter.PvsExcept(args.Victim), true);
|
||||
|
||||
var selfMessage = Loc.GetString("comp-kitchen-spike-suicide-self");
|
||||
var selfMessage = Loc.GetString("comp-kitchen-spike-suicide-self",
|
||||
("this", entity));
|
||||
_popupSystem.PopupEntity(selfMessage, args.Victim, args.Victim);
|
||||
args.Handled = true;
|
||||
}
|
||||
@@ -160,7 +163,11 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
|
||||
UpdateAppearance(uid, null, component);
|
||||
|
||||
_popupSystem.PopupEntity(Loc.GetString("comp-kitchen-spike-kill", ("user", Identity.Entity(userUid, EntityManager)), ("victim", victimUid)), uid, PopupType.LargeCaution);
|
||||
_popupSystem.PopupEntity(Loc.GetString("comp-kitchen-spike-kill",
|
||||
("user", Identity.Entity(userUid, EntityManager)),
|
||||
("victim", Identity.Entity(victimUid, EntityManager)),
|
||||
("this", uid)),
|
||||
uid, PopupType.LargeCaution);
|
||||
|
||||
_transform.SetCoordinates(victimUid, Transform(uid).Coordinates);
|
||||
// THE WHAT?
|
||||
|
||||
Reference in New Issue
Block a user