|
|
|
@ -670,26 +670,18 @@ 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (remove_hauler) {
|
|
|
|
|
for (int labs=0;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (make_hauler) {
|
|
|
|
|
cout << "Setting hauler labors..." << endl;
|
|
|
|
@ -697,13 +689,9 @@ 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (Creatures->WriteLabors(creature_idx, creature.labors) == true) {
|
|
|
|
|
cout << "Success writing labors." << endl;
|
|
|
|
|
} else {
|
|
|
|
|