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

Function RecreateSmithItem

Source/items.cpp:3783–3794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3781}
3782
3783void RecreateSmithItem(int ii, int idx, int lvl, int iseed)
3784{
3785 int itype;
3786
3787 SetRndSeed(iseed);
3788 itype = RndSmithItem(lvl) - 1;
3789 GetItemAttrs(ii, itype, lvl);
3790
3791 item[ii]._iSeed = iseed;
3792 item[ii]._iCreateInfo = lvl | 0x400;
3793 item[ii]._iIdentified = TRUE;
3794}
3795
3796void RecreatePremiumItem(int ii, int idx, int plvl, int iseed)
3797{

Callers 1

RecreateTownItemFunction · 0.85

Calls 3

SetRndSeedFunction · 0.85
RndSmithItemFunction · 0.85
GetItemAttrsFunction · 0.85

Tested by

no test coverage detected