diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-18 15:13:34 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-18 15:13:34 +0000 |
commit | 2f75c92ad79443e954d0167055c08decff3e41b2 (patch) | |
tree | 20bf394b6ae9e60e6f687ad881a2ef4e89d8e8d2 /stone_soup/crawl-ref/source/lua/wield.lua | |
parent | a4d4f3ecccb29c3f5fc1ce55579119106c399911 (diff) | |
parent | e5860798ba239a9f474ad97263094c6d50967137 (diff) | |
download | crawl-ref-0.1b1.tar.gz crawl-ref-0.1b1.zip |
Updated stone_soup-0.1b1 tag to include fix for Poison Arrow of Doom.0.1b1
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/tags/stone_soup-0.1b1@51 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'stone_soup/crawl-ref/source/lua/wield.lua')
-rw-r--r-- | stone_soup/crawl-ref/source/lua/wield.lua | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/stone_soup/crawl-ref/source/lua/wield.lua b/stone_soup/crawl-ref/source/lua/wield.lua deleted file mode 100644 index e4fe9951e3..0000000000 --- a/stone_soup/crawl-ref/source/lua/wield.lua +++ /dev/null @@ -1,47 +0,0 @@ ---------------------------------------------------------------------------- --- wield.lua --- Selects extra items to wield. --- --- To use this, add this line to your init.txt: --- lua_file = lua/wield.lua ---------------------------------------------------------------------------- - -function make_hash(ls) - local h = { } - for _, i in ipairs(ls) do - h[i] = true - end - return h -end - -function ch_item_wieldable(it) - -- We only need to check for unusual cases - basic matching is handled - -- by Crawl itself. - local spells = make_hash( you.spells() ) - - if spells["Bone Shards"] - and string.find( item.name(it, "a"), " skeleton" ) - then - return true - end - - if (spells["Sublimation of Blood"] or spells["Simulacrum"]) - and food.ischunk(it) - then - return true - end - - if spells["Sandblast"] - and string.find( item.name(it, "a"), " stones?$" ) - then - return true - end - - if spells["Sticks to Snakes"] - and string.find( item.name(it, "a"), " arrows?$" ) - then - return true - end - - return false -end |