}
				}if(an==2){
					if(!death1){
						cout<<"灵魂仕者对你造成了"<<25-s.dfd<<"点伤害!"<<endl;
						Sleep(500);
						hp-=25-s.dfd;
						cout<<"剩余血量:"<<hp<<"点!"<<endl;
						Sleep(500);
					}if(!death2){
						cout<<"灵魂仕者对你造成了"<<25-s.dfd<<"点伤害!"<<endl;
						Sleep(500);
						hp-=25-s.dfd;
						cout<<"剩余血量:"<<hp<<"点!"<<endl;
						Sleep(500);
					}if(!death3){
						cout<<"灵魂仕者对你造成了"<<25-s.dfd<<"点伤害!"<<endl;
						Sleep(500);
						hp-=25-s.dfd;
						cout<<"剩余血量:"<<hp<<"点!"<<endl;
						Sleep(500);
					}if(!death1){
						cout<<"灵魂仕者受到了"<<s.dfd/2<<"点反弹伤害!"<<endl;
						Sleep(500);
						hp1-=s.dfd/2;
						cout<<"灵魂仕者剩余血量:"<<hp1<<"点"<<endl;
					}if(!death2){
						cout<<"灵魂仕者受到了"<<s.dfd/2<<"点反弹伤害!"<<endl;
						Sleep(500);
						hp2-=s.dfd/2;
						cout<<"灵魂仕者剩余血量:"<<hp2<<"点"<<endl;
					}if(!death3){
						cout<<"灵魂仕者受到了"<<s.dfd/2<<"点反弹伤害!"<<endl;
						Sleep(500);
						hp3-=s.dfd/2;
						cout<<"灵魂仕者剩余血量:"<<hp3<<"点"<<endl;
					}
					cls
					k++;
					continue;
				}
			}
		}
		cout<<"死灵法师微微一笑,说到:"<<endl;
		Sleep(500);
		cout<<"还挺厉害的嘛......不过,这三只小兵根本不算什么......"<<endl;
		Sleep(500);
		cout<<"就让你感受......";
		Sleep(500);
		cout<<"真正的恐惧吧......"<<endl;
		Sleep(500);
		cout<<"她猛一挥法杖,顿时,身后的裂缝扩大了无限倍"<<endl;
		Sleep(500);
		cout<<"一只巨大的眼睛出现在了天空中!"<<endl;
		Sleep(500);
		cout<<"顿时,无数灵魂如雨点般倾泻而下"<<endl;
		Sleep(500);
		cout<<"然后,死灵法师召唤出来一个平台,把你和她送上了空中......"<<endl;
		Sleep(500);
		cout<<"在这巨大的魔眼下,你感到身体逐渐虚弱......"<<endl;
		Sleep(500);
		cout<<"但死灵法师已经高挥法杖,一团黑色的烈焰朝你袭来!"<<endl;
		Sleep(500);
		int kt=0,dampness=1;
		k=0,hp1=500;
		while(1){
			if(kt=10){
				break;
			}
			if(kt%3==0&&k!=0){
				dampness++;
				kt=0;
				cout<<"虚弱等级加1......"<<endl;
				Sleep(500);
			}if(hp<0){
				cout<<"你死了......"<<endl;
				Sleep(1000);
				cout<<"但是,一股神秘的力量却让你满血复活......"<<endl;
				hp=s.bld;
				Sleep(500);
			}if(hp1<0){
				cout<<"可是魔眼下死灵法师是死不了的!!!"<<endl;
				hp1=500;
				Sleep(1000);
			}if(k>5){
				cout<<"是否使用技能“"<<s.super<<"”?(伤害"<<s.super_atk/dampness<<")"<<endl;
				cout<<"1.用		2.不用"<<endl;
				cin>>an;
				if(an==1){
					cout<<"你使用了技能,对死灵法师造成了"<<s.super_atk/dampness<<"点伤害!"<<endl;
					Sleep(500);
					hp1-=s.super_atk/dampness;
					cout<<"死灵法师剩余血量:"<<hp1<<endl;
					Sleep(500);
					cout<<"死灵法师高挥法杖,一团黑色的烈焰朝你袭来!"<<endl;
					Sleep(500);
					cout<<"对你造成20点伤害!"<<endl;
					Sleep(300);
					for(int i=1;i<=5;i++){
						cout<<"你受到了"<<5+i<<"点持续伤害!"<<endl;
						Sleep(200);
						hp-=i+5; 
					}
					cout<<"剩余血量:"<<hp<<endl;
					k-=5;
					cls
					continue;
				}if(an==2){
					cout<<"你对死灵法师造成"<<s.atk/dampness<<"点伤害!"<<endl;
					Sleep(500);
					hp1-=s.atk/dampness;
					cout<<"死灵法师剩余血量:"<<hp1<<endl;
					Sleep(500);
					cout<<"死灵法师高挥法杖,一团黑色的烈焰朝你袭来!"<<endl;
					Sleep(500);
					cout<<"对你造成20点伤害!"<<endl;
					Sleep(300);
					for(int i=1;i<=5;i++){
						cout<<"你受到了"<<5+i<<"点持续伤害!"<<endl;
						Sleep(200);
						hp-=i+5; 
					}
					cout<<"剩余血量:"<<hp<<endl;
					k++;
					cls
					continue;
				}
			}else{
				cout<<"你对死灵法师造成"<<s.atk/dampness<<"点伤害!"<<endl;
				Sleep(500);
				hp1-=s.atk/dampness;
				cout<<"死灵法师剩余血量:"<<hp1<<endl;
				Sleep(500);
				cout<<"死灵法师高挥法杖,一团黑色的烈焰朝你袭来!"<<endl;
				Sleep(500);
				cout<<"对你造成20点伤害!"<<endl;
				Sleep(300);
				for(int i=1;i<=5;i++){
					cout<<"你受到了"<<5+i<<"点持续伤害!"<<endl;
					Sleep(200);
					hp-=i+5; 
				}
				cout<<"剩余血量:"<<hp<<endl;
				k++;
				cls
				continue;
			}
			kt++;
		}cout<<"现在,虚弱等级加到了顶峰......"<<endl;
		Sleep(500);
		cout<<"那个神秘力量促使你一直没有死......"<<endl;
		Sleep(500);
		cout<<"死灵法师明显没有料到你会坚持这么久......"<<endl;
		Sleep(500);
		cout<<"你现在攻击伤害已经接近0了"<<endl;
		Sleep(500);
		cout<<"难道这场战斗永远也结束不了吗?!"<<endl;
		Sleep(500);
		cout<<"但是就在这时,魔眼下突然出现了一团绿光......"<<endl;
		Sleep(500);
		cout<<"你看到几个长方形的物体突然冲进了巨大的裂缝......"<<endl;
		Sleep(500);
		cout<<"一时之间,黑色的裂缝突然再次变成了碧蓝的天空......"<<endl;
		Sleep(500);
		cout<<"你感觉体内的虚弱感消失了......"<<endl;
		Sleep(500);
		cout<<"死灵法师很明显并不知道发生了什么,一脸震惊......"<<endl;
		Sleep(500);
		cout<<"你趁她不注意之际,狠狠地夺过法杖,附上黑焰,刺进了她的心脏......"<<endl;
		Sleep(500);
		cout<<"她就这么死了"<<endl;
		Sleep(1000);
		Win1++;
		return;
	}
}
void temple(){
	input2();
	cout<<"你要去哪个副本?"<<endl;
	if(forget_temple)cout<<"a.忘却神殿"<<endl;
	if(laboratory)cout<<"b.废弃实验室"<<endl;
	char c;cin>>c;int x,y,fl;
	if(c=='a'){
		cout<<"你想从哪个门进入?\n1.前门		2.后门";
		int i;cin>>i;
		if(i==1){
			x=5,y=4,fl=1;
		}if(i==2){
			x=1,y=6,fl=-1;
		}
		while(1){
			cout<<x<<' '<<y;
			if(forget_templemap[x][y]=='^'){
				cout<<"你现在处于前门"<<endl;
				cout<<"是否离开副本?"<<endl;
				cout<<"1.是		2.否"<<endl;
				int ww;cin>>ww;
				if(!(ww-1))return;
			}if(forget_templemap[x][y]=='&'){
				cout<<"你现在处于后门"<<endl;
				cout<<"是否离开副本?"<<endl;
				cout<<"1.是		2.否"<<endl;
				int ww;cin>>ww;
				if(!(ww-1))return;
			}if(forget_templemap[x][y]=='0'){
				cout<<"你现在处在一个空房间"<<endl;
			}if(forget_templemap[x][y]=='1'){
				cout<<"你现在处在一个房间,面前有一个宝箱"<<endl;
				Sleep(500);
				chest("forget");
			}if(forget_templemap[x][y]=='2'){
				cout<<"你现在处在一个空房间......"<<endl;
				Sleep(300);
				cout<<"不,等等!"<<endl;
				Sleep(500);
				fightwith(ghost);
				break;
			}Sleep(200);
			if(x==0||x==5||y==0||y==7){
				cout<<"你现在位于神殿尽头"<<endl;
			}if(x-fl!=-1&&x-fl!=6&&forget_templemap[x-fl][y]!='#'){
				cout<<"你面前有一条走廊"<<endl;
			}if(y+fl!=-1&&y+fl!=8&&forget_templemap[x][y+fl]!='#'){
				cout<<"你右侧有一条岔路"<<endl;
			}if(x+fl!=-1&&x+fl!=6&&forget_templemap[x+fl][y]!='#'){
				cout<<"你身后有一条通道"<<endl;
			}if(y-fl!=-1&&y-fl!=8&&forget_templemap[x][y-fl]!='#'){
				cout<<"你左侧有一条岔路"<<endl;
			}cout<<"请问走哪边?"<<endl;
			cout<<"l:左侧		r:右侧		f:前面		b:后面"<<endl;
			char d;cin>>d;
			if(d=='l'){
				if(forget_templemap[x][y-fl]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue; 
				}y-=fl;
			}if(d=='r'){
				if(forget_templemap[x][y+fl]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}y+=fl;
			}if(d=='f'){
				if(forget_templemap[x-fl][y]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}x-=fl;
			}if(d=='b'){
				if(forget_templemap[x+fl][y]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}x+=fl;
			}
			cls
		}
	}if(c=='b'){
		cout<<"你想从哪个门进入?\n1.前门		2.后门";
		int i;cin>>i;
		if(i==1){
			x=6,y=5,fl=1;
		}if(i==2){
			x=1,y=4,fl=-1;
		}
		while(1){
			cout<<x<<' '<<y;
			if(laboratorymap[x][y]=='^'){
				cout<<"你现在处于前门"<<endl;
				cout<<"是否离开副本?"<<endl;
				cout<<"1.是		2.否"<<endl;
				int ww;cin>>ww;
				if(!(ww-1))return;
			}if(laboratorymap[x][y]=='&'){
				cout<<"你现在处于后门"<<endl;
				cout<<"是否离开副本?"<<endl;
				cout<<"1.是		2.否"<<endl;
				int ww;cin>>ww;
				if(!(ww-1))return;
			}if(laboratorymap[x][y]=='0'){
				cout<<"你现在处在一个空房间"<<endl;
			}if(laboratorymap[x][y]=='1'){
				cout<<"你现在处在一个房间,面前有一个宝箱"<<endl;
				Sleep(500);
				chest("lab");
			}if(laboratorymap[x][y]=='2'){
				cout<<"你现在处在一个空房间......"<<endl;
				Sleep(300);
				cout<<"不,等等!"<<endl;
				Sleep(500);
				fightwith(robot);
				break;
			}Sleep(200);
			if(x==0||x==6||y==0||y==8){
				cout<<"你现在位于实验室尽头"<<endl;
			}if(x-fl!=-1&&x-fl!=7&&laboratorymap[x-fl][y]!='#'){
				cout<<"你面前有一条走廊"<<endl;
			}if(y+fl!=-1&&y+fl!=9&&laboratorymap[x][y+fl]!='#'){
				cout<<"你右侧有一条岔路"<<endl;
			}if(x+fl!=-1&&x+fl!=7&&laboratorymap[x+fl][y]!='#'){
				cout<<"你身后有一条通道"<<endl;
			}if(y-fl!=-1&&y-fl!=9&&laboratorymap[x][y-fl]!='#'){
				cout<<"你左侧有一条岔路"<<endl;
			}cout<<"请问走哪边?"<<endl;
			cout<<"l:左侧		r:右侧		f:前面		b:后面"<<endl;
			char d;cin>>d;
			if(d=='l'){
				if(laboratorymap[x][y-fl]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue; 
				}y-=fl;
			}if(d=='r'){
				if(laboratorymap[x][y+fl]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}y+=fl;
			}if(d=='f'){
				if(laboratorymap[x-fl][y]=='#'){
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}x-=fl;
			}if(d=='b'){
				if(laboratorymap[x+fl][y]=='#'){	
					cout<<"那边好像是墙壁......"<<endl;
					Sleep(500);
					cls
					continue;
				}x+=fl;
			}
			cls
		}
	}
}
void training(){
	if(s.lv<3){cout<<"敬请期待"<<endl;Sleep(1000);return;}
	input2();
	cout<<"欢迎来到试炼之地"<<endl;
	Sleep(700);
	cout<<"在这里,你的对手将不会有主线里面的BOSS那么难打"<<endl;
	Sleep(800);
	cout<<"但自然也有限制,比如技能不能回血"<<endl;
	Sleep(700);
	cout<<"给你训练刷经验罢了"<<endl;
	Sleep(750);
	cout<<"加油吧!"<<endl;
	Sleep(1000);
	cls
	srand(time(0));
	int r=rand();
	if(r%4==0){
		fightwith(acru);
	}if(r%4==1){
		fightwith(blens);
	}if(r%4==2){
		fightwith(brsn);
	}if(r%4==3){
		fightwith(ente);
	}
}
void lister(){
	cls
	system("color E4");
	cout<<"身份:"<<s.iden<<endl<<"攻击:"<<s.atk<<endl<<"防御:"<<s.dfd<<endl<<"血量:"<<s.bld<<endl;
	cout<<"技能:"<<s.super<<endl<<"技能伤害:"<<s.super_atk<<endl<<"技能持续伤害:"<<s.remain_atk<<endl<<"持续时间:"<<s.remain_time<<endl<<"等级:"<<s.lv<<endl<<"经验:"<<s.exp<<endl;
	cout<<"武器:"<<s.weapon<<endl<<"余额:"<<money<<endl;
	pua
	system("color 08");
	return;
}
void check_bag(){
	for(int i=1;i<=1000;i++){
		if(bag[i]){
			cout<<"编号"<<i<<":"<<item_name[i]<<"		"<<bag[i]<<"个"<<endl;
		}
	}
	for(int i=1001;i<=2000;i++){
		if(bag[i]){
			cout<<"编号"<<i<<":"<<potion_name[i-1000]<<"		"<<"个"<<endl; 
		}
	}
	for(int i=2001;i<=3000;i++){
		if(bag[i]){
			cout<<"编号"<<i<<":"<<important_item_name[i-2000]<<"		"<<"个"<<endl; 
		}
	}
	pua
}
void input2(){
	acru.atk=50;acru.bld=500;acru.iden="八眼巨蛛";
	blens.atk=60;blens.bld=400;blens.iden="炸尾螺";
	brsn.atk=40;brsn.bld=650;brsn.iden="鸟蛇";
	ente.atk=65;ente.bld=300;ente.iden="毒角兽";
	robot.atk=63;robot.bld=600;robot.iden="机器人";
	ghost.atk=50;ghost.bld=550;ghost.iden="遗忘幽灵";
}
void fightwith(monster x){
	int hp1=x.bld;
	cout<<"你遇到了一只"<<x.iden<<"!"<<endl;
	Sleep(500);
	cls
	int an,k=0;
	while(1){
		if(hp<=0){
			cout<<"你凉了。。。"<<endl;
			Sleep(1000);
			hp=s.bld;
			return;
		}if(hp1<=0){
			cout<<"恭喜你,你打败了"<<x.iden<<"!"<<endl;
			Sleep(500);
			cout<<"经验值+25!"<<endl;
			s.exp+=25;
			Sleep(500);
			int drop_money=7+rand()%7;
			cout<<"掉落钱币"<<drop_money<<"元!" ;
			money+=drop_money;
			cout<<"您的余额:"<<money<<"元!";
			Sleep(500);
			if(x.iden==acru.iden){
				monster_killtime[1]++;
			}if(x.iden==blens.iden){
				monster_killtime[2]++;
			}if(s.iden==brsn.iden){
				monster_killtime[3]++;
			}if(s.iden==ente.iden){
				monster_killtime[4]++;
			}
			if(s.exp>=50){
				cout<<"经验值达到50,等级+1!"<<endl;
				s.lv++;
				s.exp=0;
			}
			x.drop();
			Sleep(1000);
			return;
		}
		if(k>5){
			cout<<"是否使用技能“"<<s.super<<"”?(伤害"<<s.super_atk<<")"<<endl;
			cout<<"1.使用		2.不使用"<<endl;
			cin>>an;
			if(an==1){
				cout<<"你使用了技能“"<<s.super<<"”!对"<<x.iden<<"造成"<<s.super_atk<<"点伤害!"<<endl;
				Sleep(500);
				hp1-=s.super_atk;
				if(s.remain_atk){
					for(int i=1;i<=s.remain_time;i++){
						cout<<"你对"<<x.iden<<"造成了"<<s.remain_atk<<"点持续伤害"<<endl;
						Sleep(200);
						hp1-=s.remain_atk;
					}
				}
				cout<<x.iden<<"剩余血量:"<<hp1;
				Sleep(500);
				cout<<x.iden<<"朝你刺去,对你造成"<<x.atk<<"点伤害!"<<endl;
				Sleep(500);
				hp-=x.atk;
				cout<<"剩余血量:"<<hp;
				Sleep(100);
				cls
				k=0;
				continue;
			}if(an==2){
				cout<<"1.攻击		2.防御"<<endl;
				cin>>an;
				if(an==1){
					cout<<"你对"<<x.iden<<"造成"<<s.atk<<"点伤害!"<<endl;
					Sleep(500);
					hp1-=s.atk;
					cout<<x.iden<<"剩余血量:"<<hp1<<endl;
					Sleep(500);
					cout<<x.iden<<"朝你刺去,对你造成"<<x.atk<<"点伤害!"<<endl;
					Sleep(500);
					hp-=x.atk;
					cout<<"剩余血量:"<<hp;
					Sleep(1000);
					cls
					continue;
				}if(an==2){
					cout<<x.iden<<"朝你刺去,对你造成"<<x.atk-s.dfd<<"点伤害!"<<endl;
					Sleep(500);
					hp-=(x.atk-s.dfd);
					cout<<"剩余血量:"<<hp<<endl;
					Sleep(500);
					cout<<x.iden<<"受到"<<s.dfd/2<<"点反弹伤害!"<<endl;
					Sleep(500);
					hp1-=s.dfd/2;
					cout<<x.iden<<"剩余血量:"<<hp;
					Sleep(1000);
					cls
					continue;
				}
			}
		}if(k<=5){
			cout<<"1.攻击		2.防御"<<endl;
			cin>>an;
			if(an==1){
				cout<<"你对"<<x.iden<<"造成"<<s.atk<<"点伤害!"<<endl;
				Sleep(500);
				hp1-=s.atk;
				cout<<x.iden<<"剩余血量:"<<hp1<<endl;
				Sleep(500);
				cout<<x.iden<<"朝你刺去,对你造成"<<x.atk<<"点伤害!"<<endl;
				Sleep(500);
				hp-=x.atk;
				cout<<"剩余血量:"<<hp;
				Sleep(1000);
				cls
				k++;
				continue;
			}if(an==2){
				cout<<x.iden<<"朝你刺去,对你造成"<<x.atk-s.dfd<<"点伤害!"<<endl;
				Sleep(500);
				hp-=(x.atk-s.dfd);
				cout<<"剩余血量:"<<hp<<endl;
				Sleep(500);
				cout<<x.iden<<"受到"<<s.dfd/2<<"点反弹伤害!"<<endl;
				Sleep(500);
				hp1-=s.dfd/2;
				cout<<x.iden<<"剩余血量:"<<hp1;
				Sleep(1000);
				cls
				k++;
				continue;
			}
		}
	}
}
void herb_collection(){
	int t=5+rand()%17;
	while(t--){
		cout<<"采";Sleep(20);
		cout<<"药";Sleep(20);
		cout<<"中";Sleep(20);
		cout<<"·";Sleep(20);
		cout<<"·";Sleep(20);
		cout<<"·";Sleep(20);
		cls
	}
	int v=31+rand()%7;
	cout<<"你采到了一株"<<item_name[v]<<"!"<<endl;
	bag[v]++;
	Sleep(500);
	cls
}
void chest(string place){
	if(place=="forget"){
		srand(time(0));
		int t,num=1+rand()%3,rt=20+rand()%3,rgt=30+rand()%2,flag=rand()%2;
		if(flag==0) t=rt;
		if(flag==1) t=rgt;
		cout<<"宝箱里面有"<<num<<"个"<<item_name[t]<<"!"<<endl;
		Sleep(500);
		bag[t]+=num;
	}if(place=="lab"){
		srand(time(0));
		int t=23+rand()%7,num=1+rand()%2;
		cout<<"宝箱里面有"<<num<<"个"<<item_name[t]<<"!"<<endl;
		Sleep(500);
		bag[t]+=num;
	}
}
void pull(){
	if(s.lv<3){cout<<"敬请期待"<<endl;Sleep(1000);return;}
	cout<<"30元才能抽一发!";
	if(money<30){
		cout<<"给老子滚!"<<endl; 
		Sleep(1000);
		return;
	}
	cout<<endl;
	Sleep(500);
	cout<<"是否抽卡?\n1.抽		2.不抽"<<endl;
	int c;cin>>c;
	if(c==2){
		return;
	}
	else{
		cls
		cout<<"已花费30元···抽卡机器启动···"<<endl;
		money-=30;
		Sleep(1000);
		int r=1+rand()%1000;
		if(r<400){
			cout<<"你抽中了小木剑!"<<endl;
			Sleep(500);
			cout<<"     ||-----------------"<<endl;
			cout<<"-----||----------------------"<<endl;
			cout<<"     ||-----------------"<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[1];s.addatk=weapon_attack[1];}
			input(s,s.gender,s.iden);
			cls
			return;
		}if(r<650){
			cout<<"你抽中了桃木剑!"<<endl;
			Sleep(500);
			cout<<"		||-------------"<<endl;
			cout<<"		||---------------------"<<endl;
			cout<<"-----||------------------------------"<<endl;
			cout<<"		||---------------------"<<endl;
			cout<<"		||-------------"<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[2];s.addatk=weapon_attack[2];}
			input(s,s.gender,s.iden);
			cls
			return;
		}if(r<800){
			cout<<"你抽中了钢铁之剑!"<<endl;
			Sleep(500);
			cout<<"			||=========================="<<endl;
			cout<<"			||-------------------------------------------"<<endl;
			cout<<"---------||================================================================="<<endl;
			cout<<"			||-------------------------------------------"<<endl;
			cout<<"			||==========================="<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[3];s.addatk=weapon_attack[3];}
			input(s,s.gender,s.iden);
			cls
			return;
		}if(r<900){
			cout<<"你抽中了烈焰之剑!"<<endl;
			Sleep(500);
			cout<<"				||~~~~~~~~~~~~~~~~~>~~~~>>>>>==="<<endl;
			cout<<"				||~~~~~~~~~~~~~~~~~~~~~>~~~~~~~~~~>>>=====>"<<endl;
			cout<<"-------------||~~~~~~~~~~~~~~~~~~~~~~~~~~~>~~~~~~~~~>>>>>>===========>"<<endl;
			cout<<"======|======||~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>~~~~~~~~~~~~~~>>>>>>>================>"<<endl;
			cout<<"-------------||~~~~~~~~~~~~~~~~~~~~~~~~~~~>~~~~~~~~~>>>>>>===========>"<<endl;
			cout<<"				||~~~~~~~~~~~~~~~~~~~~~>~~~~~~~~~~>>>=====>"<<endl;
			cout<<"				||~~~~~~~~~~~~~~~~~>~~~~>>>>>==="<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[4];s.addatk=weapon_attack[4];}
			input(s,s.gender,s.iden);
			cls
			return; 
		}if(r<950){
			cout<<"你抽中了凌云之剑!"<<endl;
			Sleep(500);
			cout<<"					||~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=>"<<endl;
			cout<<"					||~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=>"<<endl;
			cout<<"					||		|	`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~==>"<<endl;
			cout<<"-----------------||-=-=-=~~~~~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘===>"<<endl;
			cout<<"=======|========||~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>"<<endl; 
			cout<<"-----------------||-=-=-=~~~~~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘~,~~‘===>"<<endl;
			cout<<"					||		|	`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~`~~、~~==>"<<endl;
			cout<<"					||~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=~~·--=>"<<endl;
			cout<<"					||~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=~-=>"<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[5];s.addatk=weapon_attack[5];}
			input(s,s.gender,s.iden);
			cls
			return;
		}if(r<997){
			cout<<"你抽中了重铸的圣剑!"<<endl;
			Sleep(500);
			cout<<"		-=-=-==-==-=-==--=-=-=-=-"<<endl;
			cout<<"	-=-===-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<endl;
			cout<<"~-=~-=-=-=-=-==-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-"<<endl;
			cout<<"	-=-===-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<endl;
			cout<<"		-=-=-==-==-=-==--=-=-=-=-"<<endl;
			Sleep(1000);
			cout<<"是否换上使用?\n1.是		2.否"<<endl;
			int a;cin>>a;
			if(a==1){s.weapon=weapon_name[6];s.addatk=weapon_attack[6];}
			input(s,s.gender,s.iden);
			cls
			return;
		}
		cout<<"你抽中了魂之圣·陌剑!"<<endl;
		Sleep(500);
		cout<<endl<<endl<<endl<<endl<<endl<<endl;
		cout<<"(太过神圣无法给出图案)"<<endl;
		Sleep(1000);
		cout<<"是否换上使用?\n1.是		2.否"<<endl;
		int a;cin>>a;
		if(a==1){s.weapon=weapon_name[7];s.addatk=weapon_attack[7];}
		input(s,s.gender,s.iden);
		cls
		return;
	}
}
void printtask(){
	int d=1;
	for(int i=1;i<=index;i++){
		if(tasks[i].type==1){
			printf("任务%d:\n",d);
			printf("任务类型:采药类\n");
			cout<<"草药类型:"<<item_name[tasks[i].herbneed]<<"\n";
			cout<<"所需数量:"<<tasks[i].herbnumber<<"个\n"; 
			cout<<"奖励物品:"<<item_name[tasks[i].rewarditem]<<"\n";
			cout<<"奖励数量:"<<tasks[i].rewardnumber<<"个\n";
			cout<<"奖励钱数:"<<tasks[i].rewardmoney<<"元\n"; 
			cout<<"_____________________________________________\n";
			tasks[d++]=tasks[i];
			tasks[i].type=0;
		}if(tasks[i].type==2){
			printf("任务%d:\n",d);
			printf("任务类型:怪物类\n");
			cout<<"怪物类型:"<<monster_name[tasks[i].monsterneed]<<"\n";
			cout<<"所需数量:"<<tasks[i].monsternumber<<"只\n";
			cout<<"奖励物品:"<<item_name[tasks[i].rewarditem]<<"\n";
			cout<<"奖励数量:"<<tasks[i].rewardnumber<<"个\n";
			cout<<"奖励钱数:"<<tasks[i].rewardmoney<<"元\n"; 
			cout<<"_____________________________________________\n";
			tasks[d++]=tasks[i];
			tasks[i].type=0;
		}if(tasks[i].type==3){
			printf("任务%d:\n",d);
			printf("任务类型:昆虫类\n");
			cout<<"昆虫类型:"<<item_name[tasks[i].insectneed]<<"\n";
			cout<<"所需数量:"<<tasks[i].insectnumber<<"只\n"; 
			cout<<"奖励物品:"<<item_name[tasks[i].rewarditem]<<"\n";
			cout<<"奖励数量:"<<tasks[i].rewardnumber<<"个\n";
			cout<<"奖励钱数:"<<tasks[i].rewardmoney<<"元\n"; 
			cout<<"_____________________________________________\n";
			tasks[d++]=tasks[i];
			tasks[i].type=0;
		}
	}
}
void achieve_task(task t){
	cout<<"获得奖励"<<item_name[t.rewarditem]<<t.rewardnumber<<"个!\n";
	Sleep(500);
	bag[t.rewarditem]+=t.rewardnumber;
	cout<<"获得奖励马内"<<t.rewardmoney<<"元!\n"<<endl;
	money+=t.rewardmoney;
	t.type=0;
	Sleep(1000); 
}
void taskchecking(){
	cout<<"你走到任务栏前查看······"<<endl;
	Sleep(500);
	srand(time(0));
	int t=1+rand()%3,n;
	ta.type=t;
	if(ta.type==1){
		ta.herbneed=31+rand()%7;
		ta.herbnumber=5+rand()%3-item_rarity[ta.herbneed];
		ta.rewarditem=19+rand()%12;
		ta.rewardnumber=ta.herbnumber+item_rarity[ta.herbneed]-item_rarity[ta.rewarditem];
		ta.rewardmoney=40+rand()%27;
		tasks[index++]=ta;
	}if(ta.type==2){
		ta.monsterneed=1+rand()%4;
		ta.n=monster_killtime[ta.monsterneed];
		ta.monsternumber=3+rand()%3;
		ta.rewarditem=19+rand()%19;
		ta.rewardnumber=ta.monsterneed+ta.monsternumber-item_rarity[ta.rewarditem];
		ta.rewardmoney=40+rand()%27;
		tasks[index++]=ta;
	}if(ta.type==3){
		ta.insectneed=19+rand()%12;
		ta.insectnumber=5+rand()%4-item_rarity[ta.insectneed];
		ta.rewarditem=31+rand()%7;
		ta.rewardnumber=ta.insectnumber+item_rarity[ta.insectneed]-item_rarity[ta.rewarditem];
		ta.rewardmoney=40+rand()%27;
		tasks[index++]=ta;
	}
	printtask();
	puts("1.完成任务		0.推出");
	int tt;cin>>tt;
	if(!tt)return;
	puts("请输入完成任务的编号");
	int w;cin>>w;
	if(!tasks[w].type)return;
	if(tasks[w].type==1){
		if(bag[tasks[w].herbneed]>=tasks[w].herbnumber){
			cout<<"完成任务"<<w<<"!"<<endl;
			Sleep(500);
			bag[tasks[w].herbneed]-=tasks[w].herbnumber;
			achieve_task(tasks[w]);
		}else{
			cout<<"不符合任务条件!"<<endl;
			Sleep(500);
		}
	}if(tasks[w].type==2){
		monster m;
		if(monster_killtime[tasks[w].monsterneed]-tasks[w].n>=tasks[w].monsternumber){
			cout<<"完成任务"<<w<<"!"<<endl;
			Sleep(500);
			monster_killtime[tasks[w].monsterneed]-=tasks[w].monsternumber;
			achieve_task(tasks[w]);
		}else{
			cout<<"不符合任务条件!"<<endl;
			Sleep(500);
		}
	}
	if(tasks[w].type==3){
		if(bag[tasks[w].insectneed]>=tasks[w].insectnumber){
			cout<<"完成任务"<<w<<"!"<<endl;
			Sleep(500);
			bag[tasks[w].insectneed]-=tasks[w].insectnumber;
			achieve_task(tasks[w]);
		}else{
			cout<<"不符合任务条件!"<<endl;
			Sleep(500);
		}
	}
}
void add_form(int ind,int it1,int nu1,int it2,int nu2,int it3,int nu3,int po){
	craft[ind].item1=it1;
	craft[ind].item2=it2;
	craft[ind].item3=it3;
	craft[ind].num1=nu1;
	craft[ind].num2=nu2;
	craft[ind].num3=nu3;
	craft[ind].anspotion=po;
}
/*
1.蜘蛛眼	2.蜘蛛腿骨		3.蜘蛛肝脏		4.蜘蛛毒液		5.蜘蛛丝
6.炸尾螺尾巴	7.炸尾螺犄角		8.炸尾螺肝脏		9.烈焰精华
10.鸟蛇翅膀		11.鸟蛇犄角		12.鸟蛇肝脏		13.鸟蛇眼		14.鸟蛇尾
15.毒角兽角		16.毒角兽肝脏		17.毒角兽尾巴		18.毒角兽毒液
19.力量独角仙	20.坚硬独角仙		21.生命独角仙		22.怪异蜻蜓		23.烈火蜻蜓		24.淬毒蜻蜓		25.精力蚂蚱
26.爆炸精灵		27.附剑精灵		28.复活精灵		29.强化青蛙		30.经验青蛙
31.力量人参		32.生命松露		33.铠甲南瓜		34.怪异萝卜		35.烈火蘑菇		36.精力香草		37.大剑草
1001.生命药Lv.1		1002.生命药Lv.2		1003.生命药Lv.3		1004.力量药Lv.1		1005.力量药Lv.2		1006.力量药Lv.3
1007.坚硬药Lv.1		1008.坚硬药Lv.2		1009.坚硬药Lv.3		1010.强化药Lv.1		1011.强化药Lv.2		1012.强化药Lv.3
1013.持续药Lv.1		1014.持续药Lv.2		1015.持续药Lv.3		1016.精力药Lv.1		1017.精力药Lv.2		1018.精力药Lv.3
1019.经验药Lv.1		1020.经验药Lv.2		1021.经验药Lv.3		1022.附剑药Lv.1		1023.附剑药Lv.2		1024.附剑药Lv.3
2001.羽弓		2002.尖刺盾		2003.紫焰尖刺盾		2004.空间转换器		2005.隐遁技能书 
*/
void form_reset(){
	int c=0;
	for(int i=1;i<=18;i++){
		add_form(++c,i,1,21,1,0,0,1);
		add_form(++c,i,3,21,2,4,1,2);
		add_form(++c,i,6,21,3,9,3,3);
		add_form(++c,i,1,19,1,0,0,4);
		add_form(++c,i,3,19,2,4,1,5);
		add_form(++c,i,6,19,3,9,3,6);
		add_form(++c,i,1,20,1,0,0,7);
		add_form(++c,i,3,20,2,4,1,8);
		add_form(++c,i,6,20,3,9,3,9);
		add_form(++c,i,1,22,1,0,0,10);
		add_form(++c,i,3,22,2,4,1,11);
		add_form(++c,i,6,22,3,9,3,12);
		add_form(++c,i,1,23,1,0,0,13);
		add_form(++c,i,3,23,2,4,1,14);
		add_form(++c,i,6,23,3,9,3,15);
		add_form(++c,i,1,24,1,0,0,13);
		add_form(++c,i,3,24,2,4,1,14);
		add_form(++c,i,6,24,3,9,3,15);
		add_form(++c,i,1,25,1,0,0,16);
		add_form(++c,i,3,25,2,4,1,17);
		add_form(++c,i,6,25,3,9,3,18);
		add_form(++c,i,1,30,1,0,0,19);
		add_form(++c,i,3,30,2,4,1,20);
		add_form(++c,i,6,30,3,9,3,21);
		add_form(++c,i,1,27,1,0,0,22);
		add_form(++c,i,3,27,2,4,1,23);
		add_form(++c,i,6,27,3,9,3,24);
	}
	add_form(++c,31,1,0,0,0,0,4);
	add_form(++c,31,2,26,1,0,0,5);
	add_form(++c,31,3,26,2,18,1,6);
	add_form(++c,32,1,0,0,0,0,1);
	add_form(++c,32,2,26,1,0,0,2);
	add_form(++c,32,3,26,3,18,1,3);
	add_form(++c,33,1,0,0,0,0,7);
	add_form(++c,33,2,26,1,0,0,8);
	add_form(++c,33,3,26,2,18,1,9);
	add_form(++c,34,1,0,0,0,0,10);
	add_form(++c,34,2,26,1,0,0,11);
	add_form(++c,34,3,26,2,18,1,12);
	add_form(++c,35,1,0,0,0,0,13);
	add_form(++c,35,2,26,1,0,0,14);
	add_form(++c,35,3,26,2,18,1,15);
	add_form(++c,36,1,0,0,0,0,16);
	add_form(++c,36,2,26,1,0,0,17);
	add_form(++c,36,3,26,2,18,1,18);
	add_form(++c,37,1,0,0,0,0,22);
	add_form(++c,37,2,26,1,0,0,23);
	add_form(++c,37,3,27,2,18,1,24); 
}
void explore(){
	input2();
	puts("你开始冒险···");
	puts("请选择冒险地点:");
	puts("1.草原		2.森林			3.沙漠			4.峡谷");
	int c;cin>>c;
	if(c==1){
		Sleep(1000);
		srand(time(0));
		int r=1+rand()%15;
		if(r==1){
			cout<<"你抓到了一只"<<item_name[19]<<"!";
			Sleep(500);
			bag[19]++;
			cls
		}if(r==2){
			r++;
		}if(r==3){
			cout<<"你抓到了一只"<<item_name[20]<<"!";
			Sleep(500);
			bag[20]++;
			cls
		}if(r==4){
			r++;
		}if(r==5){
			cout<<"你抓到了一只"<<item_name[21]<<"!";
			Sleep(500);
			bag[21]++;
			cls
		}if(r==6){
			r++;
		}if(r==7){
			Sleep(500);
			fightwith(brsn);
			cls
		}if(r==8){
			r++;
		}if(r==9){
			cout<<"你在地上捡到了1元钱!"<<endl;
			Sleep(500);
			money++;
			cls
		}if(r==10){
			r++;
		}if(r==11){
			cout<<"你什么都没遇到......"<<endl;
			Sleep(500);
			cls
		}if(r==12){
			r++;
		}if(r==13){
			cout<<"你采到一个"<<item_name[32]<<"!"<<endl;
			Sleep(500);
			bag[32]++;
			cls
		}if(r==14){
			r++;
		}if(r==15){
			cout<<"你采到一个"<<item_name[33]<<"!"<<endl;
			Sleep(500);
			bag[33]++;
			cls
		}
	}if(c==2){
		Sleep(1000);
		srand(time(0));
		int r=1+rand()%15;
		if(r==1){
			cout<<"你抓到了一只"<<item_name[22]<<"!"<<endl;
			Sleep(500);
			bag[22]++;
			cls
		}if(r==2){
			r++;
		}if(r==3){
			cout<<"你抓到了一只"<<item_name[23]<<"!"<<endl;
			Sleep(500);
			bag[23]++;
			cls
		}if(r==4){
			r++;
		}if(r==5){
			cout<<"你抓到了一只"<<item_name[24]<<"!"<<endl;
			Sleep(500);
			bag[24]++;
			cls
		}if(r==6){
			r++;
		}if(r==7){
			cout<<"你抓到了一只"<<item_name[25]<<"!"<<endl;
			Sleep(500);
			bag[25]++;
			cls
		}if(r==8){
			r++;
		}if(r==9){
			int rr=1+rand()%3;
			cout<<"你在地上捡到了"<<rr<<"元钱!"<<endl;
			Sleep(500);
			money+=rr;
			cls
		}if(r==10){
			r++;
		}if(r==11){
			cout<<"你什么都没有遇到......"<<endl;
			Sleep(500);