#include <ansi.h>
#include <condition.h>

inherit F_CLEAN_UP;

int update_condition(object me, int duration)
{    
      tell_object(me, HIR "你忽然感到体内劲气外泻，头昏沉沉的。\n" NOR );
      message_vision(HIR"$N突然两腿发软，热的全身乏力，好象虚脱一般。\n"NOR, me);

      me->receive_damage("qi", 100+random(50));
      me->receive_wound("qi", 50+random(70));

      me->set_temp("last_damage_from", "内伤发作");
      me->apply_condition("hunyuan_hurt", duration - 50);
     if( duration < 1 ) return 0;
     return CND_CONTINUE;
}

string query_type(object me)
{
	return "hurt";
}
