1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-11 03:03:01 +00:00

adapted most new lands for Shmup and some other modes

This commit is contained in:
Zeno Rogue
2017-10-11 22:16:07 +02:00
parent 2fd8f6b339
commit 343d0719b1
7 changed files with 113 additions and 52 deletions

View File

@@ -1012,12 +1012,23 @@ void buildBigStuff(cell *c, cell *from) {
}
bool openplains(cell *c) {
celllister cl(c, purehepta ? 5 : 7, 1000000, NULL);
for(cell *c: cl.lst) {
while(c->mpdist > 8) setdist(c, c->mpdist-1, NULL);
if(c->land != laHunting) return false;
if(purehepta) {
celllister cl(c, 5, 1000000, NULL);
int bad = 0;
for(cell *c: cl.lst) {
while(c->mpdist > 8) setdist(c, c->mpdist-1, NULL);
if(c->land != laHunting) {bad++; if(bad>5) return false;}
}
return true;
}
return true;
else {
celllister cl(c, purehepta ? 5 : 7, 1000000, NULL);
for(cell *c: cl.lst) {
while(c->mpdist > 8) setdist(c, c->mpdist-1, NULL);
if(c->land != laHunting) return false;
}
return true;
}
}
void doOvergenerate() {