Fix Damageable API (#41657)
Fix damageable api Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
parent
1bba368d22
commit
2e6b2141ee
|
|
@ -81,12 +81,12 @@ public sealed partial class DamageableSystem
|
|||
TargetBodyPart? targetPart = null,
|
||||
bool doPartDamage = true,
|
||||
bool onlyDamageParts = false
|
||||
// END Shitmed Changes
|
||||
// END Shitmed Changes
|
||||
)
|
||||
{
|
||||
//! Empty just checks if the DamageSpecifier is _literally_ empty, as in, is internal dictionary of damage types is empty.
|
||||
// If you deal 0.0 of some damage type, Empty will be false!
|
||||
return !TryChangeDamage(ent, damage, out _, ignoreResistances, interruptsDoAfters, origin, ignoreGlobalModifiers,
|
||||
return TryChangeDamage(ent, damage, out _, ignoreResistances, interruptsDoAfters, origin, ignoreGlobalModifiers,
|
||||
canSever: canSever, canEvade: canEvade, partMultiplier: partMultiplier, targetPart: targetPart, doPartDamage: doPartDamage, onlyDamageParts: onlyDamageParts); // Shitmed
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ public sealed partial class DamageableSystem
|
|||
TargetBodyPart? targetPart = null,
|
||||
bool doPartDamage = true,
|
||||
bool onlyDamageParts = false
|
||||
// END Shitmed Changes
|
||||
// END Shitmed Changes
|
||||
)
|
||||
{
|
||||
//! Empty just checks if the DamageSpecifier is _literally_ empty, as in, is internal dictionary of damage types is empty.
|
||||
|
|
@ -151,7 +151,7 @@ public sealed partial class DamageableSystem
|
|||
TargetBodyPart? targetPart = null,
|
||||
bool doPartDamage = true,
|
||||
bool onlyDamageParts = false // DeltaV - Fix EvenHealing on Limbs && Standardize PartDamage.
|
||||
// END Shitmed Changes
|
||||
// END Shitmed Changes
|
||||
)
|
||||
{
|
||||
var damageDone = new DamageSpecifier();
|
||||
|
|
|
|||
Loading…
Reference in New Issue