Fixed some issues with foundry processing.
Added palette matching to looting.