b52f40e...d9e5368

commit d9e5368228a3712c57cdc962b8dd6dcda73b4591
Author: Joonas Rikkonen <poe.regalis@gmail.com>
Date:   Tue Mar 19 12:02:52 2019 +0200

    StatusEffects only apply non-limb-specific afflictions to one limb even if targeting the whole character. Fixes drugs like fentanyl and morphine being way too harmful due to the oxygen loss affliction being applied once per every limb. Closes #1294
This commit is contained in:
Joonas Rikkonen
2019-03-19 12:04:35 +02:00
parent bfa6a093c4
commit 7feceab01c

View File

@@ -696,6 +696,8 @@ namespace Barotrauma
foreach (Limb limb in character.AnimController.Limbs)
{
limb.character.DamageLimb(entity.WorldPosition, limb, new List<Affliction>() { multipliedAffliction }, stun: 0.0f, playSound: false, attackImpulse: 0.0f);
//only apply non-limb-specific afflictions to the first limb
if (!affliction.Prefab.LimbSpecific) { break; }
}
}
else if (target is Limb limb)