diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-12 09:15:39 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-12 09:15:39 +0100 |
commit | 1fd2d77a2e7c7faf13f8c226f43d07292737f215 (patch) | |
tree | 91c2a29acd553f664ca69b9d2b3fdde0bc94e7dc /src/cmd7.c | |
parent | be3a6e4cab9e0458ac2bb16c9521269a14fa7e3f (diff) |
Import Killerbunnies patch: Trying to activate Piercing Shots now displays a message if the player is too low-level.
Changed from the original patch: Moved logic for the check instead of just duplicating it.
Diffstat (limited to 'src/cmd7.c')
-rw-r--r-- | src/cmd7.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -5447,6 +5447,13 @@ void do_cmd_set_piercing(void) char ch; char com[80]; + if ((get_skill(SKILL_BOW) <= 25) && (get_skill(SKILL_XBOW) <= 25) && + (get_skill(SKILL_SLING) <= 25)) + { + msg_print("You can't fire piercing shots yet."); + return; + } + strnfmt(com, 80, "Allow shots to pierce? "); while (TRUE) @@ -5459,11 +5466,13 @@ void do_cmd_set_piercing(void) if ((ch == 'Y') || (ch == 'y')) { p_ptr->use_piercing_shots = 1; + msg_print("Piercing shots activated."); break; } if ((ch == 'N') || (ch == 'n')) { p_ptr->use_piercing_shots = 0; + msg_print("Piercing shots deactivated."); break; } } |