diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-23 10:12:03 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-23 10:12:03 +1000 |
commit | 7b22a3c233602f96171f5fc0555102c8608d4d8e (patch) | |
tree | 641eb5682566462cdf9bf465129bde1b97af80bf /crawl-ref/source/initfile.cc | |
parent | 2fc79a6d0d709878025fa1f06cf2a5344098f333 (diff) | |
download | crawl-ref-7b22a3c233602f96171f5fc0555102c8608d4d8e.tar.gz crawl-ref-7b22a3c233602f96171f5fc0555102c8608d4d8e.zip |
Counterpart fprop for NO_RTELE_INTO: NO_CTELE_INTO.
NO_CTELE_INTO causes grid-cells marked as such to reject controlled
teleport into them, with the message: "A strong magical force throws you
back!".
NO_TELE_INTO combines both of these flags (NO_RTELE_INTO and
NO_CTELE_INTO) to prevent both controlled and random teleports into a
specific cell.
Also document both of these.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index bc31bfdc33..da5ecad62b 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -228,6 +228,10 @@ int str_to_fprop ( const std::string &str) 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); } |