mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Tweaked treasure density.
This commit is contained in:
@@ -1082,7 +1082,7 @@ bool CRmgTemplateZone::createRequiredObjects(CMapGenerator* gen)
|
|||||||
|
|
||||||
void CRmgTemplateZone::createTreasures(CMapGenerator* gen)
|
void CRmgTemplateZone::createTreasures(CMapGenerator* gen)
|
||||||
{
|
{
|
||||||
const double minDistance = std::max<float>(15.0f / sqrt(totalDensity), 2);
|
const double minDistance = std::max<float>(20.f / sqrt(totalDensity), 2);
|
||||||
//distance lower than 2 causes objects to overlap and crash
|
//distance lower than 2 causes objects to overlap and crash
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user