mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Increased treasure density a bit.
This commit is contained in:
parent
e1936b4b0d
commit
2bc762fca8
@ -1094,7 +1094,7 @@ void CRmgTemplateZone::createTreasures(CMapGenerator* gen)
|
||||
//also, normalize it to zone count - higher count means relative smaller zones
|
||||
|
||||
//this is squared distance for optimization purposes
|
||||
const double minDistance = std::max<float>((800.f * size * size * gen->getZones().size()) /
|
||||
const double minDistance = std::max<float>((600.f * size * size * gen->getZones().size()) /
|
||||
(gen->mapGenOptions->getWidth() * gen->mapGenOptions->getHeight() * totalDensity), 2);
|
||||
//distance lower than 2 causes objects to overlap and crash
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user