ConstructionGL2 Part 2: Better guided steps and recipes. (#5103)
This commit is contained in:
committed by
GitHub
parent
5be8271907
commit
5a5006e4cf
@@ -1,10 +1,10 @@
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.GameObjects.Components;
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.WireHacking;
|
||||
using Content.Shared.Construction;
|
||||
using Content.Shared.Examine;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.Construction.Conditions
|
||||
@@ -37,6 +37,21 @@ namespace Content.Server.Construction.Conditions
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO CONSTRUCTION: Examine for this condition.
|
||||
public bool DoExamine(ExaminedEvent args)
|
||||
{
|
||||
args.PushMarkup(Loc.GetString(Value
|
||||
? "construction-examine-condition-all-wires-cut"
|
||||
: "construction-examine-condition-all-wires-intact"));
|
||||
return true;
|
||||
}
|
||||
|
||||
public IEnumerable<ConstructionGuideEntry> GenerateGuideEntry()
|
||||
{
|
||||
yield return new ConstructionGuideEntry()
|
||||
{
|
||||
Localization = Value ? "construction-guide-condition-all-wires-cut"
|
||||
: "construction-guide-condition-all-wires-intact"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user