From 433765714fe22633c6f0b62d46c87243910f57ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Wed, 20 Mar 2024 14:42:09 +0100 Subject: [PATCH] Add less obstacles in zones with low treasure value --- lib/rmg/Zone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rmg/Zone.cpp b/lib/rmg/Zone.cpp index eb7953a0c..1e3d1faca 100644 --- a/lib/rmg/Zone.cpp +++ b/lib/rmg/Zone.cpp @@ -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)