1
0
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:
Maxim Korotkov 2023-09-26 16:11:40 +03:00
parent f874d27797
commit 56061d116e

View File

@ -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))