#include <ansi.h>
#include <condition.h>
inherit F_CLEAN_UP;
void extra(object me);
int update_condition(object me, int duration)
{
	if (!me|| me->is_ghost()) return 0;
	message("vision", HIW +me->name() + "闷哼一声，全身颤抖，脸色苍白。\n"NOR,
		environment(me), me);
	tell_object(me, HIW "你闷哼一声，奇寒无比。\n" NOR );
	me->receive_wound("qi", random(150)+50);
	me->receive_wound("jing", random(20)+50);
	me->receive_damage("jingli", random(20)+50);
	me->add("neili", -random(20)-60);
	me->set_temp("last_damage_from", "玄冥神掌寒毒发作");
	call_out("extra",5,me);
	call_out("extra",10,me);
	call_out("extra",15,me);
	me->apply_condition("xuanmin_poison", duration-20);
	if( duration < 2 ) return 0;
	return CND_CONTINUE;
}

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

void extra(object me)
{
	if (!me || me->is_ghost()) return 0;
	message("vision", HIW +me->name() + "闷哼一声，全身颤抖，脸色苍白。\n"NOR,
		environment(me), me);
	tell_object(me, HIW "你闷哼一声，奇寒无比。\n" NOR );
	me->receive_wound("qi", random(20)+50);
	me->receive_wound("jing", random(20)+50);
	me->receive_damage("jingli", random(20)+50);
	me->set_temp("last_damage_from", "玄冥神掌寒毒发作");
	me->add("neili", -random(20)-60);
}
