问题标题: 酷町堂:战神对决·周年庆

1
1
已解决
朱优扬
朱优扬
中级天翼
中级天翼

上代码:

#include <iostream>
#include <windows.h>
#include <fstream>
#include <conio.h>
#include <string>
#include <time.h>
#include <cstdio>
#define MAX 42
#define do 495
using namespace std;
long long dj,d_j=20;
string cz;
int nkkg;
int yzcnt,ytcnt,ywcnt;
bool cj1=false,cj2=false,cj3=false,cj4=false,cj5=false;
bool cj12,cj13,cj22,cj23,cj32,cj33,cj42,cj43,cj52,cj53;
bool zzzj=false,zzzzj=false;
int cntjm,cntjt,cntjj,cntjz,cntjl,cntwjzj,cntch,cntchb;
int cnt,wzjdlcnt,znqcnt,cntj,cntcnt,cnt1,guaixuet,gxts,guaixue,gxs;
int cntqq,cntmt,cnttk,cntjk,cntzs,cntlb;
int yingcang,yingcang1;
int maxnz=1,minnz=9,maxn=14,minn=1,minn1=1,maxn1=3,minnyc=1,maxnyc=10;
int ans,ans2,ansycdt,ansjy;
bool xw=false,xm=false,yx=false,yt=false,hs=false,hw=false;
bool c1p1=false,c1p2=false,c5p1=false,c5p2=false,c6p1=false,c6p2=false;
string c61,c62,c63,c64,c65,c66,c67;
string zuihouyigestring;
string mmppcc;

bool mw_znq=false,zmw_znq=false;

bool zc1=false,zc2=false,zc3=false,zc4=false,zc5=false,zc6=false,zc7=false;
bool c1=false,c2=false,c3=false,c4=false,c5=false,c6=false,c7=false;
bool b1=false,b2=false,b3=false,b4=false;
bool xcc=1,xcc1=1,xcc2=1,xcc3=1;
int wx=70;
int kg=2,kg1=2,kg2=2,kg3=2;
char yidong,yidong1,yidong2,yidong3;
long long jinbi=200;
char a,b; 
bool bluebananaz=false;
bool lhz=false,hxt=false,bst=false,lhx=false;
bool zlhz=false,zhxt=false,zbst=false,zlhx=false;
string fq;
char rt;
void mnb(){
	freopen("(zsdj)旧存档.txt","w",stdout);
	cout<<jinbi<<" "<<dj<<endl;
	if(c1==true)
		cout<<c61<<" ";
	else
		cout<<"n ";
	if(c2==true)
		cout<<c62<<" ";
	else if(c2==false)
		cout<<"n ";
	if(c3==true)
		cout<<c63<<" ";
	else if(c3==false)
		cout<<"n ";
	if(c4==true)
		cout<<c64<<" ";
	else if(c4==false)
		cout<<"n ";
	if(c5==true)
		cout<<c65<<" ";
	else if(c5==false)
		cout<<"n ";
	if(c6==true)
		cout<<c66<<" ";
	else if(c6==false)
		cout<<"n ";
	if(c7==true)
		cout<<c67<<" ";
	else if(c7==false)
		cout<<"n ";
	if(zzzj==true)
		cout<<"H.最终之剑"<<" ";
	else if(zzzj==false)
		cout<<"n ";
	if(mw_znq==true)
		cout<<"I.魔王-周年庆拔刀剑"<<" ";
	else if(mw_znq==false)
		cout<<"n ";
	
	cout<<endl;
	
	if(lhz==true)
		cout<<"灵魂治疗器 ";
	else if(lhz!=true)
		cout<<"n ";
	if(hxt==true)
		cout<<"回血图腾 ";
	else if(hxt!=true)
		cout<<"n ";
	if(lhx==true)
		cout<<"灵魂回血器 "; 
	else if(lhx==false)
		cout<<"n ";
	if(bst==true)
		cout<<"不死图腾 ";
	else if(bst!=true)
		cout<<"n ";
	
	cout<<endl;
	
	if(c1p1==true)
		cout<<"Y ";
	else if(c1p1!=true)
		cout<<"N ";
	if(c1p2==true)
		cout<<"Y ";
	else if(c1p2!=true)
		cout<<"N "; 
	if(c5p1==true)
		cout<<"Y ";
	else if(c5p1==false)
		cout<<"N ";
	if(c5p2==true)
		cout<<"Y ";
	else if(c5p2==false)
		cout<<"N ";
	if(c6p1==true)
		cout<<"Y ";
	else if(c6p1!=true)
		cout<<"N ";
	if(c6p2==true)
		cout<<"Y";
	else if(c6p2==false)
		cout<<"N";
	
	cout<<endl; 
	
	cout<<cnt<<" "<<cnt1<<" "<<wzjdlcnt<<" "<<znqcnt<<" "<<cntjm<<" "<<cntjt<<" "<<cntjj<<" "<<cntjz<<" "<<cntjl<<" "<<cntwjzj<<" "<<cntch<<" "<<cntchb;
	fclose(stdout);
}
void mnb1(){
	string scd;
	ifstream fin("(zsdj)旧存档.txt");
	fin>>jinbi;
	fin>>dj;
	for(int i=1;i<=8;i++){
		fin>>scd;
		if(scd=="n"){
			switch(i){
				case 9:mw_znq=false;break;
				case 8:zzzj=false;break;
				case 7:c7=false;break;
				case 6:c6=false;break;
				case 5:c5=false;break;
				case 4:c4=false;break;
				case 3:c3=false;break;
				case 2:c2=false;break;
				case 1:c1=false;break;
			}
		}
		else{
			switch(i){
				case 9:mw_znq=true;break;
				case 8:zzzj=true;break;
				case 7:c7=true;c67="G.镐";break;
				case 6:c6=true;c66="F.寒霜獠牙";break;
				case 5:c5=true;c65="E.月神匕首";break;
				case 4:c4=true;c64="D.龙爪";break;
				case 3:c3=true;c63="C.雷霆之锤";break;
				case 2:c2=true;c62="B.阔剑";break;
				case 1:c1=true;c61="A.笑到最后";break;
			}
		}
	}
	for(int i=1;i<=4;i++){
		fin>>scd;
		if(scd=="n"){
			switch(i){
				case 4:bst=false;break;
				case 3:lhx=false;break;
				case 2:hxt=false;break;
				case 1:lhz=false;break;
			}
		}
		else{
			switch(i){
				case 4:bst=true;break;
				case 3:lhx=true;break;
				case 2:hxt=true;break;
				case 1:lhz=true;break;
			}
		}
	} 
	for(int i=1;i<=7;i++){
		fin>>scd;
		if(scd=="Y"){
			switch(i-1){
				case 6:c6p2=true;break;
				case 5:c6p1=true;break;
				case 4:c5p2=true;break;
				case 3:c5p1=true;break;
				case 2:c1p2=true;break;
				case 1:c1p1=true;break;
			}
		}
	}
	fin>>cnt>>cnt1>>wzjdlcnt>>znqcnt;
	fin>>cntjm>>cntjt>>cntjj>>cntjz>>cntjl>>cntwjzj>>cntch>>cntchb;
	fin.close();
}
void maoxian(){
	system("cls"); 
	cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
	system("pause");
	cnt++;
	nkkg=10;
			cntcnt=0;
			guaixue=(cnt-1)*10+30;
			gxs=(cnt-1)*10+30;
			kg=2;
			wx=70;
				while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg-=1;
					}
					else if(yidong=='d'){
						kg+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑"<<"     ";
						} 
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						yzcnt++;
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixue<=0){
						cout<<"\n你赢了!";
						jinbi+=60;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					
					cout<<"战神("<<guaixue<<"/"<<gxs<<")";
					
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixue-=30;
								wx-=2;
							} 
							else if(xm==true){
								guaixue-=50;
								wx-=2;
							} 
							else{ 
								guaixue-=15;
								wx-=2;
							}
						} 
						else if(zc2==true){
							guaixue-=12;
							wx-=3;
						}
						else if(zc3==true){
							guaixue-=8;
							wx-=5;
						}
						else if(zc4==true){
							guaixue-=12;
							wx-=3;
						}
						else if(zc5==true){
							if(yx==true){
								guaixue-=30;
								wx-=2;
							}
							else if(yt==true){
								guaixue-=47;
								wx-=2;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixue-=14;
									wx-=2;
								}
								else{
									guaixue-=17;
									wx-=2;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixue-=39;
								wx-=2;
							}
							else if(hw==true){
								guaixue-=28;
								wx-=2;
							}
							else{ 
								guaixue-=16;
								wx-=2;
							}
						}
						else if(zc7==true){
							guaixue-=7;
							wx-=5;
						}
						else if(zzzzj==true){
							guaixue-=6666666666666666666;
							wx-=1;
						}
						else if(zmw_znq==true){
							guaixue-=392038947527384758;
							wx-=1;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true)
							wx+=20;
						else if(zhxt==true)
							wx+=18;
						else if(zlhx==true)
							wx+=24;
						else if(bst==true)
							wx+=35;
					}
				}
				return;
}
void out(string x){
	cout<<x;
	return;
}
int main(){
	system("title 战神对决"); 
	int fqans;
	system("cls");
	for(int i=1;i<=9;i++)
		cout<<"\t";
	cout<<"游戏加载中\n";
	for(int i=1;i<=MAX;i++){
		cout<<"----";
		Sleep(100); 
	}
	Sleep(500);
	system("cls");
	cout<<"欢迎来到战神对决";
	Sleep(1500);
	system("cls");
	cout<<"A.存档	B.创建世界";
	rt=getch(); 
	if(rt=='A')
		mnb1(); 
	while(1){ 
	system("cls");
	system("COLOR 07");
	cout<<"A.冒险模式    B.武器抽奖    C.法器抽奖    D.商店    E.仓库    F.休闲模式";
	cout<<"    G.剧情    H.工作台    I.MC名言    J.周年庆模式    K.周年庆活动    L.保存并退出";
	a=getch();
	if(a=='A')
		maoxian();	
	else if(a=='B'){
		while(1){ 
				system("cls");
				cerr<<"20金币一次\n";
				cerr<<"你有";
				cerr<<jinbi;
				char choujiang; 
				cerr<<"个金币\n\n按H抽奖";
				choujiang=getch();
				if(choujiang=='H'){
					if(jinbi>=20){
						system("cls"); 
						srand((int)time(NULL));
						ans=minn+rand()%(maxn-minn+1);
						if(ans==1){	
							cout<<"你抽到了 笑到最后 ";
							c61="A.笑到最后";
							c1=true;
							Sleep(2000);
							jinbi-=20;
							break; 
						}
						else if(ans>=2&&ans<=3){
							cout<<"你抽到了阔剑";
							c62="B.阔剑";
							c2=true; 
							Sleep(2000);
							jinbi-=20;
							break; 
						} 
						else if(ans>=6&&ans<=8){
							cout<<"你抽到了雷霆之锤";
							c63="C.雷霆之锤";
							c3=true;
							Sleep(2000);
							jinbi-=20;
							break; 
						} 
							else if(ans==4||ans==5){
								cout<<"你抽到了龙爪";
								c64="D.龙爪";
								c4=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
							else if(ans==9){
								cout<<"你抽到了 月神匕首 ";
								c65="E.月神匕首";
								c5=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
							else if(ans==10){
								cout<<"你抽到了 寒霜獠牙 ";
								c66="F.寒霜獠牙";
								c6=true;
								Sleep(2000);
								jinbi-=20;
								break;
							} 
							else{
							cout<<"你抽到了镐";
								c67="G.镐";
								c7=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
						}
						else{
							system("cls"); 
							cout<<"金币不足!";
							Sleep(1000);
							break; 
						}
					}
				}
	}
	else if(a=='C'){
		while(1){ 
		char fqc;
		system("cls");
		cout<<"50金币一次\n"; 
		cout<<"按H进行法器抽奖"; 
		srand((int)time(NULL));
		fqans=1+rand()%4;
		fqc=getch();
		if(jinbi>=30){ 
		if(fqans==1){
			system("cls");
			cout<<"你抽到了 灵魂治疗器 ";
			Sleep(1000); 
			jinbi-=30;
			lhz=true;
			break; 
		}
		else if(fqans==2){
			system("cls");
			cout<<"你抽到了 回血图腾 ";
			Sleep(1000); 
			jinbi-=30;
			hxt=true; 
			break; 
		}
		else if(fqans==3){
			system("cls");
			cout<<"你抽到了	灵魂回血器 ";
			Sleep(1000); 
			lhx=true;
			jinbi-=30; 
			break; 
		}
		else{
			system("cls");
			cout<<"你抽到了 不死图腾 ";
			Sleep(1000); 
			jinbi-=30;
			bst=true; 
			break; 
		}
		}
		else{
			system("cls");
			cout<<"金币不足!"; 
			Sleep(1000); 
			break; 
		}
		} 
	} 
	else if(a=='D'){
		system("cls");
				char pifu; 
				while(1){ 
					cout<<"A.笑到最后--五爪金龙(150金币)        B.笑到最后--梦幻火箭(160金币)        C.月神匕首--生命誓言(80金币)        D.月神匕首--特工banana(110金币)       \nE.寒霜獠牙--时之沙漏(120金币)        F.寒霜獠牙--百万伏特(90金币)        ";
					cout<<"G.附魔金苹果(40金币)        H.煤炭块(1金币)        I.铁块(2金币)        \nJ.金块(3金币)        K.钻石块(4金币)        L.绿宝石块(5金币)        M.退出";
					pifu=getch();
					if(pifu=='A'){
						if(jinbi>=150&&c1==true){
							system("cls"); 
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=150;
							c1p1=true; 
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='B'){
						if(jinbi>=160&&c1==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000);
							jinbi-=160; 
							c1p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000);
							break; 
						}
					}
					else if(pifu=='C'){
						if(jinbi>=80&&c5==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=80;
							c5p1=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='D'){
						if(jinbi>=110&&c5==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=110;
							c5p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='E'){
						if(jinbi>=120&&c6==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=120;
							c6p1=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='F'){
						if(jinbi>=90&&c6==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=90;
							c6p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='G'){
						if(jinbi>=50){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=50;
							cntj++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}	
					}
					else if(pifu=='H'){
						if(jinbi>=1){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=1;
							cntmt++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='I'){
						if(jinbi>=2){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=2;
							cnttk++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='J'){
						if(jinbi>=3){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=3;
							cntjk++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='K'){
						if(jinbi>=4){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=4;
							cntzs++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='L'){
						if(jinbi>=5){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=5;
							cntlb++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else
						break;
				}
	}
	else if(a=='E'){
		while(1){ 
					system("cls"); 
					if(c1p1==true){
						cout<<"A.笑到最后--五爪金龙    ";
					}
					if(c1p2==true){
						cout<<"B.笑到最后--梦幻火箭    ";																																																																																																																																																																																																																																			
					} 
					if(c5p1==true){
						cout<<"C.月神匕首--生命誓言    ";
					}
					if(c5p2==true){ 
						cout<<"D.月神匕首--特工banana    ";
					}
					if(c6p1==true){
						cout<<"E.寒霜獠牙--时之沙漏    ";
					}
					if(c6p2==true){
						cout<<"F.寒霜獠牙--百万伏特    ";
					}
				zuihouyigestring=getch();
				if(zuihouyigestring=="A"){
					if(c1p1==true){ 
						cout<<"已装备";
						Sleep(1000); 
						xw=true;
						xm=false;
						yx=false;
						yt=false;			
						hs=false;
						hw=false;
						break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					}
				}
				else if(zuihouyigestring=="B"){
					if(c1p2==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=true;
					yx=false;
					yt=false;
					hs=false;
					hw=false; 
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="C"){
					if(c5p1==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=true;
					yt=false;
					hs=false;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="D"){
					if(c5p2==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=false;
					yt=true;
					hs=false;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="E"){
					if(c6p1==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=false;
					yt=false;
					hs=true;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="F"){
					if(c6p2==true){ 
						cout<<"已装备";
						Sleep(1000); 
						xw=false;
						xm=false;
						yx=false;
						yt=false;
						hs=false;
						hw=true;
						break;
					}
					else{
						cerr<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else
					break;
	}
	}
	else if(a=='F'){
		while(true){ 
		system("COLOR 07");
		system("cls"); 
		cout<<"A.泰坦(挑战)		B.谁是小偷		C.王者基多拉(挑战)		D.怪物大乱斗		E.退出";
		b=getch(); 
		if(b=='A'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			cnt1++;
			cntcnt=0;
			nkkg=10; 
			guaixuet=(cnt1-1)*5+100;
			gxts=(cnt1-1)*5+100;
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						ytcnt++;
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						cout<<"\n你赢了!";
						cntj+=5;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"泰坦("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=30;
								wx-=2;
							} 
							else if(xm==true){
								guaixuet-=50;
								wx-=2;
							} 
							else{ 
								guaixuet-=15;
								wx-=2;
							}
						} 
						else if(zc2==true){
							guaixuet-=12;
							wx-=3;
						}
						else if(zc3==true){
							guaixuet-=8;
							wx-=5;
						}
						else if(zc4==true){
							guaixuet-=12;
							wx-=3;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=30;
								wx-=2;
							}
							else if(yt==true){
								guaixuet-=47;
								wx-=2;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=14;
									wx-=2;
								}
								else{
									guaixuet-=17;
									wx-=2;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=39;
								wx-=2;
							}
							else if(hw==true){
								guaixuet-=28;
								wx-=2;
							}
							else{ 
								guaixuet-=16;
								wx-=2;
							}
						}
						else if(zc7==true){
							guaixuet-=7;
							wx-=5;
						}
						else if(zzzzj==true){
							guaixuet-=66666666;
							wx-=1;
						}
						
						else if(zmw_znq==true){
							guaixuet-=3920389;
							wx-=2;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑"<<"      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true)
							wx+=20;
						else if(zhxt==true)
							wx+=18;
						else if(zlhx==true)
							wx+=24;
						else if(bst==true)
							wx+=35;
					}
				} 
		}
		else if(b=='B'){
			system("cls");
			int ansh,ansl;
			srand((int)time(NULL));
			ansh=1+rand()%(7);
			srand((int)time(NULL));
			ansl=1+rand()%(38);
			cout<<" \t\t\t\t\t\t1  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 38\n";
			for(int i=1;i<=7;i++){
			cout<<i;
			cout<<"\t\t\t\t\t\t";
			for(int j=1;j<=38;j++){
				if(ansh==i&&ansl==j){
					cout<<'y'<<"  ";
					continue;
				}
				cout<<"x"<<"  ";
			}
			cout<<endl;
			}
			int th,tl; 
			cout<<"请输入小偷的横列:";
			cin>>th>>tl;
			if(th==ansh&&tl==ansl){
				cout<<"找对了!";
				Sleep(1000);
				cntj+=5; 
			}
			else{
				cout<<"找错了!";
				Sleep(1000); 
			}
		} 
		else if(b=='C'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			nkkg=10;
			wzjdlcnt++;
			srand((int)time(NULL));
			ansjy=1+rand()%10;
			if(ansjy==1){ 
				guaixuet=30000+(wzjdlcnt-1)*50;
				gxts=30000+(wzjdlcnt-1)*50;
			}
			else{ 
				guaixuet=9000+(wzjdlcnt-1)*99;
				gxts=9000+(wzjdlcnt-1)*99;
			}
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						ywcnt++;
						cout<<"\n你赢了,金币增加6w,金苹果增加1w";
						cntj+=10000;
						jinbi+=60000;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"王者基多拉("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=5000;
							wx-=2;
						}
						
						else if(zmw_znq==true){
							guaixuet-=3920;
							wx-=3;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				} 
		}
		else if(b=='D'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			nkkg=10;
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				guaixuet=5500;
				gxts=5500; 
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"恐惧魔王("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=3000;
							wx-=10;
						}
						
						else if(zmw_znq==true){
							guaixuet-=3920;
							wx-=17;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=7000;
				gxts=7000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"NULL("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=3000;
							wx-=10;
						}
						
						else if(zmw_znq==true){
							guaixuet-=3959;
							wx-=13;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=9000;
				gxts=9000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"死灵骑士("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=2500;
							wx-=12;
						}
						
						else if(zmw_znq==true){
							guaixuet-=3000;
							wx-=14;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=10000;
				gxts=10000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"303("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=1000;
							wx-=10;
						}
						else if(zmw_znq==true){
							guaixue-=2092;
							wx-=11;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=40000;
				gxts=40000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						cout<<"\n你赢了!";
						jinbi+=1000000;
						Sleep(1000);
						break;
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"Him("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=1000;
							wx-=10;
						}
						
						else if(zmw_znq==true){
							guaixue-=946;
							wx-=9;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
		} 
		else{
			break;
		}
		}
	}
	else if(a=='G'){
		system("cls");
		cout<<"One day,some pirate came to you village.\n";
		Sleep(2500);
		cout<<"They hold you villages family kill it.\n";
		Sleep(2500);
		cout<<"You village was choose the hero revenge.\n";
		Sleep(2500);
		cout<<"This people maybe is someone else \n";
		Sleep(2500);
		cout<<"maybe he/she is……";
		Sleep(2500);
		cout<<"you\n";
		Sleep(2500);
		Sleep(500);
		system("cls");
		for(int i=1;i<=22;i++){
			cout<<'\n';
		}
		for(int i=1;i<=9;i++){
			cout<<'\t';
		}
		cout<<"战神对决\n";
		for(int i=1;i<=3;i++){
			if(i==1){ 
				system("COLOR a6");Sleep(500);
				system("COLOR d2");Sleep(500);
			}
			else if(i==2){
				system("COLOR 35");Sleep(500);
				system("COLOR b7");Sleep(500);
			}
			else{
				system("COLOR e4");Sleep(500);
				system("COLOR f9");Sleep(500);
			}
		} 
		Beep(do,2000);
		Sleep(2000);	
	} 
	else if(a=='H'){
		string cdcf; 
		char ssss; 
		system("cls");
		cout<<"|---------------------------------|\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|---------------------------------|               |-----------|\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|          |          |           |     =====     |           |\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|---------------------------------|               |-----------|\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|---------------------------------|\n";
		cout<<"你要做什么? A.开始做	B.查询合成表"; 
		ssss=getch();
		if(ssss=='A'){
		cin>>cdcf;
		if(cdcf=="奇点-煤"){
			if(cntmt>=1000){
				cntmt-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjm++; 
			}
			else{
				system("cls");
				cout<<"煤炭块少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="奇点-铁"){
			if(cnttk>=1000){
				cnttk-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjt++; 
			}
			else{
				system("cls");
				cout<<"铁块少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="奇点-金"){
			if(cntjk>=1000){
				cntjk-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjj++; 
			}
			else{
				system("cls");
				cout<<"金块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="奇点-钻石"){
			if(cntzs>=1000){
				cntzs-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjz++; 
			}
			else{
				system("cls");
				cout<<"钻石块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="奇点-绿宝石"){
			if(cntlb>=1000){
				cntlb-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjl++; 
			}
			else{
				system("cls");
				cout<<"绿宝石块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="无尽催化剂"){
			if(cntjm>=1&&cntjt>=1&&cntjj>=1&&cntjz>=1&&cntjl>=1){
				cntjm-=1;
				cntjt-=1;
				cntjj-=1;
				cntjz-=1;
				cntjl-=1;
				cntch++;
				cout<<"成功!"; 
				Sleep(1000);
			} 
			else{ 
				cout<<"奇点少了!";
				Sleep(1000); 
			}
		} 
		else if(cdcf=="无尽催化剂棒"){
			if(cntch>=2){
				cntch-=2;
				cntchb++;
				cout<<"成功";
				Sleep(1000); 
			}
			else{
				cout<<"无尽催化剂少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="寰宇支配之剑"){
			if(cntch>=2&&cntchb>=1){
				cntwjzj++;
				cntch-=2;
				cntchb-=1;
				cout<<"成功(这把剑暂时无法战斗)";
				Sleep(2000);
			}
			else{
				cout<<"物资少了";
				Sleep(1000); 
			}
		}
		else if(cdcf=="最终之剑"){
			if(cntwjzj>=5){
				cntwjzj-=5;
				zzzj=true;
				cout<<"成功";
				Sleep(2000); 
			} 
			else{
				cout<<"寰宇支配之剑少了";
				Sleep(1000); 
			}
		}
		else{
			continue;
		}
	}
	else{
		char why; 
		system("cls"); 
		cout<<"A.奇点	B.无尽催化剂	C.无尽催化剂棒	D.寰宇支配之剑	E.最终之剑";
		why=getch();
		if(why=='A'){
			system("cls");
			cout<<"不同奇点需要不同矿物块1000块合成";
			system("pause");
		}
		else if(why=='B'){
			system("cls");
			cout<<"无尽催化剂需要所有奇点各一个进行合成";
			system("pause");	
		} 
		else if(why=='C'){
			system("cls");
			cout<<"无尽催化剂棒需要两个无尽催化剂合成";
			system("pause");	
		} 
		else if(why=='D'){
			system("cls");
			cout<<"寰宇支配之剑需要无尽催化剂棒+无尽催化剂*2";
			system("pause");	
		} 
		else if(why=='E'){
			system("cls");
			cout<<"最终之剑需要寰宇支配之剑*5";
			system("pause");
		} 
	}
	}
	else if(a=='I'){
		system("cls");
		char sss;
		cout<<"A.打败战神1次可查看\n";
		cout<<"B.打败战神10次可查看\n";
		cout<<"C.打败泰坦1次可查看\n";
		cout<<"D.打败泰坦10次可查看\n";
		cout<<"E.打败王者基多拉1次可查看\n";
		cout<<"F.打败王者基多拉3次可查看\n";
		sss=getch();
		//不可以看代码!滚回去 
		if(sss=='A'&&yzcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
			cout<<"你的傲慢终会使你失败\n			--溺尸王\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='B'&&yzcnt>=10){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
			cout<<"即使倒下,也不会认输\n			--史蒂夫\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='C'&&ytcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN);
			cout<<"我相信正义永远不败\n		  --史蒂夫\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='D'&&ytcnt>=10){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_BLUE);
			cout<<"友谊的力量你无法想象\n		  --爱丽克斯\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='E'&&ywcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
			cout<<"所有的快乐都是建立在别人的痛苦之上\n						--恐惧魔王\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='F'&&ywcnt>=3){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
			cout<<"我们当中,最伟大的,偏偏是仆人\n						--芥末\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
	} 
	else if(a=='J'){
		system("cls"); 
		cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
		system("pause");
		znqcnt++;
		nkkg=10;
			cntcnt=0;
			guaixue=(znqcnt-1)*100+50;
			gxs=(znqcnt-1)*100+50;
			kg=2;
			wx=70;
				while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg-=1;
					}
					else if(yidong=='d'){
						kg+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑"<<"     ";
						} 
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						yzcnt++;
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixue<=0){
						cout<<"\n你赢了!";
						jinbi+=60;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					
					cout<<"幻兽 - 魔王「周年庆」("<<guaixue<<"/"<<gxs<<")";
					
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixue-=10;
								wx-=4;
							} 
							else if(xm==true){
								guaixue-=20;
								wx-=5;
							} 
							else{ 
								guaixue-=8;
								wx-=5;
							}
						} 
						else if(zc2==true){
							guaixue-=10;
							wx-=5;
						}
						else if(zc3==true){
							guaixue-=5;
							wx-=5;
						}
						else if(zc4==true){
							guaixue-=8;
							wx-=5;
						}
						else if(zc5==true){
							if(yx==true){
								guaixue-=19;
								wx-=5;
							}
							else if(yt==true){
								guaixue-=36;
								wx-=5;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixue-=10;
									wx-=5;
								}
								else{
									guaixue-=13;
									wx-=4;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixue-=28;
								wx-=5;
							}
							else if(hw==true){
								guaixue-=19;
								wx-=5;
							}
							else{ 
								guaixue-=13;
								wx-=5;
							}
						}
						else if(zc7==true){
							guaixue-=3;
							wx-=10;
						}
						else if(zzzzj==true){
							guaixue-=6666666;
							wx-=2;
						}
						else if(zmw_znq==true){
							guaixue-=3920389;
							wx-=2;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						if(mw_znq==true){
							cout<<"I.魔王-周年庆拔刀剑"<<"     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
							zmw_znq=false;
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zmw_znq=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							mw_znq=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							zmw_znq=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z9"&&mw_znq==true){
							cout<<"已装备"; 
							zmw_znq=true;
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						}
					}	
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"&&lhz==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"&&hxt==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"&&lhx==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"&&bst==true){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true)
							wx+=20;
						else if(zhxt==true)
							wx+=18;
						else if(zlhx==true)
							wx+=24;
						else if(bst==true)
							wx+=35;
					}
				}
	} 
	else if(a=='K'){
		system("cls");
		cout<<d_j<<"点券一次,您当前有:"<<dj<<"个点券。\n\n";
		cout<<"按S抽奖\n\n";
		cout<<"__________________________________\n";
		cout<<"|魔王-周年庆拔刀剑|300金币|30点券|\n";
		cout<<"|     500点券     |200金币|10点券|\n";
		cout<<"|     300点券     |20点券 |50金币|\n";
		cout<<"|     100点券     |10点券 |20金币|\n";
		cout<<"|     300金币     |5点券  |10金币|\n"; 
		cout<<"__________________________________\n";
		char crhd_znq_cj=getch();
		if(crhd_znq_cj=='S'){
			if(dj<d_j){
				system("cls");
				cout<<"点券不足\n";
				cout<<"10金币=1点券,A.兑换 B.不兑换";
				char dl666=getch();
				if(dl666=='A'){
					system("cls");
					cout<<"个数:";
					int djdhgs;
					cin>>djdhgs;
					if(jinbi>=djdhgs*10){
						jinbi-=djdhgs*10;
						system("cls");
						cout<<"兑换成功";
						Sleep(1000);
						dj+=djdhgs;
					}
					else{
						system("cls");
						cout<<"金币不足";
						Sleep(1000);
					}
				} 
			}
			else{
				int cjans;
				srand((int)time(NULL));
				cjans=1+rand()%15;
				system("cls"); 
				dj-=d_j;
				if(cjans==1){
					cjans=1+rand()%2;
					if(cjans==1){
						cout<<"你抽到了 魔王-周年庆拔刀剑 ";
						Sleep(1000);
						mw_znq=true;
						dj+=d_j/2;
					}
					else{
						cout<<"你抽到了 600点券 ";
						Sleep(1000);
						dj+=600; 
					}
				} 
				else if(cjans==2){
					cout<<"你抽到了 300金币 ";
					Sleep(1000);
					jinbi+=300;	
				} 
				else if(cjans==3){
					cout<<"你抽到了 30点券 ";
					Sleep(1000);
					dj+=30;	
				}
				else if(cjans==4){
					cout<<"你抽到了 500点券 ";
					Sleep(1000);
					dj+=500;	
				}
				else if(cjans==5){
					cout<<"你抽到了 200金币 ";
					Sleep(1000);
					jinbi+=200;	
				} 
				else if(cjans==6){
					cout<<"你抽到了 10点券 ";
					Sleep(1000);
					dj+=10;	
				}
				else if(cjans==7){
					cout<<"你抽到了 300点券 ";
					Sleep(1000);
					dj+=300;	
				} 
				else if(cjans==8){
					cout<<"你抽到了 20点券 ";
					Sleep(1000);
					dj+=300;	
				} 
				else if(cjans==9){
					cout<<"你抽到了 50金币 ";
					Sleep(1000);
					jinbi+=50;	
				}
				else if(cjans==10){
					cout<<"你抽到了 100金币 ";
					Sleep(1000);
					jinbi+=100;	
				}
				else if(cjans==11){
					cout<<"你抽到了 10点券 ";
					Sleep(1000);
					dj+=10;	
				} 
				else if(cjans==12){
					cout<<"你抽到了 20金币 ";
					Sleep(1000);
					jinbi+=20;	
				}
				else if(cjans==13){
					cout<<"你抽到了 300金币 ";
					Sleep(1000);
					jinbi+=300; 
				}
				else if(cjans==14){
					cout<<"你抽到了 5点券 ";
					Sleep(1000);
					dj+=5;	
				}
				else if(cjans==15){
					cout<<"你抽到了 10金币 ";
					Sleep(1000);
					jinbi+=10;	
				}
				d_j+=10;
			} 
		}
	} 
	else if(a=='L'){
		mnb();	
		out("游戏结束");
		return 0;
	}
	} 
	return 0;
}

 

朱优扬在2020-12-30 19:57:57追加了内容

ding

朱优扬在2020-12-30 19:58:03追加了内容

ding


0
已采纳
沙宸安
沙宸安
高级启示者
高级启示者

这可能是一个被时代埋没的好游戏

0
0
0
0
陈家傲
陈家傲
新手光能
新手光能

为毛我复制不了?????

0
0
汪宇航
汪宇航
新手启示者
新手启示者

..........................

我要回答