MCPcopy Create free account
hub / github.com/DFHack/dfhack / orders_recheck_command

Function orders_recheck_command

plugins/orders.cpp:1031–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031static command_result orders_recheck_command(color_ostream & out)
1032{
1033 size_t count = 0;
1034 for (auto it : world->manager_orders.all) {
1035 if (it->item_conditions.size() && it->status.bits.active) {
1036 ++count;
1037 it->status.bits.active = false;
1038 it->status.bits.validated = false;
1039 }
1040 }
1041 out << "Re-checking conditions for " << count << " manager orders." << std::endl;
1042 return CR_OK;
1043}
1044
1045static command_result orders_recheck_current_command(color_ostream & out)
1046{

Callers 1

orders_commandFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected