1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Add less obstacles in zones with low treasure value

This commit is contained in:
Tomasz Zieliński 2024-03-20 14:42:09 +01:00
parent 02fc410a98
commit 433765714f

View File

@ -269,7 +269,7 @@ void Zone::fractalize()
else if (treasureValue < 100)
{
//Dense obstacles
spanFactor *= (treasureValue / 100.f);
spanFactor *= (0.5 + 0.5 * (treasureValue / 100.f));
vstd::amax(spanFactor, 0.15f);
}
if (treasureDensity <= 10)