boolean HaveBeanbag()
{
if( my_mp() != my_maxmp())
{
int PreMP = my_mp();
cli_execute( "relax 1");
if( PreMP != my_mp())
{
return true;
}
else
{
return false;
}
}
return false;
}
void Campground()
{
while( my_hp() != my_maxhp())
{
cli_execute( "rest 1");
}
while( my_mp() != my_maxmp())
{
if( HaveBeanbag())
{
cli_execute( "relax 1");
}
else
{
cli_execute( "rest 1");
}
}
}
void main()
{
Campground();
}