From 22ade5c3789e9b82a8ec133cb2d00db6816fe029 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 1 Feb 2009 10:33:01 +0000 Subject: Prevent confused monsters from drifting towards the center of the level. Fixes [2472560]. Code cleanups in _handle_monster_move(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8870 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.h | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) (limited to 'crawl-ref/source/fight.h') diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h index 731430e2f5..9786a8ba7c 100644 --- a/crawl-ref/source/fight.h +++ b/crawl-ref/source/fight.h @@ -40,46 +40,19 @@ enum unchivalric_attack_type struct mon_attack_def; -// added Sept 18, 2000 -- bwr -/* *********************************************************************** - * called from: item_use.cc - * *********************************************************************** */ int effective_stat_bonus( int wepType = -1 ); int resist_adjust_damage(actor *defender, beam_type flavour, int res, int rawdamage, bool ranged = false); -// added Sept 18, 2000 -- bwr -/* *********************************************************************** - * called from: describe.cc - * *********************************************************************** */ int weapon_str_weight( object_class_type wpn_class, int wpn_type ); - - -// last updated: 08jun2000 {dlb} -/* *********************************************************************** - * called from: acr - it_use3 - * *********************************************************************** */ bool you_attack(int monster_attacked, bool unarmed_attacks); - - -// last updated: 08jun2000 {dlb} -/* *********************************************************************** - * called from: monstuff - * *********************************************************************** */ -bool monster_attack(int monster_attacking, bool allow_unarmed = true); - - -// last updated: 08jun2000 {dlb} -/* *********************************************************************** - * called from: monstuff - * *********************************************************************** */ -bool monsters_fight(int monster_attacking, int monster_attacked, +bool monster_attack(monsters* attacker, bool allow_unarmed = true); +bool monsters_fight(monsters* attacker, monsters* attacked, bool allow_unarmed = true); -int calc_your_to_hit( bool random_factor ); - -int calc_heavy_armour_penalty( bool random_factor ); +int calc_your_to_hit(bool random_factor); +int calc_heavy_armour_penalty(bool random_factor); unchivalric_attack_type is_unchivalric_attack(const actor *attacker, const actor *defender); -- cgit v1.2.3-54-g00ecf