summaryrefslogtreecommitdiffstats
path: root/stone_soup/crawl-ref/source/lua/safechunk.lua
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-18 15:13:34 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-18 15:13:34 +0000
commit2f75c92ad79443e954d0167055c08decff3e41b2 (patch)
tree20bf394b6ae9e60e6f687ad881a2ef4e89d8e8d2 /stone_soup/crawl-ref/source/lua/safechunk.lua
parenta4d4f3ecccb29c3f5fc1ce55579119106c399911 (diff)
parente5860798ba239a9f474ad97263094c6d50967137 (diff)
downloadcrawl-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/safechunk.lua')
-rw-r--r--stone_soup/crawl-ref/source/lua/safechunk.lua41
1 files changed, 0 insertions, 41 deletions
diff --git a/stone_soup/crawl-ref/source/lua/safechunk.lua b/stone_soup/crawl-ref/source/lua/safechunk.lua
deleted file mode 100644
index cd0c9f036d..0000000000
--- a/stone_soup/crawl-ref/source/lua/safechunk.lua
+++ /dev/null
@@ -1,41 +0,0 @@
--- SPOILER WARNING
---
--- This file contains spoiler information. Do not read or use this file if you
--- don't want to be spoiled. Further, the Lua code in this file may use this
--- spoily information to take actions on your behalf. If you don't want
--- automatic exploitation of spoilers, don't use this.
---
----------------------------------------------------------------------------
--- safechunk.lua:
--- Determines whether a chunk of meat is safe for your character to eat.
---
--- To use this, add this line to your init.txt:
--- lua_file = lua/safechunk.lua
---
--- This file has no directly usable functions, but is needed by gourmand.lua
--- and enables auto_eat_chunks in eat.lua.
----------------------------------------------------------------------------
-
-function sc_safechunk(rot, race, mon)
- if race == "Ghoul" then
- return true
- end
-
- if rot then
- if race ~= "Kobold" and race ~= "Troll" and not you.gourmand() then
- return false
- end
- end
-
- if sc_pois[mon] and you.res_poison() > 0 then
- return true
- end
-
- if sc_hcl[mon] or sc_mut[mon] then
- return false
- end
-
- -- Only contaminated and clean chunks remain, in theory. We'll accept
- -- either
- return true
-end