mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-19 11:44:48 +00:00
use turncount, framecount and illegal_moves in formulas
This commit is contained in:
parent
8caf343390
commit
5022b76d75
3
util.cpp
3
util.cpp
@ -394,6 +394,9 @@ cld exp_parser::parse(int prio) {
|
||||
else if(number == "step") res = hdist0(tC0(currentmap->adj(cwt.at, 0)));
|
||||
else if(number == "edgelen") { start_game(); res = hdist(get_corner_position(cwt.at, 0), get_corner_position(cwt.at, 1)); }
|
||||
else if(number == "mousey") res = mousey;
|
||||
else if(number == "turncount") res = turncount;
|
||||
else if(number == "framecount") res = frameid;
|
||||
else if(number == "illegal_moves") res = illegal_moves;
|
||||
else if(number == "mousexs") {
|
||||
if(!inHighQual) bmousexs = (1. * mousex - current_display->xcenter) / current_display->radius;
|
||||
res = bmousexs;
|
||||
|
Loading…
Reference in New Issue
Block a user