diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-04 14:47:09 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-04 14:47:09 +0000 |
commit | ca98a8399e80e0fa440298a6ddf383d706343088 (patch) | |
tree | efb9093515837fa9c2137965baf513cc447d308d /crawl-ref/source/clua.cc | |
parent | 7326d539ae67aba12e9a49dd94b2fe419845c759 (diff) | |
download | crawl-ref-ca98a8399e80e0fa440298a6ddf383d706343088.tar.gz crawl-ref-ca98a8399e80e0fa440298a6ddf383d706343088.zip |
Disallow vampires from draining summoned creatures to be consistent with
summoned creatures being incapable of bleeding on the floor. This makes
things more difficult for Vampires; on the other hand there was a (more
or less) recent change that lets them regain 1 hp *per turn* when
draining corpses. We might also increase the duration of blood
potions...
Apart from that, various clean-ups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6393 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index f9682b8206..7107dc6355 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -1620,11 +1620,11 @@ static int food_eat(lua_State *ls) static int food_rotting(lua_State *ls) { LUA_ITEM(item, 1); + bool rotting = false; if (item && item->base_type == OBJ_FOOD && item->sub_type == FOOD_CHUNK) - { rotting = food_is_rotten(*item); - } + lua_pushboolean(ls, rotting); return (1); } |