Skip to content

Commit

Permalink
add yellow outline to berserked monsters
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel committed Oct 13, 2021
1 parent 2ae06f1 commit 4368e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 4 additions & 2 deletions Source/scrollrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4368e67

Please sign in to comment.