1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-28 21:41:19 +00:00

Merge pull request #453 from ohlordhebacc/MercuryRiverIrradiatedFieldOoEarth

Make the Orb of Earth/Earth Elemental not remove limestone walls in Irradiated Field and the Mercury River subland, and make OoEarth create a trail of mercury in the mercury river subland
This commit is contained in:
Zeno Rogue
2025-10-09 08:23:54 +02:00
committed by GitHub

View File

@@ -160,7 +160,7 @@ EX bool earthFloor(cell *c) {
if(c->monst) return false;
if(c->wall == waDeadwall) { c->wall = waDeadfloor; return true; }
if(c->wall == waDune) { c->wall = waNone; return true; }
if(c->wall == waStone && c->land != laTerracotta) { c->wall = waNone; return true; }
if(c->wall == waStone && !among(c->land, laTerracotta, laMercuryRiver, laVariant)) { c->wall = waNone; return true; }
if(c->wall == waAncientGrave || c->wall == waFreshGrave || c->wall == waRuinWall) {
c->wall = waNone;
return true;
@@ -259,11 +259,11 @@ EX bool earthWall(cell *c) {
c->wall = waChasm;
return true;
}
if(c->wall == waNone && c->land == laTerracotta) {
if(c->wall == waNone && among(c->land, laTerracotta, laMercuryRiver)) {
c->wall = waMercury;
return true;
}
if(c->wall == waArrowTrap && c->land == laTerracotta) {
if(c->wall == waArrowTrap && among(c->land, laTerracotta, laMercuryRiver)) {
destroyTrapsOn(c);
c->wall = waMercury;
return true;