More inventory work, add popup function, check for foe loot after combat