Skip to content

Commit

Permalink
Update items.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonomov committed Nov 13, 2024
1 parent 9cfd8fb commit 846e3b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2254,13 +2254,13 @@ void CreateMagicItem(Point position, int lvl, ItemType itemType, int imid, int i
while (true) {
item = {};

int ilvl_diff;
int ilvl_diff = lvl;
switch (sgGameInitInfo.nDifficulty) {
case DIFF_NIGHTMARE:
ilvl_diff = lvl + 5;
ilvl_diff += 5;
break;
case DIFF_HELL:
ilvl_diff = lvl + 10;
ilvl_diff += 10;
break;
}

Expand Down

0 comments on commit 846e3b9

Please sign in to comment.