diff options
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index c6fefc1da4..a5586fcea7 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -1820,8 +1820,7 @@ void wizard_tweak_object(void) if (item == you.equip[EQ_WEAPON]) you.wield_change = true; - const bool is_art = is_artefact(you.inv[item]) - && !is_unrandom_artefact(you.inv[item]); + const bool is_art = is_artefact(you.inv[item]); while (true) { @@ -2002,6 +2001,12 @@ void wizard_make_object_randart() item_def &item(you.inv[i]); + if (is_unrandom_artefact(item)) + { + mpr("That item is already an unrandom artefact."); + return; + } + if (!_item_type_can_be_artefact(item.base_type)) { mpr("That item cannot be turned into an artefact."); |