* fix RangeNumberSelector to actually be inclusive * Convert all random number stuff to randomint and prune unused code * another heisentest??? * another heisentest after a heisentest. im going to lose it.
21 lines
388 B
C#
21 lines
388 B
C#
namespace Content.Shared.EntityTable.ValueSelector;
|
|
|
|
/// <summary>
|
|
/// Gives a constant value.
|
|
/// </summary>
|
|
public sealed partial class ConstantNumberSelector : NumberSelector
|
|
{
|
|
[DataField]
|
|
public int Value = 1;
|
|
|
|
public ConstantNumberSelector(int value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
public override int Get(System.Random rand)
|
|
{
|
|
return Value;
|
|
}
|
|
}
|