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

Method time_since_last_assigned

plugins/autolabor/labormanager.cpp:135–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 void set_maximum_dwarfs(int maximum_dwarfs) { config.ival(2) = maximum_dwarfs; }
134
135 int time_since_last_assigned() const
136 {
137 return (*df::global::cur_year - config.ival(3)) * 403200 + *df::global::cur_year_tick - config.ival(4);
138 }
139
140 void mark_assigned() {
141 config.ival(3) = (*df::global::cur_year);

Callers 1

processMethod · 0.80

Calls 1

ivalMethod · 0.80

Tested by

no test coverage detected