Returns 100% +- 25%, with a max of 20
| 21 | |
| 22 | // Returns 100% +- 25%, with a max of 20 |
| 23 | int Organisation::getGuardCount(GameState &state) const |
| 24 | { |
| 25 | return std::min( |
| 26 | 20, randBoundsInclusive(state.rng, average_guards * 75 / 100, average_guards * 125 / 100)); |
| 27 | } |
| 28 | |
| 29 | StateRef<Building> Organisation::pickRandomBuilding(GameState &state, StateRef<City> city) const |
| 30 | { |
no test coverage detected