From 8d1fa5916d012588e2eaa62fcdcc62768dcb86e1 Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Sun, 17 Jan 2010 11:28:50 +0530 Subject: 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. --- crawl-ref/source/wiz-dgn.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/wiz-dgn.cc') 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 matches = dungeon_feature_matches(name); + std::vector 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; } -- cgit v1.2.3-54-g00ecf