Browse Source

Fix items morphing in Diablo

pull/985/head
Anders Jenbo 5 years ago
parent
commit
35c2061ba3
  1. 6
      Source/items.cpp
  2. 2
      Source/quests.cpp

6
Source/items.cpp

@ -1679,7 +1679,7 @@ void GetStaffPower(int i, int lvl, int bs, BOOL onlygood)
if (tmp == 0 || onlygood) {
nl = 0;
for (j = 0; PL_Prefix[j].PLPower != IPL_INVALID; j++) {
if (!gbIsHellfire && j >= 83)
if (!gbIsHellfire && j > 82)
break;
if (IsPrefixValidForItemType(j, PLT_STAFF) && PL_Prefix[j].PLMinLvl <= lvl) {
addok = TRUE;
@ -2342,7 +2342,7 @@ void GetItemPower(int i, int minlvl, int maxlvl, int flgs, BOOL onlygood)
if (pre == 0) {
nt = 0;
for (j = 0; PL_Prefix[j].PLPower != IPL_INVALID; j++) {
if (!gbIsHellfire && j >= 83)
if (!gbIsHellfire && j > 82)
break;
if (IsPrefixValidForItemType(j, flgs)) {
if (PL_Prefix[j].PLMinLvl >= minlvl && PL_Prefix[j].PLMinLvl <= maxlvl && (!onlygood || PL_Prefix[j].PLOk) && (flgs != PLT_STAFF || PL_Prefix[j].PLPower != IPL_CHARGES)) {
@ -2375,7 +2375,7 @@ void GetItemPower(int i, int minlvl, int maxlvl, int flgs, BOOL onlygood)
if (post != 0) {
nl = 0;
for (j = 0; PL_Suffix[j].PLPower != IPL_INVALID; j++) {
if (!gbIsHellfire && j >= 94)
if (!gbIsHellfire && j > 94)
break;
if (IsSuffixValidForItemType(j, flgs)
&& PL_Suffix[j].PLMinLvl >= minlvl && PL_Suffix[j].PLMinLvl <= maxlvl

2
Source/quests.cpp

@ -115,7 +115,7 @@ void InitQuests()
initiatedQuests = 0;
for (z = 0; z < MAXQUESTS; z++) {
if (!gbIsHellfire && z >= 16)
if (!gbIsHellfire && z > 15)
break;
if (gbMaxPlayers > 1 && !(questlist[z]._qflags & QUEST_ANY))
continue;

Loading…
Cancel
Save