1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

dont_gen_asteroids flag

This commit is contained in:
Zeno Rogue 2024-10-05 13:15:36 +02:00
parent 2d8397d289
commit 9fa2f1f554

View File

@ -321,6 +321,8 @@ EX eItem wanderingTreasure(cell *c) {
return treasureType(l);
}
EX bool dont_gen_asteroids = false;
/** generate the wandering monsters */
EX void wandering() {
#if CAP_COMPLEX2
@ -568,7 +570,7 @@ EX void wandering() {
continue;
}
else if(c->land == laAsteroids) {
else if(c->land == laAsteroids && !dont_gen_asteroids) {
int gen = 0;
if(asteroids_generated * 12 <= items[itAsteroid]) gen = 2;
if(gen == 0) {