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

Function StoreStatOk

Source/items.cpp:3284–3297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3282}
3283
3284BOOL StoreStatOk(ItemStruct *h)
3285{
3286 BOOL sf;
3287
3288 sf = TRUE;
3289 if (plr[myplr]._pStrength < h->_iMinStr)
3290 sf = FALSE;
3291 if (plr[myplr]._pMagic < h->_iMinMag)
3292 sf = FALSE;
3293 if (plr[myplr]._pDexterity < h->_iMinDex)
3294 sf = FALSE;
3295
3296 return sf;
3297}
3298
3299BOOL SmithItemOk(int i)
3300{

Callers 7

CalcPlrBookValsFunction · 0.85
SpawnSmithFunction · 0.85
SpawnOnePremiumFunction · 0.85
SpawnWitchFunction · 0.85
SpawnBoyFunction · 0.85
SpawnHealerFunction · 0.85
RecalcStoreStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected