mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Do not decrease the density of obstacles in zones of medium treasure value. For high values, decrease them more rapidly.
This commit is contained in:
@@ -215,10 +215,10 @@ void Zone::fractalize()
|
|||||||
treasureDensity += t.density;
|
treasureDensity += t.density;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (treasureValue > 100)
|
if (treasureValue > 200)
|
||||||
{
|
{
|
||||||
//Less obstacles - max span is 1 (no obstacles)
|
//Less obstacles - max span is 1 (no obstacles)
|
||||||
spanFactor = 1.0f - ((std::max(0, (1000 - treasureValue)) / 1000.f) * (1 - spanFactor));
|
spanFactor = 1.0f - ((std::max(0, (1000 - treasureValue)) / (1000.f - 200)) * (1 - spanFactor));
|
||||||
}
|
}
|
||||||
else if (treasureValue < 100)
|
else if (treasureValue < 100)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user