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

Function enter_force_field

src/region.c:982–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980 *--------------------------------------------------------------*/
981
982boolean
983enter_force_field(genericptr_t p1, genericptr_t p2)
984{
985 struct monst *mtmp;
986
987 if (p2 == (genericptr_t) 0) { /* That means the player */
988 if (!Blind)
989 You("bump into %s. Ouch!",
990 Hallucination ? "an invisible tree"
991 : "some kind of invisible wall");
992 else
993 pline("Ouch!");
994 } else {
995 mtmp = (struct monst *) p2;
996 if (canseemon(mtmp))
997 pline("%s bumps into %s!", Monnam(mtmp), something);
998 }
999 return FALSE;
1000}
1001
1002NhRegion *
1003create_force_field(coordxy x, coordxy y, int radius, long ttl)

Callers

nothing calls this directly

Calls 4

YouFunction · 0.85
canseemonFunction · 0.85
MonnamFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected