diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-07-02 11:18:55 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-07-02 11:23:18 -0400 |
commit | 9c21a484839b7d2bff1a94a51ad0b1c4fbed67be (patch) | |
tree | b9956f79dbc77de6a81db8105bc52f5c93cabdf8 /crawl-ref/source/l_food.cc | |
parent | 6ca58b0bb8c39748143cdca19bf7260a8c18ac84 (diff) | |
download | crawl-ref-9c21a484839b7d2bff1a94a51ad0b1c4fbed67be.tar.gz crawl-ref-9c21a484839b7d2bff1a94a51ad0b1c4fbed67be.zip |
Disallow eating off the ground for non-vampires.
It makes the 'e' key less consistent for no obvious benefit. Not to
mention that it's incredibly unsanitary.
Diffstat (limited to 'crawl-ref/source/l_food.cc')
-rw-r--r-- | crawl-ref/source/l_food.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crawl-ref/source/l_food.cc b/crawl-ref/source/l_food.cc index 8efc4be418..e76a464a11 100644 --- a/crawl-ref/source/l_food.cc +++ b/crawl-ref/source/l_food.cc @@ -31,15 +31,6 @@ static int food_prompt_eat_chunks(lua_State *ls) return 1; } -static int food_prompt_floor(lua_State *ls) -{ - int eaten = 0; - if (!you.turn_is_over) - eaten = eat_from_floor(); - lua_pushboolean(ls, (eaten != 0)); - return 1; -} - static int food_prompt_inventory(lua_State *ls) { bool eaten = false; @@ -149,7 +140,6 @@ static const struct luaL_reg food_lib[] = { { "do_eat", food_do_eat }, { "prompt_eat_chunks", food_prompt_eat_chunks }, - { "prompt_floor", food_prompt_floor }, { "prompt_inventory", food_prompt_inventory }, { "prompt_inv_menu", food_prompt_inventory_menu }, { "can_eat", food_can_eat }, |