1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-04 15:53:00 +00:00

nilrider:: star requirements

This commit is contained in:
Zeno Rogue
2024-12-01 11:32:00 +01:00
parent ce5b5af999
commit b3879f2d24
3 changed files with 28 additions and 23 deletions

View File

@@ -343,14 +343,19 @@ void pick_level() {
cur_stars += score_here;
}
dialog::addSelItem(l->name, its(score_here), l->hotkey);
dialog::add_action([l] {
curlev = l;
recompute_plan_transform = true;
l->init();
clear_path(l);
popScreen();
});
if(l->stars_needed > total_stars) {
dialog::addSelItem(l->name, "stars needed: " + its(l->stars_needed), l->hotkey);
}
else {
dialog::addSelItem(l->name, its(score_here), l->hotkey);
dialog::add_action([l] {
curlev = l;
recompute_plan_transform = true;
l->init();
clear_path(l);
popScreen();
});
}
}
total_stars = cur_stars;
dialog::addBreak(100);