From beae3545364f191d08d4dfa3b4dd302593dbb5f9 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Sat, 17 Sep 2016 23:22:13 +0200 Subject: [PATCH] Correcting random amount of gold in gold piles In original H3 allowed amounts of gold in treasure piles are multipliers of 100. Before this fix gold amount can be any value from range 500-1000. --- lib/mapObjects/MiscObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/MiscObjects.cpp b/lib/mapObjects/MiscObjects.cpp index d9cdc82eb..8da128efa 100644 --- a/lib/mapObjects/MiscObjects.cpp +++ b/lib/mapObjects/MiscObjects.cpp @@ -868,7 +868,7 @@ void CGResource::initObj(CRandomGenerator & rand) switch(subID) { case 6: - amount = rand.nextInt(500, 1000); + amount = rand.nextInt(5, 10) * 100; break; case 0: case 2: amount = rand.nextInt(6, 10);