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

Function monmightthrowwep

src/weapon.c:679–688  ·  view source on GitHub ↗

is 'obj' a type of weapon that any monster knows how to throw? */

Source from the content-addressed store, hash-verified

677
678/* is 'obj' a type of weapon that any monster knows how to throw? */
679boolean
680monmightthrowwep(struct obj *obj)
681{
682 short idx;
683
684 for (idx = 0; idx < SIZE(rwep); ++idx)
685 if (obj->otyp == rwep[idx])
686 return TRUE;
687 return FALSE;
688}
689
690/* Weapons in order of preference */
691static const NEARDATA short hwep[] = {

Callers 1

mk_mplayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected