(8025561da) Implement offensive combat.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:19:31 +03:00
parent 363eb0540a
commit bcd18aab4e
9 changed files with 419 additions and 83 deletions
@@ -1272,6 +1272,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; }