diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-23 17:45:40 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-08-09 21:02:11 -0400 |
commit | 4bd060a9edfad801ae0c7abd331b60b5e7bd6c89 (patch) | |
tree | 0e0b309ae12f8129333939116a6036feece0d915 /crawl-ref/source/player-reacts.cc | |
parent | d2305cce9048369e1b11b8ad42d8b8d0039accd6 (diff) | |
download | crawl-ref-4bd060a9edfad801ae0c7abd331b60b5e7bd6c89.tar.gz crawl-ref-4bd060a9edfad801ae0c7abd331b60b5e7bd6c89.zip |
Add a prompt if a player tries to move with the Barbs status
Multiple people have died due to mindlessly moving and getting damaged.
Currently, you get the prompt once, and then a prop is set which
suppresses it in the future, so if you want to move a few squares to a
stairway you aren't spammed. This prop resets whenever the Barbs status
expires, so answering it affirmatively once won't affect another fight
later.
Diffstat (limited to 'crawl-ref/source/player-reacts.cc')
-rw-r--r-- | crawl-ref/source/player-reacts.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/player-reacts.cc b/crawl-ref/source/player-reacts.cc index 010d5bec35..50f41bb2b5 100644 --- a/crawl-ref/source/player-reacts.cc +++ b/crawl-ref/source/player-reacts.cc @@ -1306,5 +1306,7 @@ void extract_manticore_spikes(const char* endmsg) // Otherwise, this prevents the damage. you.attribute[ATTR_BARBS_POW] = 0; + + you.props.erase(BARBS_MOVE_KEY); } } |