mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 09:33:18 +00:00
show total amount of visible villages (patch #698)
This commit is contained in:
parent
31c354d487
commit
7982b9ca36
@ -59,6 +59,7 @@ Version 1.3.1+svn:
|
||||
* new sounds for user interface events
|
||||
* added the option to show warnings about deprecated WML usage
|
||||
* added the "ignore all" option to continue observing during massive OOS
|
||||
* show total amount of visible villages (patch #698)
|
||||
* misceleanous changes and bug fixes
|
||||
* an friendly healer hill now stop poisoned unit to lose HP
|
||||
* a unit that dies while attacking will now correctly play it's own death
|
||||
|
@ -35,7 +35,8 @@ Version 1.3.1+svn:
|
||||
opening a menu (among others) will now emit small sounds.
|
||||
* If deprecated WML is being encountered and error message will be shown,
|
||||
this way creators of WML code can be easily informed about the problems.
|
||||
|
||||
* Show total amount of visible villages.
|
||||
|
||||
* Language and translations
|
||||
* Updated translations: Bulgarian, Czech, Danish, Dutch, French, German,
|
||||
Hungarian, Italian, Norwegian, Portuguese (Brazil).
|
||||
|
@ -349,7 +349,18 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
|
||||
break;
|
||||
case VILLAGES: {
|
||||
const team_data data = calculate_team_data(current_team,current_side,units);
|
||||
str << (current_side != playing_side ? font::GRAY_TEXT : font::NULL_MARKUP) << data.villages;
|
||||
str << (current_side != playing_side ? font::GRAY_TEXT : font::NULL_MARKUP) << data.villages << "/";
|
||||
if (current_team.uses_shroud()) {
|
||||
int unshrouded_villages = 0;
|
||||
std::vector<gamemap::location>::const_iterator i = map.villages().begin();
|
||||
for (; i != map.villages().end(); i++) {
|
||||
if (!current_team.shrouded(i->x,i->y))
|
||||
unshrouded_villages++;
|
||||
}
|
||||
str << unshrouded_villages;
|
||||
} else {
|
||||
str << map.villages().size();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NUM_UNITS: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user