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

Function isTired

plugins/siege-engine.cpp:1468–1474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466}
1467
1468static bool isTired(df::unit *worker)
1469{
1470 return worker->counters2.exhaustion >= 1000 ||
1471 worker->counters2.thirst_timer >= 25000 ||
1472 worker->counters2.hunger_timer >= 50000 ||
1473 worker->counters2.sleepiness_timer >= 57600;
1474}
1475
1476static void releaseTiredWorker(EngineInfo *engine, df::job *job, df::unit *worker)
1477{

Callers 2

releaseTiredWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected