DamageTypePrototype.cs 988 B

1234567891011121314151617181920212223242526272829303132
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Damage.Prototypes
  3. {
  4. /// <summary>
  5. /// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
  6. /// </summary>
  7. [Prototype]
  8. public sealed partial class DamageTypePrototype : IPrototype
  9. {
  10. [IdDataField]
  11. public string ID { get; private set; } = default!;
  12. [DataField(required: true)]
  13. private LocId Name { get; set; }
  14. [ViewVariables(VVAccess.ReadOnly)]
  15. public string LocalizedName => Loc.GetString(Name);
  16. /// <summary>
  17. /// The price for each 1% damage reduction in armors
  18. /// </summary>
  19. [DataField("armorCoefficientPrice")]
  20. public double ArmorPriceCoefficient { get; set; }
  21. /// <summary>
  22. /// The price for each flat damage reduction in armors
  23. /// </summary>
  24. [DataField("armorFlatPrice")]
  25. public double ArmorPriceFlat { get; set; }
  26. }
  27. }