| 1294 | } |
| 1295 | |
| 1296 | staticfn void |
| 1297 | peffect_acid(struct obj *otmp) |
| 1298 | { |
| 1299 | if (Acid_resistance) { |
| 1300 | /* Not necessarily a creature who _likes_ acid */ |
| 1301 | pline("This tastes %s.", Hallucination ? "tangy" : "sour"); |
| 1302 | } else { |
| 1303 | int dmg; |
| 1304 | |
| 1305 | pline("This burns%s!", |
| 1306 | otmp->blessed ? " a little" : otmp->cursed ? " a lot" |
| 1307 | : " like acid"); |
| 1308 | dmg = d(otmp->cursed ? 2 : 1, otmp->blessed ? 4 : 8); |
| 1309 | losehp(Maybe_Half_Phys(dmg), "potion of acid", KILLED_BY_AN); |
| 1310 | exercise(A_CON, FALSE); |
| 1311 | } |
| 1312 | if (Stoned) |
| 1313 | fix_petrification(); |
| 1314 | gp.potion_unkn++; /* holy/unholy water can burn like acid too */ |
| 1315 | } |
| 1316 | |
| 1317 | staticfn void |
| 1318 | peffect_polymorph(struct obj *otmp) |