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

Function invoke_fling_poison

src/artifact.c:2021–2037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2019}
2020
2021staticfn int
2022invoke_fling_poison(struct obj *obj)
2023{
2024 if (getdir((char *) 0)) {
2025 int venom = rn2(2) ? BLINDING_VENOM : ACID_VENOM;
2026 struct obj *otmp = mksobj(venom, TRUE, FALSE);
2027
2028 otmp->spe = 1; /* the poison is yours */
2029 throwit(otmp, 0L, FALSE, (struct obj *) 0);
2030 } else {
2031 /* no direction picked */
2032 pline("%s", Never_mind);
2033 obj->age = svm.moves;
2034 return ECMD_CANCEL;
2035 }
2036 return ECMD_TIME;
2037}
2038
2039staticfn int
2040invoke_storm_spell(struct obj *obj)

Callers 1

arti_invokeFunction · 0.85

Calls 5

getdirFunction · 0.85
rn2Function · 0.85
mksobjFunction · 0.85
throwitFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected