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:
parent
133d67d411
commit
68566c34e2
1 changed files with 4 additions and 2 deletions
|
@ -461,8 +461,10 @@ const std::vector<attack_type>& unit::attacks() const
|
||||||
|
|
||||||
int unit::movement_cost(const gamemap& map, gamemap::TERRAIN terrain) const
|
int unit::movement_cost(const gamemap& map, gamemap::TERRAIN terrain) const
|
||||||
{
|
{
|
||||||
if(type_->level() == 0 && terrain == gamemap::TOWER)
|
//don't allow level 0 units to take villages - removed until AI
|
||||||
return 100;
|
//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);
|
const int res = type_->movement_type().movement_cost(map,terrain);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue