Browse Source

[hellfire] RndAllItems bin exact

pull/876/head
qndel 7 years ago committed by Anders Jenbo
parent
commit
043b03e324
  1. 7
      Source/items.cpp

7
Source/items.cpp

@ -2056,9 +2056,16 @@ int RndAllItems()
if (random(26, 100) > 25)
return 0;
#ifdef HELLFIRE
int curlv = items_get_currlevel();
#endif
ri = 0;
for (i = 0; AllItemsList[i].iLoc != ILOC_INVALID; i++) {
#ifdef HELLFIRE
if (AllItemsList[i].iRnd && 2 * curlv >= AllItemsList[i].iMinMLvl && ri < 512) {
#else
if (AllItemsList[i].iRnd && 2 * currlevel >= AllItemsList[i].iMinMLvl) {
#endif
ril[ri] = i;
ri++;
}

Loading…
Cancel
Save