1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-10 15:59:53 +00:00

Orb of Earth effects in the new lands

This commit is contained in:
Zeno Rogue 2020-02-26 01:43:00 +01:00
parent 04b3d5e8d4
commit f4b7810b10

View File

@ -164,6 +164,10 @@ EX bool earthFloor(cell *c) {
c->wall = waNone; c->wall = waNone;
return true; return true;
} }
if(c->land == laWet && among(c->wall, waDeepWater, waShallow, waStone)) {
c->wall = waNone;
return true;
}
if((c->wall == waSea || c->wall == waNone) && c->land == laOcean) { if((c->wall == waSea || c->wall == waNone) && c->land == laOcean) {
c->wall = waCIsland; c->wall = waCIsland;
return true; return true;
@ -202,6 +206,14 @@ EX bool earthWall(cell *c) {
c->wall = waDeadwall; c->wall = waDeadwall;
return true; return true;
} }
if(c->land == laWet && among(c->wall, waDeepWater, waShallow, waNone)) {
c->wall = waStone;
return true;
}
if(c->wall == waNone && c->land == laFrog)
c->wall = waStone;
if(c->wall == waNone && c->land == laEclectic)
c->wall = waDeadwall;
if(c->wall == waNone && c->land == laMountain) { if(c->wall == waNone && c->land == laMountain) {
c->wall = waPlatform; c->wall = waPlatform;
return true; return true;