summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 17:02:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 17:02:47 +0000
commit748d46d89bf76acd85c117b95579ea9c477fce9d (patch)
tree68331a9c1568b0b9627fbc11c50a117fc95acae7 /crawl-ref/source/acr.cc
parent39b970fbeb8fe4f25c7a077be347a2374b9037ae (diff)
downloadcrawl-ref-748d46d89bf76acd85c117b95579ea9c477fce9d.tar.gz
crawl-ref-748d46d89bf76acd85c117b95579ea9c477fce9d.zip
Generalize monsters::can_drink_potion(). First, monsters that don't
have at least MONUSE_STARTING_EQUIPMENT can't drink them, as they can't use them anyway (which covers wraiths; the same check is also done in monsters::should_drink_potion()). Second, skeletal monsters in general can't use them, since they require digestion of some type (which covers skeletal warriors). Third, insubstantial monsters can't use them, for the same reason (since all insubstantial monsters use, at most, MONUSE_OPEN_DOORS). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8122 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
0 files changed, 0 insertions, 0 deletions