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

Function RecreateTownItem

Source/items.cpp:3864–3876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3862}
3863
3864void RecreateTownItem(int ii, int idx, WORD icreateinfo, int iseed, int ivalue)
3865{
3866 if (icreateinfo & 0x400)
3867 RecreateSmithItem(ii, idx, icreateinfo & 0x3F, iseed);
3868 else if (icreateinfo & 0x800)
3869 RecreatePremiumItem(ii, idx, icreateinfo & 0x3F, iseed);
3870 else if (icreateinfo & 0x1000)
3871 RecreateBoyItem(ii, idx, icreateinfo & 0x3F, iseed);
3872 else if (icreateinfo & 0x2000)
3873 RecreateWitchItem(ii, idx, icreateinfo & 0x3F, iseed);
3874 else if (icreateinfo & 0x4000)
3875 RecreateHealerItem(ii, idx, icreateinfo & 0x3F, iseed);
3876}
3877
3878void RecalcStoreStats()
3879{

Callers 1

RecreateItemFunction · 0.85

Calls 5

RecreateSmithItemFunction · 0.85
RecreatePremiumItemFunction · 0.85
RecreateBoyItemFunction · 0.85
RecreateWitchItemFunction · 0.85
RecreateHealerItemFunction · 0.85

Tested by

no test coverage detected