1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

track illegal moves

This commit is contained in:
Zeno Rogue 2024-05-27 11:14:25 +02:00
parent 203c11f6e1
commit 8caf343390
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,8 @@
namespace hr { namespace hr {
EX int illegal_moves;
EX bool keepLightning = false; EX bool keepLightning = false;
EX bool seenSevenMines = false; EX bool seenSevenMines = false;
@ -198,6 +200,7 @@ bool pcmove::checkNeedMove(bool checkonly, bool attacking) {
yasc_message = XLAT("did not leave %the1", cwt.at->wall); yasc_message = XLAT("did not leave %the1", cwt.at->wall);
killHardcorePlayer(multi::cpid, flags); killHardcorePlayer(multi::cpid, flags);
} }
if(!checkonly) illegal_moves++;
return true; return true;
} }
@ -444,6 +447,8 @@ bool pcmove::movepcto() {
} }
} }
} }
if(checked_move_issue.type == miTHREAT && !checkonly) illegal_moves++;
} }
return b; return b;

View File

@ -224,6 +224,7 @@ EX void initgame() {
clearing::imputed = 0; clearing::imputed = 0;
rosephase = 0; rosephase = 0;
shmup::count_pauses = 0; shmup::count_pauses = 0;
illegal_moves = 0;
splitrocks = 0; splitrocks = 0;