v0.9.1a: prevented shop item counts from influencing levelgen RNG

This commit is contained in:
Evan Debenham 2020-12-12 19:09:19 -05:00
parent 267d04a82b
commit 233e0d152f

View File

@ -273,7 +273,11 @@ public class ShopRoom extends SpecialRoom {
if (itemsToSpawn.size() > 63)
throw new RuntimeException("Shop attempted to carry more than 63 items!");
Random.shuffle(itemsToSpawn);
//use a new generator here to prevent items in shop stock affecting levelgen RNG (e.g. sandbags)
Random.pushGenerator(Random.Long());
Random.shuffle(itemsToSpawn);
Random.popGenerator();
return itemsToSpawn;
}