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

Method effect

crawl-ref/source/potion.cc:283–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 }
282
283 bool effect(bool=true, int pow = 40, bool is_potion = true) const override
284 {
285 const bool were_mighty = you.duration[DUR_MIGHT] > 0;
286
287 mprf(MSGCH_DURATION, "You feel %s all of a sudden.",
288 were_mighty ? "mightier" : "very mighty");
289 const int dur = _scale_pot_duration(35 + random2(pow), is_potion);
290 you.increase_duration(DUR_MIGHT, dur);
291 return true;
292 }
293};
294
295class PotionBrilliance : 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