Solution Examine Code Cleanup + PressureVent Ignore (#2112)
This commit is contained in:
@@ -165,6 +165,7 @@
|
|||||||
"AMEShield",
|
"AMEShield",
|
||||||
"DebugPump",
|
"DebugPump",
|
||||||
"PressurePump",
|
"PressurePump",
|
||||||
|
"PressureVent",
|
||||||
"VolumePump",
|
"VolumePump",
|
||||||
"DebugVent",
|
"DebugVent",
|
||||||
"DebugSiphon",
|
"DebugSiphon",
|
||||||
|
|||||||
@@ -266,10 +266,10 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
|
|
||||||
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
|
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
|
||||||
{
|
{
|
||||||
var colorStr = $" [color={proto.GetSubstanceTextColor().ToHexNoAlpha()}]";
|
message.AddMarkup(
|
||||||
message.AddText(Loc.GetString("It contains a"));
|
Loc.GetString("It contains a [color={0}]{1}[/color] substance.",
|
||||||
message.AddMarkup(colorStr + Loc.GetString(proto.PhysicalDescription) + "[/color] ");
|
proto.GetSubstanceTextColor().ToHexNoAlpha(),
|
||||||
message.AddText(Loc.GetString("substance."));
|
Loc.GetString(proto.PhysicalDescription)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -278,10 +278,10 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
|
|
||||||
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
|
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype proto))
|
||||||
{
|
{
|
||||||
var colorStr = $" [color={SubstanceColor.ToHexNoAlpha()}]";
|
message.AddMarkup(
|
||||||
message.AddText(Loc.GetString("It contains a"));
|
Loc.GetString("It contains a [color={0}]{1}[/color] mixture of substances.",
|
||||||
message.AddMarkup(colorStr + Loc.GetString(proto.PhysicalDescription) + "[/color] ");
|
SubstanceColor.ToHexNoAlpha(),
|
||||||
message.AddText(Loc.GetString("mixture of substances."));
|
Loc.GetString(proto.PhysicalDescription)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user