void mdeath::jabberwock( monster &z ) { player *ch = dynamic_cast<player*>( z.get_killer() ); bool vorpal = ch && ch->is_player() && rl_dist( z.pos(), ch->pos() ) <= 1 && ch->weapon.has_flag( "DIAMOND" ) && ch->weapon.volume() > units::from_milliliter( 750 ); if( vorpal && !ch->weapon.has_technique( matec_id( "VORPAL" ) ) ) { if( ch->sees( z ) ) { //~ %s is the possessive form of the monster's name ch->add_msg_if_player( m_info, _( "As the flames in %s eyes die out, your weapon seems to shine slightly brighter." ), z.disp_name( true ).c_str() ); } ch->weapon.add_technique( matec_id( "VORPAL" ) ); } mdeath::normal(z); }