From 94002884ec345eb4e7d6680d6ce26c9b3b0a245a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 14 Jul 2007 23:29:19 +0000 Subject: Vampires, yay! Credit mostly goes to Jarmo, though there are a few traces of things I've changed (that I've included and then commented out). There's still lots of stuff to be added, but they should be playable right now. I notice that their vampiric bite attack needs to be made more probable. Feel free to comment on anything that looks weird, is plain wrong, or goes against the spirit of Crawl/Stonesoup. Positive feedback will be appreciated as well. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1870 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 3cfafba58c..481f513bac 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -508,6 +508,13 @@ static int find_acquirement_subtype(object_class_type class_wanted, type_wanted = one_chance_in(10) ? FOOD_ROYAL_JELLY : FOOD_CHUNK; } + else if (you.species == SP_VAMPIRE) + { + // Vampires really don't want any OBJ_FOOD but OBJ_CORPSES + // but it's easier to just give them a potion of blood + class_wanted = OBJ_POTIONS; + type_wanted = POT_BLOOD; + } else { // Meat is better than bread (except for herbivores), and -- cgit v1.2.3-54-g00ecf