mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
track illegal moves
This commit is contained in:
parent
203c11f6e1
commit
8caf343390
@ -9,6 +9,8 @@
|
||||
|
||||
namespace hr {
|
||||
|
||||
EX int illegal_moves;
|
||||
|
||||
EX bool keepLightning = 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);
|
||||
killHardcorePlayer(multi::cpid, flags);
|
||||
}
|
||||
if(!checkonly) illegal_moves++;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -444,6 +447,8 @@ bool pcmove::movepcto() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(checked_move_issue.type == miTHREAT && !checkonly) illegal_moves++;
|
||||
}
|
||||
|
||||
return b;
|
||||
|
@ -224,6 +224,7 @@ EX void initgame() {
|
||||
clearing::imputed = 0;
|
||||
rosephase = 0;
|
||||
shmup::count_pauses = 0;
|
||||
illegal_moves = 0;
|
||||
|
||||
splitrocks = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user