1
0

PuddleMessVariationPassComponent.cs 779 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Random;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Server.GameTicking.Rules.VariationPass.Components;
  4. /// <summary>
  5. /// Handles spilling puddles with various reagents randomly around the station.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class PuddleMessVariationPassComponent : Component
  9. {
  10. /// <summary>
  11. /// Tiles before one spill on average.
  12. /// </summary>
  13. [DataField]
  14. public float TilesPerSpillAverage = 600f;
  15. [DataField]
  16. public float TilesPerSpillStdDev = 50f;
  17. /// <summary>
  18. /// Weighted random prototype to use for random messes.
  19. /// </summary>
  20. [DataField(required: true)]
  21. public ProtoId<WeightedRandomFillSolutionPrototype> RandomPuddleSolutionFill = default!;
  22. }