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:
parent
203c11f6e1
commit
8caf343390
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user