This commit is contained in:
Eric S. Raymond 2008-09-05 11:55:11 +00:00
parent 2e45d1e915
commit 152a0c1554
2 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,7 @@ namespace events{
//If the unit is of level > 1, or is close to advancing,
//we warn the player about it
std::stringstream message;
if (u.upkeep() == 0) {
if (u.loyal()) {
message << _("My lord, this unit is loyal and requires no upkeep! ") << (u.gender() == unit_race::MALE ? _("Do you really want to dismiss him?")
: _("Do you really want to dismiss her?"));
} else if(u.level() > 1) {

View File

@ -221,6 +221,7 @@ public:
void set_goto(const gamemap::location& new_goto) { goto_ = new_goto; }
int upkeep() const;
bool loyal() const {return cfg_["upkeep"]=="loyal"; }
void set_hidden(bool state);
bool get_hidden() { return hidden_; };