Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2a5de commit 32bbcabCopy full SHA for 32bbcab
1 file changed
plugins/autonestbox.cpp
@@ -340,7 +340,8 @@ static size_t assign_nestboxes(color_ostream &out) {
340
if (free_zones.size() < free_units.size() && !did_complain) {
341
size_t num_needed = free_units.size() - free_zones.size();
342
std::stringstream ss;
343
- ss << "Not enough free nestbox zones! You need to make " << num_needed << " more 1x1 pastures and build nestboxes in them.";
+ ss << "Not enough free nestbox zones! You need to make " << num_needed <<
344
+ " more 1x1 pasture" << (num_needed == 1 ? "and build nestboxes in it." : "s and build nestboxes in them.");
345
string announce = ss.str();
346
out << announce << std::endl;
347
Gui::showAnnouncement("[DFHack autonestbox] " + announce, COLOR_BROWN, true);
0 commit comments