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