Add no damage phrase and logic
This commit is contained in:
@@ -61,6 +61,15 @@ public sealed class DamageExamineSystem : EntitySystem
|
||||
}
|
||||
else
|
||||
{
|
||||
if (damageSpecifier.DamageDict.Count == 1)
|
||||
{
|
||||
// May be simplified to using a foreach(Var x) despite being only one item
|
||||
if(damageSpecifier.DamageDict.Values.GetEnumerator().Current == FixedPoint2.Zero)
|
||||
{
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user