mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 07:17:54 +00:00
Fix bug #12282.
This commit is contained in:
parent
2e45d1e915
commit
152a0c1554
@ -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) {
|
||||
|
@ -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_; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user