// void_sense.c

#include <ansi.h>

inherit SSERVER;

int conjure(object me, object target)
{
	if( target ) return notify_fail("醚硄癸︑ㄏノ\n");
	if( me->query("atman") < 50 )
		return notify_fail("艶ぃ镑\n");
	me->add("atman", -50);
	me->receive_damage("gin", 50);
	message_vision(HIY "$N絃渐τ畒秨﹍笲ノ醚硄繰﹚ ...\n" NOR, me);
	if( random(me->query_skill("magic")) > (int)me->query_int() ) {
		if( random(me->query("max_atman")) < (int)me->query("atman")/2 ) {
			me->add("learned_points", 1);
			write( HIR "谋眔福い睼睹肩\n" NOR );
			return 1;
		}
		if( (int)me->query("potential") - (int)me->query("leanred_points") < 500 ) {
			me->add("potential", random( (int)me->query_spi() / 5 ) + 1);
			write( HIG "肩矗蔼\n" NOR );
			return 1;
		}
	}
	write("琌谋眔礚┮莉\n");
	return 1;
}
