Replaced some AddMarkups with AddMarkupOrThrow (#30632)

* First commit

* Silly me

* bruh
This commit is contained in:
beck-thompson
2024-08-10 20:06:33 -07:00
committed by GitHub
parent 220aff21eb
commit ee922e37f6
7 changed files with 18 additions and 20 deletions

View File

@@ -57,11 +57,11 @@ public sealed class DamageExamineSystem : EntitySystem
if (string.IsNullOrEmpty(type))
{
msg.AddMarkup(Loc.GetString("damage-examine"));
msg.AddMarkupOrThrow(Loc.GetString("damage-examine"));
}
else
{
msg.AddMarkup(Loc.GetString("damage-examine-type", ("type", type)));
msg.AddMarkupOrThrow(Loc.GetString("damage-examine-type", ("type", type)));
}
foreach (var damage in damageSpecifier.DamageDict)
@@ -69,7 +69,7 @@ public sealed class DamageExamineSystem : EntitySystem
if (damage.Value != FixedPoint2.Zero)
{
msg.PushNewline();
msg.AddMarkup(Loc.GetString("damage-value", ("type", _prototype.Index<DamageTypePrototype>(damage.Key).LocalizedName), ("amount", damage.Value)));
msg.AddMarkupOrThrow(Loc.GetString("damage-value", ("type", _prototype.Index<DamageTypePrototype>(damage.Key).LocalizedName), ("amount", damage.Value)));
}
}