made it so that loyal level 0 units have 0 upkeep
This commit is contained in:
parent
04fef03108
commit
e062a3fd13
1 changed files with 2 additions and 2 deletions
|
@ -685,9 +685,9 @@ int unit::upkeep() const
|
|||
if(description_.empty() == false)
|
||||
return 0;
|
||||
|
||||
//loyal units always have an upkeep of 1 gold. Other units have an
|
||||
//loyal units have a maximum upkeep of 1 gold. Other units have an
|
||||
//upkeep equal to their level
|
||||
return loyal_ ? 1 : type().level();
|
||||
return loyal_ ? minimum<int>(1,type().level()) : type().level();
|
||||
}
|
||||
|
||||
int team_units(const unit_map& units, int side)
|
||||
|
|
Loading…
Add table
Reference in a new issue