1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 07:20:25 +00:00

removed the obsolete function isHive

This commit is contained in:
Zeno Rogue 2019-03-23 16:46:41 +01:00
parent 5f82699052
commit db5e89feae
4 changed files with 1 additions and 12 deletions

View File

@ -1775,7 +1775,6 @@ namespace hive {
// pheromones! // pheromones!
if(c->land == laHive && c->landparam < 90) c->landparam += 5; if(c->land == laHive && c->landparam < 90) c->landparam += 5;
if(c2->land == laHive && c2->landparam < 90) c2->landparam += 5; if(c2->land == laHive && c2->landparam < 90) c2->landparam += 5;
// if(isHive(c2->land)) c2->land = eLand(laHive0+k);
/* if(c2->item == itRoyalJelly && !isQueen(m)) { /* if(c2->item == itRoyalJelly && !isQueen(m)) {
// advance! // advance!
c2->monst = eMonster(m+BUGCOLORS); c2->monst = eMonster(m+BUGCOLORS);

View File

@ -244,10 +244,6 @@ bool isArmedEnemy(cell *w, eMonster forwho) {
return w->monst != moCrystalSage && w->monst != moCrusher && isActiveEnemy(w, forwho); return w->monst != moCrystalSage && w->monst != moCrusher && isActiveEnemy(w, forwho);
} }
bool isHive(eLand l) {
return l == laHive;
}
bool eternalFire(cell *c) { bool eternalFire(cell *c) {
return c->land == laDryForest || (c->land == laPower && !smallbounded) || c->land == laMinefield || return c->land == laDryForest || (c->land == laPower && !smallbounded) || c->land == laMinefield ||
c->land == laEFire || c->land == laElementalWall; c->land == laEFire || c->land == laElementalWall;

View File

@ -1477,7 +1477,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
} }
} }
ONEMPTY { ONEMPTY {
if(isHive(c->land) && hrand_monster(6000) < (hive::hivehard() - 15)) if(hrand_monster(6000) < (hive::hivehard() - 15))
c->monst = hive::randomHyperbug(); c->monst = hive::randomHyperbug();
/* if(hrand(1500) < 30 + (kills[moBug0] + kills[moBug1] + kills[moBug2]) && notDippingFor(itRoyalJelly)) /* if(hrand(1500) < 30 + (kills[moBug0] + kills[moBug1] + kills[moBug2]) && notDippingFor(itRoyalJelly))

View File

@ -702,12 +702,6 @@ eLand getNewLand(eLand old) {
eLand tab[1024]; eLand tab[1024];
int cnt = 0; int cnt = 0;
/* if(isHive(old) && hrand(100) < 90) {
eLand n = old;
while(n == old) n = eLand(laHive0 + hrand(3));
return n;
} */
// return (hrand(2)) ? laMotion : laJungle; // return (hrand(2)) ? laMotion : laJungle;
// the basic lands, always available // the basic lands, always available