summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-23 05:40:11 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-23 05:40:11 +0000
commit8ba107149b1da7f22fa0ca7faa369a93a6d0cb29 (patch)
treee4004bc4ec62ffd8605cf7552d1e3b684553e4d2 /crawl-ref/source/abl-show.cc
parenta19dd0dd929c31c3fbeb0479a2498df3b51ad057 (diff)
downloadcrawl-ref-8ba107149b1da7f22fa0ca7faa369a93a6d0cb29.tar.gz
crawl-ref-8ba107149b1da7f22fa0ca7faa369a93a6d0cb29.zip
Make messages for animating single skeletons/corpses versus multiple
ones consistent. Also, display a proper warning message if a player tries to animate a single skeleton/corpse while not actually standing on one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8707 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 8dbb11752d..ce87fb2f07 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1548,9 +1548,13 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_YRED_ANIMATE_REMAINS:
- mpr("You call on the dead to walk for you...");
- animate_remains(you.pos(), CORPSE_BODY, BEH_FRIENDLY, you.pet_target,
- GOD_YREDELEMNUL);
+ mpr("You attempt to give life to the dead...");
+
+ if (animate_remains(you.pos(), CORPSE_BODY, BEH_FRIENDLY,
+ you.pet_target, GOD_YREDELEMNUL) < 0)
+ {
+ mpr("There are no remains here to animate!");
+ }
exercise(SK_INVOCATIONS, 2 + random2(4));
break;
@@ -1561,6 +1565,7 @@ static bool _do_ability(const ability_def& abil)
case ABIL_YRED_ANIMATE_DEAD:
mpr("You call on the dead to walk for you...");
+
animate_dead(&you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY,
you.pet_target, GOD_YREDELEMNUL);
exercise(SK_INVOCATIONS, 2 + random2(4));