diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 11:28:50 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 11:28:50 +0530 |
commit | 8d1fa5916d012588e2eaa62fcdcc62768dcb86e1 (patch) | |
tree | 2767c7dc72667e8ce9197dae92382a5043642a5b /crawl-ref/source/wiz-dgn.cc | |
parent | c4246fc216beca0282bf281274a3756a10086f87 (diff) | |
download | crawl-ref-8d1fa5916d012588e2eaa62fcdcc62768dcb86e1.tar.gz crawl-ref-8d1fa5916d012588e2eaa62fcdcc62768dcb86e1.zip |
Add FPROP_NO_TIDE to tell the tide not to touch certain squares.
Wizmode &( now accepts fprop names to set the fprop on the current square.
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; } |