Randomised Powerup formula
Fix for #861
Merge pull request #866 from CharonInferar/HousingFix3

Fix for #861
fixed declare residency bugs
more residency fixes