From d10d8316e7b8f0e628456d8ce2a0d4dbb17c0016 Mon Sep 17 00:00:00 2001 From: Raoul XQ Date: Tue, 12 Apr 2011 13:51:20 +0200 Subject: [PATCH] Reduced verbosity. --- tools/playground/skillmodify.cpp | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/tools/playground/skillmodify.cpp b/tools/playground/skillmodify.cpp index 2b4f109ff..c53ead8c8 100644 --- a/tools/playground/skillmodify.cpp +++ b/tools/playground/skillmodify.cpp @@ -156,10 +156,10 @@ void usage(int argc, const char * argv[]) << "Example 7: Add engraving labor to all migrants (get the id from the list of labor ids)" << endl << argv[0] << " -c DWARF -nn -al 13" << endl ; - if (quiet == false) { - cout << "Press any key to continue" << endl; - cin.ignore(); - } + if (quiet == false) { + cout << "Press any key to continue" << endl; + cin.ignore(); + } } DFHack::Materials * Materials; @@ -670,11 +670,7 @@ int main (int argc, const char* argv[]) if (remove_labors) { cout << "Removing labors..." << endl; for(unsigned int lab = 0; lab < NUM_CREATURE_LABORS; lab++) { - if (creature.labors[lab]) - { - cout << "Removing labor " << int(hauler_labors[lab]) << "..." << endl; - creature.labors[lab] = 0; - } + creature.labors[lab] = 0; } } @@ -683,11 +679,7 @@ int main (int argc, const char* argv[]) labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]); labs++) { - if (creature.labors[hauler_labors[labs]]) - { - cout << "Removing labor " << int(hauler_labors[labs]) << "..." << endl; - creature.labors[hauler_labors[labs]] = 0; - } + creature.labors[hauler_labors[labs]] = 0; } } @@ -697,11 +689,7 @@ int main (int argc, const char* argv[]) labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]); labs++) { - if (creature.labors[hauler_labors[labs]] == 0) - { - cout << "Adding labor " << int(hauler_labors[labs]) << "..." << endl; - creature.labors[hauler_labors[labs]] = 1; - } + creature.labors[hauler_labors[labs]] = 1; } } if (Creatures->WriteLabors(creature_idx, creature.labors) == true) {