MCPcopy Create free account
hub / github.com/NetHack/NetHack / strange_feeling

Function strange_feeling

src/potion.c:1460–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460void
1461strange_feeling(struct obj *obj, const char *txt)
1462{
1463 if (flags.beginner || !txt)
1464 You("have a %s feeling for a moment, then it passes.",
1465 Hallucination ? "normal" : "strange");
1466 else
1467 pline1(txt);
1468
1469 if (!obj) /* e.g., crystal ball finds no traps */
1470 return;
1471
1472 if (obj->dknown)
1473 trycall(obj);
1474
1475 useup(obj);
1476}
1477
1478static const char *bottlenames[] = { "bottle", "phial", "flagon", "carafe",
1479 "flask", "jar", "vial" };

Callers 10

chweponFunction · 0.85
make_blindedFunction · 0.85
make_hallucinatedFunction · 0.85
gold_detectFunction · 0.85
food_detectFunction · 0.85
object_detectFunction · 0.85
monster_detectFunction · 0.85
trap_detectFunction · 0.85
seffect_enchant_armorFunction · 0.85
seffect_destroy_armorFunction · 0.85

Calls 3

YouFunction · 0.85
trycallFunction · 0.85
useupFunction · 0.85

Tested by

no test coverage detected