mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-04 15:53:00 +00:00
fake_minecount
This commit is contained in:
@@ -3663,7 +3663,10 @@ EX const char* minetexts[8] = {
|
|||||||
"Seven mines next to you!"
|
"Seven mines next to you!"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
EX map<cell*, int> fake_minecount;
|
||||||
|
|
||||||
EX int countMinesAround(cell *c) {
|
EX int countMinesAround(cell *c) {
|
||||||
|
if(fake_minecount.count(c)) return fake_minecount[c];
|
||||||
int mines = 0;
|
int mines = 0;
|
||||||
for(cell *c2: adj_minefield_cells(c))
|
for(cell *c2: adj_minefield_cells(c))
|
||||||
if(c2->wall == waMineMine)
|
if(c2->wall == waMineMine)
|
||||||
|
|||||||
Reference in New Issue
Block a user