From 4368e676487cb9d8e343671569478362988baa15 Mon Sep 17 00:00:00 2001 From: qndel Date: Wed, 13 Oct 2021 22:09:05 +0200 Subject: [PATCH] add yellow outline to berserked monsters --- Source/missiles.cpp | 2 -- Source/scrollrt.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 76c128dfdc5..430eb4040b4 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -1398,8 +1398,6 @@ void AddBerserk(Missile &missile, Point dst, Direction /*midir*/) monster.mMaxDamage = (GenerateRnd(10) + 120) * monster.mMaxDamage / 100 + slvl; monster.mMinDamage2 = (GenerateRnd(10) + 120) * monster.mMinDamage2 / 100 + slvl; monster.mMaxDamage2 = (GenerateRnd(10) + 120) * monster.mMaxDamage2 / 100 + slvl; - int r = (currlevel < 17 || currlevel > 20) ? 3 : 9; - monster.mlid = AddLight(monster.position.tile, r); UseMana(missile._misource, SPL_BERSERK); break; } diff --git a/Source/scrollrt.cpp b/Source/scrollrt.cpp index 1b66c12dca0..f02c1052a43 100644 --- a/Source/scrollrt.cpp +++ b/Source/scrollrt.cpp @@ -776,8 +776,10 @@ void DrawMonsterHelper(const Surface &out, Point tilePosition, Point targetBuffe } const Point monsterRenderPosition { targetBufferPosition + offset - Displacement { CalculateWidth2(cel.Width()), 0 } }; - if (mi == pcursmonst) { - Cl2DrawOutline(out, 233, monsterRenderPosition.x, monsterRenderPosition.y, cel, monster.AnimInfo.GetFrameToUseForRendering()); + if ((monster._mFlags & MFLAG_BERSERK) != 0) { + Cl2DrawOutline(out, PAL16_YELLOW + 8, monsterRenderPosition.x, monsterRenderPosition.y, cel, monster.AnimInfo.GetFrameToUseForRendering()); + } else if (mi == pcursmonst) { + Cl2DrawOutline(out, PAL16_RED + 9, monsterRenderPosition.x, monsterRenderPosition.y, cel, monster.AnimInfo.GetFrameToUseForRendering()); } DrawMonster(out, tilePosition, monsterRenderPosition, monster); }