diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 17:32:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 17:32:18 +0000 |
commit | 68631458c7c936fb0fed22b87feb888fc3ee5d75 (patch) | |
tree | 08759eb1fb56964a90b3d3129e2e63431d62d07d /crawl-ref/source/monstuff.cc | |
parent | 703d6fb9ec810cf6cdcc2a6ddd1efc4b8631c797 (diff) | |
download | crawl-ref-68631458c7c936fb0fed22b87feb888fc3ee5d75.tar.gz crawl-ref-68631458c7c936fb0fed22b87feb888fc3ee5d75.zip |
TSO no longer makes summons permanent or enslaved monsters permanently friendly, but he will increase summon/charm duration for the ally in combat.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6640 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index a560c32151..571eda7fba 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -409,7 +409,7 @@ static void _give_monster_experience( monsters *victim, { if (you.religion == GOD_SHINING_ONE || you.religion == GOD_BEOGH || player_under_penance() - || one_chance_in(3)) + || !one_chance_in(3)) { return; } @@ -2224,7 +2224,7 @@ static bool _choose_random_patrol_target_grid(monsters *mon) int count_grids = 0; for (radius_iterator ri(mon->patrol_point, LOS_RADIUS, true, false); ri; ++ri) - { + { // Don't bother for the current position. If everything fails, // we'll stay here anyway. if ( *ri == mon->pos() ) @@ -2347,7 +2347,7 @@ static void _mark_neighbours_target_unreachable(monsters *mon) { if ( *ri == mon->pos() ) continue; - + if (mgrd(*ri) == NON_MONSTER) continue; |