| 517 | }; |
| 518 | |
| 519 | const struct throw_and_return_weapon * |
| 520 | autoreturn_weapon(struct obj *otmp) |
| 521 | { |
| 522 | int i; |
| 523 | |
| 524 | for (i = 0; i < SIZE(arwep); i++) { |
| 525 | if (otmp->otyp == arwep[i].otyp) |
| 526 | return &arwep[i]; |
| 527 | } |
| 528 | return (struct throw_and_return_weapon *) 0; |
| 529 | } |
| 530 | |
| 531 | /* select a ranged weapon for the monster */ |
| 532 | struct obj * |
no outgoing calls
no test coverage detected