number of armor pieces worn by hero */
| 3486 | |
| 3487 | /* number of armor pieces worn by hero */ |
| 3488 | int |
| 3489 | count_worn_armor(void) |
| 3490 | { |
| 3491 | int ret = 0; |
| 3492 | |
| 3493 | if (uarm) ret++; |
| 3494 | if (uarmc) ret++; |
| 3495 | if (uarmh) ret++; |
| 3496 | if (uarms) ret++; |
| 3497 | if (uarmg) ret++; |
| 3498 | if (uarmf) ret++; |
| 3499 | if (uarmu) ret++; |
| 3500 | |
| 3501 | return ret; |
| 3502 | } |
| 3503 | |
| 3504 | /*do_wear.c*/ |
no outgoing calls
no test coverage detected