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

Function SmithItemOk

Source/items.cpp:3299–3318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3297}
3298
3299BOOL SmithItemOk(int i)
3300{
3301 BOOL rv;
3302
3303 rv = TRUE;
3304 if (AllItemsList[i].itype == ITYPE_MISC)
3305 rv = FALSE;
3306 if (AllItemsList[i].itype == ITYPE_GOLD)
3307 rv = FALSE;
3308 if (AllItemsList[i].itype == ITYPE_0E)
3309 rv = FALSE;
3310 if (AllItemsList[i].itype == ITYPE_STAFF)
3311 rv = FALSE;
3312 if (AllItemsList[i].itype == ITYPE_RING)
3313 rv = FALSE;
3314 if (AllItemsList[i].itype == ITYPE_AMULET)
3315 rv = FALSE;
3316
3317 return rv;
3318}
3319
3320int RndSmithItem(int lvl)
3321{

Callers 1

RndSmithItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected