mantis-140: refactored the calculation of prices for buildings
Merge branch 'mantis-140' into dev