Solution Examine Code Cleanup + PressureVent Ignore (#2112)

This commit is contained in:
Exp
2020-09-19 23:36:48 +02:00
committed by GitHub
parent cb43970188
commit 8095f70bbf
2 changed files with 9 additions and 8 deletions

View File

@@ -266,10 +266,10 @@ namespace Content.Server.GameObjects.Components.Chemistry
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
{
var colorStr = $" [color={proto.GetSubstanceTextColor().ToHexNoAlpha()}]";
message.AddText(Loc.GetString("It contains a"));
message.AddMarkup(colorStr + Loc.GetString(proto.PhysicalDescription) + "[/color] ");
message.AddText(Loc.GetString("substance."));
message.AddMarkup(
Loc.GetString("It contains a [color={0}]{1}[/color] substance.",
proto.GetSubstanceTextColor().ToHexNoAlpha(),
Loc.GetString(proto.PhysicalDescription)));
}
}
else
@@ -278,10 +278,10 @@ namespace Content.Server.GameObjects.Components.Chemistry
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
{
var colorStr = $" [color={SubstanceColor.ToHexNoAlpha()}]";
message.AddText(Loc.GetString("It contains a"));
message.AddMarkup(colorStr + Loc.GetString(proto.PhysicalDescription) + "[/color] ");
message.AddText(Loc.GetString("mixture of substances."));
message.AddMarkup(
Loc.GetString("It contains a [color={0}]{1}[/color] mixture of substances.",
SubstanceColor.ToHexNoAlpha(),
Loc.GetString(proto.PhysicalDescription)));
}
}
}