From a724290e7ae62bc20013919bc14c16e91d842083 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 22 Oct 2009 12:21:50 +0200 Subject: Fix the Chronos speed reversal bug. It's now bad to be spriggan, good to be naga. --- crawl-ref/source/godabil.cc | 2 +- crawl-ref/source/mon-util.cc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc index c1348ab813..c3cb8bbe36 100644 --- a/crawl-ref/source/godabil.cc +++ b/crawl-ref/source/godabil.cc @@ -490,7 +490,7 @@ static int _slouch_monsters(coord_def where, int pow, int, actor* agent) if (mon == NULL) return (0); - int dmg = (mon->speed - player_movement_speed()); + int dmg = (mon->speed - 100/player_movement_speed()); dmg = (dmg > 0 ? dmg * dmg : 0); mon->hurt(agent, dmg, BEAM_MMISSILE, true); diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index c775d19bd1..f841e2d781 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -511,8 +511,9 @@ bool mons_is_stationary(const monsters *mon) return (mons_class_is_stationary(mon->type)); } -bool mons_is_fast(const monsters *mon){ - return (mon->speed > 10); +bool mons_is_fast(const monsters *mon) +{ + return (mon->speed > 100/player_movement_speed()); } bool mons_is_insubstantial(int mc) -- cgit v1.2.3-54-g00ecf