is hero wielding a weapon that can #force? */
| 657 | |
| 658 | /* is hero wielding a weapon that can #force? */ |
| 659 | boolean |
| 660 | u_have_forceable_weapon(void) |
| 661 | { |
| 662 | if (!uwep /* proper type test */ |
| 663 | || ((uwep->oclass == WEAPON_CLASS || is_weptool(uwep)) |
| 664 | ? (objects[uwep->otyp].oc_skill < P_DAGGER |
| 665 | || objects[uwep->otyp].oc_skill == P_FLAIL |
| 666 | || objects[uwep->otyp].oc_skill > P_LANCE) |
| 667 | : uwep->oclass != ROCK_CLASS)) |
| 668 | return FALSE; |
| 669 | return TRUE; |
| 670 | } |
| 671 | |
| 672 | RESTORE_WARNING_FORMAT_NONLITERAL |
| 673 |
no outgoing calls
no test coverage detected