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

Method effect

crawl-ref/source/potion.cc:751–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 }
750
751 bool effect(bool was_known = true, int=40, bool is_potion = true) const override
752 {
753 if (you.form == transformation::death) // Gozag potion petition
754 {
755 mpr("You're too dead to put down roots!");
756 return false;
757 }
758 const int dur = _scale_pot_duration(15 + random2(30) + random2(15), is_potion);
759 return transform(dur, transformation::tree, !was_known);
760 }
761
762 bool quaff(bool was_known) const override
763 {

Callers

nothing calls this directly

Calls 4

mprFunction · 0.85
_scale_pot_durationFunction · 0.85
random2Function · 0.85
transformFunction · 0.85

Tested by

no test coverage detected