mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
fixed resource amount for abandoned
This commit is contained in:
@@ -209,6 +209,19 @@ void CGMine::flagMine(IGameEventCallback & gameEvents, const PlayerColor & playe
|
|||||||
|
|
||||||
ui32 CGMine::defaultResProduction() const
|
ui32 CGMine::defaultResProduction() const
|
||||||
{
|
{
|
||||||
|
if(isAbandoned())
|
||||||
|
{
|
||||||
|
switch(producedResource.toEnum())
|
||||||
|
{
|
||||||
|
case EGameResID::WOOD:
|
||||||
|
case EGameResID::ORE:
|
||||||
|
return 2;
|
||||||
|
case EGameResID::GOLD:
|
||||||
|
return 1000;
|
||||||
|
default:
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
return getResourceHandler()->getDefaultQuantity();
|
return getResourceHandler()->getDefaultQuantity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user