Hide skills with level 0 and 0 experience points

- Hide skills with level 0 and 0 experience points
- Tabs to spaces
develop
Raoul XQ 2011-04-13 06:30:37 +02:00
parent 19c4371581
commit ad93afc1ee
1 changed files with 45 additions and 41 deletions

@ -20,6 +20,7 @@
* - Kill/revive creature(s) with --kill/--revive * - Kill/revive creature(s) with --kill/--revive
* - Show skills/labors only when -ss/-sl/-v is given or a skill/labor is changed * - Show skills/labors only when -ss/-sl/-v is given or a skill/labor is changed
* - Allow multiple -i switches * - Allow multiple -i switches
* - Hide skills with level 0 and 0 experience points
* Done: * Done:
* - Add switch -1 to only display one line for every creature. Good for an overview. * - Add switch -1 to only display one line for every creature. Good for an overview.
@ -311,10 +312,13 @@ void printCreature(DFHack::Context * DF, const DFHack::t_creature & creature, in
skillname = "Unknown skill"; skillname = "Unknown skill";
cout << e.what() << endl; cout << e.what() << endl;
} }
if (skillrating > 0 || skillexperience > 0)
{
cout << "(Skill " << int(skillid) << ") " << setw(16) << skillname << ": " cout << "(Skill " << int(skillid) << ") " << setw(16) << skillname << ": "
<< skillrating << "/" << skillexperience << endl; << skillrating << "/" << skillexperience << endl;
} }
} }
}
for(unsigned int i = 0; i < NUM_CREATURE_LABORS;i++) for(unsigned int i = 0; i < NUM_CREATURE_LABORS;i++)
{ {