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:
21
bigstuff.cpp
21
bigstuff.cpp
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user