| 350 | // it always prompts. XX maybe add info to the prompt? |
| 351 | |
| 352 | bool effect(bool=true, int pow = 40, bool is_potion = true) const override |
| 353 | { |
| 354 | const bool was_attractive = you.duration[DUR_ATTRACTIVE] > 0; |
| 355 | |
| 356 | mprf(MSGCH_DURATION, "You feel %sattractive to monsters.", |
| 357 | was_attractive ? "more " : ""); |
| 358 | |
| 359 | const int dur = _scale_pot_duration((20 + random2(pow)/2), is_potion); |
| 360 | you.increase_duration(DUR_ATTRACTIVE, dur); |
| 361 | return true; |
| 362 | } |
| 363 | }; |
| 364 | |
| 365 |
nothing calls this directly
no test coverage detected