summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 01:23:23 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 01:23:23 +0000
commit561bada1e5f32af11f7ebc6caf4c5dfe0c27f73f (patch)
treef689bfd3f8df6ff0fd9ab442b69186ae0e78e512 /crawl-ref/source/artefact.cc
parent841f9e1a5b85df1d3ec26be6031a035b19e11634 (diff)
downloadcrawl-ref-561bada1e5f32af11f7ebc6caf4c5dfe0c27f73f.tar.gz
crawl-ref-561bada1e5f32af11f7ebc6caf4c5dfe0c27f73f.zip
Disallow artefacts with Jiyva's name on them, since jellies can't eat
artefacts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10437 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index a311b2ea4a..7ad0a94b53 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -46,7 +46,8 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item,
if (which_god == GOD_NO_GOD)
return (false);
- if (which_god == GOD_JIYVA && jiyva_is_dead())
+ // Jellies can't eat artefacts, so their god won't make any.
+ if (which_god == GOD_JIYVA)
return (false);
// First check the item's base_type and sub_type, then check the
@@ -1146,7 +1147,7 @@ static bool _init_artefact_book(item_def &book)
god_type god;
bool redo = (!origin_is_god_gift(book, &god) || god != GOD_XOM);
- // Plus and plus2 contain paramaters to make_book_foo_randart()
+ // Plus and plus2 contain parameters to make_book_foo_randart()
// which might get changed after the book has been made into a
// randart, so reset them on each iteration of the loop.
int plus = book.plus;