summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fprop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fprop.cc')
-rw-r--r--crawl-ref/source/fprop.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/fprop.cc b/crawl-ref/source/fprop.cc
index 50023409d0..5ab09c5279 100644
--- a/crawl-ref/source/fprop.cc
+++ b/crawl-ref/source/fprop.cc
@@ -23,3 +23,21 @@ bool is_bloodcovered(const coord_def& p)
{
return (testbits(env.pgrid(p), FPROP_BLOODY));
}
+
+int str_to_fprop ( const std::string &str)
+{
+ if (str == "bloody")
+ return (FPROP_BLOODY);
+ if (str == "no_cloud_gen")
+ return (FPROP_NO_CLOUD_GEN);
+ if (str == "no_rtele_into")
+ return (FPROP_NO_RTELE_INTO);
+ if (str == "no_ctele_into")
+ return (FPROP_NO_CTELE_INTO);
+ if (str == "no_tele_into")
+ return (FPROP_NO_TELE_INTO);
+
+ return (FPROP_NONE);
+}
+
+