MobPriceComponent.cs 898 B

1234567891011121314151617181920212223242526
  1. namespace Content.Server.Cargo.Components;
  2. /// <summary>
  3. /// This is used for calculating the price of mobs.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class MobPriceComponent : Component
  7. {
  8. /// <summary>
  9. /// How much of a penalty per part there should be. This is a multiplier for a multiplier, the penalty for each body part is calculated from the total number of slots, and then multiplied by this.
  10. /// </summary>
  11. [DataField("missingBodyPartPenalty")]
  12. public double MissingBodyPartPenalty = 1.0f;
  13. /// <summary>
  14. /// The base price this mob should fetch.
  15. /// </summary>
  16. [DataField("price", required: true)]
  17. public double Price;
  18. /// <summary>
  19. /// The percentage of the actual price that should be granted should the appraised mob be dead.
  20. /// </summary>
  21. [DataField("deathPenalty")]
  22. public double DeathPenalty = 0.2f;
  23. }