| 2281 | } |
| 2282 | |
| 2283 | void Units::setActionTimers(color_ostream &out, df::unit *unit, |
| 2284 | int32_t amount, df::unit_action_type affectedActionType) |
| 2285 | { |
| 2286 | CHECK_NULL_POINTER(unit); |
| 2287 | if (!validateSetActionTimerAmount(out, amount)) |
| 2288 | return; |
| 2289 | for (auto action : unit->actions) |
| 2290 | if (affectedActionType == action->type) |
| 2291 | mutateActionTimerCore(action, [=](double timerValue){ return amount; }); |
| 2292 | } |
| 2293 | |
| 2294 | void Units::setGroupActionTimers(color_ostream &out, df::unit *unit, |
| 2295 | int32_t amount, df::unit_action_type_group affectedActionTypeGroup) |
nothing calls this directly
no test coverage detected