From 2c835d08acebcbdf28db5dbe6c9afcff318e7919 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Wed, 21 Oct 2009 15:47:19 +1000 Subject: KPROP: assign feature properties in Lua vaults: FPROP_BLOODY, etc. --- crawl-ref/source/initfile.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/initfile.cc') 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) -- cgit v1.2.3-54-g00ecf