Files
Delta-v/Content.Shared/Destructible/Thresholds/MinMax.cs
T
Nemanja 4e16a3eac2 Mining Rebalance (#30920)
* first pass

* this shit too

* ok fix that shit

* buff

* actually fix that
2024-08-27 00:45:07 +01: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);
}
}