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

Function count_worn_armor

src/do_wear.c:3488–3502  ·  view source on GitHub ↗

number of armor pieces worn by hero */

Source from the content-addressed store, hash-verified

3486
3487/* number of armor pieces worn by hero */
3488int
3489count_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*/

Callers 1

seffect_destroy_armorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected