Files
wwdpublic/Content.Shared/Destructible/Thresholds/MinMax.cs
Nemanja dfa0165bc8 Mining Rebalance (#30920)
* first pass

* this shit too

* ok fix that shit

* buff

* actually fix that

(cherry picked from commit 3cdd62b0dd880135a4d83f6dcf0be4f1f95c3e8d)
2025-07-19 15:22:11 +10:00

30 lines
519 B
C#

using Robust.Shared.Random;
namespace Content.Shared.Destructible.Thresholds;
[DataDefinition, Serializable]
public partial struct MinMax
{
[DataField]
public int Min;
[DataField]
public int Max;
public MinMax(int min, int max)
{
Min = min;
Max = max;
}
public readonly int Next(IRobustRandom random)
{
return random.Next(Min, Max + 1);
}
public readonly int Next(System.Random random)
{
return random.Next(Min, Max + 1);
}
}