December 2014 files
This commit is contained in:
@@ -8,6 +8,7 @@ GravelTile::GravelTile(int type) : HeavyTile(type)
|
||||
|
||||
int GravelTile::getResource(int data, Random *random, int playerBonusLevel)
|
||||
{
|
||||
if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
|
||||
return id;
|
||||
if (playerBonusLevel > 3) playerBonusLevel = 3;
|
||||
if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
|
||||
return id;
|
||||
}
|
||||
Reference in New Issue
Block a user