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

Function CheckItemStats

Source/inv.cpp:1340–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1338}
1339
1340void CheckItemStats(int pnum)
1341{
1342 PlayerStruct *p = &plr[pnum];
1343
1344 p->HoldItem._iStatFlag = FALSE;
1345
1346 if (p->_pStrength >= p->HoldItem._iMinStr
1347 && p->_pMagic >= p->HoldItem._iMinMag
1348 && p->_pDexterity >= p->HoldItem._iMinDex) {
1349 p->HoldItem._iStatFlag = TRUE;
1350 }
1351}
1352
1353void CheckBookLevel(int pnum)
1354{

Callers 3

CheckInvCutFunction · 0.85
InvGetItemFunction · 0.85
AutoGetItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected