人生之路1.20代码 第四部分

代码不止这一段,不止这一段,不止这一段!!!

点我查看完整代码

7501~10000

										    		  cout<<"你发动了技能【横扫】\n",n+=1.1*things[5];
										  			if (fost[50])
										    		  cout<<"你发动了技能【坠入虚空】\n",n+=a*0.5;
										  			if (fost[53])
										    		  cout<<"你发动了技能【量子充能】\n",n+=0.4*things[2];
													if (fost[22]==0&&fost[43]==0&&fost[50]==0&&fost[53]==0){
							  			  			  n=gongji(things[5]);
							  			  			n-=c;
							  			  			Sout("你发动了攻击,SLS受到了");
							  						}
							  						else
							  						  cout<<"造成了";
							  						cout<<n<<"点伤害\n";
							  						a-=n;
												  }
												if (a<=0)
												  {
												  	cout<<"胜利!战利品:XP5000";
												  	int jiangli=random(0,56);
													cout<<" "<<fsn[jiangli];
													cout<<" *1";
													fost[jiangli]++; 
													things[83]++;
													if (fost[22]>=1)
													  things[197]++;
												  	gs();
												  	break;
												  }
												if (rand()%2)
												{
													n=float((random(6,9))/10)*b-things[6];
													Sout("索罗斯发动了攻击,你受到了");
													cout<<n;
													Sout("点伤害,索罗斯叠加了一层幻影\n");
													huanying++;
													things[2]-=n;
													if (things[197]>=166)
									    			  hdcj(6);
												}
												else
												{
													int jin=random(1,3);
													if (jin==1)
													  {
													  	Sout("索罗斯发动了技能【幻枪连击】,对你造成");
													  	n=1.6*b;
													  	cout<<n;
													  	Sout("点伤害\n");
													  	things[2]-=n;
													  }
													if (jin==2)
													  {
													  	Sout("索罗斯发动技能【结合】,将幻影层数清空,并且每失去一个幻影,自身恢复30点血量,增加4点攻击");
													  	a+=huanying*30;
													  	b+=huanying*4;
													  	huanying=0;
													  }
													if (jin==3)
													  {
													  	Sout("索罗斯发动技能【总攻击】,让所有幻影对敌人造成攻击(每个幻影拥有自身60%属性),对你造成了");
													  	n=a*0.6*huanying;
													  	cout<<n;
													  	Sout("点伤害,并失去2个幻影");
													  	huanying-=2;
													  	things[2]-=n;
													  }
												}
												if (things[2]<=0)
												  Die();
											  }
											break;
										  }
										case 7:
											{
												cls();
												int a=things[5]*0.6,b=things[6]*0.5;
												int c=things[9]*3,d=things[9],e=things[9]*11;
												Sout("你遇到了一只树妖(树妖特性:只能攻击,无法逃跑,你的攻击和防御大幅下降,无法用技能)\n");
												while(e>0&&things[2]>0)
												  {
												  	int A,B;
												  	A=gongji(a);
												  	A-=d;
												  	Sout("你发动了攻击,树妖受到了");
												  	cout<<A;
												  	e-=A;
												  	Sout("点伤害\n");
												  	B=c*0.875-b;
												  	Sout("树妖发动了攻击,你受到了");
												  	cout<<B;
												  	Sout("点伤害\n");
												  	things[2]-=B;
												  	if (things[2]<=0)
												  	  {
												  	  	happened+=(name+"被树妖杀死了");
												  	  	Die();
														}
												  	gs();
												  }
												cout<<"胜利!";
												happened+=(name+"杀死了一只树妖/");
							  		 			 Sout("胜利!战利品:");
							  		  			things[83]++;
							  		  			n=random(2,4);
							  		  			m=random(0,2);
							  		 			 n*=random(1,has_fumo[0][2]+1);
							  		 			 cout<<fsn[m]<<"*"<<n;
							  		  			fost[m]+=n;
											}
										}
									break;
							  }
					case '4':
						{
							cls();
							while(1)
							  {
							  	use(62);
							  	cls();
							  	cout<<"想查看什么的合成表?输入编号,输入-1退出\n";
							  	for(i=0;i<=56;i++)
							  	  {
							  	  	cout<<i<<" "<<fsn[i]<<'\n';
									}
								cin>>n;
								if (n==-1)
								  break;
								cls();
								for(i=0;i<3;i++)
								{
								  for(j=0;j<3;j++)
								    {
								    	if (map[n][i][j]==-2)
								    	{
								    	  cout<<"不可合成物";
								    	  gs();
								    	  i=10,j=10;
								    	  break;
								    	}
								    	if (map[n][i][j]==-1)
								    	  {
								    	  	cout<<"空";
										  }
										else
										  cout<<fsn[map[n][i][j]];
										cout<<' ';
									}
									cout<<endl;
								}
								gs();
							  }
							break;
						}
				case '5':return;
				case '6':
				{
					use(63);
					if (things[32]==0)
					  {
					  	cout<<"没有附魔台!\n";
					  	cout<<"获得方式:公园-->登山-->天空之境-->天空集市购买\n";
					  	gs();
					  	break;
					  }
					cls();
					cout<<"你要给哪个装备附魔?";
					cout<<"1.剑\n";
					cout<<"2.斧子\n";
					cout<<"3.镐子\n";
					cout<<"4.头盔\n";
					cout<<"5.胸甲\n";
					cout<<"6.护腿\n";
					cout<<"7.靴子\n"; 
					cin>>n;
					if (n>4)
					  n=4;
					i=n-1;
						srand(time(0));
						cout<<"\n\n";
						cout<<"你有"<<things[9]<<"级经验\n";
						cout<<"你有"<<things[33]<<"块附魔石\n";
						cout<<"你想附哪一种魔?(附魔等级上限:6级)\n";
						int a,b,c;
						a=rand()%5;
						cout<<"0.不附魔\n";
						cout<<"1.1级经验,1块附魔石:"<<fumoname[i][a]<<has_fumo[i][a]+1<<"  经验等级限制:7"<<'\n';
						do
						  b=rand()%5;
						while(a==b);
						cout<<"2.2级经验,2块附魔石:"<<fumoname[i][a]<<has_fumo[i][a]+1<<'+'<<fumoname[i][b]<<has_fumo[i][b]+1<<"  等级限制:15"<<'\n';
						do
						  c=rand()%5;
						while(c==a||c==b);
						cout<<"3.3级经验,3块附魔石:"<<fumoname[i][a]<<has_fumo[i][a]+1<<'+'<<fumoname[i][b]<<'+'<<has_fumo[i][b]+1<<fumoname[i][c]<<has_fumo[i][c]+1<<"等级限制:30"<<'\n';
						cin>>m;
						int s[4]={0,7,15,30};
						if (m==0)
						  break;
						if (things[9]<s[m]||things[33]<m)
						  {
						  	cout<<"材料(经验或附魔石)不足!";
						  	gs();
						  	break;
						  }
						has_fumo[i][a]++;
						if (m>=2)
						  has_fumo[i][b]++;
						if (m>=3)
						  has_fumo[i][c]++;
						things[9]-=m;
						things[1]=sj[things[9]-1];
						things[33]-=m;
					/*	string fumoname[4][5]=
{
	{"耐久","锋利","抢夺","雷电之力","落雷术"},
	{"耐久","效率","洪荒之力","木之克星","时运"},
	{"耐久","效率","急迫","速率提升","时运"}
	{"耐久","保护","血量提升","荆棘","雷电附身"},
}; */
					if (i==0)
					  {
					  	if (a==1||b==1||c==1)
					  	  things[5]+=5;
					  }
					if (i==3)
					  {
					  	if (a==1||b==1||c==1)
					  	  things[6]+=2;
					  	if (a==2||b==2||c==2)
					  	  things[2]+=30;
					  }
					for(i=0;i<4;i++)
					  for(j=0;j<5;j++)
					    if (has_fumo[i][j]>6)
					      has_fumo[i][j]=6;
					break;
					  }
				case '7':
					{
						use(64);
						for(i=0;i<=56;i++)
						  if (fost[i])
						    printf("%s *%d  -%s\n",fsn[i].c_str(),fost[i],nn[leibie[i]].c_str());
						gs();
						break;
					}
				case '8':
					{
						use(65);
						string wupin[4]={"剑","斧头","镐子","盔甲"};
						cls();
						for(i=0;i<4;i++)
						  for(j=0;j<5;j++)
						    {
						    	printf("%s:【%s】%d级\n",wupin[i].c_str(),fumoname[i][j].c_str(),has_fumo[i][j]);
							}
						break;
					}
				case '9':
					{
						use(74);
						/*string fsn[200]=
	0       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
 /*27"铁头盔","铁胸甲","铁护腿","铁靴子",
 	31		32			33		34
 "金头盔","金胸甲","金护腿","金靴子",
 	35			36			37		38
 "钻石头盔","钻石胸甲","钻石护腿","钻石靴子",
 		39			40			41			42		43		44		45
 /*39"英雄头盔","英雄战甲","英雄护腿","英雄战靴","英雄剑","英雄镐","英雄战斧",
 		46			47			48			49		50		51		52
 /*46"虚空头盔","虚空战甲","虚空护腿","虚空战靴","虚空剑","虚空镐","虚空斧",
 		53			54		55		56
 /*53"量子剑", "石头精华", "CPU","工业钻石" 
};*/
					/*iron golden diamond hero sky
				head   4    3         6		9	15
				clothes 6    4        8		14	23
				tussle  5    4        7		12	19
				shoes	3    2        5 	8	13*/ 
					string ab[200]=
					{
						"来自于一棵大树身上的木头","由一块原木分解后得到的东西,可以用于制作基础装备","装备的握把,由木板分解而成",
						"一块普通的石头,蕴含着不普通的能量,可以用于制造石器装备","矿洞里的一种普通矿石,很常见,可用于合成武器与防具",
						"矿洞里的一种普通矿石,很常见,可用于合成武器与防具","一种稀有矿石,可以通过挖矿或购买获得","普通的基础挖矿工具",
						"升级后的挖矿工具","一把挖矿利器,开采效率较高","挖矿能手,附魔时属性会更好哦","奢侈豪华的挖矿神器,速度超快",
						"普通的防身武器","升级后的防身武器","一把打怪利器","打怪能手,附魔时属性会更好哦","奢侈豪华的打怪神器,伤害很高",
						"普通的伐木工具","升级后的伐木工具","一把伐木利器","伐木能手,附魔时属性会更好哦","奢侈豪华的伐木神器,速度超快",
						"炸怪神器,伤害超高","PXZ的掉落物,用于合成春节礼炮","铁锭的块状,可以分解回铁锭,也可以合成英雄装备",
						"金锭的块状,可以分解回金锭,也可以合成英雄装备","钻石的块状,可以分解回钻石,也可以合成英雄装备",
						"铁制的头盔,增加4点防御","铁制的胸甲,增加6点防御","铁制的护腿,增加5点防御","铁制的靴子,增加3点防御",
						"金制的头盔,增加3点防御","金制的胸甲,增加4点防御","金制的护腿,增加4点防御","金制的靴子,增加2点防御",
						"钻石制的头盔,增加6点防御","钻石制的胸甲,增加8点防御","钻石制的护腿,增加7点防御","钻石制的靴子,增加5点防御",
						"金块合成的头盔,增加9点防御","铁块合成的胸甲,增加14点防御","铁块合成的护腿,增加12点防御","钻石块合成的靴子,增加8点防御",
						"英雄使用的宝剑","英雄采矿用的镐子","英雄手中的战斧",
						"金头盔压缩制成的头盔,增加15点防御,好像还有其它作用","铁胸甲压缩制成的胸甲,增加23点防御,好像还有其它作用",
						"铁护腿压缩制成的护腿,增加19点防御,好像还有其它作用","钻石靴子压缩制成的靴子,增加13点防御,好像还有其它作用",
						"虚空来客防身的剑","虚空来客采矿用的镐子","虚空来客手中的战斧",
						"用稀有材料制成的剑,114514年被科学家在MCYH留下的时间印记中发现","石头中能量的精华","14514年ACOPer.th13计算机的CPU,好像还有其他作用",
						"加工后的钻石,闪闪发光",
					};
					int i,j,k;
					char l;
					i=1;
					bool flag=true;
					while(flag)
						{
							cls();
							cout<<"a上一个 d下一个 e退出\n";
							cout<<"["<<fsn[i]<<"]\n";
							cout<<ab[i]<<"\n";
							l=_getch();
							switch(l)
							  {
							  	case 'a':if (i>1)i--;break;
							  	case 'd':if (i<56)i++;break;
							  	case 'e':flag=false;break;
							  }
						}
					break;
					} 
				case '`':
					{
						cls();
						if (things[9]<100)
						 {
						  Sout("神秘人:小伙子不错嘛,居然看得到我。啧啧,你的修行还不够呢,等你升到100级再来找我吧。");
						  gs();
						  break;
					     }
						Sout("神秘人:只要给我传送符,我马上就带你去另一个维度。\n");
						cout<<"1.传送至地狱 2.传送至神界 3.离开\n";
						char l=_getch();
						switch(l)
						  {
						  	case '1':
						  		{
						  			if (things[99])
						  			  {
						  			    things[98]=1;
						  			    things[99]--; 
						  			    Divinity();
						  			  }
						  			else
						  			  cout<<"传送符不足!";
									break;
								}
							case '2':
								{
									if (things[99])
									  {
									    things[98]=2;
									    things[99]--;
									    Hell(); 
									  }
									else
									  cout<<"传送符不足!";
									break;
								}
							case '3':break;
						  }
					}
			}
			if (things[83]>=50)
			  hdcj(48);
			gs();
	  }
}
void poem()
{
	use(66);
	sudu=40;
	color(6);
	cout<<"MCYH  ";
	color(0);
	cout<<"WYQ   ";
	color(7);
	cout<<"WAH\n";
	color(6);
	Sout("看到了吧,这就是");
	Sout(name);
	Sout(",那个强大的玩家。\n\n");
	color(0);
	Sout("是,他强大到连创世之神都可以击败。\n\n");
	color(7);
	Sout("创世之神竟然对一个小小的玩家放水。\n\n");
	color(0);
	Sout("嘘。。。\n");
	Sout("他可能真的十分强大,他获取了世上仅有一把的量子之剑。\n\n");
	color(6);
	Sout("我喜欢这个玩家,他玩的很好,从未间断。\n");
	time_t the_end;
	time(&the_end);
	long long cha=the_end-kaishi;
	int d,h,m,s;
	d=cha/86400;
	h=cha%86400/3600;
	m=cha%3600/60;
	s=cha%60;
	Sout(name);
	Sout("从出生的那一刻起到现在,已经过去了");
	printf("%d天%d小时%d分钟%d秒",d,h,m,s);
	if (h==0&&(m==10&&s==0)||m<10)
	  hdcj(47);
	Sout("。当然,以我们为参照系。\n\n");
	color(7);
	Sout("。。。");
	color(6);
	Sout("这位玩家玩游戏真的很厉害,在整个存档中,一共完成了");
	d=0;
	for(int i=1;i<=70;i++)
	  {
	  	if (things[i+99])
	  	  {
	  	  	d++;
	  		printf("【%s】、",cj[i].c_str());
		  }
	  }
	cout<<d;
	Sout("个成就,在结束之前,还有");
	cout<<fost[6]<<"颗钻石、";
	cout<<things[7]<<"元钱。\n";
	color(0);
	Sout("MCYH,以后把你的主宰者之位让给这位玩家吧。\n\n");
	color(6);
	Sout("WYQ,叫他的名字。\n\n");
	color(0);
	Sout(name);
	Sout("。祝你在另一个时间线过的顺利。\n\n");
	color(7);
	Sout("走了,我们也应该去另一个时间线玩玩了。\n\n");
	color(6);
	Sout("嗯,我们一起走吧。\n\n");
	gs();
	cout<<"是否查看“战绩”(由于生成错误,只能查看森林的背包和附魔)\n";
	cout<<"Y/N";
	char l=_getch();
	if (l=='n'||l=='N')
	  return;
	for(int i=1;i<=200;i++)
	  if (fost[i])
	    printf("[%s] %d\n",fsn[i].c_str(),fost[i]);
	for(int i=0;i<4;i++)
	  for(int j=0;j<5;j++)
	    printf("[%s] %d级\n",fumoname[i][j].c_str(),has_fumo[i][j]);
	gs();
	return;
}
void clearzhandou(int x,int y,int x1,int y1)
{
	gotoxy(40,35);
	printf("          "); 
	gotoxy(x-2,y);
	if (x-2>2)
	  printf("          ");
	gotoxy(x-1,y);
	if (x-1>2)
	  printf("          ");
	gotoxy(x1-2,y);
	if (x1-2>2)
	  printf("          ");
	gotoxy(x1-1,y);
	if (x1-1>2)
	  printf("          ");
}
bool zhandou(int m)
{
	time_t BC;
	time(&BC);
	bool juexing=false;
	int nvG=0,W214=0,W126=0;
	int ada=random(6,9);
	int bomb=-1505,bx,by;
	int cishum=0,cishua=0;
	int wl=0;
	int azweg=1; 
	int time=0;
	int hurt=0;
	int ztm[20],zta[20];
	int yh=0;
	//0持续伤害 1禁锢 2持续回血(兴奋药剂) 3特殊 4炸弹 5无敌 6浴火 7范围提升 8诅咒 9骨王减伤 10骨王反伤 11禁止回能 
	memset(ztm,0,sizeof(ztm));
	memset(zta,0,sizeof(zta));
	int A,B,ai;
	int mh=things[2]*16,ma=things[5],mc=things[6];
	A=mh;
	int ah,aa,ac;
	int a,b,c,d,e,f;
	a=b=c=d=e=f=0;
	d=random(things[9]-3,things[9]+5);
	ah=d*(random(21,28))*16;
	aa=d*(random(6,10));
	ac=d;
	B=ah;
	int i,j,k;
	int sh;
	char g;
	int x,y,x1,y1;
	x=5,x1=5;
	x1=5,y1=30;
	int energy=500,ea=500;
	//战前准备
	if (m==3)
	  ma*=1.3;
	if (m==1)
	  ma*=1.15;
	if (m==9)
	  mh+=B*0.8,e+=B*0.8,zta[0]=30;
	if (m==10)
	  ztm[0]=2147483641;
	if (m==12)
	  zta[2]=2147483641;
	if (m==15)
	  zta[10]=8;
	int jitan=0;
	juexing=false;
	yh=0;
	while(mh>0&&ah>0)
	  {
	  	cls();
	  	time+=3;
	  	color(0);
	  	//界面输出 
	  	gotoxy(0,0);
	  	cout<<"YOUR_HP:"<<mh<<'/'<<A<<"\t\t\t X_HP:"<<ah<<'/'<<B<<'\n';
	  	cout<<"YOUR ENERGY:"<<energy<<"\t\t\t AI_ENERGY"<<ea<<"\n";
	  	cout<<"___________________________________________________THE_TIME:"<<time/10<<"\n";
	  	gotoxy(x,y);
	  //	color(6);
	  	cout<<"♀";
	  	gotoxy(x1,y1);
	  //	color(7);
	  	cout<<"♀";
	  //	color(0);
	  	gotoxy(45,60);
	  	cout<<"YOURATTACK:"<<ma<<"\tAIATTACK:"<<aa;
	  	gotoxy(46,60);
	  	cout<<"YOURDEFENCE:"<<mc<<"\tAIDEFENCE:"<<ac;
	  	gotoxy(0,70);
	  	cout<<"YOUROUT\tAIOUT";
	  	gotoxy(1,70);
	  	cout<<a<<"\t"<<d;
	  	gotoxy(2,70);
	  	cout<<"YOURTREAT\tAITREAT";
	  	gotoxy(3,70);
	  	cout<<b<<"\t"<<e;
	  	gotoxy(4,70);
	  	cout<<"YOUR“BTW”\tAI“BTW”";
	  	gotoxy(5,70);
	  	cout<<c<<"\t"<<f;
	  	//状态输出
		gotoxy(10,70);
		cout<<"\t己方\t敌方\n";
		gotoxy(11,70);
		printf("持续伤害\t%ds\t%ds",ztm[0],zta[0]);
		gotoxy(12,70);
		printf("生命恢复\t%ds\t%ds",ztm[2],zta[2]);
		gotoxy(13,70);
		printf("禁锢\t%ds\t%ds",ztm[1],zta[1]);
		gotoxy(14,70);
		printf("其他1\t%ds\t%ds",ztm[3],zta[3]);
		gotoxy(15,70);
		printf("其他2\t%ds\t%ds",ztm[4],zta[4]);
		gotoxy(16,70);
		printf("其他3\t%ds\t%ds",ztm[5],zta[5]);
		gotoxy(17,70);
		printf("其他4\t%ds\t%ds",ztm[6],zta[6]);
		gotoxy(18,70);
		printf("其他5\t%ds\t%ds",ztm[7],zta[7]);
		gotoxy(19,70);
		printf("其他6\t%ds\t%ds",ztm[8],zta[8]);
		gotoxy(20,70);
		printf("其他7\t%ds\t%ds",ztm[9],zta[9]);
		gotoxy(21,70);
		printf("其他8\t%ds\t%ds",ztm[10],zta[10]);
		if (m==12)
		  {
		  	gotoxy(18,70);
		  	cout<<"祭坛血量:"<<jitan;
		  }
		if (m==14)
		  {
		  	gotoxy(18,70);
		  	cout<<"亡魂数量:"<<wl;
		  }
	  	g='m';
	  	if (ztm[1]<=0)
	  	  if (kbhit())
	  	    g=getch();
	  	if (zta[5]&&g!='a'&&g!='s'&&g!='d'&&g!='w')
		    g=';'; 
	  	//我方操作 
	  	switch(g)
	  	  {
	  	  	//移动 
	  	  	case 'a':y--;break;
	  	  	case 'd':y++;break;
	  	  	case 'w':x--;break;
	  	  	case 's':x++;break;
	  	  	//攻击 
	  	  	case ' ':
	  	  		{
	  	  			if (m==6&&juexing)
	  	  			  {
	  	  			  	gotoxy(x1-2,y1);
	  	  			  	cout<<"免疫";
	  	  			  	break;
					  }
	  	  			if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5)
	  	  			  {
	  	  			  	sh=ma-ac;
	  	  			  	if (zta[9]&&m==15)
	  	  			  	  sh*=0.3,hurt+=sh;
	  	  			  	if (wl>12&&m==14)
	  	  			  	  sh*=0.4;
	  	  			  	else if (wl>0&&m==14)
	  	  			  	  sh*=1-wl*0.05;
	  	  			  	if (m==1&&rand()%10==7)
	  	  			  	  {
	  	  			  	  	gotoxy(x-2,y);
	  	  			  	  	cout<<"反伤-"<<sh;
	  	  			  	  	mh-=sh,c+=sh,d+=sh;
	  	  			  	  	break;
						  }
						if (m==15&&zta[10])
						  {
						  	gotoxy(x-2,y);
						  	cout<<'-'<<sh*0.75;
						  	mh-=sh*0.75,c+=sh*0.75,d+=sh*0.75;
						  }
	  	  			  	if (m==1&&rand()%5==3)
	  	  			  	  {
	  	  			  	  	gotoxy(x1-2,y1);
	  	  			  	  	cout<<"免疫";
	  	  			  	  	sh=0;
						  }
						//闪避判定
				if (m==6&&juexing==false)
				  {
				  	if (rand()%20==16)
				  	  {
				  	  	gotoxy(40,35);
				  	  	cout<<"反击直觉";
				  	  	x1=x,y1=y+2;
				  	  	sh=aa*1.65;
						gotoxy(x-2,y);
						cout<<"-"<<sh;
						mh-=sh,c+=sh,d+=sh;
						sh=0;
					  }
				  } 
	  	  			  	gotoxy(x1-2,y1);
	  	  			  	cout<<"-"<<sh;
	  	  			  	ah-=sh;
	  	  			  	a+=sh;
	  	  			  	f+=sh;
	  	  			  	energy+=random(20,45);
	  	  			  	ea+=random(5,25);
	  	  			  	if (ztm[6]&&m!=9)
	  	  			  	  zta[0]=6;
					  }
					cishum++;
					break;
				}
			//主动技 
			case '1':
				{
					if (things[70]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"二连击刺";
					  	sh=(ma*1.6-ac);
					  	gotoxy(x-2,y);
					  	cout<<"-"<<sh<<'\n';
					  	gotoxy(x1-1,y1);
					  	cout<<"-"<<sh;
					  	ah-=sh*2;
					  	a+=sh*2;
					  	f+=sh*2;
					  	Sleep(500);
					  	energy-=500;
					  	ea+=random(10,60);
					  }
					cishum++;
					break;
				}
			case '2':
				{
					if (things[71]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"自然滋养";
					  	sh=A*0.25;
					  	gotoxy(x-1,y);
					  	cout<<"+"<<sh;
					  	mh+=sh;
					  	b+=sh;
					  	Sleep(500);
					  	energy-=500;
					  }
					break;
				}
			case '3':
				{
					if (things[72]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"影刃之斩";
					  	sh=B*0.2;
					  	if (sh>mh)
					  	  sh=mh-1;
					  	gotoxy(x1-2,y1);
					  	cout<<"-"<<sh;
					  	a+=sh;
					  	f+=sh;
					  	ah-=sh;
					  	Sleep(500);
					  	energy-=500;
					  	ea+=random(10,60);
					  }
					cishum++;
					break;
				}
			case '5':
				{
					if (things[74]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"定时炸弹";
					  	bomb=time;
					  	energy-=500;
					  	bx=x,by=y;
					  	ztm[4]=4;
					  	Sleep(500);
					  }
					break;
				}
			case '6':
				{
					if (things[75]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"兴奋药剂";
					  	ztm[1]=4;
					  	energy-=500;
					  	ma*=1.036;
					  	Sleep(500);
					  }
					break;
			 	} 
			case '7':
				{
					if (things[76]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"虫洞";
					  	gotoxy(x,y);
					  	cout<<"  ";
					  	x=x1,y=y1+2;
					  	gotoxy(x,y);
					 // 	color(4);
					  	energy-=500;
					  	cout<<"♀";
					 // 	color(0);
					  	Sleep(500);
					  }
					break;
				}
			case '8':
				{
					if (things[77]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"回旋飞刀";
					  	sh=ma*0.75;
					  	energy-=500;
					  	bool xx=false;
					  	for(i=1;i<=4;i++)
					  	  {
					  	  	if (rand()%5==3)
					  	  	  xx=true;
					  	  	gotoxy(x-2,y);
					  	  	cout<<'-'<<sh;
					  	  	ah-=sh,a+=sh,f+=sh;
						  }
						if (xx=true)
						  {
						  	zta[0]=2;
						  	sh=a*0.3;
						  	gotoxy(x-1,y);
						  	cout<<'+'<<sh;
						  	mh+=sh,b+=sh;
						  }
						Sleep(500);
					  }
					break;
				}
			case '9':
				{
					if (things[78]&&energy>=500)
					  {
					  	gotoxy(40,35);
					  	cout<<"浴火";
					  	sh=mh*0.8;
					  	energy-=500;
					  	gotoxy(x-2,y);
					  	cout<<'-'<<sh;
					  	mh-=sh,c+=sh;
					  	yh=sh+A*0.25;
					  	ztm[6]=5;
					  	Sleep(300); 
					  }
					break;
				}
		  }
		//我方被动技
		if (things[73]&&(time/10)%5==0)
		  {
		  	gotoxy(40,35);
		  	cout<<"暗影盾";
		  	sh=ma*0.4;
		  	gotoxy(x-1,y);
		  	cout<<'+'<<sh;
		  	mh+=sh;
			b+=sh; 
		  }
		
		
		//敌方
		//敌方移动(随机) 
		 ai=random(1,4);
		 if (rand()%3==1)//(1/3的概率向玩家冲来) 
		   {
		   	if (x>x1)
		   	  ai=1;
		   	if (x<x1)
		   	  ai=2;
		   	if (y>y1)
		   	  ai=3;
		   	if (y<y1)
		   	  ai=4;
		   }
		//敌方移动 
		switch(ai)
		  {
		  	case 1:x1++;break;
		  	case 2:x1--;break;
		  	case 3:y1++;break;
		  	case 4:y1--;break;
		  }
		//敌军攻击 
		if (rand()%2)//攻击率:1/2 
		  {
		  	if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5||m==10&&zta[5]>0)
	  	  	  {
	  	  	  	if (m==2)
	  	  	  	  {
	  	  	  	  	int jn=cishua%3+1;
	  	  	  	  	switch(jn)
	  	  	  	  	  {
	  	  	  	  	  	case 1:
	  	  	  	  	  		{
	  	  	  	  	  		    sh=aa*1.05;
	  	  	  	  	  			mh-=sh;
	  	  	  	  	  			c+=sh,d+=sh;
	  	  	  	  	  			break;
							}
						case 2:
							{
								sh=aa*1.3;
								mh-=sh;
								c+=sh,d+=sh;
								break;
							}
						case 3:
							{
								x=random(x-5,x+5);
								y=random(y-5,y+5);
								break;
							}
					  }
				  }
	  	  		sh=aa-mc;
	  	  		if (m==12)
	  	  		  sh+=jitan*0.05;
	  	  		if (m==4&&things[21]>=2)
	  	  	  	  sh+=mh*0.04;
	  	  	  	if (m==13)
	  	  	  	  {
	  	  	  	  	if (time/10>=18&&time/10<=45)
	  	  	  	  	  sh=aa*2.2;
	  	  	  	  	if (time/10>45)
	  	  	  	  	  sh=aa*2.7,x--;
				  }
	  	  		gotoxy(x-2,y);
	  	  		cout<<"-"<<sh;
	  	  		mh-=sh;
	  	  		d+=sh;
	  	  		c+=sh;
	  	  		energy+=random(5,25);
	  	  		ea+=random(20,45);
	  	  		cishua++;
	  	  		if (cishua%4==0&&m==3)
	  	  		  {
	  	  		  	gotoxy(40,35);
	  	  		  	cout<<"魅惑射击";
	  	  		  	sh=mh*0.06;
	  	  		  	gotoxy(x-2,y);
	  	  		  	cout<<"-"<<sh;
	  	  		  	c+=sh,d+=sh,mh-=sh;
				  }
				//吸血判定
				if (m==5)
				  {
				  	sh*=0.3;
				  	gotoxy(x1-1,y1);
				  	cout<<"+"<<sh;
				  	ah+=sh,e+=sh;
				  } 
				if (m==6&&juexing)
				  {
				  	sh*=0.4;
				  	gotoxy(x1-1,y1);
				  	cout<<"+"<<sh;
				  	ah+=sh,e+=sh;
				  }
				if (m==12)
				  {
				  	sh*=0.2;
				  	jitan+=sh;
				  }
			  }
		  }
		//边界判定 
		if (x>40)
		  x=40;
		if (x<5)
		  x=5;
		if (y>70)
		  y=70;
		if (y<5)
		  y=5;
		if (x1>40)
		  x1=40;
		if (x1<5)
		  x1=5;
		if (y1>70)
		  y1=70;
		if (y1<5)
		  y1=5;
		//敌方energy>1000时触发必杀技 
		if (ea>=1000)
		  {
		  	if (m==1)
		  	  {
		  	  	sh=aa*1.95;
		  	  	gotoxy(40,35);
		  	  	cout<<"双剑合璧";
		  	  	gotoxy(x-2,y);
		  	  	cout<<"-"<<sh;
		  	  	mh-=sh;
		  	  	d+=sh;
		  	  	c+=sh;
		  	  	ztm[0]=4;
			  }
			if (m==2)
			  {
			  	gotoxy(45,30);
			  	cout<<"天空坠落";
			  	gotoxy(x,y+2);
			  	cout<<"#^@&#!#@……";
			  	Sleep(3000);
			  	gotoxy(x,y+2);
			  	cout<<"            ";
			  	sh=aa*5.4;
			  	gotoxy(x-2,y);
			  	cout<<"-"<<sh;
			  	mh-=sh;
			  	d+=sh;
			  	c+=sh;
			  	Sleep(500);
			  }//21难度 
			if (m==3)
			  {
			  	gotoxy(40,35);
			  	cout<<"马哈耶加翁";
			  	sh=aa*2.6;
			  	gotoxy(x-2,y);
			  	cout<<"-"<<sh;
			  	mh-=sh;
			  	d+=sh;
			  	c+=sh;
			  	Sleep(500);
			  	if (things[21]>=3)
			  	  {
			  	  	gotoxy(40,35);//总攻击 
			  	  	cout<<"总攻击";
			  	  	sh=aa*4;
			  	  	gotoxy(x-2,y);
			  	  	cout<<"-"<<sh;
					mh-=sh; 
					d+=sh;
					c+=sh;
					Sleep(500);
				  }
			  }
			if (m==4)
			  {
			  	gotoxy(40,35);
			  	cout<<"漩涡";
			  	gotoxy(x,y);
			  	cout<<"  ";
			  //	color(6);
			  	gotoxy(x1,y1+4);
			  	cout<<"♀";
			  //	color(0);
			  	ztm[0]=ztm[1]=2;
			  	Sleep(500);
			  }
			if (m==5)
			  {
			  	if (ztm[0]>0)
			  	  {
			  		if (things[21]>=3)
			  	  	  nvG*=2;
			  		gotoxy(x1+1,y1);
			  		cout<<"+"<<nvG;
			  		ah+=nvG,e+=nvG;
			  		nvG=0;
			  		Sleep(200);
			  	  }
			  	gotoxy(40,35);
			  	cout<<"灵魂环绕";
			  	ztm[0]=12;
			  	Sleep(500);
			  }
			if (m==6)
			  {
			  	gotoxy(40,35);
			  	cout<<"影刃之舞";
			  	gotoxy(x1,y1);
			  	cout<<"  ";
			  //	color(7);
			  	gotoxy(x,y+2);
			  	cout<<"*";
			  	for(i=1;i<=5;i++)
			  	  {
			  	  //	color(0);
			  	  	sh=aa*0.36;
			  	  	c+=sh,d+=ah;
			  		mh-=sh;
			  		gotoxy(x-2,y);
			  		cout<<"-"<<sh;
			  		Sleep(100); 
				  }
			//	color(7);
				gotoxy(x,y+2);
				cout<<"♀";
				sh=a*2.62;
			//	color(0);
				gotoxy(x-2,y);
				cout<<"-"<<sh;
				mh-=sh;
				c+=sh,d+=sh;
				sh*=0.3;
				gotoxy(x1-1,y1);
				cout<<"+"<<sh;
				e+=sh;
				ah+=sh;
				Sleep(500);
			  }
			if (m==7)
			  {
			  	gotoxy(40,35);
			  	cout<<"狂风席卷";
			  	sh=A*0.2;
				gotoxy(x-2,y);
				cout<<"-"<<sh;
				c+=sh,d+=sh,mh-=sh;
				sh=aa*0.35;
				gotoxy(x-2,y);
				cout<<"-"<<sh;
				c+=sh,d+=sh,mh-=sh;
				Sleep(500);
			  }
			if (m==8)
			  {
			  	gotoxy(40,35);
			  	cout<<"控制者";
			  	ea-=200;
			  	while(ea>0)
			  	  {
			  	  	gotoxy(40,50);
			  	  	cout<<"剩余能量:"<<ea;
			  	  	ea-=100;
			  	  	sh=aa*0.7;
			  	  	gotoxy(x-2,y);
			  	  	cout<<"-"<<sh;
			  	  	mh-=sh,c+=sh,d+=sh;
			  	  	gotoxy(x1-1,y1);
			  	  	sh*=0.5;
			  	  	cout<<"+"<<sh;
			  	  	ah+=sh,e+=sh;
			  	  	Sleep(300);
				  }
			  }
			if (m==9)
			  {
			  	gotoxy(40,35);
			  	cout<<"灵魂借取";
			  	sh=A*0.25;
			  	gotoxy(x-2,y);
			  	cout<<"-"<<sh;
			  	mh-=sh,c+=sh,d+=sh;
			  	W126=ah;
			  	gotoxy(x1-1,y1);
			  	cout<<"+"<<sh;
			  	ah+=sh,e+=sh;
			  	zta[3]=5;
			  	Sleep(500);
			  }
			if (m==10)
			  {
			  	gotoxy(40,35);
			  	cout<<"精神支配";
			  	sh=aa*2.9;
			  	x=random(1,40);
			  	y=random(1,50);
			  	gotoxy(x-2,y);
			  	cout<<'-'<<sh;
			  	mh-=sh,c+=sh,d+=sh;
			  	mc*=0.2;
			  	ztm[1]=2;
			  	zta[5]=5; 
			  	Sleep(500);
			   } 
			if (m==11)
			  {
			  	gotoxy(40,35);
			  	cout<<"化学风暴";
			  	sh=(B-ah)*0.5;
			  	ah+=sh,e+=sh;
			  	gotoxy(x1-1,y1);
			  	cout<<'+'<<sh;
			  	aa*=1.1;
			  	Sleep(500);
			  }
			if (m==12)
			  {
			  	gotoxy(40,35);
			  	cout<<"鲜血献祭";
			  	sh=ah*0.2;
			  	jitan+=sh;
			  	ah-=sh;
			  	f+=sh;
			  	Sleep(500);
			  }
			if (m==13)
			  {
			  	gotoxy(40,35);
			  	cout<<"时间跳跃";
			  	sh=B*0.055;
			  	ea-=200;
			  	while(ea>=0)
			  	  {
			  	  	gotoxy(x1-1,y1); 
			  	  	cout<<"+"<<sh;
			  	  	ea-=160;
			  	  	ah+=sh,e+=sh;
					Sleep(500);
				  }
				sh=aa*2.2;
				gotoxy(x-2,y);
				cout<<'-'<<sh;
				mh-=sh,d+=sh,c+=sh;
			  } 
			if (m==14)
			  {
			  	gotoxy(40,35);
			  	cout<<"埋骨之地";
			  	sh=aa*1.5;
			  	gotoxy(x-2,y);
			  	cout<<"-"<<sh;
			  	c+=sh,d+=sh;
			  	mh-=sh;
			  	wl++; 
			  	Sleep(500);
			  }
			if (m==15)
			  {
			  	gotoxy(40,35);
			  	cout<<"复仇反击";
			  	zta[9]=5;
			  	Sleep(350);
			  	zta[1]=5; 
			  }
			ea=0;
			if (m==10)
			  {
			  	ea+=energy*0.3;
			  	energy*=0.7;
			  }
			 
		  }
		//特殊输出
		//5技能炸弹
		if (ztm[4])
		  {
		  	gotoxy(bx,by);
		  	cout<<"#";
		  }
		if (m==9&&ah<=B)
		  zta[0]=0;
		//持续输出 
		if (time%9==0)
		  {
		  	if (wl>0)
		  	  {
		  	  	gotoxy(x-2,y);
		  	  	sh=aa*0.35*wl;
		  	  	cout<<'-'<<sh;
		  	  	mh-=sh;
		  	  	c+=sh,d+=sh;
		  	  	gotoxy(x1-1,y1);
		  	  	sh*=0.8;
		  	  	cout<<'+'<<sh;
		  	  	ah+=sh;
		  	  	e+=sh;
		  	  	energy-=wl*10,ea+=wl*10;
			  }
		  	if (m==13)
		  	  aa*=1.009;
		  	if (time%180==0&&m==11)
		  	  {
		  	  	gotoxy(40,35);
		  	  	cout<<"超肾上腺素";
		  	    zta[2]=8;
		  	    Sleep(500);
		  	  }
		  	if (m==11&&B*0.3<=ah)
		  	  {
		  	  	sh=B*0.01;
		  	  	f+=sh,ah-=sh;
		  	  	gotoxy(x1-2,y1);
		  	  	cout<<'-'<<sh;
		  	  	if (x-x1<=3&&x1-x<=3&&y-y1<=3&&y1-y<=3)
		  	  	  {
		  	  	  	sh*=3;
					gotoxy(x-2,y);
					cout<<'-'<<sh;
					c+=sh,d+=sh,mh-=sh; 
				  }
			  }
		  	for(i=0;i<=19;i++)
		  	  {
		  	   if (zta[i]>0)
		  	    zta[i]--;
			   if (ztm[i]>0)
			    ztm[i]--;
			  }
		  	if (zta[3]==1)//灵魂归还 
		  	  {
		  	  	W126=ah-W126;
		  	  	if (W126)
		  	  	  ah-=W126,mh+=W126,b+=W126,f+=W126;
			  }
			if (ztm[0])
			  {
			  	switch(m)
			  	  {
			  	  	case 1:sh=aa*0.5;break;
			  	  	case 4:sh=aa*1.75;break;
			  	  	case 5:sh=aa*1.3,nvG+=sh;break;
			  	  	case 9:sh=B*0.027;break;
			  	  	case 10:sh=aa*0.6;break;
				  }
				mh-=sh;
				gotoxy(x-2,y);
				cout<<"-"<<sh;
				c+=sh,d+=sh;
			  }
			if (zta[0])
			  {
			  	switch(m)
			  	  {
			  	  	case 6:sh=B*0.05;break;
			  	  	default:sh=ma*0.35;break;
				  }
				ah-=sh;
				gotoxy(x1-2,y1);
				cout<<'-'<<sh;
				c+=sh,d+=sh;
			  }
			if (ztm[1])
			  {
				sh=(A-mh)*0.16;
				if (sh<0)
				  sh=0;
				gotoxy(x-1,y);
				cout<<'+'<<sh;
				mh+=sh;
				b+=sh;
			  }
			if (zta[2])
			  {
			  	switch(m)
				  {
				  	case 11:sh=(B-ah)*0.16;break;
				  	case 12:sh=jitan*0.1;break;
				  } 
				ah+=sh;
				gotoxy(x1-1,y1);
				cout<<'+'<<sh;
				e+=sh,ah+=sh;
			  }
			if (ztm[0]<=1&&m==5)
			  {
			  	if (things[21]>=3)
			  	  nvG*=2;
			  	gotoxy(x1+1,y1);
			  	cout<<"+"<<nvG;
			  	ah+=nvG,e+=nvG;
			  	nvG=0;
			  	Sleep(200);
			  }
			if (ztm[6])
			  {
			  	sh=yh*0.2;
			  	gotoxy(x-1,y);
			  	cout<<'+'<<sh;
			  	mh+=sh,b+=sh;
			  }
			if (zta[9]<=1&&zta[9]!=0)
			  {
			  	ah-=aa*random(4,9)*0.3;
			  	f+=aa*random(4,9)*0.3;
			  	sh+=aa*random(4,9)*0.3;
			  	gotoxy(x,y-1);
			  	cout<<")";
			  	y+=random(2,4);
			  	gotoxy(x,y);
			  //	color(4);
			  	cout<<"♀";
			 // 	color(0);
			  	gotoxy(x-2,y);
			  	sh=hurt*2+aa*1.5;
			  	cout<<'-'<<sh;
			  	mh-=sh;
			  	c+=sh,d+=sh;
			  	ah+=sh*0.8;
			  	e+=sh*0.8;
			  	hurt=0;
			  }
			if (ztm[4]==1)
			  {
			  	ztm[4]=0;
			  	gotoxy(bx-5,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx-4,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx-3,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx-2,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx-1,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx+1,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx+2,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx+3,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx+4,by-5);
			  	cout<<"~~~~~\n";
			  	gotoxy(bx+5,by-5);
			  	cout<<"~~~~~\n";
			  	sh=a*0.45;
			  	if (x>=bx-5&&x<=bx+5&&y>=by-5&&y<=by+5)
			  	  {
			  	  	gotoxy(x-2,y);
			  	  	cout<<"-"<<sh;
			  	  	mh-=sh;
			  	  	a+=sh,c+=sh;
				  }
				if (x1>=bx-5&&x1<=bx+5&&y1>=by-5&&y1<=by+5&&m!=6||(m==6&&juexing==false))
			  	  {
			  	  	gotoxy(x1-2,y1);
			  	  	cout<<"-"<<sh;
			  	  	ah-=sh;
			  	  	a+=sh,f+=sh;
				  }
				gotoxy(bx,by);
				cout<<" ";
			  }
		  }
		if (ztm[5]>0)
		  x++,y--;
		//2技能
		if ((time/10)%ada==0)
		  {
		  	if (m==1)
		  	  {
		  	  	gotoxy(40,35);
		  	  	cout<<"魔剑技";
		  	  	sh=mh*0.12+aa;
		  	  	gotoxy(x-2,y);
		  	  	cout<<"-"<<sh;
		  	  	mh-=sh,c+=sh,d+=sh;
		  	  	x-=5,y-=8;
			  }
			if (m==5)
			  {
			  	gotoxy(40,35);
			  	cout<<"灵魂吸取";
			  	sh=aa*0.5;
			  	for(i=1;i<=6;i++)
			  	  {
			  	  	gotoxy(x-2,y);
			  	  	cout<<"-"<<sh;
			  	  	gotoxy(x1-1,y1);
			  	  	cout<<"+"<<sh;
			  	  	mh-=sh,ah+=sh;
			  	  	a+=sh,c+=sh,d+=sh,e+=sh;
			  	  	sh*=0.05;
				  }
			  }
			if (m==7)
			  {
			  	gotoxy(40,35);
			  	cout<<"原始嚎叫";
			    ztm[3]=3;
			  }
			if (m==8)
			  {
			  	gotoxy(x-2,y);
			  	cout<<"肢解";
			  	for(i=1;i<=random(4,8);i++)
			  	  {
			  	  	sh=aa*0.4;
			  	  	gotoxy(x-2,y);
			  	  	cout<<"-"<<sh;
			  	  	ztm[1]=3;
				  }
			  }
			if (m==10)
			  {
			  	gotoxy(40,35);
			  	cout<<"恐惧威慑";
			  	Sleep(400);
			  	ea+=energy*0.3;
			  	energy*=0.7;
			  }
			if (m==11)
			  {
			  	gotoxy(40,35);
			  	cout<<"横冲直撞";
			  	sh=aa*0.7;
			  	mh-=sh,c+=sh,d+=sh;
			  	gotoxy(x-2,y);
			  	cout<<'-'<<sh;
			  	x-=3,y-=7;
			  	Sleep(500);
			  }
			if (m==13)
			  {
			  	gotoxy(40,35);
			  	cout<<"穿梭";
			  	sh=aa*0.5;
			  	for(i=1;i<=random(4,7);i++)
			  	  {
			  	  	gotoxy(x-2,y);
			  	  	cout<<'-'<<sh;
			  	  	mh-=sh,d+=sh,c+=sh;
				  }
				sh=2*0.4*aa;
				gotoxy(x-2,y);
				cout<<'-'<<sh;
				mh-=sh,c+=sh,d+=sh;
				Sleep(500);
			  }
			if (m==14)
			  {
			  	gotoxy(40,35);
			  	cout<<"噬魂斩击";
			  	sh=aa*0.25;
			  	gotoxy(x-2,y);
			  	cout<<'-'<<sh;
			  	mh-=sh,d+=sh,c+=sh;
			  	aa+=(ma*0.02),ac+=(mc*0.02);
			  	ma*=0.98,mc*=0.98;
			  	Sleep(500);
			  }
			if (m==15)
			  {
			  	gotoxy(40,35);
			  	cout<<"强制遵从";
			  	sh=aa*0.65;
			  	ztm[1]=1;
			  	gotoxy(x-2,y);
			  	cout<<'-'<<sh;
			  	mh-=sh,c+=sh,d+=sh;
			  	Sleep(300);
			  }
			ada=random(6,9);
		  }
		//特殊判定
		if (m==3&&mh<A*0.5&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"总攻击";
		  	juexing=true;
		  	sh=aa*4;
		  	gotoxy(x-2,y);
		  	cout<<"-"<<sh;
			mh-=sh;
			c+=sh,d+=sh;
			Sleep(500);
		  }
		if (m==4&&mh<A*0.2&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"决杀";
		  	sh=aa*4;
		  	gotoxy(x-2,y);
		  	cout<<"-"<<sh;
		  	mh-=sh;
		  	c+=sh,d+=sh;
		  	juexing=true;
		  	Sleep(500);
		  }
		if (m==6&&ah<=0&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"复仇执念";
		  	ah=B;
		  	juexing=true;
		  	zta[5]=2147483647,zta[0]=2147483647;
		  }
		if (m==8&&mh<A*0.2&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"最后一击";
		  	sh=aa*2;
		  	gotoxy(x-2,y);
		  	cout<<"-"<<sh;
		  	mh-=sh,c+=sh,d+=sh;
		  	ztm[1]=5;
		  	juexing=true;
		  }
		if (m==12&&ah<=0)
		  {
		  	gotoxy(x1-1,y1);
		  	cout<<'+'<<jitan;
		  	ah+=jitan;
		  	e+=jitan;
		  	jitan=0;
		  }
		if (m==13&&ah<=0&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"轮回";
		  	Sleep(2000);
		  	a=b=c=d=e=f=0;
			d=random(things[9]-3,things[9]+5);
			mh=things[2]*16,ma=things[5],mc=things[6];
			ah=B;
			A=mh;
			x=5,x1=5;
			x1=5,y1=30;
			energy=500,ea=500;
			juexing=true;
			
		  }
		if (m==15&&ah<=0&&juexing==false)
		  {
		  	gotoxy(40,35);
		  	cout<<"";
		  	Sleep(1500);
		  	ah=B;
		  	e+=B;
		  	ztm[0]=3;
		  	juexing=true;
		  }
		if (mh<=0&&things[78]&&ztm[6])
		  {
		  	sh=ztm[6]*yh;
		  	b+=sh;
		  	mh+=sh;
		  	gotoxy(x-1,y);
		  	cout<<'+'<<sh;
		  	ztm[6]=0;
		  	Sleep(300);
		  }
	  }
	gs();
	if (mh<0)
	  {
	  	cout<<"你输了!";
	  	things[82]=0;
	  	Sleep(2000);
	  }
	else
	  {
	  	cout<<"你赢了!";
	  	cout<<"获得战利品:";
	  	int h[5];
	  	for(i=1;i<=4;i++)
	  	  {
	  	    h[i]=random(1,50);
	  	    cout<<fsn[h[i]]<<"*1、";
	  	    if (1615383954+86400*145-BC>0&&m==10)
	  	      {cout<<"\b\b\b2";fost[h[i]]++;}
	  	    fost[h[i]]++;
	  	  }
	  	  if (rand()%8==4)
	  	    {
	  	      cout<<"恶魔沙漏*1、"; 
	  	      things[31]++;
	  	    }
	  	things[82]++;
	  	if (things[82]>=15)
	  	  hdcj(45);
	  	if (m==10)
	  	  hdcj(46);
	  	cout<<"\b\b。";
	  	Sleep(2000);
	  }
	gs();
	char mn='3';
	char q=' ',w=' ',u=' ',r=' ',t=' ',Y=' ';
	float _1,_2,_3,_4,_5,_6;
	if (a>=10000&&a<=999999)
	  q='K',_1=a/1000.0;
	if (a>=1000000&&a<=999999999)
	  q='M',_1=a/1000000.0;
	if (a>=1000000000)
	  q='B',_1=a/100000000.0;
	if (b>=10000&&b<=999999)
	  w='K',_2=b/1000.0;
	if (b>=1000000&&b<=999999999)
	  w='M',_2=b/1000000.0;
	if (b>=1000000000)
	  w='B',_2=b/100000000.0;
	if (c>=10000&&c<=999999)
	  u='K',_3=c/1000.0;
	if (a>=1000000&&a<=999999999)
	  u='M',_3=c/1000000.0;
	if (c>=1000000000)
	  u='B',_3=c/100000000.0;
	if (d>=10000&&d<=999999)
	  r='K',_4=d/1000.0;
	if (d>=1000000&&d<=999999999)
	  r='M',_4=d/1000000.0;
	if (d>=1000000000)
	  r='B',_4=d/100000000.0;
	if (e>=10000&&e<=999999)
	  t='K',_5=e/1000.0;
	if (e>=1000000&&e<=999999999)
	  t='M',_5=e/1000000.0;
	if (e>=1000000000)
	  t='B',_5=e/100000000.0;
	if (f>=10000&&f<=999999)
	  Y='K',_6=f/1000.0;
	if (f>=1000000&&f<=999999999)
	  Y='M',_6=f/1000000.0;
	if (f>=1000000000)
	  Y='B',_6=f/100000000.0;
	cout<<"\t你\t\t\tA.I.\n\n";
	cout<<"输出\t"<<_1<<q<<"\t\t\t"<<_4<<r<<"\n\n";
	cout<<"治疗\t"<<_2<<w<<"\t\t\t"<<_5<<t<<"\n\n";
	cout<<"承伤\t"<<_3<<u<<"\t\t\t"<<_6<<Y<<"\n\n";
	cout<<"按下'm'键退出\n\n";
	while(mn!='m')
	  {
		if (kbhit())
		  mn=getch();
	  }
}
void Jingji()
{
	use(67);
	cls();
	cout<<"这里是热闹的血戮竞技场,周围的人群不时发出的欢呼声令你感到不安。\n";
	cout<<"JOKER:又来竞技场了啊,还嫌被揍得不够惨吗?\n";
	cout<<"(众人大笑)\n";
	cout<<"请选择你想挑战的人:\n";
	cout<<"1.Elon(游侠,擅长打持续输出,人称“凛风之刃”)\n";
	cout<<"2.Ainz Ooal Gown(法师,擅长爆发输出,大招可以瞬间带走你,人称“魔法吟唱者”)\n";
	cout<<"3.JOKER(游侠、刺客,他的“persona”可以将你瞬间打成半血。人称“寡言的绝对领袖”)\n";
	cout<<"4.QUEEN(战士,JOKER的好助手,人称“果敢的战术参谋”)\n";
	cout<<"5.Shemira(法师,具有强大的治疗能力,人称“哀怮女妖”\n";
	cout<<"6.Z206(创世神MCYH的跟随者,擅长爆发输出,代号“Z206”,真名不为人所知,据说是MCYH的分身)\n";
	cout<<"7.Tidus(强大的战士,可以化作刀刃席卷战场,具有强大的吸血等级)\n";
	cout<<"8.W126(创世神MCYH的追随者WYQ的追随者,擅长控制,代号“W126”,真名不为人所知,据说是WYQ的分身)\n";
	cout<<"9.W214(创世神MCYH的追随者WAH的追随者,具有强大的回血能力,代号“W214”,真名不为人所知,据说是WAH的分身)\n";
	cout<<"a.凯恩(夺走了强互作用引力之剑的恶魔,这把剑使他变得异常强大)\n";
	cout<<"b.Isolde(一个被XLS改造的人,拥有超强的续航能力)\n";
	cout<<"c.ENGY(恶魔的信仰者,会将自身以及敌人的血量存入祭坛,在死亡时取出作为自身生命)\n"; 
	cout<<"d.Zollars(篡改时间的恶魔,自由穿梭在时间线中,拥有持续输出和超强自愈能力,死后可以让战斗重新开始\n";
	cout<<"e.Grizerle(骸骨之地的守墓人,可以召唤亡灵附身在敌人身上,给自己带来增益效果,是Toan的忠实护卫)\n";
	cout<<"f.Toan(骸骨之地的国王,一刀流的代表人物)\n";
	cout<<"0.查看说明\n";
	char l=_getch();
	if (l=='0')
	  {
	  	cls();
	  	cout<<"竞技场\n";
	  	cout<<"1.12.9版本的产物,在这里即使被击败也不会死亡。并且会掉落许多强大的物品供你升级、变强!\n";
	  	cout<<"血戮竞技场是一个比武的地方,在这里你要和各位角斗士进行竞赛!\n";
	  	cout<<"如果没有技能书,你将没有资格与角斗士竞技,会刚进场就被秒杀!\n";
	  	cout<<"以下是守卫者的技能:\n\n";
	  	cout<<"凛风之刃·Elon\n";
	  	cout<<"双剑合璧:将两把剑合为一把发动致命一击,造成195%attack伤害,并令敌人在此后的每秒内受到50%attack伤害持续4秒\n";
	  	cout<<"魔法剑技:释放以下两个技能:冰之剑:对敌人造成120%attack伤害并减速;风之剑:造成25%敌人生命值的生命并击飞\n";
	  	cout<<"魔剑(被动):对敌人造成的伤害始终增加15%,受到伤害时有20%概率免疫此伤害(困难/炼狱模式下,有10%概率反伤100%),仅限普攻\n\n";
	  	
	  	cout<<"魔法吟唱者·Ainz Ooal Gown\n";
	  	cout<<"天空坠落:吟唱3秒后对敌人造成540%attack伤害\n";
	  	cout<<"魔法吟唱:普通攻击改为轮流释放以下三个技能\n";
	  	cout<<"闪电:召唤闪电对敌人造成多次35%attack伤害\n";
	  	cout<<"黑洞:向敌人扔出黑洞造成130%attack伤害\n";
	  	cout<<"控制:将敌人传送至随机位置\n\n";
	  	
	  	cout<<"寡言的绝对领袖·JOKER\n";
	  	cout<<"马哈耶加翁:召唤亚森对敌人造成一次260%attack伤害,当难度在困难以上时发动“总攻击”(persona!)\n";
	  	cout<<"随机应变:开场时,JOKER会标记敌人。对标记的敌人额外造成30%attack伤害,如果被标记的敌人生命低于50%则会发动一次“总攻击”(困难模式以上时伤害提高1倍)\n";
	  	cout<<"魅惑射击:每当攻击4次后会使用手枪进行一次攻击,造成敌人当前生命6%的伤害\n";
	  	cout<<"总攻击:不会主动发动,对敌人造成400%attack伤害\n\n";
	  	
	  	cout<<"果敢的战术参谋·QUEEN\n";
	  	cout<<"漩涡:骑乘琼安制造一个漩涡,将敌人吸入漩涡每秒受到175%attack伤害持续2秒\n";
	  	cout<<"世纪末霸者前辈(被动):普通攻击时额外造成其当前生命4%的伤害,简单模式下不会触发\n";
	  	cout<<"决杀:敌人生命低于20%时会发动,造成400%attack伤害\n\n";
	  	
	  	cout<<"哀怮女妖·Shemira\n";
	  	cout<<"灵魂环绕:释放大量灵魂,每秒对敌人造成130%attack伤害,持续6秒,并在释放结束以后恢复总伤害的100/200%(困难模式为200%),如果期间能量蓄满则立即恢复血量结束伤害,然后再次释放\n";
	  	cout<<"灵魂吸取:吸取敌人的生命,每0.15秒造成50%attack伤害持续1秒,伤害每次增加5%\n";
	  	cout<<"灵魂枷锁:令敌人在8秒之内无法使用技能\n";
	  	cout<<"吸血灵体(被动):吸血+20%\n\n";
	  	
	  	cout<<"MCYH追随者·Z206\n";
	  	cout<<"影刃之舞:扔出战刀并遁地,战刀会飞到敌人身边每0.1秒造成36%attack伤害。战刀飞到敌人身旁0.5秒后会瞬移至敌人身旁,造成262%Attack伤害,并恢复伤害30%等量生命\n";
	  	cout<<"反击直觉:受到伤害时有5%概率免疫伤害并反击,造成165%attack伤害\n";
	  	cout<<"复仇执念(被动):死亡后以灵魂的形态继续在场上战斗,期间无敌但是每秒受到5%最大生命值的伤害。期间提高30%吸血等级\n\n";
	  	
	  	cout<<"血戮之刃·Tidus\n";
	  	cout<<"狂风席卷:化作刀刃席卷战场,对敌人造成20%最大生命值的伤害,然后从空中坠落,令敌人受到30%attack伤害\n";
	  	cout<<"原始嚎叫:发出嚎叫令敌人逃离自己(放逐)持续4秒\n";
	  	cout<<"追杀印记:对敌人加上追杀印记。攻击有追杀印记的敌人时带有35点吸血\n\n";
	  	
	  	cout<<"WYQ追随者·W126\n";
	  	cout<<"控制者:消耗200点能量将敌人禁锢在原地,此后每0.3秒消耗100点能量对敌人造成70%attack伤害并恢复50%伤害等量生命,直至能量耗尽\n";
	  	cout<<"肢解处理:将敌人拉至面前肢解,造成多次70%attack伤害并原地禁锢3秒\n";
	  	cout<<"最后一击:当敌人生命低于30%时造成一次200%attack伤害并禁锢5秒\n\n";
	  	
	  	cout<<"WAH追随者·W214\n";
	  	cout<<"灵魂借取:向敌人借取25%最大生命值的血量作为自己的护盾持续5秒,之后将剩余护盾转为生命还给该敌人\n";
	  	cout<<"灵魂盛宴:开场时额外获得80%最大生命值的等量血量,这些血量在开场后30秒之内缓慢失去。如果生命低于最大生命值则停止掉血\n";
	  	cout<<"生命体:每秒增加2.5%最大生命值,保持生命百分比不变\n";
	  	cout<<"免控机制(被动):W214免疫所有敌人造成的持续伤害\n\n";
	  	
	  	cout<<"恶魔领主·凯恩\n";
	  	cout<<"精神支配:对敌人造成230%attack伤害并进行“恐惧威慑”,令其禁锢2秒,然后将攻击范围提升至全战场持续3秒\n";
	  	cout<<"恐惧威慑:发出怪叫永久降低敌人80%防御,然后偷取敌人30%能量\n";
	  	cout<<"强互作用引力保护屏障:当敌人发动技能或自身生命低于30%时生成一个护盾(期间无敌)持续3秒,最多抵消∞的伤害\n";
	  	cout<<"恶魔助手:开场时令3个恶魔附身敌人,恶魔无法被攻击且每秒对敌人造成20%attack伤害直至敌人死亡\n\n";
	  	
	  	cout<<"恐虐尸傀·Isolde\n";
	  	cout<<"化学风暴:为自身注入大量化学药剂,立刻恢复已损失生命值的50%生命,然后增加10%攻击力\n";
	  	cout<<"致命酸雾:开场时在自身周围释放酸雾,自身3格以内的敌人每秒受到3%YSED最大生命值的伤害,YSED每秒受到1%最大生命值的伤害,当YSED生命低于35%时会停止释放\n";
	  	cout<<"横冲直撞:冲向敌人造成210%攻击力伤害并撞飞\n";
	  	cout<<"超肾上腺素:使用后,每秒恢复16%已损失生命持续8秒,该技能每20秒触发一次\n\n";
	  	
	  	cout<<"狂热信仰者·ENGY\n";
		cout<<"鲜血献祭:将自身20%当前生命值注入祭坛\n";
		cout<<"恶魔祭坛:每秒恢复祭坛中10%的等量生命,攻击时额外造成祭坛中血量的5%伤害\n";
		cout<<"狂热信仰:攻击时将伤害的20%注入祭坛\n";
		cout<<"治疗神符(被动):当生命降至0的时候触发(可以无限触发),将祭坛中所有生命转为自身生命恢复\n\n";
		
		cout<<"时之魇·Zollars\n";
		cout<<"时间跳跃:消耗200点能量进入时间裂隙,期间每秒消耗160点能量恢复自身5.5%最大生命值并禁锢敌人,直到生命回满、能量耗尽或再次使用该技能时,Zollars返回战场,对敌人造成220%攻击伤害。\n";
		cout<<"穿梭:与未来的自己配合多次攻击敌人,多次造成50%攻击力伤害,最后一击对敌人造成两段120%攻击伤害并短暂眩晕,但是两个Zollars受到伤害时,Zollars都会受伤\n";
		cout<<"永劫:战斗第18秒,Zollars的攻击方式改为对敌人造成2次120%攻击伤害并击退,第45秒,Zollars的攻击方式改为对敌人造成3次90%攻击伤害无视防御。困难模式下,Zollars每秒增加1%攻击力,持续80秒\n";
		cout<<"轮回(被动):当自身即将死亡时,将时间回溯至战斗刚开始的状态,并保留“永劫”的持续时间,仅触发一次。\n\n";
		
		cout<<"骸骨禁卫·Grizerle\n";
		cout<<"埋骨之地:在敌人背后召唤墓碑造成180%attack伤害并眩晕2秒,并且令一个亡灵附身敌人,亡灵每秒偷取10点能量给自身,造成35%attack伤害,且不会消失,可叠加\n";
		cout<<"噬魂斩击:对敌人造成75%attack伤害并永久偷取15%防御和攻击\n";
		cout<<"亡魂守护(被动):每当有一个亡灵附身在敌人身上时,自己受到的普攻伤害降低5%,最多降低60%\n";
		cout<<"嗜血之魂(被动):每当有一个亡灵攻击敌人时,自己恢复伤害量的100%生命\n\n";
		
		cout<<"骸骨之王·Toan\n";
		cout<<"复仇反击:将敌人拉至面前,原地蓄力一段时间,期间降低70%所受伤害并强制敌人攻击自己每秒1~2次(也可以主动攻击),蓄力结束后对敌人造成160%attack伤害+170%蓄力期间所受伤害总和,此技能带有80%吸血\n";
		cout<<"强制遵从:将敌人劈倒造成130%attack伤害\n";
		cout<<"黄泉归来(被动):死亡1秒后复活,只能触发一次,并令敌人眩晕3秒\n";
		cout<<"死亡诅咒(被动):开场时诅咒敌人8秒,当Toan受到伤害时敌人也受到伤害的75%\n";
	  	cout<<"静待更新......\n";
	  	cout<<"如果屏幕太小没有全部看完可以拉动右侧滚轮进行上下调整喔~"; 
	  	gs();
	  	return; 
	  }
	int n=l-'0';
	if (l=='a')
	  n=10;
	if (l=='b')
	  n=11;
	if (l=='c')
	  n=12;
	if (l=='d')
	  n=13; 
	if (l=='e')
	  n=14;
	if (l=='f')
	  n=15; 
	zhandou(n); 
	happened+=(name+"在竞技场和人打架/");
}
int q[11][2]=
{
	0,0,
	152323,189203,
	202913,353921,
	293021,495022,
	100592,302919,
	315265,509392,
	495213,673829,
	493139,892029,
	903882,1392012,
	1500928,3728102,
};
void Bookstore()
{
	use(68);
	const string bookname[]={"","两连击刺","自然滋养","影刃之斩","暗影盾","定时炸弹","兴奋药剂","虫洞","回旋飞刀","浴火"};
	const string xiaoguo[]=
	{
	"",
	"对敌人造成两次160%攻击力伤害",
	"恢复自身最大生命值25%等量",
	"对敌人造成其最大生命值20%的伤害",
	"被动的,每5秒获得1个200%攻击力的永久护盾",
	"在脚下布置一个定时炸弹,4秒后爆炸对10格以内的人造成45%自身总输出的伤害(可能炸到自己)",
	"使用后每秒恢复16%已损失生命值持续4秒,并永久提高3.6%攻击",
	"瞬移至敌人右侧2格",
	"扔出回旋飞刀令敌人受到4次75%attack伤害。每次有20%概率造成2秒眩晕,成功眩晕则瞬移至敌人面前并恢复自身总输出的30%生命",
	"失去70%当前血量并进入浴火状态持续5秒,期间降低80%所受伤害,且攻击时附带35%的燃烧伤害持续6秒,并每秒恢复刚才失去生命的20%+最大生命值的5%,如果致死则立刻结束浴火状态并恢复剩余血量",
	};
 	time_t t1;
	time(&t1);
	cls();
	cout<<"图书管理员:来看看吧,都是精品!\n";
	bool xuan[11];
	memset(xuan,0,sizeof(xuan));
	int huo[3];
	int money[3];
	int n,m,i,j,k;
	for(i=0;i<3;i++)
	  {
	  	while(1)
	  	  {
	  	  	time_t t2;
			time(&t2);
			if (t2-t1>=3)
			  {
			  	cout<<"连接超时!";
			  	Write_File();
			  	break;
			  }
	  		huo[i]=random(1,9);
	  		bool exit=true;
	  		for(j=0;j<i;j++)
	  		  if (huo[i]==huo[j])
	  		    exit=false;
	  		if (exit)
	  		  break;
	  	  }
	  	cout<<i<<'.'<<bookname[huo[i]];
	  	money[i]=random(q[huo[i]][0],q[huo[i]][1]);
	  	cout<<"  "<<money[i]<<'\n';
	  }
	cout<<"16.帮助\n";
	cout<<"-1.什么都不买\n";
	cin>>m;
	if (m==-1)
	  return;
	if (m==16)
	  {
	  	cls();
	  	cout<<"本书店出售的都是可以在竞技场发动技能的“技能书”\n";
		cout<<"以下是每个技能以及触发编号。按下对应编号即可触发\n";
		cout<<"价钱公道,童叟无欺!\n\n"; 
	  	for(i=1;i<=9;i++)
	  	  {
	  	  	cout<<bookname[i]<<':'<<xiaoguo[i]<<'\n';
		  }
		gs();
		return;
	  }
	if (things[7]>=money[m])
	  {
	  	things[7]-=money[m];
	  	things[huo[m]+69]++;
	  	cout<<"购买成功!";
	  }
	else
	  cout<<"钱不够!";
}
void Bank()//85~88,89~92,93~96,97
{
	gs();
	int i,j,k,n,m;
	char l;
	if (things[85]==0)
	  {
	  	cout<<"请注册银行卡号:";
	  	cin>>things[85];
	  	cout<<"输入密码:";
	  	cin>>things[89];
	  }
	else
	  {
	  	cout<<"输入银行卡号:";
	  	cin>>j;
	  	cout<<"输入密码:";
	  	cin>>k;
	  	if (things[85]!=j||things[89]!=k)
	  	  {
	  	  	cout<<"密码错误!";
	  	  	gs();
	  	  	return;
		  }
	  }
	while(1)
	  {
	  	gs(); 
	  	cout<<"1.存款 2.取款 3.查看信息 4.离开\n";
	  	l=_getch();
	  	switch(l)
	  	  {
	  	  	case '1':
	  	  		{
	  	  			use(71);
	  	  			cout<<"存多少钱?(你有:"<<things[7]<<"元钱)";
	  	  			cin>>k;
	  	  			if (k<=things[7])
	  	  			  {
	  	  			  	things[93]+=k;
	  	  			  	things[7]-=k;
	  	  			  	cout<<"存款成功!";
					  }
					else
					  cout<<"钱不够!";
					break;
				}
			case '2':
				{
					use(72);
					cout<<"取多少钱?(银行卡里有:"<<things[93]<<"元钱)";
	  	  			cin>>k;
	  	  			if (k<=things[93])
	  	  			  {
	  	  			  	things[93]-=k;
	  	  			  	things[7]+=k;
	  	  			  	cout<<"取款成功!";
					  }
					else
					  cout<<"钱不够!";
					break;
				}
			case '3':
				{
					use(73);
					cout<<"余额:"<<things[93]<<"元\n";
					cout<<"今日利率:"<<things[97]/1000.0<<"%";
					gs();
					break;
				}
			case '4':return;
		  }
	  }
}
void PetShop()
{
	int money[2][9][2]=
	{
		{
			0,0,
			15000,30000,
			22500,37500,
			39813,50839,
			46392,55683,
			49302,60839,
			57839,70093,
			68392,80039,
			15000000,38000000,
		},
		{
			0,0,
			15000,30000,
			22500,37500,
			39813,50839,
			46392,55683,
			49302,60839,
			57839,70093,
			68392,80039,
			15000000,38000000,
		}
	};
	int sm[2][9][2]=
	{
		{
			0,0,
			300,500,
			600,900,
			1100,1300,
			1300,1500,
			1500,1700,
			1700,2000,
			2000,2300,
			150000,350000,
		},
		{
			0,0,
			300,500,
			600,900,
			1100,1300,
			1300,1500,
			1500,1700,
			1700,2000,
			2000,2300,
			150000,350000,
		},
	};
	int gj[2][9][2]=
	{
		{
			0,0,
			5,15,
			15,25,
			25,35,
			35,45,
			45,55,
			55,60,
			60,70,
			500,2000,
		},
		{
			0,0,
			3,10,
			12,20,
			21,27,
			29,38,
			39,50,
			51,59,
			62,75,
			500,2000,
		},
	};
	int fy[2][9][2]=
	{
		{
			0,0,
			1,2,
			3,4,
			7,10,
			8,13,
			11,15,
			12,18,
			15,20,
			100,300,
		},
		{
			0,0,
			1,2,
			3,4,
			7,10,
			8,13,
			11,15,
			12,18,
			15,20,
			100,300,
		}
	};
	int a[2][9],b[2][9],c[2][9],d[2][9];
	cls();
	printf("欢迎光临宠物店\n");
	string dn[9]={"","OXE07","PEOX7","P1L08","EX73K","KM81D","EG1J3","A8P32","P92OE"};
	string cn[9]={"","L3S13","S8IOP","MV3CL","IEPEO","DLPE4","DLAE0","CLEP1","LA09D"};
	int i,j;
	for(i=0;i<2;i++)
	  for(j=1;j<=8;j++)
	    a[i][j]=random(sm[i][j][0],sm[i][j][1]);
	for(i=0;i<2;i++)
	  for(j=1;j<=8;j++)
	    b[i][j]=random(gj[i][j][0],gj[i][j][1]);
	for(i=0;i<2;i++)
	  for(j=1;j<=8;j++)
	    c[i][j]=random(fy[i][j][0],fy[i][j][1]);
	for(i=0;i<2;i++)
	  for(j=1;j<=8;j++)
	    d[i][j]=random(money[i][j][0],money[i][j][1]);
	printf("1.DOG\n");
	for(i=1;i<=8;i++)
	  printf("1%d.%s HP%d ATTACK%d RUN%d money%d\n",i,dn[i].c_str(),a[0][i],b[0][i],c[0][i],d[0][i]);
	printf("2.CAT\n");
	for(i=1;i<=8;i++)
	  printf("2%d.%s HP%d ATTACK%d RUN%d money%d\n",i,cn[i].c_str(),a[1][i],b[1][i],c[1][i],d[1][i]);
	int n,m,k;
	printf("请输入你想购买的编号,无需隔开\n");
	cin>>m;
	n=m/10;
	m%=10;
	if (things[7]>=d[n][m])
	   {
	   	string lxx[3]={"","DOG","CAT"};
	   	cout<<"购买成功!给它起个名吧!\n";
	   	++things[191];
	   	string WWW;
	   	cin>>WWW;
	   	pet[things[191]].name=WWW;
	   	pet[things[191]].hp=a[n][m];
	   	pet[things[191]].attack=b[n][m];
	   	pet[things[191]].run=c[n][m];
	   	pet[things[191]].LX=lxx[n];
	   	things[7]-=d[n][m];
	   	happened+=(name+"买了一只"+lxx[n]+",取名为"+WWW+"/");
	   	Write_File();
	   }
	else
	  cout<<"钱不够!";
}
/*
  帮派成员管理函数
  驱逐 dead(x,y)
  加入 join(x,y,imft) 
  生成 born(x)
*/ 
void dead(int x,int y)//帮派成员死亡或被驱逐(x为其所在帮派,y为编号)
{
	if (gang[x].leader>y)
	  gang[x].leader--;
	gang[x].pnum--;
	gang[x].peo[y].name=".";
	gang[x].peo[y].hp=0;
	gang[x].peo[y].attack=0;
	gang[x].peo[y].defence=0;
	for(int ii=y+1;ii<=gang[x].pnum+1;ii++)//名单前移 
	  gang[x].peo[ii-1].name=gang[x].peo[ii].name,gang[x].peo[ii-1].hp=gang[x].peo[ii].hp,gang[x].peo[ii-1].attack=gang[x].peo[ii].attack,gang[x].peo[ii-1].defence=gang[x].peo[ii].defence;
} 
void join(int x,int y,people imft/*imformation的缩写*/)//新成员加入帮派(x为其所在帮派,y为编号)
{
	gang[x].pnum++;
	y=gang[x].pnum;//双重保险 
	gang[x].peo[y].name=imft.name;
	gang[x].peo[y].hp=imft.hp;
	gang[x].peo[y].attack=imft.attack;
	gang[x].peo[y].defence=imft.defence;
} 
people born(int x)//生成一个新成员 
{
	people fx;
	fx.hp=random(1500,20000);
	fx.attack=random(650,4300);
	fx.defence=random(280,1230);
	fx.name=randstr(6,16);
	fx.gang=x;
	return fx;
}

void fac()
{
	cls();
	if (me.gang==0)
	  {
	  	printf("1.加入帮派\n2.创建帮派\n3.查看帮派情况\n4.退出");
	  	char l;
	  	int n,i,j,k;
	  	l=_getch();
	  	switch(l)
	  	  {
	  		case '1':
	  			{
	  				cls();
	  				printf("名称\t\t\t\t成员数量\t\t\t\t帮主\n");
	  				for(i=1;gang[i].pnum;i++)
	  				  printf("%s\t\t\t%2d\t\t\t\t%s\n",gang[i].name.c_str(),gang[i].pnum,gang[i].peo[gang[i].leader].name.c_str());
	  				printf("请输入你想加入的编号:");
	  				do
	  				{
					  cin>>j;
					if (gang[j].pnum>=50)
					  {
					  	printf("已满员");
					  } 
				    }
					while(gang[j].pnum>=50);
					printf("加入成功");
					gang[j].pnum++;
					me.gang=j;
					gang[j].peo[gang[j].pnum].name=name;
					gang[j].peo[gang[j].pnum].hp=things[2];
					gang[j].peo[gang[j].pnum].attack=things[5];
					gang[j].peo[gang[j].pnum].defence=things[6];
					cls();
					break;
				}
			case '2':
				{
					cls();
					printf("创建帮派需要:钱*5000000 等级>=100 确定创建?Y/N\n");
					l=_getch();
					if (l!='Y'&&l!='y')
					  break;
					if (things[7]<5000000||things[9]<=99)
					  {
					  	printf("钱或等级不够!");
					  	break; 
					  }
					things[7]-=5000000;
					printf("创建成功!");
					Sleep(800);
					cls(); 
					printf("给它起个名字吧:");
					cin>>gang[30].name;
					gang[30].leader=1;
					gang[30].peo[1].hp=things[2];
					gang[30].peo[1].attack=things[5];
					gang[30].peo[1].defence=things[6];
					gang[30].peo[1].name=name;
					gang[30].pnum=1;
					me.gang=30;
				}
			case '3':
				{
					j=1;
					while(1)
					{
					  system("cls");
					  printf("%d-----%s------ case a to the last. case d to the next. case q to quit\n",j,gang[j].name.c_str());
					  for(i=1;i<=gang[j].pnum;i++)
					    {
					    	if (gang[j].leader==i)
					    	  printf("★Leader\n");
					    	printf("%d:%s\thp:%d\tattack:%d\tdefence:%d\n--------------------\n",i,gang[j].peo[i].name.c_str(),gang[j].peo[i].hp,gang[j].peo[i].attack,gang[j].peo[i].defence);
						}
					  l=_getch();
					  if (l=='a'&&j>1)
					    j--;
					  if (l=='d'&&j<30)
					    j++;
					  if (l=='q')
					    break;
					}
				    break;
				}
			case '4':return;
		  }
	  }
	else
	  {
	  	while(1)
	  	{
	  	cls(); 
	  	bool imler=false;
	  	if (rand()%15==6&&gang[me.gang].peo[gang[me.gang].leader].name!=name)
	  	  {
	  	  	int ii;
	  	  	Sout("帮主"+gang[me.gang].peo[gang[me.gang].leader].name+"看你骨骼精奇天赋异禀,将帮主之位让与你。");
	  	  	for(ii=1;ii<=50;ii++)
	  	  	  if (gang[me.gang].peo[ii].name==name)
	  	  	    break;
	  	  	gang[me.gang].leader=ii;//每次变量都要打这么长,好烦啊... =.= 
		  }
	  	printf("1.查看帮派情况\n2.情报书\n3.退出/解散帮派\n");
	  	if (gang[me.gang].peo[gang[me.gang].leader].name==name)
	  	  imler=true;
	  	if (imler)
	  	  printf("4.帮派管理\n5.帮派战役\n6.管理申请");
	  	printf("7.离开\n");
	  	char l=_getch();
	  	cls();
	  	switch(l)
	  	  {
	  	  	case '1':
	  	  		{
					j=1;
					while(1)
					{
					  system("cls");
					  printf("%d-----%s------ case a to the last. case d to the next. case q to quit\n",j,gang[j].name.c_str());
					  for(i=1;i<=gang[j].pnum;i++)
					    {
					    	if (gang[j].leader==i)
					    	  printf("★Leader\n");
					    	printf("%d:%s\thp:%d\tattack:%d\tdefence:%d\n--------------------\n",i,gang[j].peo[i].name.c_str(),gang[j].peo[i].hp,gang[j].peo[i].attack,gang[j].peo[i].defence);
						}
					  l=_getch();
					  if (l=='a'&&j>1)
					    j--;
					  if (l=='d'&&j<30)
					    j++;
					  if (l=='q')
					    break;
					}
				    break;
				}
			case '2':
				{
			  	    int i;
	    		  	for(i=0;i<gangth.size();i++)
	    		  	  if (gangth[i]=='/')
	    		  	    cout<<"\n";
	    		  	  else
	    		  	    cout<<gangth[i];
	    		  	gs();
				  break;
				}
			case '3':
				{
					for(j=0;j<=gang[me.gang].pnum;j++)
					  if (gang[me.gang].peo[j].name==name)
					    break;
					gang[me.gang].pnum--;
					gang[me.gang].peo[j].name=".";
					gang[me.gang].peo[j].hp=0;
					gang[me.gang].peo[j].attack=0;
					gang[me.gang].peo[j].defence=0;
					me.gang=0;
					break;
				}
			case '4':
				{
					int k;
					if (imler==false)
					  break;
					for(i=1;i<=gang[me.gang].pnum;i++)
					    {
					    	if (gang[me.gang].leader==i)
					    	  printf("★Leader\n");
					    	printf("%d:%s\tHp:%d\tAtk:%d\tDfc:%d\n--------------------\n",i,gang[me.gang].peo[i].name.c_str(),gang[me.gang].peo[i].hp,gang[me.gang].peo[i].attack,gang[me.gang].peo[i].defence);
						}
					printf("请输入目标的编号:");
					cin>>j;
					if (j>gang[me.gang].pnum)
					  break;
					printf("请选择一个选项:\n1.驱逐 2.设为帮主 3.宰杀 4.取消操作\n");
					char x=_getch();
					for(k=0;k<=gang[me.gang].pnum;k++)
					  if (gang[me.gang].peo[k].name==name)
					   	break;
					switch(x)
					  {
					  	case '1':
					  		{
							  gangth+=gang[me.gang].name+"的"+gang[me.gang].peo[j].name+"被驱逐了/";
					  		  if (j==k)
					  		    {
					  		  	  Sout("你把自己赶出了帮派。");
								  dead(me.gang,j);
								  me.gang=0; 
								  break;
							    }
							   dead(me.gang,j);
							   break;
						    }
						case '2':
							{
								gangth+=gang[me.gang].name+"的"+gang[i].peo[j].name+"被立为帮主/";
								gang[me.gang].leader=j;
								break;
							}
						case '3':
							{
								gangth+=gang[me.gang].name+"的"+gang[i].peo[j].name+"被杀了/";
								things[307]++;
								hdcj(63);
								if (things[307]>=10)
								  hdcj(64);
								if (j==k)
					  		      {
					  		  	    Sout("你把自己杀了。");
								    gang[me.gang].pnum--;
								    gang[me.gang].peo[j].name=".";
								    gang[me.gang].peo[j].hp=0;
								    gang[me.gang].peo[j].attack=0;
								    gang[me.gang].peo[j].defence=0;
								    me.gang=0;//众所周知,死人不能加入帮派 
								    Die();
								    break;
							      }
							    system("color 4f");
							    Sout(gang[me.gang].peo[j].name);
								Sout("被你杀了。");
								dead(me.gang,j);
								cls();
								break;
							}
						case '4':break;
					  }
					break;
				}
				case '5':
					{
						if (imler==false)
						  break;
						bool flag=0;//判断是我方发起还是对方发起 
						if (rand()%6==3)
						  flag=1;
						if (flag)
						{
						  do j=random(1,49); while(j!=me.gang);
						Sout(gang[j].name+"向你发起了帮派战役,是否接受(Y/N)\n");
						char l=_getch();
						if (l=='N'||l=='n')
						  {
						  	gangth+=gang[me.gang].name+"拒绝了"+gang[j].name+"发起的战斗,损失惨重/";
						  	Sout("你没有接受,因此损失了");
						  	int lost=random(2335,50000);
						  	printf("%d",lost);
						  	Sout("元钱\n");
						  	things[7]-=lost;
						  	gs();
						  	break;
						  }
						  }
						if (!flag)
						  {
							printf("Num\t\tName\t\tLeader\n");
							for(i=0;i<=49;i++)
						  	  printf("%d\t\t%s\t\t%s\n",i,gang[i].name.c_str(),gang[i].peo[gang[i].leader].name.c_str());
							printf("Enter which one do you want to fight with______↙(number)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
							cin>>j;
							if (j==me.gang)
						  	  {
						  		printf("You can't fight with yourself...");
						  		Sleep(1000);
						  		break;
						 	   }
							printf("Are you sure to fight with %s?(Y/N)\n",gang[j].name.c_str());
							l=_getch();
							if (l=='N'||l=='n')
						 	   break;
						 }
						while(1)
						  {
							cls();
							printf("Num\t\tName\t\tatk\t\thp\t\tdfc\n");
							for(i=1;i<=gang[me.gang].pnum;i++)
						  	  printf("%3d\t\t%s\t\t%d\t\t%d\t\t%d\t\t%d\n",i,gang[me.gang].peo[i].name.c_str(), gang[me.gang].peo[i].attack, gang[me.gang].peo[i].hp, gang[me.gang].peo[i].defence);
							printf("Please choose one to fight with your enemy:(enter -1 to quit)");
							int us,enemy;
							cin>>us;
							if (us==-1)
							  break;
							enemy=random(1,gang[j].pnum);
							cls();
							printf("%s VS %s\n",gang[me.gang].peo[us].name.c_str(),gang[j].peo[enemy].name.c_str());
							people a=gang[me.gang].peo[us];
							people b=gang[j].peo[enemy];
							int round=0;
							while(a.hp>0&&b.hp>0)
							  {
							  	Sout("Round ");
							  	printf("%d\n",++round);
							  	int sh;
							  	sh=max(int(a.attack*random(8,12)/10.0-b.defence*random(8,12)/10.0),1);//打出负数就回血了,所以至少造成1点伤害, 
							  	Sout(a.name);													 //攻击和防御随机取0.8~1.2倍好玩一些 
							  	Sout("发起了攻击,对");
							  	Sout(b.name);
							  	Sout("造成了");
							  	cout<<sh;
							  	Sout("点伤害。\n");//以上这些可以合并 
							  	b.hp-=sh;
							  	sh=max(int(b.attack*random(8,12)/10.0-a.defence*random(8,12)/10.0),1);
							  	Sout(b.name);
							  	Sout("发起了攻击,对");
							  	Sout(a.name);
							  	Sout("造成了");
							  	cout<<sh;
							  	Sout("点伤害。\n");
							  	a.hp-=sh;
							  }
							Sout("战斗结束。");
							gang[me.gang].peo[us]=a;
							gang[j].peo[enemy]=b;
							if (a.hp<=0)
							  {
							  	gangth+=gang[me.gang].peo[us].name+"在帮派战役中被"+gang[j].name+"的"+gang[j].peo[enemy].name+"杀死了/";

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值