summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-16 21:37:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-16 21:37:24 +0000
commit5d158ddd4568f46554d4daf09e69b33244a85163 (patch)
tree99e2e01279424a879bd5058dee1510500852330f /crawl-ref/source/clua.cc
parentfefb960118cab78b5c43e1d29c44aa46719ddbb5 (diff)
downloadcrawl-ref-5d158ddd4568f46554d4daf09e69b33244a85163.tar.gz
crawl-ref-5d158ddd4568f46554d4daf09e69b33244a85163.zip
pickup lua again, this time with Vampires included
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 849969c1ca..7f735179b1 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1160,7 +1160,9 @@ static int l_item_subtype(lua_State *ls)
}
else if (item->base_type == OBJ_POTIONS)
{
- if (item->sub_type == POT_BERSERK_RAGE)
+ if (item->sub_type == POT_BLOOD)
+ s = "blood";
+ else if (item->sub_type == POT_BERSERK_RAGE)
s = "berserk";
else if (item->sub_type == POT_WATER)
s = "water";
@@ -1227,6 +1229,7 @@ static int l_item_potion_type(lua_State *ls)
// need more refined handling:
case POT_BERSERK_RAGE:
+ case POT_BLOOD:
case POT_WATER:
case POT_PORRIDGE:
default: