MCPcopy Create free account
hub / github.com/diasurgical/devilution / SmithSellOk

Function SmithSellOk

Source/stores.cpp:572–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572BOOL SmithSellOk(int i)
573{
574 if (plr[myplr].InvList[i]._itype == ITYPE_NONE)
575 return FALSE;
576 if (plr[myplr].InvList[i]._itype == ITYPE_MISC)
577 return FALSE;
578 if (plr[myplr].InvList[i]._itype == ITYPE_GOLD)
579 return FALSE;
580 if (plr[myplr].InvList[i]._itype == ITYPE_0E)
581 return FALSE;
582 if (plr[myplr].InvList[i]._itype == ITYPE_STAFF)
583 return FALSE;
584 if (plr[myplr].InvList[i].IDidx == IDI_LAZSTAFF)
585 return FALSE;
586
587 return TRUE;
588}
589
590void S_ScrollSSell(int idx)
591{

Callers 1

S_StartSSellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected