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

Function RecreateBoyItem

Source/items.cpp:3810–3821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3808}
3809
3810void RecreateBoyItem(int ii, int idx, int lvl, int iseed)
3811{
3812 int itype;
3813
3814 SetRndSeed(iseed);
3815 itype = RndBoyItem(lvl) - 1;
3816 GetItemAttrs(ii, itype, lvl);
3817 GetItemBonus(ii, itype, lvl, 2 * lvl, TRUE);
3818 item[ii]._iSeed = iseed;
3819 item[ii]._iCreateInfo = lvl | 0x1000;
3820 item[ii]._iIdentified = TRUE;
3821}
3822
3823void RecreateWitchItem(int ii, int idx, int lvl, int iseed)
3824{

Callers 1

RecreateTownItemFunction · 0.85

Calls 4

SetRndSeedFunction · 0.85
RndBoyItemFunction · 0.85
GetItemAttrsFunction · 0.85
GetItemBonusFunction · 0.85

Tested by

no test coverage detected