is 'obj' a type of weapon that any monster knows how to throw? */
| 677 | |
| 678 | /* is 'obj' a type of weapon that any monster knows how to throw? */ |
| 679 | boolean |
| 680 | monmightthrowwep(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 */ |
| 691 | static const NEARDATA short hwep[] = { |