mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	use turncount, framecount and illegal_moves in formulas
This commit is contained in:
		
							
								
								
									
										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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue