always combine_things() after identifying a held item

This commit is contained in:
2024-12-27 13:39:40 -06:00
committed by Celtic Minstrel
parent 1a532a3c6e
commit b174dd3fb5
2 changed files with 4 additions and 1 deletions

View File

@@ -603,9 +603,11 @@ void do_mage_spell(short pc_num,eSpell spell_num,bool freebie) {
if(all_identified){
sstr << "already ";
}else{
for(cPlayer& pc : univ.party)
for(cPlayer& pc : univ.party){
for(cItem& item : pc.items)
item.ident = true;
pc.combine_things();
}
}
sstr << "identified.";
ASB(sstr.str());

View File

@@ -77,6 +77,7 @@ bool handle_action(const sf::Event & event) {
univ.party[current_active_pc].items[i].variety != eItemType::NO_ITEM) {
flash_rect(item_string_rects[i][2]);
univ.party[current_active_pc].items[i].ident = true;
univ.party[current_active_pc].combine_things();
}
}