| 1055 | } |
| 1056 | |
| 1057 | void print_labor (df::unit_labor labor, color_ostream &out) |
| 1058 | { |
| 1059 | std::string labor_name = ENUM_KEY_STR(unit_labor, labor); |
| 1060 | out << labor_name << ": "; |
| 1061 | for (int i = 0; i < 20 - (int)labor_name.length(); i++) |
| 1062 | out << ' '; |
| 1063 | if (labor_infos[labor].mode() == DISABLE) |
| 1064 | out << "disabled" << std::endl; |
| 1065 | else |
| 1066 | { |
| 1067 | if (labor_infos[labor].mode() == HAULERS) |
| 1068 | out << "haulers"; |
| 1069 | else |
| 1070 | out << "minimum " << labor_infos[labor].minimum_dwarfs() << ", maximum " << labor_infos[labor].maximum_dwarfs() |
| 1071 | << ", pool " << labor_infos[labor].talent_pool(); |
| 1072 | out << ", currently " << labor_infos[labor].active_dwarfs << " dwarfs" << std::endl; |
| 1073 | } |
| 1074 | } |
| 1075 | |
| 1076 | DFhackCExport command_result plugin_enable ( color_ostream &out, bool enable ) |
| 1077 | { |
no test coverage detected