diff options
-rw-r--r-- | crawl-ref/source/enum.h | 1 | ||||
-rw-r--r-- | crawl-ref/source/ouch.cc | 10 | ||||
-rw-r--r-- | crawl-ref/source/stuff.cc | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index 1e32f9657f..91a8e5a5c4 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -359,6 +359,7 @@ enum canned_message_type MSG_SOMETHING_APPEARS, MSG_NOTHING_HAPPENS, MSG_YOU_RESIST, + MSG_YOU_PARTIALLY_RESIST, MSG_TOO_BERSERK, MSG_PRESENT_FORM, MSG_NOTHING_CARRIED, diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index d3fe9dabb6..55aeee2407 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -175,7 +175,7 @@ int check_your_resists(int hurted, beam_type flavour) hurted = resist_adjust_damage(&you, flavour, resist, hurted); if (hurted < original) - mpr("You partially resist."); + canned_msg(MSG_YOU_PARTIALLY_RESIST); break; case BEAM_NEG: @@ -203,7 +203,7 @@ int check_your_resists(int hurted, beam_type flavour) hurted, true); if (hurted < original) - mpr("You partially resist."); + canned_msg(MSG_YOU_PARTIALLY_RESIST); else if (hurted > original) { mpr("You feel a painful chill!"); @@ -216,7 +216,7 @@ int check_your_resists(int hurted, beam_type flavour) hurted, true); if (hurted < original) - mpr("You partially resist."); + canned_msg(MSG_YOU_PARTIALLY_RESIST); else if (hurted > original) { mpr("It burns terribly!"); @@ -619,7 +619,7 @@ void drain_exp(bool announce_full) if (protection == 3) { if ( announce_full ) - mpr("You fully resist."); + canned_msg(MSG_YOU_RESIST); return; } @@ -658,7 +658,7 @@ void drain_exp(bool announce_full) } else if (protection > 0) { - mpr("You partially resist."); + canned_msg(MSG_YOU_PARTIALLY_RESIST); exp_drained -= (protection * exp_drained) / 3; } diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 9bbec1f7c7..099f0b81f5 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -831,6 +831,9 @@ void canned_msg(canned_message_type which_message) case MSG_YOU_RESIST: mpr("You resist."); break; + case MSG_YOU_PARTIALLY_RESIST: + mpr("You partially resist."); + break; case MSG_TOO_BERSERK: mpr("You are too berserk!"); crawl_state.cancel_cmd_repeat(); |