diff options
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r-- | crawl-ref/source/wiz-dgn.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc index 8251e6c76e..78d6119bdf 100644 --- a/crawl-ref/source/wiz-dgn.cc +++ b/crawl-ref/source/wiz-dgn.cc @@ -289,12 +289,23 @@ void wizard_create_feature() feat = dungeon_feature_by_name(name); if (feat == DNGN_UNSEEN) // no exact match { - std::vector<std::string> matches = dungeon_feature_matches(name); + std::vector<std::string> matches = + dungeon_feature_matches(name); if (matches.empty()) { - mprf(MSGCH_DIAGNOSTICS, "No features matching '%s'", - name.c_str()); + const feature_property_type fprop(str_to_fprop(name)); + if (fprop != FPROP_NONE) + { + env.pgrid(you.pos()) |= fprop; + mprf("Set fprops \"%s\" at (%d,%d)", + name.c_str(), you.pos().x, you.pos().y); + } + else + { + mprf(MSGCH_DIAGNOSTICS, "No features matching '%s'", + name.c_str()); + } return; } |