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

fixed OoEarth interactions with mercury river subland and irradiated field

more specifically, fixed the orb of earth removing limestone walls in the mercury river subland and irradiated field, and fixed the orb of earth not creating mercury on cells that the player steps off of in the mercury river subland
This commit is contained in:
bacchelordoh
2025-09-12 13:36:26 -05:00
committed by GitHub
parent 8b7e82b460
commit e9629969d2

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;