diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-10-21 15:47:19 +1000 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-10-21 13:56:37 +0200 |
commit | 2c835d08acebcbdf28db5dbe6c9afcff318e7919 (patch) | |
tree | 0064538c97eff64ba19e7f7e1a40d1c3f3bfa44a /crawl-ref/source/initfile.cc | |
parent | 17151da3549aeb8b8d70b2e913c6114f40b82f33 (diff) | |
download | crawl-ref-2c835d08acebcbdf28db5dbe6c9afcff318e7919.tar.gz crawl-ref-2c835d08acebcbdf28db5dbe6c9afcff318e7919.zip |
KPROP: assign feature properties in Lua vaults: FPROP_BLOODY, etc.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index c54713e80a..fd87593c46 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -323,6 +323,14 @@ static int _str_to_wand( const std::string& str ) return (SWT_NO_SELECTION); } +int str_to_fprop ( const std::string &str) +{ + if (str == "bloody") + return (FPROP_BLOODY); + + return (FPROP_NONE); +} + static std::string _wand_to_str( int weapon ) { switch (weapon) |