| 2211 | } |
| 2212 | |
| 2213 | void Units::subtractActionTimers(color_ostream &out, df::unit *unit, |
| 2214 | int32_t amount, df::unit_action_type affectedActionType) |
| 2215 | { |
| 2216 | CHECK_NULL_POINTER(unit); |
| 2217 | for (auto action : unit->actions) |
| 2218 | if (affectedActionType == action->type) |
| 2219 | mutateActionTimerCore(action, [=](double timerValue){ return max(timerValue - amount, 1.0); }); |
| 2220 | } |
| 2221 | |
| 2222 | void Units::subtractGroupActionTimers(color_ostream &out, df::unit *unit, |
| 2223 | int32_t amount, df::unit_action_type_group affectedActionTypeGroup) |
nothing calls this directly
no test coverage detected