Skill training when the player throws a projectile at a monster.
| 203 | |
| 204 | /// Skill training when the player throws a projectile at a monster. |
| 205 | void practise_throwing(missile_type mi_type) |
| 206 | { |
| 207 | if (mi_type == MI_STONE && coinflip()) |
| 208 | return; |
| 209 | exercise(SK_THROWING, 1); |
| 210 | } |
| 211 | |
| 212 | /// Skill training when the player stabs an vulnerable monster for extra dam. |
| 213 | void practise_stabbing() { exercise(SK_STEALTH, 1 + random2avg(5, 4)); } |
no test coverage detected