1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 20:27:10 +00:00

bringris:: the 'secret geometries' achievement should work now

This commit is contained in:
Zeno Rogue
2025-10-10 11:49:34 +02:00
parent f061dd6cf6
commit 6f78190aea

View File

@@ -1294,6 +1294,17 @@ void geometry_menu(bool for_scores) {
dialog::addBreak(100);
int total_stars = 0;
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++) {
if(total_stars >= bgeoms[i].stars_needed || !stars_enabled || unlock_all) {
dialog::addTitle(bgeoms[i].name, i == c_geom ? 0xFF00 : 0xFF0000, 150);