summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/database
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-15 20:21:51 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-15 20:30:38 -0800
commit1b490890d245da181d79e8730f1357759028eb9e (patch)
treec4ea08e956117652c8c4653565274a0bb34a0bfb /crawl-ref/source/dat/database
parent9f3f309821f3705f7129529fba62a992c01cce84 (diff)
downloadcrawl-ref-1b490890d245da181d79e8730f1357759028eb9e.tar.gz
crawl-ref-1b490890d245da181d79e8730f1357759028eb9e.zip
Bug #2896412: Breath broken after polymorph
If a wizard or priest is polymorphed into a monster without hands, then when it casts a spell preserved across the polymorph (rather than any innate ability or spell) then to avoid getting weird messages (like "Harold breaths UNSEEN BEAM at you") the first lookup key for dat/database/monspell.txt is "polymorphed wizard" or "polymorphed priest." NOTE: There should probably be a greater variety of messages depending on shpae, like "quadruped wizard" and "blob wizard".
Diffstat (limited to 'crawl-ref/source/dat/database')
-rw-r--r--crawl-ref/source/dat/database/monspell.txt34
1 files changed, 27 insertions, 7 deletions
diff --git a/crawl-ref/source/dat/database/monspell.txt b/crawl-ref/source/dat/database/monspell.txt
index 05aff5a894..263005034e 100644
--- a/crawl-ref/source/dat/database/monspell.txt
+++ b/crawl-ref/source/dat/database/monspell.txt
@@ -2,21 +2,25 @@
# "The wizard mumbles some strange words." The messages are looked
# up in the following order by the following keys:
#
-# 1) The name of the spell being cast:
+# 1) If the monster is a wizard or priest which has been polymorphed into
+# a wizard without hands which is trying to cast a spell it kept across
+# the polymporh, then the first key will be "polymorphed wizard" or
+# "polymorphed priest".
+# 2) The name of the spell being cast:
# a) If being cast by a wizard or priest monster with arms, first try
# with the suffix "real".
# b) If being cast by a monster of normal or higher intelligence with arms,
# try with the suffix "gestures".
# c) Next, try without any suffix.
-# 2) The name of the monster's type.
-# 3) The name of the monster's species.
-# 4) The name of the monster's genus.
-# 5) "priest" if the monster is a priest type, "wizard" if it's a wizard type,
+# 3) The name of the monster's type.
+# 4) The name of the monster's species.
+# 5) The name of the monster's genus.
+# 6) "priest" if the monster is a priest type, "wizard" if it's a wizard type,
# or "demon" if it's demonic.
-# 6) If the spell uses a targeted, visible beam, it will try
+# 7) If the spell uses a targeted, visible beam, it will try
# "<beam_short_name> beam cast", then "beam catchall cast".
#
-# For 2 to 5, if the spell has a target it will first add the suffix
+# For 1 and 3 to 6, if the spell has a target it will first add the suffix
# "targeted" to the lookup key before trying without the suffix.
#
# For all lookups, if the monster is unseen by the player it will add the
@@ -241,6 +245,22 @@ giant eyeball cast targeted
giant eyeball cast
@The_monster@ looks around.
+###########################################################################
+# Generic messages for priests and wizards which have been polymorphed into
+# something without hands.
+###########################################################################
+%%%%
+polymorphed wizard cast targeted
+
+@The_monster@ casts a spell at @target@.
+%%%%
+polymorphed wizard cast
+
+@The_monster@ casts a spell.
+%%%%
+polymorphed unseen wizard cast
+
+You hear some strange, mumbled words.
######################################################
# Generic priest, wizard and demonic casting messages.
######################################################