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

Function u_carried_gloves

src/invent.c:1556–1571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554}
1555
1556struct obj *
1557u_carried_gloves(void)
1558{
1559 struct obj *otmp, *gloves = (struct obj *) 0;
1560
1561 if (uarmg) {
1562 gloves = uarmg;
1563 } else {
1564 for (otmp = gi.invent; otmp; otmp = otmp->nobj)
1565 if (is_gloves(otmp)) {
1566 gloves = otmp;
1567 break;
1568 }
1569 }
1570 return gloves;
1571}
1572
1573
1574/* 3.6 tribute */

Callers 1

doseduceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected