diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-15 16:27:38 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-16 00:37:55 +0100 |
commit | 4ae94589a31f96d5676242a643b9972671436feb (patch) | |
tree | b36b8427a57113c9b5d7a85d70cdac9010adfeba /crawl-ref/source | |
parent | dffde3bb594a80dec19a80b0a060ad74c487b4bc (diff) | |
download | crawl-ref-4ae94589a31f96d5676242a643b9972671436feb.tar.gz crawl-ref-4ae94589a31f96d5676242a643b9972671436feb.zip |
Add autoinscriptions when creating an artefact in wizard mode.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/wiz-item.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc index 31550b2edb..c7dd64f209 100644 --- a/crawl-ref/source/wiz-item.cc +++ b/crawl-ref/source/wiz-item.cc @@ -220,6 +220,11 @@ void wizard_create_spec_object() destroy_item(thing_created); return; } + if (Options.autoinscribe_artefacts && is_artefact(mitm[thing_created])) + { + mitm[thing_created].inscription + = artefact_auto_inscription(mitm[thing_created]); + } } // Deck colour (which control rarity) already set. @@ -317,6 +322,8 @@ static void _tweak_randart(item_def &item) MSGCH_PROMPT); return; } + else + mesclr(); artefact_properties_t props; artefact_wpn_properties(item, props); |