| 1049 | } |
| 1050 | |
| 1051 | staticfn void |
| 1052 | peffect_speed(struct obj *otmp) |
| 1053 | { |
| 1054 | boolean is_speed = (otmp->otyp == POT_SPEED); |
| 1055 | |
| 1056 | /* skip when mounted; heal_legs() would heal steed's legs */ |
| 1057 | if (is_speed && Wounded_legs && !otmp->cursed && !u.usteed) { |
| 1058 | heal_legs(0); |
| 1059 | gp.potion_unkn++; |
| 1060 | return; |
| 1061 | } |
| 1062 | |
| 1063 | speed_up(rn1(10, 100 + 60 * bcsign(otmp))); |
| 1064 | |
| 1065 | /* non-cursed potion grants intrinsic speed */ |
| 1066 | if (is_speed && !otmp->cursed && !(HFast & INTRINSIC)) { |
| 1067 | Your("quickness feels very natural."); |
| 1068 | HFast |= FROMOUTSIDE; |
| 1069 | } |
| 1070 | } |
| 1071 | |
| 1072 | staticfn void |
| 1073 | peffect_blindness(struct obj *otmp) |