summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-17 18:04:46 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-17 18:04:46 +0000
commit18a94062a4fdde6994e4c4ad1598e38d79c24ee4 (patch)
tree14973f2d973acc92e77eded21da43adf413d4ab4 /crawl-ref/source/fight.h
parent2c1931a103ed51b5cc3b9ee203de22e74d5b6843 (diff)
downloadcrawl-ref-18a94062a4fdde6994e4c4ad1598e38d79c24ee4.tar.gz
crawl-ref-18a94062a4fdde6994e4c4ad1598e38d79c24ee4.zip
Enable handling of long-distance unchivalric attacks, and increase the
penalty from 4 to 5 for consistency with similar attacks frowned upon by the good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5100 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r--crawl-ref/source/fight.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h
index 3200888154..83d79d2efd 100644
--- a/crawl-ref/source/fight.h
+++ b/crawl-ref/source/fight.h
@@ -28,6 +28,18 @@ enum unarmed_attack_type
UNAT_BITE
};
+enum unchivalric_attack_type
+{
+ UCAT_NO_ATTACK, // 0
+ UCAT_DISTRACTED,
+ UCAT_CONFUSED,
+ UCAT_FLEEING,
+ UCAT_INVISIBLE,
+ UCAT_NET_HELD,
+ UCAT_PARALYSED,
+ UCAT_SLEEPING
+};
+
struct mon_attack_def;
// added Sept 18, 2000 -- bwr
@@ -70,6 +82,10 @@ 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,
+ const monsters *def);
+
class melee_attack
{
public: