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

Function seffect_genocide

src/read.c:1721–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719}
1720
1721staticfn void
1722seffect_genocide(struct obj **sobjp)
1723{
1724 struct obj *sobj = *sobjp;
1725 int otyp = sobj->otyp;
1726 boolean sblessed = sobj->blessed;
1727 boolean scursed = sobj->cursed;
1728 boolean already_known = (sobj->oclass == SPBOOK_CLASS /* spell */
1729 || objects[otyp].oc_name_known);
1730
1731 if (!already_known)
1732 You("have found a scroll of genocide!");
1733 gk.known = TRUE;
1734 if (sblessed)
1735 do_class_genocide();
1736 else
1737 do_genocide((!scursed) | (2 * !!Confusion));
1738}
1739
1740staticfn void
1741seffect_light(struct obj **sobjp)

Callers 1

seffectsFunction · 0.85

Calls 3

YouFunction · 0.85
do_class_genocideFunction · 0.85
do_genocideFunction · 0.85

Tested by

no test coverage detected