浏览代码

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.
Dydzio 9 年之前
父节点
当前提交
beae354536
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/mapObjects/MiscObjects.cpp

+ 1 - 1
lib/mapObjects/MiscObjects.cpp

@@ -868,7 +868,7 @@ void CGResource::initObj(CRandomGenerator & rand)
 		switch(subID)
 		switch(subID)
 		{
 		{
 		case 6:
 		case 6:
-			amount = rand.nextInt(500, 1000);
+			amount = rand.nextInt(5, 10) * 100;
 			break;
 			break;
 		case 0: case 2:
 		case 0: case 2:
 			amount = rand.nextInt(6, 10);
 			amount = rand.nextInt(6, 10);