mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-15 13:17:13 +00:00
bringris:: the 'secret geometries' achievement should work now
This commit is contained in:
@@ -1294,6 +1294,17 @@ void geometry_menu(bool for_scores) {
|
|||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
int total_stars = 0;
|
int total_stars = 0;
|
||||||
for(int i=0; i<isize(bgeoms); i++) total_stars += bgeoms[i].stars;
|
for(int i=0; i<isize(bgeoms); i++) total_stars += bgeoms[i].stars;
|
||||||
|
|
||||||
|
#if RVCOL
|
||||||
|
bool all_unlocked = true;
|
||||||
|
static bool just_once = true;
|
||||||
|
for(int i=0; i<isize(bgeoms); i++) if(total_stars < bgeoms[i].stars_needed) all_unlocked = false;
|
||||||
|
if(all_unlocked && just_once) {
|
||||||
|
rogueviz::rv_achievement("SECRETGEOMETRY");
|
||||||
|
just_once = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
for(int i=0; i<isize(bgeoms); i++) {
|
for(int i=0; i<isize(bgeoms); i++) {
|
||||||
if(total_stars >= bgeoms[i].stars_needed || !stars_enabled || unlock_all) {
|
if(total_stars >= bgeoms[i].stars_needed || !stars_enabled || unlock_all) {
|
||||||
dialog::addTitle(bgeoms[i].name, i == c_geom ? 0xFF00 : 0xFF0000, 150);
|
dialog::addTitle(bgeoms[i].name, i == c_geom ? 0xFF00 : 0xFF0000, 150);
|
||||||
|
|||||||
Reference in New Issue
Block a user