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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user