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

Function ItemMinStats

Source/items.cpp:716–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716BOOL ItemMinStats(PlayerStruct *p, ItemStruct *x)
717{
718 if (p->_pMagic < x->_iMinMag)
719 return FALSE;
720
721 if (p->_pStrength < x->_iMinStr)
722 return FALSE;
723
724 if (p->_pDexterity < x->_iMinDex)
725 return FALSE;
726
727 return TRUE;
728}
729
730void CalcPlrBookVals(int p)
731{

Callers 2

CalcPlrItemMinFunction · 0.85
CalcPlrBookValsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected