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

Function validateSetActionTimerAmount

library/modules/Units.cpp:2275–2281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2273}
2274
2275static bool validateSetActionTimerAmount(color_ostream &out, int32_t amount) {
2276 if (amount <= 0) {
2277 out.printerr("Can't set action timer(s) to non-positive amount.\n");
2278 return false;
2279 }
2280 return true;
2281}
2282
2283void Units::setActionTimers(color_ostream &out, df::unit *unit,
2284 int32_t amount, df::unit_action_type affectedActionType)

Callers 2

setActionTimersMethod · 0.85
setGroupActionTimersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected