fix RangeNumberSelector to actually be inclusive (#36155)
* 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.
This commit is contained in:
@@ -20,7 +20,7 @@ public sealed partial class EntSelector : EntityTableSelector
|
||||
IEntityManager entMan,
|
||||
IPrototypeManager proto)
|
||||
{
|
||||
var num = (int) Math.Round(Amount.Get(rand, entMan, proto));
|
||||
var num = Amount.Get(rand);
|
||||
for (var i = 0; i < num; i++)
|
||||
{
|
||||
yield return Id;
|
||||
|
||||
Reference in New Issue
Block a user