diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-24 10:11:53 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-24 11:05:13 +0100 |
commit | 254c2ac607c3a7add782e947f602ed6effcd3bf1 (patch) | |
tree | b202c85b379f525c368d3a13c557bd6a84719e7d /crawl-ref/source/directn.cc | |
parent | 0c9cba8792edc5ef6eb52dc0a51393c169c4a6b7 (diff) | |
download | crawl-ref-254c2ac607c3a7add782e947f602ed6effcd3bf1.tar.gz crawl-ref-254c2ac607c3a7add782e947f602ed6effcd3bf1.zip |
Remove option target_zero_exp.
The same effect can now be achieved by overriding
ch_target_monster. If anyone wants this, I'm happy
to provide lua code.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 07736e93ce..08ef886a18 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2069,9 +2069,8 @@ static bool _find_monster( const coord_def& where, int mode, bool need_path, if (mon->friendly()) return (false); - // Don't target zero xp monsters, unless target_zero_exp is set. - return (Options.target_zero_exp - || !mons_class_flag(mon->type, M_NO_EXP_GAIN)); + // Don't target zero xp monsters. + return (!mons_class_flag(mon->type, M_NO_EXP_GAIN)); } static bool _find_feature( const coord_def& where, int mode, @@ -2172,9 +2171,6 @@ bool in_los_bounds(const coord_def& p) // Returns 1 if it found something, zero otherwise. If direction // is -1, goes backwards. // -// If the game option target_zero_exp is true, zero experience -// monsters will be targeted. -// //--------------------------------------------------------------- static char _find_square( const coord_def& where, coord_def &mfp, int direction, |