| 1011 | } |
| 1012 | |
| 1013 | staticfn void |
| 1014 | peffect_confusion(struct obj *otmp) |
| 1015 | { |
| 1016 | if (!Confusion) { |
| 1017 | if (Hallucination) { |
| 1018 | pline("What a trippy feeling!"); |
| 1019 | gp.potion_unkn++; |
| 1020 | } else |
| 1021 | pline("Huh, What? Where am I?"); |
| 1022 | } else |
| 1023 | gp.potion_nothing++; |
| 1024 | make_confused(itimeout_incr(HConfusion, |
| 1025 | rn1(7, 16 - 8 * bcsign(otmp))), |
| 1026 | FALSE); |
| 1027 | } |
| 1028 | |
| 1029 | staticfn void |
| 1030 | peffect_gain_ability(struct obj *otmp) |
no test coverage detected