Ran a little experiment in my last game, tried to add a small pearl to an armor to better its gold value... I carefully checked the results...

Well, turns out the armor value + pearl value BEFORE added up to more gold than the new upgraded armor AFTER value. Is this a known issue or what? smirk