Clean up SetupAllItems initialization
This commit is contained in:
parent
e4d9adcf0e
commit
ebc0ad94eb
1 changed files with 1 additions and 2 deletions
|
|
@ -1558,8 +1558,6 @@ void ItemRndDur(Item &item)
|
|||
|
||||
void SetupAllItems(Item &item, int idx, int iseed, int lvl, int uper, bool onlygood, bool recreate, bool pregen)
|
||||
{
|
||||
int iblvl = -1;
|
||||
|
||||
item._iSeed = iseed;
|
||||
SetRndSeed(iseed);
|
||||
GetItemAttrs(item, idx, lvl / 2);
|
||||
|
|
@ -1576,6 +1574,7 @@ void SetupAllItems(Item &item, int idx, int iseed, int lvl, int uper, bool onlyg
|
|||
item._iCreateInfo |= CF_UPER1;
|
||||
|
||||
if (item._iMiscId != IMISC_UNIQUE) {
|
||||
int iblvl = -1;
|
||||
if (GenerateRnd(100) <= 10 || GenerateRnd(100) <= lvl) {
|
||||
iblvl = lvl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue