From 6cfcc4708e28e2e1e95c9b09f3629b3ae4fd77fa Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 11 Apr 2021 20:41:43 +0200 Subject: [PATCH] :recycle: Simplify Diablos health adjusment. --- Source/monster.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index b4603380d..e37c473f7 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -471,12 +471,10 @@ void InitMonster(int i, int rd, int mtype, int x, int y) monster[i]._mAnimFrame = random_(88, monster[i]._mAnimLen - 1) + 1; monster[i].mLevel = monst->MData->mLevel; - if (monst->mtype == MT_DIABLO) { - monster[i]._mmaxhp = (random_(88, 1) + (gbIsHellfire ? 3333 : 1666)) << 6; - if (!gbIsHellfire) - monster[i].mLevel -= 15; - } else { - monster[i]._mmaxhp = (monst->mMinHP + random_(88, monst->mMaxHP - monst->mMinHP + 1)) << 6; + monster[i]._mmaxhp = (monst->mMinHP + random_(88, monst->mMaxHP - monst->mMinHP + 1)) << 6; + if (monst->mtype == MT_DIABLO && !gbIsHellfire) { + monster[i]._mmaxhp /= 2; + monster[i].mLevel -= 15; } if (!gbIsMultiplayer) {