(18165dcb9) Propagate hull safety once per second.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:50:23 +03:00
parent 4c0adb145d
commit 437465690b
12 changed files with 85 additions and 2150 deletions
@@ -88,6 +88,21 @@ namespace Barotrauma
}
}
public override void Update(float deltaTime)
{
if (objectiveManager.CurrentObjective == this)
{
if (randomTimer > 0)
{
randomTimer -= deltaTime;
}
else
{
SetRandom();
}
}
}
public override bool IsCompleted() => false;
public override bool CanBeCompleted => true;