mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	command line option --killeach
This commit is contained in:
		| @@ -511,6 +511,13 @@ int read_cheat_args() { | |||||||
|     shift(); eMonster m = readMonster(args()); |     shift(); eMonster m = readMonster(args()); | ||||||
|     shift(); kills[m] += argi(); |     shift(); kills[m] += argi(); | ||||||
|     } |     } | ||||||
|  |   else if(argis("-killeach")) { | ||||||
|  |     PHASEFROM(2); start_game(); | ||||||
|  |     shift(); int q = argi(); cheat(); | ||||||
|  |     for(int m=0; m<motypes; m++) | ||||||
|  |       if(monsterclass(eMonster(m)) == 0) | ||||||
|  |         kills[m] = q; | ||||||
|  |     } | ||||||
|   else if(argis("-each")) { |   else if(argis("-each")) { | ||||||
|     PHASEFROM(2); start_game(); |     PHASEFROM(2); start_game(); | ||||||
|     shift(); int q = argi(); autocheat = true; |     shift(); int q = argi(); autocheat = true; | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							| @@ -2982,6 +2982,7 @@ double hdist0(const hyperpoint& mh); | |||||||
| extern bool fading; | extern bool fading; | ||||||
| extern ld fadeout; | extern ld fadeout; | ||||||
| int itemclass(eItem i); | int itemclass(eItem i); | ||||||
|  | int monsterclass(eMonster m); | ||||||
|  |  | ||||||
| extern purehookset hooks_drawmap; | extern purehookset hooks_drawmap; | ||||||
| extern hookset<bool(eLand&)> *hooks_music; | extern hookset<bool(eLand&)> *hooks_music; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue