mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	track illegal moves
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue