Adds NoExamine SolutionCap.
This commit is contained in:
@@ -111,6 +111,8 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Injector => (Capabilities & SolutionCaps.Injector) != 0;
|
public bool Injector => (Capabilities & SolutionCaps.Injector) != 0;
|
||||||
|
|
||||||
|
public bool NoExamine => (Capabilities & SolutionCaps.NoExamine) != 0;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override void ExposeData(ObjectSerializer serializer)
|
public override void ExposeData(ObjectSerializer serializer)
|
||||||
{
|
{
|
||||||
@@ -273,6 +275,11 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
|
|
||||||
void IExamine.Examine(FormattedMessage message)
|
void IExamine.Examine(FormattedMessage message)
|
||||||
{
|
{
|
||||||
|
if (NoExamine)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
message.AddText(_loc.GetString("Contains:\n"));
|
message.AddText(_loc.GetString("Contains:\n"));
|
||||||
if (ReagentList.Count == 0)
|
if (ReagentList.Count == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ namespace Content.Shared.Chemistry
|
|||||||
/// <para>Allows us to have obscenely large containers that are harder to abuse in chem dispensers
|
/// <para>Allows us to have obscenely large containers that are harder to abuse in chem dispensers
|
||||||
/// since they can't be placed directly in them.</para>
|
/// since they can't be placed directly in them.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FitsInDispenser = 16,
|
FitsInDispenser = 16,
|
||||||
|
|
||||||
|
NoExamine = 32,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user