Armor price calculations (#11417)

Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com>
fixes https://github.com/space-wizards/space-station-14/issues/11299
This commit is contained in:
rolfero
2022-11-08 01:36:53 +01:00
committed by GitHub
parent 7b434354fd
commit 6a497d3f55
5 changed files with 87 additions and 7 deletions

View File

@@ -12,5 +12,17 @@ namespace Content.Shared.Damage.Prototypes
{
[IdDataFieldAttribute]
public string ID { get; } = default!;
/// <summary>
/// The price for each 1% damage reduction in armors
/// </summary>
[DataField("armorCoefficientPrice")]
public double ArmorPriceCoefficient { get; set; }
/// <summary>
/// The price for each flat damage reduction in armors
/// </summary>
[DataField("armorFlatPrice")]
public double ArmorPriceFlat { get; set; }
}
}