From 101ce9277219b6925dc9e7c70692984c6544c5cd Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 21 Mar 2007 11:47:59 +0000 Subject: Added wizmode command to simulate monster vs player combat (&^F). Apply 4.1ish monster to-hit calculations. M_FIGHTER monsters get bonus to-hit. Split melee and beam to-hit calculations again. Melee to-hit is now largely 4.1ish, but uses randomised player evasion. Applied 4.1 unique rebalancing. Higher level uniques now hit harder and have more hp. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1074 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 99c4ba3268..9793c5cc34 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -818,6 +818,18 @@ struct mon_attack_def class ghost_demon; class level_id; +struct mon_enchant +{ + enchant_type ench; + kill_category who; // Who set this enchantment? + int degree; + + mon_enchant(enchant_type e, int deg = 1, kill_category whose = KC_OTHER) + : ench(e), who(whose), degree(deg) + { + } +}; + class monsters : public actor { public: -- cgit v1.2.3-54-g00ecf