diff options
author | Keanan Smith <keanan.smith@gmail.com> | 2014-05-01 23:50:33 -0600 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-05-08 21:58:52 -0400 |
commit | 01e124b8e5cdbb35e613779fd8df9b72cb3e9ed6 (patch) | |
tree | d17ae7c0cb952f447ac4a0760195f6a3a116f7e9 /crawl-ref/source/ability.cc | |
parent | 8acb02a7b433ec251054a3376ed15f49fd8fc9b1 (diff) | |
download | crawl-ref-01e124b8e5cdbb35e613779fd8df9b72cb3e9ed6.tar.gz crawl-ref-01e124b8e5cdbb35e613779fd8df9b72cb3e9ed6.zip |
Remove choosing a book for Recite.
Each monster is affected by exactly one book currently. This commit
changes it so each monster is individually affect by that one book.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 6c803bbf43..a8395dac31 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -1514,7 +1514,7 @@ static bool _check_ability_possible(const ability_def& abil, if (!zin_check_able_to_recite(quiet)) return false; - const int result = zin_check_recite_to_monsters(0); + const int result = zin_check_recite_to_monsters(); if (result == -1) { if (!quiet) @@ -2392,16 +2392,13 @@ static bool _do_ability(const ability_def& abil) // INVOCATIONS: case ABIL_ZIN_RECITE: { - recite_type prayertype; - if (zin_check_recite_to_monsters(&prayertype)) + if (zin_check_recite_to_monsters()) { - you.attribute[ATTR_RECITE_TYPE] = prayertype; + you.attribute[ATTR_RECITE_TYPE] = (recite_type) random2(NUM_RECITE_TYPES); // This is just flavor you.attribute[ATTR_RECITE_SEED] = random2(2187); // 3^7 you.attribute[ATTR_RECITE_HP] = you.hp; you.duration[DUR_RECITE] = 3 * BASELINE_DELAY; - mprf("You clear your throat and prepare to recite %s.", - zin_recite_text(you.attribute[ATTR_RECITE_SEED], - prayertype, -1).c_str()); + mprf("You clear your throat and prepare to recite."); } else { |