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

Function reset_labor

plugins/autolabor/autolabor.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301static void reset_labor(df::unit_labor labor)
302{
303 labor_infos[labor].set_minimum_dwarfs(default_labor_infos[labor].minimum_dwarfs);
304 labor_infos[labor].set_maximum_dwarfs(default_labor_infos[labor].maximum_dwarfs);
305 labor_infos[labor].set_talent_pool(200);
306 labor_infos[labor].set_mode(default_labor_infos[labor].mode);
307}
308
309static void init_state()
310{

Callers 2

init_stateFunction · 0.70
autolaborFunction · 0.70

Calls 4

set_minimum_dwarfsMethod · 0.80
set_talent_poolMethod · 0.80
set_modeMethod · 0.80
set_maximum_dwarfsMethod · 0.45

Tested by

no test coverage detected