diff options
Diffstat (limited to 'games/hack/hack.eat.c')
-rw-r--r-- | games/hack/hack.eat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hack/hack.eat.c b/games/hack/hack.eat.c index 7745f63feb2..05f140a07e4 100644 --- a/games/hack/hack.eat.c +++ b/games/hack/hack.eat.c @@ -360,7 +360,7 @@ newuhs(incr) boolean incr; { poisonous(otmp) register struct obj *otmp; { - return(index(POISONOUS, CORPSE_I_TO_C(otmp->otyp)) != 0); + return(strchr(POISONOUS, CORPSE_I_TO_C(otmp->otyp)) != 0); } /* returns 1 if some text was printed */ @@ -373,7 +373,7 @@ register tp = 0; pline("You get very sick."); Sick = 10 + rn2(10); u.usick_cause = objects[otmp->otyp].oc_name; - } else if(index(POISONOUS, let) && rn2(5)){ + } else if(strchr(POISONOUS, let) && rn2(5)){ tp++; pline("Ecch -- that must have been poisonous!"); if(!Poison_resistance){ @@ -381,7 +381,7 @@ register tp = 0; losehp(rnd(15), "poisonous corpse"); } else pline("You don't seem affected by the poison."); - } else if(index("ELNOPQRUuxz", let) && rn2(5)){ + } else if(strchr("ELNOPQRUuxz", let) && rn2(5)){ tp++; pline("You feel sick."); losehp(rnd(8), "cadaver"); |