// void_sense.c

#include <ansi.h>

inherit SSERVER;

int conjure(object me, object target)
{
	if( target ) return notify_fail("ѯquۤvϥΡC\n");
	if( me->query("atman") < 50 )
		return notify_fail("AFOT\n");
	me->add("atman", -50);
	me->receive_damage("gin", 50);
	message_vision(HIY "$NLӮyM}lBΪѯqRJw ...\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 "Aıo@VáMA୰CFT\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 "AണFT\n" NOR );
			return 1;
		}
	}
	write("iOAuıo@LC\n");
	return 1;
}
