add loot generation updates from 1.6 branch
add load/save of unique structures from 1.6 branch