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

Function SmithRepairOk

Source/stores.cpp:680–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680BOOL SmithRepairOk(int i)
681{
682 if (plr[myplr].InvList[i]._itype == ITYPE_NONE)
683 return FALSE;
684 if (plr[myplr].InvList[i]._itype == ITYPE_MISC)
685 return FALSE;
686 if (plr[myplr].InvList[i]._itype == ITYPE_GOLD)
687 return FALSE;
688 if (plr[myplr].InvList[i]._itype == ITYPE_0E)
689 return FALSE;
690 if (plr[myplr].InvList[i]._iDurability == plr[myplr].InvList[i]._iMaxDur)
691 return FALSE;
692
693 return TRUE;
694}
695
696void S_StartSRepair()
697{

Callers 1

S_StartSRepairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected