mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Replace more magic subIDs with readable enums
This commit is contained in:
@ -867,10 +867,10 @@ void CGResource::initObj(CRandomGenerator & rand)
|
||||
{
|
||||
switch(subID)
|
||||
{
|
||||
case 6:
|
||||
case Res::GOLD:
|
||||
amount = rand.nextInt(5, 10) * 100;
|
||||
break;
|
||||
case 0: case 2:
|
||||
case Res::WOOD: case Res::ORE:
|
||||
amount = rand.nextInt(6, 10);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user