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

Function use_up_tin

src/eat.c:1515–1525  ·  view source on GitHub ↗

finish consume_tin(); also potentially used by cprefx() and cpostfx() */

Source from the content-addressed store, hash-verified

1513
1514/* finish consume_tin(); also potentially used by cprefx() and cpostfx() */
1515staticfn void
1516use_up_tin(struct obj *tin)
1517{
1518 if (carried(tin))
1519 useup(tin);
1520 else
1521 useupf(tin, 1L);
1522 /* reset tin context */
1523 svc.context.tin.tin = (struct obj *) NULL;
1524 svc.context.tin.o_id = 0;
1525}
1526
1527staticfn void
1528consume_tin(const char *mesg)

Callers 3

cprefxFunction · 0.85
cpostfxFunction · 0.85
consume_tinFunction · 0.85

Calls 2

useupFunction · 0.85
useupfFunction · 0.85

Tested by

no test coverage detected