Skip to content

Commit

Permalink
fix loot
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel committed Aug 31, 2021
1 parent 60e27e2 commit e268ff9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3424,9 +3424,11 @@ void SpawnItem(MonsterStruct &monster, Point position, bool sendmsg)
GetSuperItemSpace(position, ii);
int uper = monster._uniqtype != 0 ? 15 : 1;

int8_t mLevel = monster.MData->mLevel;
int8_t mLevel = monster.mLevel;
if (!gbIsHellfire && monster.MType->mtype == MT_DIABLO)
mLevel -= 15;
if (mLevel > CF_LEVEL)
mLevel = CF_LEVEL;

SetupAllItems(item, idx, AdvanceRndSeed(), mLevel, uper, onlygood, false, false);

Expand Down

0 comments on commit e268ff9

Please sign in to comment.