mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
vcai: Combined cases with the same actions
This commit is contained in:
parent
f874d27797
commit
56061d116e
@ -60,14 +60,11 @@ TGoalVec CollectRes::getAllPossibleSubgoals()
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case Obj::WATER_WHEEL:
|
||||
if (resID != GameResID(EGameResID::GOLD))
|
||||
return false;
|
||||
break;
|
||||
case Obj::MYSTICAL_GARDEN:
|
||||
if ((resID != GameResID(EGameResID::GOLD)) && (resID != GameResID(EGameResID::GEMS)))
|
||||
return false;
|
||||
break;
|
||||
case Obj::WATER_WHEEL:
|
||||
case Obj::LEAN_TO:
|
||||
case Obj::WAGON:
|
||||
if (resID != GameResID(EGameResID::GOLD))
|
||||
|
Loading…
Reference in New Issue
Block a user