diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-05 22:17:29 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-05 22:17:29 +0000 |
commit | de3ab3ce26d65fe03341feda94103982a01d8922 (patch) | |
tree | 55377a49eeddf30eee1354ca786f533ca4ae1eaa /crawl-ref/source/effects.cc | |
parent | 46bf2998e5a6df900667ccb4f9ab4856c146d7d8 (diff) | |
download | crawl-ref-de3ab3ce26d65fe03341feda94103982a01d8922.tar.gz crawl-ref-de3ab3ce26d65fe03341feda94103982a01d8922.zip |
Fix 1985516: monsters fail to open doors
Fix 1985526: acquirement by scroll marked as {god gift}
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5492 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index b6fbdf6106..f5ca575a5b 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1058,9 +1058,9 @@ static int find_acquirement_subtype(object_class_type class_wanted, break; } - // mutation specific problems (horns allow caps) - if ((type_wanted == ARM_BOOTS && !player_has_feet()) - || (you.has_claws(false) >= 3 && type_wanted == ARM_GLOVES)) + // Mutation specific problems (horns allow caps). + if (type_wanted == ARM_BOOTS && !player_has_feet() + || type_wanted == ARM_GLOVES && you.has_claws(false) >= 3) { type_wanted = OBJ_RANDOM; } @@ -1153,7 +1153,7 @@ static int find_acquirement_subtype(object_class_type class_wanted, mprf(MSGCH_DIAGNOSTICS, "acquirement: iteration = %d, best_spell = %d", iteration, best_spell ); -#endif //jmf: debugging +#endif switch (best_spell) { @@ -1725,17 +1725,17 @@ bool acquirement(object_class_type class_wanted, int agent, } int plusmod = random2(4); - // more damage, less accuracy if (agent == GOD_TROG) { + // More damage, less accuracy. thing.plus -= plusmod; thing.plus2 += plusmod; if (!is_random_artefact(thing)) thing.plus = std::max(static_cast<int>(thing.plus), 0); } - // more accuracy, less damage else if (agent == GOD_OKAWARU) { + // More accuracy, less damage. thing.plus += plusmod; thing.plus2 -= plusmod; if (!is_random_artefact(thing)) @@ -1743,7 +1743,7 @@ bool acquirement(object_class_type class_wanted, int agent, } } - if (agent == you.religion) + if (agent > AQ_SCROLL && agent == you.religion) { thing.inscription = "god gift"; if (is_random_artefact(thing)) |