Make explosive armor multiplicative and not additive (#9498)

This commit is contained in:
Nemanja
2022-07-06 23:15:20 -04:00
committed by GitHub
parent 458d05b29b
commit 3bedfb1cbf
9 changed files with 38 additions and 37 deletions

View File

@@ -11,10 +11,9 @@ namespace Content.Shared.Explosion;
public sealed class GetExplosionResistanceEvent : EntityEventArgs, IInventoryRelayEvent
{
/// <summary>
/// Can be set to whatever, but currently is being additively increased by components & clothing. So think twice
/// before multiplying or directly setting this.
/// A coefficient applied to overall explosive damage.
/// </summary>
public float Resistance = 0;
public float DamageCoefficient = 1;
public readonly string ExplotionPrototype;