Fix alchemy (lol)

This commit is contained in:
2025-05-16 17:49:21 -05:00
parent 0ec09f938f
commit c6921b6804

View File

@@ -2352,8 +2352,10 @@ eAlchemy alch_choice(short pc_num) {
std::string n = boost::lexical_cast<std::string>(i + 1);
chooseAlchemy["label" + n].setText(get_str("magic-names", i + 200));
chooseAlchemy["potion" + n].attachClickHandler(alch_choice_event_filter);
if(!univ.party.alchemy[i] || (*eAlchemy(i)).can_make(univ.party[pc_num].skill(eSkill::ALCHEMY)))
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();
}
}
std::ostringstream sout;
sout << univ.party[pc_num].name;