diff options
Diffstat (limited to 'crawl-ref/source/dat/lua/safechnk.lua')
-rw-r--r-- | crawl-ref/source/dat/lua/safechnk.lua | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/crawl-ref/source/dat/lua/safechnk.lua b/crawl-ref/source/dat/lua/safechnk.lua deleted file mode 100644 index 447981f141..0000000000 --- a/crawl-ref/source/dat/lua/safechnk.lua +++ /dev/null @@ -1,37 +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 rot then - if you.saprovorous() < 2 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 race == "Ghoul" - end - - -- Only contaminated and clean chunks remain, in theory. We'll accept - -- either - return true -end |