Fix: Examine Damage now specifies no damage (#33064)
This commit is contained in:
commit
75acce0d62
2 changed files with 7 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ public sealed class DamageExamineSystem : EntitySystem
|
|||
}
|
||||
else
|
||||
{
|
||||
if (damageSpecifier.GetTotal() == FixedPoint2.Zero && !damageSpecifier.AnyPositive())
|
||||
{
|
||||
msg.AddMarkupOrThrow(Loc.GetString("damage-none"));
|
||||
return msg;
|
||||
}
|
||||
|
||||
msg.AddMarkupOrThrow(Loc.GetString("damage-examine-type", ("type", type)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,3 +10,4 @@ damage-throw = throw
|
|||
damage-examine = It does the following damage:
|
||||
damage-examine-type = It does the following [color=cyan]{$type}[/color] damage:
|
||||
damage-value = - [color=red]{$amount}[/color] units of [color=yellow]{$type}[/color].
|
||||
damage-none = It does no damage.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue