From 561bada1e5f32af11f7ebc6caf4c5dfe0c27f73f Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 28 Jul 2009 01:23:23 +0000 Subject: 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 --- crawl-ref/source/artefact.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/artefact.cc') 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; -- cgit v1.2.3-54-g00ecf