git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@747 c06c8d41-db1a-0410-9941-cceddc491573
MZXKH5NHXRMX5Y5FG4XXNHZQ7HTQZFX3ARQU55DO4RM5NR3GIAIQC snprintf( info, INFO_SIZE,"Monster: %s; Damage: pre-AC: %d; post-AC: %d; post-resist: %d",ptr_monam( mon, DESC_PLAIN ), hurt, old_hurt, hurt_final );mpr( info, MSGCH_DIAGNOSTICS );
mprf(MSGCH_DIAGNOSTICS,"Monster: %s; Damage: pre-AC: %d; post-AC: %d; post-resist: %d",ptr_monam( mon, DESC_PLAIN ), hurt, raw_damage, hurt_final );
// player beams which hit friendly MIGHT annoy them and be considered// naughty if they do much damage (this is so as not to penalize// players that fling fireballs into a melee with fire elementals// on their side - the elementals won't give a sh*t, after all)
// player beams which hit friendly will annoy them and be// considered naughty if they do damage (this is so as not to// penalize players that fling fireballs into a melee with fire// elementals on their side - the elementals won't give a sh*t,// after all)
behaviour_event(mon, ME_ANNOY, beam_source(beam) );
// Don't annoy friendlies if the player's beam did no damage.// Hostiles will still take umbrage.if (hurt_final > 0 || !mons_friendly(mon) || !YOU_KILL(beam.thrower))behaviour_event(mon, ME_ANNOY, beam_source(beam) );