SalvageDifficultyPrototype.cs 1000 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Procedural;
  3. [Prototype]
  4. public sealed partial class SalvageDifficultyPrototype : IPrototype
  5. {
  6. [IdDataField] public string ID { get; private set; } = string.Empty;
  7. /// <summary>
  8. /// Color to be used in UI.
  9. /// </summary>
  10. [ViewVariables(VVAccess.ReadWrite), DataField("color")]
  11. public Color Color = Color.White;
  12. /// <summary>
  13. /// How much loot this difficulty is allowed to spawn.
  14. /// </summary>
  15. [DataField("lootBudget", required : true)]
  16. public float LootBudget;
  17. /// <summary>
  18. /// How many mobs this difficulty is allowed to spawn.
  19. /// </summary>
  20. [DataField("mobBudget", required : true)]
  21. public float MobBudget;
  22. /// <summary>
  23. /// Budget allowed for mission modifiers like no light, etc.
  24. /// </summary>
  25. [DataField("modifierBudget")]
  26. public float ModifierBudget;
  27. [DataField("recommendedPlayers", required: true)]
  28. public int RecommendedPlayers;
  29. }