Improve ExaminedEvent to handle newlines for you with helper methods.
This commit is contained in:
@@ -108,11 +108,10 @@ namespace Content.Server.Stunnable
|
||||
|
||||
private void OnExamined(EntityUid uid, StunbatonComponent comp, ExaminedEvent args)
|
||||
{
|
||||
args.Message.AddText("\n");
|
||||
var msg = comp.Activated
|
||||
? Loc.GetString("comp-stunbaton-examined-on")
|
||||
: Loc.GetString("comp-stunbaton-examined-off");
|
||||
args.Message.AddMarkup(msg);
|
||||
args.PushMarkup(msg);
|
||||
}
|
||||
|
||||
private void StunEntity(IEntity entity, StunbatonComponent comp)
|
||||
|
||||
Reference in New Issue
Block a user