diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-07 21:32:07 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-07 21:32:07 +0000 |
commit | 5a806811128416a0c67409e137c929873c28cd7a (patch) | |
tree | fbde21511115a46723c43fcc07f7701e89cbefa4 /crawl-ref/source/directn.cc | |
parent | f5a70a7cbd7c9a7dd6c41fdfade1dc53dbb77f0f (diff) | |
download | crawl-ref-5a806811128416a0c67409e137c929873c28cd7a.tar.gz crawl-ref-5a806811128416a0c67409e137c929873c28cd7a.zip |
Nerf damage of the bat transformation. Reduced from
2 + skill(unarmed_combat)/3 to
2 + rnd(skill(unarmed_combat)/5 + 1)
Also replace the menu_colour_prefix colouring for prompts and the like
to use message_colour instead, so those "msg" abbreviations in
food_colouring.txt actually have an effect now, and players can disable
colouring of prompts etc. (respects channels) while leaving it on in the
inventory.
I'm leaving the menu_colour_prefix function in for now, in case it can
be used somewhere else.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5558 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 9f80ac29e4..02f3bd766c 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1166,14 +1166,14 @@ bool in_los(int x, int y) static bool find_monster( int x, int y, int mode, bool need_path, int range = -1) { - // target the player for friendly and general spells + // Target the player for friendly and general spells. if ((mode == TARG_FRIEND || mode == TARG_ANY) && x == you.x_pos && y == you.y_pos) { return (true); } - // don't target out of range + // Don't target out of range. if (!_is_target_in_range(x, y, range)) return (false); |