(663910402) Unequip weapons when not in combat mode and all items when idling.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:20:11 +03:00
parent 3b313976c5
commit 7b6c2f1fa8
9 changed files with 324 additions and 46 deletions
@@ -1280,6 +1280,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; }