mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	refactored default_land_structure
This commit is contained in:
		| @@ -702,16 +702,19 @@ EX void mode_higlights() { | |||||||
|   dialog::display(); |   dialog::display(); | ||||||
|   }   |   }   | ||||||
|  |  | ||||||
| EX void menuitem_land_structure(char key) { | EX bool default_land_structure() { | ||||||
|   eLandStructure ls = |   return | ||||||
|     bounded ? lsSingle : |     bounded ? lsSingle : | ||||||
|     (tactic::on || princess::challenge) ? lsSingle : |     (tactic::on || princess::challenge) ? lsSingle : | ||||||
|     yendor::on ? yendor::get_land_structure() : |     yendor::on ? yendor::get_land_structure() : | ||||||
|     specialland == laCanvas ? lsSingle : |     specialland == laCanvas ? lsSingle : | ||||||
|     nice_walls_available() ? lsNiceWalls : |     nice_walls_available() ? lsNiceWalls : | ||||||
|     lsNoWalls; |     lsNoWalls; | ||||||
|  |   } | ||||||
|  |  | ||||||
|   if(ls == land_structure && !ineligible_starting_land) | EX void menuitem_land_structure(char key) { | ||||||
|  |  | ||||||
|  |   if(default_land_structure() == land_structure && !ineligible_starting_land) | ||||||
|     dialog::addBoolItem(XLAT("land structure"), false, key); |     dialog::addBoolItem(XLAT("land structure"), false, key); | ||||||
|   else |   else | ||||||
|     dialog::addSelItem(XLAT("land structure"), land_structure_name(true), key); |     dialog::addSelItem(XLAT("land structure"), land_structure_name(true), key); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue