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

Method effect

crawl-ref/source/potion.cc:256–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 bool effect(bool=true, int=0, bool is_potion = true) const override
257 {
258 const int dur = _scale_pot_duration(random_range(26, 40), is_potion);
259 return haste_player(dur);
260 }
261
262 bool quaff(bool was_known) const override
263 {

Callers 6

_do_player_potionFunction · 0.45
_xom_do_potionFunction · 0.45
death_curseFunction · 0.45
affect_playerMethod · 0.45
monster_post_hitMethod · 0.45
potionlike_effectFunction · 0.45

Calls 3

_scale_pot_durationFunction · 0.85
random_rangeFunction · 0.85
haste_playerFunction · 0.85

Tested by

no test coverage detected