(89d59c16f) Highlight screwdriver at repair junction box objective

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:52:43 +03:00
parent a01729514b
commit e7db219943
2 changed files with 25 additions and 0 deletions
@@ -358,6 +358,15 @@ namespace Barotrauma.Tutorials
do { yield return null; } while (!engineer_secondDoor.IsOpen);
yield return new WaitForSeconds(1f);
TriggerTutorialSegment(2, GameMain.Config.KeyBind(InputType.Select)); // Repair the junction box
do
{
if (!engineer.HasEquippedItem("screwdriver"))
{
HighlightInventorySlot(engineer.Inventory, "screwdriver", highlightColor, .5f, .5f, 0f);
}
yield return null;
} while (!engineer.HasEquippedItem("screwdriver")); // Wait until equipped
do { yield return null; } while (!engineer_brokenJunctionBox.IsFullCondition); // Wait until repaired
SetHighlight(engineer_brokenJunctionBox, false);
RemoveCompletedObjective(segments[2]);