alchemy difficulty follows in parenthesis

This commit is contained in:
2025-05-16 17:56:39 -05:00
parent c6921b6804
commit f2403badc5

View File

@@ -2350,10 +2350,9 @@ eAlchemy alch_choice(short pc_num) {
chooseAlchemy.attachClickHandlers(alch_choice_event_filter, {"cancel", "help"});
for(short i = 0; i < 20; i++) {
std::string n = boost::lexical_cast<std::string>(i + 1);
chooseAlchemy["label" + n].setText(get_str("magic-names", i + 200));
chooseAlchemy["label" + n].setText(get_str("magic-names", i + 200) + " (" + std::to_string((*eAlchemy(i)).difficulty)+ ")");
chooseAlchemy["potion" + n].attachClickHandler(alch_choice_event_filter);
if(!univ.party.alchemy[i] || !(*eAlchemy(i)).can_make(univ.party[pc_num].skill(eSkill::ALCHEMY))){
LOG("potion " + n + "can't be made!");
chooseAlchemy["potion" + n].hide();
}
}