mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	qtm:: striped variants
This commit is contained in:
		| @@ -21,6 +21,8 @@ namespace hybrid { extern hrmap *pmap; } | |||||||
|  |  | ||||||
| namespace qtm { | namespace qtm { | ||||||
|  |  | ||||||
|  | int mode; | ||||||
|  |  | ||||||
| color_t rcolor() { | color_t rcolor() { | ||||||
|   color_t res; |   color_t res; | ||||||
|   part(res, 0) = hrand(0x80); |   part(res, 0) = hrand(0x80); | ||||||
| @@ -40,6 +42,14 @@ void set_cell(cell *c) { | |||||||
|     c->landparam = c1->landparam; |     c->landparam = c1->landparam; | ||||||
|     c->item = itNone; |     c->item = itNone; | ||||||
|     c->monst = moNone; |     c->monst = moNone; | ||||||
|  |     if(mode == 1) { | ||||||
|  |       if(hybrid::get_where(c).second == 0) | ||||||
|  |         c->landparam = 0xFFFFFF; | ||||||
|  |       } | ||||||
|  |     if(mode == 2) { | ||||||
|  |       if(hybrid::get_where(c).second != 0) | ||||||
|  |         c->wall = waNone; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   else { |   else { | ||||||
|     if(c->land == laHive) return; |     if(c->land == laHive) return; | ||||||
| @@ -76,6 +86,15 @@ int args() { | |||||||
|   using namespace arg; |   using namespace arg; | ||||||
|             |             | ||||||
|   if(0) ; |   if(0) ; | ||||||
|  |   else if(argis("-qtm-stripe")) { | ||||||
|  |     mode = 1; | ||||||
|  |     } | ||||||
|  |   else if(argis("-qtm-no-stripe")) { | ||||||
|  |     mode = 0; | ||||||
|  |     } | ||||||
|  |   else if(argis("-qtm-stripe-only")) { | ||||||
|  |     mode = 2; | ||||||
|  |     } | ||||||
|   else if(argis("-qtm")) { |   else if(argis("-qtm")) { | ||||||
|     PHASEFROM(2); |     PHASEFROM(2); | ||||||
|     qtm_on = true; |     qtm_on = true; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue