Fix alchemy (lol)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user