1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-21 21:28:33 +00:00

auto-charged teleport in bounded minefield

This commit is contained in:
Zeno Rogue
2019-04-10 02:33:54 +02:00
parent 5e9a54129b
commit 14b32ced68
4 changed files with 10 additions and 0 deletions

View File

@@ -1954,6 +1954,7 @@ void explodeMine(cell *c) {
c->wall = waMineOpen;
explosion(c, 20, 20);
auto_teleport_charges();
}
void explodeBarrel(cell *c) {
@@ -7401,6 +7402,11 @@ vector<cell*> adj_minefield_cells(cell *c) {
return res;
}
void auto_teleport_charges() {
if(specialland == laMinefield && firstland == laMinefield && bounded)
items[itOrbTeleport] = isFire(cwt.at->wall) ? 0 : 1;
}
bool uncoverMines(cell *c, int lev, int dist, bool just_checking) {
bool b = false;
if(c->wall == waMineMine && just_checking) return true;