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

Function count_justpicked

src/pickup.c:634–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634int
635count_justpicked(struct obj *olist)
636{
637 struct obj *otmp;
638 int cnt = 0;
639
640 for (otmp = olist; otmp; otmp = otmp->nobj)
641 if (otmp->pickup_prev)
642 cnt++;
643
644 return cnt;
645}
646
647struct obj *
648find_justpicked(struct obj *olist)

Callers 4

menu_dropFunction · 0.85
ggetobjFunction · 0.85
query_categoryFunction · 0.85
menu_lootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected