MCPcopy Create free account
hub / github.com/crawl/crawl / practise_throwing

Function practise_throwing

crawl-ref/source/exercise.cc:205–210  ·  view source on GitHub ↗

Skill training when the player throws a projectile at a monster.

Source from the content-addressed store, hash-verified

203
204/// Skill training when the player throws a projectile at a monster.
205void 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.
213void practise_stabbing() { exercise(SK_STEALTH, 1 + random2avg(5, 4)); }

Callers 1

_player_shootFunction · 0.85

Calls 2

coinflipFunction · 0.85
exerciseFunction · 0.85

Tested by

no test coverage detected