(fbfb76aeb) Implement automatic extinguishing. TODO: should use the AIObjectiveLoop class.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:13:21 +03:00
parent ab2ca90d08
commit 7fb7c13198
14 changed files with 156 additions and 68 deletions
@@ -1192,6 +1192,10 @@ namespace Barotrauma
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
if (!broken)
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
if (body == null || !body.Enabled || !inWater || ParentInventory != null || Removed) { return; }