(bd2976a16) Add some automatic orders.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:15:52 +03:00
parent 82d74f7481
commit bbce41fab0
8 changed files with 352 additions and 68 deletions
@@ -1224,6 +1224,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; }