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

Method effect

crawl-ref/source/potion.cc:719–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 }
718
719 bool effect(bool=true, int pow = 40, bool is_potion = true) const override
720 {
721 mprf(MSGCH_DURATION, "You feel protected.");
722 const int add = _scale_pot_duration(35 + random2(pow), is_potion);;
723 you.increase_duration(DUR_RESISTANCE, add);
724 return true;
725 }
726};
727
728class PotionLignify : public PotionEffect

Callers

nothing calls this directly

Calls 4

mprfFunction · 0.85
_scale_pot_durationFunction · 0.85
random2Function · 0.85
increase_durationMethod · 0.80

Tested by

no test coverage detected