| 1319 | } |
| 1320 | |
| 1321 | void BattleUnit::spendRemainingTU(GameState &state, bool allowInterrupt) |
| 1322 | { |
| 1323 | agent->modified_stats.time_units = 0; |
| 1324 | if (allowInterrupt) |
| 1325 | { |
| 1326 | state.current_battle->giveInterruptChanceToUnits(state, {&state, id}, |
| 1327 | agent->getReactionValue()); |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | int BattleUnit::getPickupCost() const { return initialTU * 10 / 100; } |
| 1332 |
no test coverage detected