diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-01 21:56:57 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-01 22:29:11 -0700 |
commit | 7bbdbfb4c8d38454437051ac89c9d7d541fb87a9 (patch) | |
tree | 9874fe2d048fda1c0938ae745acbdc8a7aed119c /crawl-ref/source/spl-goditem.cc | |
parent | b00f7ffce3868fe6d28e65fdc4a747ff2f3462b3 (diff) | |
download | crawl-ref-7bbdbfb4c8d38454437051ac89c9d7d541fb87a9.tar.gz crawl-ref-7bbdbfb4c8d38454437051ac89c9d7d541fb87a9.zip |
Make curse scrolls and remove curse read-ID.
Diffstat (limited to 'crawl-ref/source/spl-goditem.cc')
-rw-r--r-- | crawl-ref/source/spl-goditem.cc | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-goditem.cc b/crawl-ref/source/spl-goditem.cc index 4453130441..e58d1f700d 100644 --- a/crawl-ref/source/spl-goditem.cc +++ b/crawl-ref/source/spl-goditem.cc @@ -703,7 +703,7 @@ bool remove_curse(bool alreadyknown, string *pre_msg) { if (pre_msg) mprf("%s", pre_msg->c_str()); - canned_msg(MSG_NOTHING_HAPPENS); + mpr("You feel blessed for a moment."); } return success; @@ -770,9 +770,30 @@ bool curse_item(bool armour, bool alreadyknown, string *pre_msg) } else { + count = 0; + string name = "Your body"; if (pre_msg) mprf("%s", pre_msg->c_str()); - canned_msg(MSG_NOTHING_HAPPENS); + + for (int i = min_type; i <= max_type; i++) + { + if (you.equip[i] != -1) + { + count++; + if (one_chance_in(count)) + affected = i; + } + } + if (affected != EQ_WEAPON) + name = you.inv[you.equip[affected]].name(DESC_YOUR); + else if (!armour) + { + name = + you.species == SP_OCTOPODE ? "One of your tentacles" : + one_chance_in(3) ? "Your neck" + : "Your finger"; + } + mprf("%s very briefly gains a black sheen.", name.c_str()); } return false; |