(7e5ee2800) Add the job requirement for fight intruders order.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:22:47 +03:00
parent cf55de90ba
commit 8f8ff7f1a9
8 changed files with 147 additions and 821 deletions
@@ -1316,6 +1316,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; }