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

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.
This commit is contained in:
Dydzio 2016-09-17 23:22:13 +02:00 committed by GitHub
parent 512908b989
commit beae354536

View File

@ -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);