1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 06:35:12 +00:00

no Dragons in the herds, Worms only a few steps

This commit is contained in:
Zeno Rogue
2018-03-24 16:24:08 +01:00
parent e24ae3f717
commit 2ea4b1df04
2 changed files with 9 additions and 2 deletions

View File

@@ -2665,7 +2665,7 @@ namespace prairie {
if(barrierhept(c3)) return btspin(fieldval(c3).first, c3->bardir)+1;
return 0;
}
void spread(cell *c, cell *from) {
int rd;
@@ -2747,6 +2747,11 @@ namespace prairie {
#define RLOW (sphere?(nonbitrunc?7:6):nonbitrunc?4:2)
#define RHIGH (sphere?(nonbitrunc?8:9):nonbitrunc?11:13)
bool no_worms(cell *c) {
int rv = c->LHU.fi.rval;
return rv > RLOW+1 && rv < RHIGH-1;
}
bool isriver(cell *c) {
return c->land == laPrairie && c->LHU.fi.rval <= RHIGH && c->LHU.fi.rval >= RLOW;
}