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:
6
game.cpp
6
game.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user