| 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 | |
| 295 | class PotionBrilliance : public PotionEffect |
nothing calls this directly
no test coverage detected