1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

moddable amount for mines

This commit is contained in:
Laserlicht
2025-09-29 02:00:04 +02:00
parent c9d866aed8
commit 21bc568e59
5 changed files with 24 additions and 17 deletions

View File

@@ -209,16 +209,7 @@ void CGMine::flagMine(IGameEventCallback & gameEvents, const PlayerColor & playe
ui32 CGMine::defaultResProduction() const
{
switch(producedResource.toEnum())
{
case EGameResID::WOOD:
case EGameResID::ORE:
return 2;
case EGameResID::GOLD:
return 1000;
default:
return 1;
}
return getResourceHandler()->getDefaultQuantity();
}
ui32 CGMine::getProducedQuantity() const