From b174dd3fb578af47e98ebf783e93e30d0f6341c9 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 27 Dec 2024 13:39:40 -0600 Subject: [PATCH] always combine_things() after identifying a held item --- src/game/boe.party.cpp | 4 +++- src/pcedit/pc.action.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index 9cf088f7..03106abb 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -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()); diff --git a/src/pcedit/pc.action.cpp b/src/pcedit/pc.action.cpp index e4d9d9b2..abecb83f 100644 --- a/src/pcedit/pc.action.cpp +++ b/src/pcedit/pc.action.cpp @@ -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(); } }