removed rule about level 0 units not being able to capture villages, ...

...until the AI is smart enough to deal with it
This commit is contained in:
Dave White 2003-11-14 20:07:16 +00:00
parent 133d67d411
commit 68566c34e2

View file

@ -461,8 +461,10 @@ const std::vector<attack_type>& unit::attacks() const
int unit::movement_cost(const gamemap& map, gamemap::TERRAIN terrain) const
{
if(type_->level() == 0 && terrain == gamemap::TOWER)
return 100;
//don't allow level 0 units to take villages - removed until AI
//is smart enough to deal with this.
// if(type_->level() == 0 && terrain == gamemap::TOWER)
// return 100;
const int res = type_->movement_type().movement_cost(map,terrain);