diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 08a4d1cd98..1cf91f9dd8 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3790,6 +3790,12 @@ void dec_mp(int mp_loss) if (you.magic_points < 0) you.magic_points = 0; + if (you.magic_points > 0 && Options.magic_point_warning + && you.magic_points <= (you.max_magic_points * Options.magic_point_warning) / 100) + { + mpr( "* * * LOW MAGIC WARNING * * *", MSGCH_DANGER_MAGIC ); + } + take_note(Note(NOTE_MP_CHANGE, you.magic_points, you.max_magic_points)); you.redraw_magic_points = 1; |