Files
tbd-station-14/Content.Shared/Destructible/Thresholds/MinMax.cs
Nemanja 3cdd62b0dd Mining Rebalance (#30920)
* first pass

* this shit too

* ok fix that shit

* buff

* actually fix that
2024-08-16 11:43:54 +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);
}
}