summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transform.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-07-03 11:00:01 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-07-03 11:00:01 -0400
commit52da494bbcaee71c74bf962e8ed96d8e39535e04 (patch)
tree9c7af654f30f0669e9e936f18aedd9b8217c04d5 /crawl-ref/source/transform.cc
parentf9fe885eddd3610f9c236023d4a24797df9439f9 (diff)
downloadcrawl-ref-52da494bbcaee71c74bf962e8ed96d8e39535e04.tar.gz
crawl-ref-52da494bbcaee71c74bf962e8ed96d8e39535e04.zip
Fold mutation_def::wizname into ::short_desc.
In only a few cases were the strings different, and in even fewer were they significantly so. In general, I used the short_desc for the combined one, since someone running wizmode can presumably look at mutation-data.h, except that "large and strong wings" got changed to "big wings", and "life protection" to "negative energy resistance".
Diffstat (limited to 'crawl-ref/source/transform.cc')
-rw-r--r--crawl-ref/source/transform.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/crawl-ref/source/transform.cc b/crawl-ref/source/transform.cc
index a1fb712326..987130961e 100644
--- a/crawl-ref/source/transform.cc
+++ b/crawl-ref/source/transform.cc
@@ -677,13 +677,6 @@ static mutation_type _beastly_appendage()
return chosen;
}
-const char* appendage_name(int app)
-{
- ASSERT(beastly_slot(app) != EQ_NONE);
- const mutation_def& mdef = get_mutation_def((mutation_type) app);
- return mdef.short_desc;
-}
-
static bool _transformation_is_safe(transformation_type which_trans,
dungeon_feature_type feat, bool quiet)
{
@@ -1354,7 +1347,7 @@ void untransform(bool skip_wielding, bool skip_move)
// way is one line:
you.mutation[app] = you.innate_mutation[app];
you.attribute[ATTR_APPENDAGE] = 0;
- mprf(MSGCH_DURATION, "Your %s disappear%s.", appendage_name(app),
+ mprf(MSGCH_DURATION, "Your %s disappear%s.", mutation_name((mutation_type) app),
(app == MUT_TENTACLE_SPIKE) ? "s" : "");
}
break;