diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-15 04:03:33 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-15 04:03:33 +0000 |
commit | a1b82e6be0343a691d342b48dd9f9076ad53453a (patch) | |
tree | 444c3d51a7c14d0de579df58fc798fd68626eb85 /crawl-ref/source/traps.cc | |
parent | cce629f112f720f195dc5b31a94dab10bdacd52e (diff) | |
download | crawl-ref-a1b82e6be0343a691d342b48dd9f9076ad53453a.tar.gz crawl-ref-a1b82e6be0343a691d342b48dd9f9076ad53453a.zip |
Removed amnesia/forgetfullness trap, mutation and scroll. The
mutation has been replaced with an involuntary shouting mutation,
and the trap with an alarm trap. The scroll hasn't been replaced with
anything, and the frequency of scrolls of random uselessness has thus
doubled; someone needs to re-do the scroll frequencies.
Also added a "drifting" mutation, which causes the player to sometimes
drift in a random direction after moving.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2464 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 4de5def889..2773566b34 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -356,10 +356,18 @@ void handle_traps(trap_type trt, int i, bool trap_known) you_teleport_now( true ); break; - case TRAP_AMNESIA: - mpr("You feel momentarily disoriented."); - if (!wearing_amulet(AMU_CLARITY)) - forget_map(random2avg(100, 2)); + case TRAP_ALARM: + if (silenced(you.x_pos, you.y_pos)) + { + if (trap_known) + mpr("The alarm is silenced."); + else + grd[you.x_pos][you.y_pos] = DNGN_UNDISCOVERED_TRAP; + return; + } + + noisy(12, you.x_pos, you.y_pos, "An alarm trap emits a blaring wail!"); + break; case TRAP_BLADE: @@ -837,7 +845,7 @@ dungeon_feature_type trap_category(trap_type type) return (DNGN_TRAP_NATURAL); case TRAP_TELEPORT: - case TRAP_AMNESIA: + case TRAP_ALARM: case TRAP_ZOT: return (DNGN_TRAP_MAGICAL); |