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:
ArtisticRoomba
2025-04-14 14:02:49 -07:00
committed by GitHub
parent 0de0ef6065
commit 6c2c5935ed
5 changed files with 11 additions and 18 deletions

View File

@@ -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;