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

@@ -16,10 +16,10 @@ namespace Content.Server.Explosion.Components;
public sealed class ExplosionResistanceComponent : Component
{
/// <summary>
/// The resistance values for this component, This fraction is added to the total resistance.
/// The explosive resistance coefficient, This fraction is multiplied into the total resistance.
/// </summary>
[DataField("resistance")]
public float GlobalResistance = 0;
[DataField("damageCoefficient")]
public float DamageCoefficient = 1;
/// <summary>
/// Like <see cref="GlobalResistance"/>, but specified specific to each explosion type for more customizability.