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

inherit F_CLEAN_UP;

int update_condition(object me, int duration)
{
        if( !living(me) ) {
                message("vision",HIW + me->name() + "瑟瑟发抖，全身结上一层薄薄的白霜，。\n"NOR, environment(me), me);
        }
        else {
                tell_object(me, HIC"忽然一股寒气犹似冰箭，循着手臂，迅速无伦的射入胸膛，你中的寒毒发作了！\n" NOR );
                message("vision", HIC+ me->name() + "全身发颤，牙关格格直响，过得片刻，嘴唇也紫了，脸色渐渐由青而白。\n"NOR,
                                environment(me), me);
        }
        me->receive_damage("qi", 40+random(30));
        if(userp(me))
           me->receive_wound("jing", 30+random(30));
        else me->receive_wound("jing", 40+random(40));
	me->add_busy(2);
        me->apply_condition("cold_poison", duration - 20);
        if( duration < 1 ) return 0;
        return CND_CONTINUE;
}

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