c++游戏

小编我为大家整理了一些C++的游戏;

望一键三连;

!!!有亿些错误,强迫症后期患者远离!!!
斗罗


//#include<bits/stdc++.h>

#include<iostream>

#include<Windows.h>

#include<conio.h> 

#include<cstring>

#include<cstdio>

#include<ctime>

#include"cmath" 

//#define IsKeyDown(VK_NAME) ((GetAsyncKeyState(VK_NAME) & 0x8000) ? true:false) 

#define mm2 1200

#define mm1 700

#define mm3 1900

#define ctl 857

#define mop 10000

using namespace std;

string xiaotishi[200]={"","首先是活下来,再考虑别的","日出而作,日落而息","食用鱼类可获得不同的增益","",""}; 

/*int vf(int x,int t){

    if(x==t/2-1){return t/2+t/2-t;}

    else{return 100;}

}

int ttle(int fffa)

{

    fffa-=1;

    return fffa;

}*/  

void gettime()

{

    time_t rawtime;

    struct tm *ptminfo;

    time(&rawtime);

    ptminfo = localtime(&rawtime);

    printf(": %02d-%02d-%02d %02d:%02d:%02d(鸡霓太美)",

    ptminfo->tm_year + 1900, ptminfo->tm_mon + 1, ptminfo->tm_mday,

    ptminfo->tm_hour, ptminfo->tm_min, ptminfo->tm_sec);

}

void zairu()//组件

{

	int bl=70;

	int righl=0;

	for(int i=1;i<=20;i++)

	{

		if(xiaotishi[i]!=""){righl+=1;}

	}

	srand((int)time(0));

	int tim=rand()%righl+1;

	system("cls");

	for(int i=1;i<=bl+4;i+=1){

		int timett=25+(int)(75.0 * rand()/(RAND_MAX+1.0));

		if(i==bl+1){

			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<<"                               (/                           \n";

			cout<<"                                                             \n";Sleep(300);	system("cls");continue;		

		}else if(i==bl+2){

			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<<"                               (/                           \n";

			cout<<"                                                             \n";		

			Sleep(300);system("cls");	continue;

		}

		else if(i==bl+3){

			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<<"                              (/                           \n";

			cout<<"                                                            \n";	Sleep(350);system("cls");	continue;

		}

		else if(i==bl+4){

		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<<"                                   (/                           \n";

		cout<<"                                                             \n";Sleep(450);system("cls");	continue;		

		}

		else{

		cout<<"                                                      \n\n";

		cout<<"                         正  在  加  载  中...                            \n\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\n";			

		}

		cout<<"       ";for(int iff=1;iff<=bl;iff++){cout<<"_";}cout<<"\n";

		cout<<"      |";for(int j=1;j<=i;j++){cout<<"▇";}for(int k=1;k<=bl-i;k++){cout<<" ";}cout<<" |\n";

		cout<<"       ";for(int itt=1;itt<=bl;itt++){cout<<"▔";}cout<<"\n";

		cout<<"                                     "<<i*100/bl<<"%                 \n";

		cout<<"                        小提示:"<<xiaotishi[tim];

		Sleep(timett);

		system("cls");

	}Sleep(400);

}

const long long MAXN=10000000000;

int fishjez[30]={0,80,40,60,90,100,85,55,75,25,25,40,60,50,45,130,70};

string cfnm[25]={"","烤肉","烤鱼","荒野烤肉","烤土豆","肉汤","土豆泥","秘制炖肉","","","","",""};

int cfjez[25]={0,95,80,130,105,155,135,200}; 

string gjfxx[30]={"","獠牙","利爪","笙忼术","笙电术","土玄术","战斧","法杖","易闽术","鸡汤术","篮球","易慴术","戟埕术","黑子"};

string fishing[200]={"","石斑鱼","螃蟹","条石斑","鲭鱼","鲶鱼","红鳟鱼","海鲂","小鲨鱼","海参","鳐鱼","沙丁鱼","鳕鱼","蝴蝶鱼","章鱼","秋刀鱼","罗非鱼","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};

string fms[8]={"","I","II","III","IV","V"};

string dfs1[20]={"","","",""}; 

struct o{

	int times;

	int jjes;

}fishs[1000]; 

struct sc{

    int ts;

    int js;

}cfs[505];

int main(){ for(int i=1;i<=7;i++){cfs[i].js =cfjez[i];} 

system("title 快乐游戏机");

for(int i=1;i<=14;i+=1){fishs[i].jjes =fishjez[i];}string gjfx;int ttk=0;

char a1[100][100]={

"################################### ",

"#!             #    *#            # ",

"######      #####   #####    ###### ",

"#                               * # ",

"#####  ##########   ########  ##### ",

"#   ##        *#  #  #       ##   # ",

"#     ###      #  #  #    ###     # ",

"# ####   ########   ######   #### # ",

"#               ## ##             # ",

"#    #########        ########    # ",

"#             ##    ##  @    	   # ",

"############    ####    ########### ",

"#           ##        ##          # ",

"### ##        ###  ###       ###  # ",

"#*   #                       #@   # ",

"################################### ",

"                                    ",

};

char a2[100][100]={

"################################### ",

"#!       ###                      # ",

"#######     ###      ########     # ",

"#      ###     ###       *  #     # ",

"#         ###     ###########     # ",

"#   ######   ###                  # ",

"#        #      ################  # ",

"#   ###  #                        # ",

"#   # *  #         ################ ",

"#   ######      ### *#            # ",

"#            ###      #####       # ",

"#         ###        #     #      # ",

"#      ###          #   #   #   @ # ",

"#   ###      ########   #   #     # ",

"#                       #         # ",

"################################### ",

"                                    ",

};

char a3[100][100]={

"################################### ",

"# @   #####    #   #              # ",

"#  # # &#   #  #   #   # &  #     # ",

"#   #   # ##   #   #   #   *#     # ",

"#       ##    ##   ##  ######     # ",

"#    &  #    #  # #  #            # ",

"################# ################# ",

"#                !                # ",

"################# ################# ",

"#            #  # #  #*           # ",

"#           # ##   ##     # #     # ",

"#  *     ###   #   #@    #   #    # ",

"#     ###      #   #    #  &  #   # ",

"#####          #   #  ########### # ",

"#&  ########   #   #     @        # ",

"################################### ",

"                                    ",

};

char a4[100][100]={

"################################### ",

"#              #   #        *     # ",

"#    ######   #  !  #   ######    # ",

"#          ###       ###          # ",

"#######       ##   ##       ####### ",

"#  *   ##       # #       ##      # ",

"#    ##    ###### #####     ##    # ",

"#  ##    ##            ##     ##  # ",

"#      ##     ##   ##    ##       # ",

"#   ###  @   #  ###  # *    ###   # ",

"# ##*  ##                 ##   ## # ",

"# #      ##    #   #    ##      # # ",

"#          #   #   #   #    @     # ",

"#        #######   #######        # ",

"#                                 # ",

"################################### ",

"                                    ",

};

char a5[100][100]={

"################################### ",

"#!                               *# ",

"#        ####    ###         ###### ",

"#########       #   #####         # ",

"# @            #         ####     # ",

"#######      ##   ######  #  ###  # ",

"#         ###         *#  #    #  # ",

"#      ###        ######   #   #  # ",

"#   ###        ###         #   #  # ",

"#           ###      ###   #   #  # ",

"####     ###      ###  #   #   #  # ",

"#   #####     ####     #  #    #  # ",

"#          ###         #  #    #  # ",

"#     #####    ###########   ###  ##",

"#  ###       ##  @                 #",

"####################################",

"                                    ",

};

    string s20;int fmt;string fucks;

    int k10=0;string sb0="欢迎使用快乐游戏机,尊敬的用户,快乐游戏机竭诚为您服务!",sb1="欢迎来到鸡仙大陆!",sb2="这片大陆危机四伏,你要想方设法的生存下去,并逃出这里!";

    for(int i=0;i<=sb0.size()-1;i++){

        cout<<sb0[i];

        Beep(mm3,45);Sleep(13);}   

    Sleep(620);Beep(mm3,60);

    cout<<endl<<"     请输入游戏机的密码(6位):" ; Sleep(600);system("cls");   

    char hhhh;string qa;

    cout<<"\n\n         0   1   2\n\n";

    cout<<"         3   4   5\n\n";

    cout<<"         6   7   8\n\n";

    cout<<"         坤  9  坤";

    for(int i=1;i<=51;i++){

    	if(i==50){system("cls");system("title 帮帮我");

    	cout<<"\n\n        "; 

    	for(int fo=1;fo<=6;fo++)

    	{cout<<"       ";

    		 for(int j=1;j<=fo;j++){cout<<"·";}

        cout<<"\n\n         0   1   2\n\n";

        cout<<"         3   4   5\n\n";

        cout<<"         6   7   8\n\n";

        cout<<"         坤  9  坤"; Sleep(555);system("cls");

		}

       

		Sleep(400);system("title 孤岛生存");break;} 

        hhhh=_getch();qa+=hhhh;system("cls");cout<<"\n\n        "; 

        for(int mt=1;mt<=i%6;mt++){cout<<"·";}

        cout<<"\n\n         0   1   2\n\n";

        cout<<"         3   4   5\n\n";

        cout<<"         6   7   8\n\n";

        cout<<"         坤  9  坤"; 

        if(i%6==0)

        {Sleep(130);

            if(qa=="123456"){cout<<"\n          密码正确!"<<endl;Beep(mm2,201);break; }

            cout<<"\n          密码错误    ";Beep(mm1,500);

            if(i>1){cout<<"已尝试"<<k10+1<<"次"<<endl;Sleep(300);}k10+=1;

            if(i==8){cout<<"\n";for(int i=1;i<=6;i+=1){Sleep(499);cout<<i;}cout<<"\n";Sleep(555);break;} 

            qa="";system("cls"); 

        cout<<"\n\n         0   1   2\n\n";

        cout<<"         3   4   5\n\n";

        cout<<"         6   7   8\n\n";

        cout<<"         坤  9  坤";

        }     

    }  

		while(2){

         cout<<"请问你想玩什么游戏?"<<endl;Sleep(500);

      cout<<"双城之战请输入:1  抽卡牌请输入:2  解救人质请输入:3  石头剪刀布请输入:4  鸡仙大陆(生存版)请输入:5"<<endl;

        long long zidan=0;

//木材cll1  藤条cll2  棕榈叶cll3  铁锭cll4  石片cll5  青金石cll6

int cl7=0,ml1=0,tl1=0,tl2=0,tl3=0,tl4=0,tl5=0,tl6=0,tl7=0,plof=0; 

int cll1[49]={0,3,2,10,3,2,5,12,20,0,2,4,6,5,1,1,0,0,1,0,0,0,4,0,0,2,500,5,0,0,10,100,0,0,10,10};

int cll2[49]={0,0,10,15,0,2,3,5,12,0,0,3,4,3,5,30,5,0,0,0,1,0,0,0,0,1,0,7,0,40,0,100,0,0,50,0};  

int cll3[49]={0,3,0,15,2,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,2,0,0,10,50,100,80,200,0};

int cll4[49]={0,0,1,7,0,0,0,0,4,0,0,0,2,0,0,0,20,1,1,1,1,5,0,0,2,4,500,0,4,0,0,0,0,0,100,5};  

int cll5[49]={0,0,0,0,1,0,0,2,0,2,3,0,1,0,10,0,5,0,0,0,0,0,0,0,0,0,0,5,0,20,0,0,30,0,0,0};

int jnj[40]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};  

int hs[10]={0,0,0},hss[10]={0,0,0};

int j11[40]={0,1,2,4,6,10,15,20,60,150,151};

int j12[40]={0,7,15,25,50,100,220,340,1314,3000,250250,857857,22222,53453};

int j13[40]={0,25,50,90,175,220,350,700,1100,4500,3838,3838438,43553,114514};

int linjian[40]={0,0,0,0,0,0};

int jjjb[20]={0,7,15,32,60,120,400,700,1000,2500,3830,413,131,3123};

int ve[20]={0,12,12,12};string fz[30]={"","野猪","毒腥","吞噬","火电","咀骨","僵尸","协增","黑子","长臂","召唤","黄眸","蛛形","鸡王"};

int gjs[30]={0,2,3,2,7,10,12,19,31,54,92,8,15,100},xls[30]={0,15,21,70,40,82,100,120,200,2423,104664,5436,3665,200};

int jjjj[20]={0,10,14,5,32,47,69,105,180,350,1000,20,35,1500};

string ssss[30]={"","小野猪","小狮子","小鳄龟","火电怪","土蜥蜴","野人酋长","森林女巫","森林巨人","钏姍钾","蔡虚坤","人物3","人物4","人物5"};

int xxxx[20]={0,160,220,700,340,470,600,1000,1700,20000,500000,114514,20005,1231};

int jbs[40]={0,90,15,120,220,400,550,300,1,8,1,10,35,40,20,400,500,1300,1800,10000,25000};

string sss[20]={"","绿色平原","沙漠丘陵","世纪峡谷","死亡瀑布","黑暗森林","野人部落","僵尸村落","沉船","远山","废弃的篮球场","山顶洞","大山顶洞","超大的山顶洞"};

int xlz[100]={0,320,170,250,300,250,220,220,400,2000};

int gjz[100]={0,28,35,16,14,18,10,13,7,50}; 

int ltz[100]={0,200,400,200,180,220,270,250,100,50};

int wgj[100]={0,120,100,150,130,110,200,500,66666};

int dssgj[100]={0,12,15,5,100,160,220,350,1250,4500,6000,55,70,63};

int dssxl[100]={0,160,220,700,450,1000,1200,2000,7000,20000,500000,100000,320000,780000};

string ds[100]={"","小野猪","小狮子","小鳄龟","火电怪","土蜥蜴","野人酋长","森林女巫","小黄嘉安","钏姍钾","蔡虚坤"};

string wnm[100]={"","天空之刃","风鹰剑","原木刀","阿莫斯之弓","赤沙之杖","无工之剑","狼末","反物质核弹",""};

string cnm[100]={"","宠物1","宠物2","宠物3","宠物4","宠物5","宠物6","","","",""};

int fmtj=0,fmtj2=0,fmtj3=0;int jl=150;

int kjk;int uxl;int fy=0;int cl6=0;string dfs,dfs2; int ppm,ppm2;

int max1=0,max2=0;int zxc=0;int yd;int uyu;

long long q=0,am=0,cnt=0,sb=0,gj=0,xl=0,x1,t=0,bx1,sr,mjj,ll=8,sdd=0,gh=0,s5=0,s6=0,s7,s11=0,s12=0,s13,v,ti=15,yy=0,akm=0,ab=444,z,jj,n=0,x=0,y=100;

string s1,s2,s8,s9,s10,hj,s20;int k,gb,nd,yp,ugb=15,jxl=0,bd=0,jjb=0,sx=150,gsx=0,ggb=0,js=0,yls=0,ujy=0,jjy=0,jysx=100,dg=1,km=520,gm;int jm=20,jm2=5,io,cntm=100;string s45;

int njz=0,aqw=10;int akl=0,qwz=0,step,stepisSB,stepisverySB,lmk;int nm;int pl=0,srs=0; bool tm1=0,tm2=0,tm3=0,tm4=0,tm5=0;int cl1=2,cl2=2,cl3=2,cl4=0,cl5=0;int p1=0,p2=100,pdg=1;int tian=0,shi=8,fen=0; int rw1=0,rw11=0,rw2=0,rw21=0,rw3=0,rw31=0,rw4=0,rw41=0,rw51=0,rw61=0,rw7=0,rw71=0,rw8,rw81=0,rw9=0,rw91=0,rwa=0,rwa1=0,rwb=0,rwb1=0,rwc=0,rwc1=0,rwd=0,rwd1=0;

int et=0,jgj=0,jez=200,jezsx=200,sp1=1,sp2=1,sp3=0,jsp=0,sk12,cmk=180;

char amy[100][100];int k10=1; long long u;bool han=0;x1=5; int tm9=0;

uxl=150;sx=150;fmtj=fmtj2=fmtj3=0;char h;

    h=_getch();  

	if(h=='1'){

	int yx,wq,cw,dxl,dgj;

	int xl,gj,lt;string s1,s2,cwnm,s10;

	string nmt;

	system("cls");

	for(int i=3;i>=1;i-=1){

		cout<<i<<"秒后开始游戏"; 

		Beep(mm1,200);

		Sleep(720);system("cls");

	}cout<<"正在载入游戏中";for(int i=1;i<=3;i+=1){cout<<".";Sleep(440);} 

	Sleep(444);system("cls");

	cout<<"请为你的角色创建一个名称吧:";cin>>nmt;Sleep(644);system("cls");

		cout<<"\n 请选择一个英雄:\n";Sleep(444);cout<<"1,人物1  2,迪卢克  3,温迪  4,可莉  5,莫娜  6,阿贝多  7,优菈  8,埃洛伊  9,蔡徐坤\n      ";

		cin>>yx;xl=xlz[yx];gj=gjz[yx];lt=ltz[yx];Sleep(400); system("cls");

		cout<<"\n 请选择一把武器:\n";Sleep(400);cout<<"1,天空之刃  2,风鹰剑  3,原木刀  4,阿莫斯之弓  5,赤沙之杖  6,无工之剑  7,偃月刀  8,反物质核弹\n        ";

		cin>>wq;cout<<"你装备了"<<wnm[wq];Sleep(555);cout<<"\n";s1=wnm[wq];gj+=wgj[wq];system("cls");

		cout<<"\n 请选择你的宠物:\n";Sleep(411);cout<<"1,宠物1  2宠物2  3,宠物3  4,宠物4  5,宠物5  6宠物6\n       ";

		cin>>cw;cwnm=cnm[cw];Sleep(399);system("cls");

		system("pause");

		cout<<"正在匹配中";for(int i=1;i<=3;i+=1){cout<<".";Sleep(555);} 

		cout<<"\n你的对手是:";Sleep(444);srand(time(NULL));

		int a=rand()%10+1;cout<<ds[a];s10=ds[a];dgj=dssgj[a];dxl=dssxl[a];

		cout<<"\n";

		cout<<"危险指数为"<<gj/15+xl/45<<"\n";cout<<s10<<"气势汹汹地向你冲来\n";

		for(int i=1;;i+=1)

		{

			int kjk;

			cout<<"==============================================#"<<endl<<"要怎么办?"<<endl<<endl;Sleep(333);cout<<"  0,技能  1,攻击  2,防御  ";if(i>=3){cout<<"3,逃跑";}cin>>kjk;

			if(kjk==3){

                if(i>=3){srand(time(0));int wers=rand()%8+1;

                    if(wers==1||wers==4||wers==5||wers==7){cout<<" 逃跑成功!"<<endl;continue;}

                    else{cout<<" 逃跑失败!"<<endl;

                        for(int p1=1;p1<=wers-1;p1++){

							if(xl<=0){cout<<"你s了,游戏失败!#_#\n"; Sleep(444);system("pause");Sleep(300);break;}cout<<s10;

                                if(p1>1){cout<<"再次";}cout<<"攻击!"<<endl;Sleep(444);cout<<"对你造成"<<gj<<"点伤害,当前你的血量为"<<xl<<endl;Sleep(666); 

                        } 

                        cout<<"你趁着"<<s10<<"的攻击间隙,逃跑了" <<endl;

                    }break;

}}

            if(kjk==2){cout<<"你防御了来自"<<s10<<"的攻击,受到"<<5<<"点伤害";xl-=5;dxl-=10;continue;}

			if(kjk==1){Sleep(333);

				cout<<"你使用"<<s1<<"攻击,";cout<<"对"<<s10<<"造成"<<gj<<"点攻击, ";Sleep(666);cout<<"当前"<<s10<<"的血量为"<<dxl<<",你的血量为"<<xl<<"\n\n";Sleep(855);

				dxl-=gj;if(dxl<=0){cout<<"最后,"<<s10<<"终于倒下了身躯\n 你胜利了";Sleep(1000);break;system("cls");} 

				cout<<s10<<"使用"<<gjfxx[a]<<"对你造成了"<<dgj<<"点攻击,";Sleep(666);cout<<"当前"<<s10<<"的血量为"<<dxl<<",你的血量为"<<xl<<"\n\n";Sleep(555);

				xl-=dgj;if(xl<=0){cout<<"你牺牲了\n游戏失败!";Sleep(1000);system("cls");break;}}}} 

    if(h=='2'){

    for(int k=1;k<=300;k++){

        cout<<" 好,快乐十连抽准备中";

        for(int i=1;i<=3;i++){Sleep(333);cout<<".";}

        Sleep(333);cout<<endl;srand(time(0));     

        for(int i=1;i<=10;i++){

            int a=rand()%22+1;cout<<"第"<<i<<"张卡牌为:"; Sleep(633);

            if(a==1||a==10||a==9||a==11||a==12||a==13||a==14||a==15||a==22){cout<<"R  ";}

            else if(a==2||a==16){cout<<"SSR  ";}

            else if(a==3||a==8||a==17){cout<<"SR  ";}

            else if(a==4){cout<<"SP!!!";yy=1;akm++;}

            else if(a==5||a==18){cout<<"UR  ";}

            else if(a==6||a==19){cout<<"N";} 

            else {cout<<"TGR ";}

            cout<<endl;Sleep(333);

        }

        Sleep(200); 

        if(yy==1){cout<<"  你真是个欧皇!";} 

        else {cout<<"  真的太逊了";}       

        Sleep(666);yy=0;cout<<endl<<endl<<"是否再来一次十连抽?是:1   否:2"<<endl<<"        "; cin>>et;

        if(et==2){Sleep(555); cout<<"";return 0;}           

    }}

    if(h=='3'){

    	system("cls");

   		cout<<"\n 游戏规则:你需要在不撞墙的前提下,吃到 & 以加分\n";

		cout<<" 操作指示: 上W 下S 左A 右D  投掷炸弹T  装备F(靠近 道具 四周后点击f,不可站其上方碰撞) \n";

		cout<<" 道具指示: !,玩家(你)  \n           #,墙壁\n           *,炸弹补给\n           &,加分怪\n           @,生命药水\n\n";

	    system("pause");

	    int fg;int x=1,y=1,he,sh,t=0,max=0,cnt=0,tnt=2;

	    Sleep(888);system("cls");	

    char ch;

	while(4){

		int te=0;

		cout<<"请选择地图:\n 1,地图1  2,地图2  3,地图3  4,地图4  5,地图5  0,退出  ";cin>>fg;

		if(fg==0){break;} 

		if(fg==1){x=1;y=1;tnt=2; uxl=3;sx=3;}

		if(fg==2){x=1,y=1; tnt=2;uxl=3;sx=3;}  

		if(fg==3){y=17;x=7;tnt=1800;uxl=3;sx=3;}

		if(fg==4){y=17;x=2;tnt=3;uxl=3;sx=3;}

		if(fg==5){x=1,y=1;tnt=1;uxl=3;sx=3;} 

		for(int i=0;i<=16;i++){

    		for(int j=0;j<=35;j+=1){

    			if(fg==1){amy[i][j]=a1[i][j];}

				if(fg==2){amy[i][j]=a2[i][j];}

				if(fg==3){amy[i][j]=a3[i][j];}

				if(fg==4){amy[i][j]=a4[i][j];}

				if(fg==5){amy[i][j]=a5[i][j];}

			}

		} 	

		srand(time(0));

    	while(87){ 

    		he=rand()%13+2;sh=rand()%32+2;  

    		if(amy[he][sh]=='!'||amy[he][sh]=='#'||amy[he][sh]=='&'){continue;}

			amy[he][sh]='&';t=0;break;	 

		}   

		for(int i=0;i<=16;i++){

    		for(int j=0;j<=35;j+=1){

    			cout<<amy[i][j];

			}cout<<"\n";

		} 

    	while(12){  	

    		if(t==1){

    			while(1){

    				srand(time(0));

    				he=rand()%13+2;

    				sh=rand()%32+2;

    				if(amy[he][sh]=='!'||amy[he][sh]=='#'||amy[he][sh]=='@'||amy[he][sh]=='*'){continue;}

					else{amy[he][sh]='&';t=0;break;}			

				}

    		}ch=_getch();     

			if(ch=='t'){

				if(tnt==0){cout<<"没有TNT了!";continue; }

				for(int mw=1;mw<=3;mw++)

				{

					system("color F0");

					Beep(mm2,200);

					system("color 0F");

					Sleep(200);

				}Sleep(40);Beep(mm3,130);

				if(amy[x+1][y]=='&'||amy[x-1][y]=='&'||amy[x][y-1]=='&'||amy[x][y+1]=='&'||amy[x+1][y+1]=='&'||amy[x-1][y-1]=='&'||amy[x+1][y-1]=='&'||amy[x-1][y+1]=='&'){cnt+=2;t=1;}

				if(x==0||y==0){cout<<" 引爆失败!";} 

				else{amy[x+1][y]=amy[x-1][y]=amy[x][y-1]=amy[x][y+1]=amy[x+1][y+1]=amy[x-1][y-1]=amy[x+1][y-1]=amy[x-1][y+1]=amy[x][y+2]=amy[x+2][y]=' ';}	

				if(x>=2&&y>=2){amy[x-2][y]=amy[x][y-2]=' ';}

				tnt-=1;

			}

			if(ch=='f'){

				if(amy[x+1][y]=='*'){amy[x+1][y]=' ';tnt+=1;}

				if(amy[x-1][y]=='*'){amy[x-1][y]=' ';tnt+=1;}

				if(amy[x][y+1]=='*'){amy[x][y+1]=' ';tnt+=1;}

				if(amy[x][y-1]=='*'){amy[x][y-1]=' ';tnt+=1;}

				if(amy[x+1][y]=='@'){amy[x+1][y]=' ';uxl+=1;}

				if(amy[x-1][y]=='@'){amy[x-1][y]=' ';uxl+=1;}

				if(amy[x][y+1]=='@'){amy[x][y+1]=' ';uxl+=1;}

				if(amy[x][y-1]=='@'){amy[x][y-1]=' ';uxl+=1;}

				if(uxl>sx){uxl=sx;}

			} 

        	if(ch=='a'){

        		if(amy[x][y-1]=='@'||amy[x][y-1]=='*'){continue;} 

	        	if(amy[x][y-1]=='#'){ uxl-=1; te=1;}

	        	if(amy[x][y-1]=='&')

        		{Beep(mm1,40);

        			cnt+=1;t=1;

        			amy[x][y]=' ';y--;

        			amy[x][y]='!';

				}else

           	 	if(amy[x][y-1]!='#'){amy[x][y]=' ';y--;amy[x][y]='!';}

        	}

        	if(ch=='s'){

        		if(amy[x+1][y]=='@'||amy[x+1][y]=='*'){continue;} 

        		if(amy[x+1][y]=='#'){uxl-=1;te=1;}

        		if(amy[x+1][y]=='&')

        		{Beep(mm1,40);

        			cnt+=1;t=1;

        			amy[x][y]=' ';x++;

        			amy[x][y]='!';

				}else

          	  if(amy[x+1][y]!='#'){amy[x][y]=' ';x++;amy[x][y]='!';}	

        	}

        	if(ch=='d'){

        		if(amy[x][y+1]=='@'||amy[x][y+1]=='*'){continue;} 

        		if(amy[x][y+1]=='#'){uxl-=1;te=1;}

        		if(amy[x][y+1]=='&')

        		{Beep(mm1,40);cnt+=1;t=1;

        			amy[x][y]=' ';y++;

        			amy[x][y]='!';

				}else

            	if(amy[x][y+1]!='#'){amy[x][y]=' ';y++;amy[x][y]='!';}

        	}

        	if(ch=='w'){

        		if(amy[x-1][y]=='@'||amy[x-1][y]=='*'){continue;} 

        		if(amy[x-1][y]=='#'){uxl-=1;te=1;}

        		if(amy[x-1][y]=='&')

        		{Beep(mm1,40);cnt+=1;t=1;

        			amy[x][y]=' ';x--;

        			amy[x][y]='!';

				}else

           	 	if(amy[x-1][y]!='#'){amy[x][y]=' ';x--;amy[x][y]='!';}

        	}

        	system("cls");

        	for(int i=0;i<=16;i++){

    			for(int j=0;j<=35;j+=1){

    				cout<<amy[i][j];

				}cout<<"\n";

			} 

			if(uxl<=0){

				system("cls"); 

				cout<<"\n\n\n\n\n\n\n\n           游戏失败!";

				if(max<cnt){max=cnt;}system("cls");break;

			} 

			if(te==1){system("color 4C");Sleep(81);system("color 0F");}

        	cout<<"    得分:"<<cnt<<"  游戏记录:"<<max<<"  生命:"<<uxl<<"/"<<sx<<"  TNT:"<<tnt;      	

       	 	if(amy[x][y+1]=='*'||amy[x][y-1]=='*'||amy[x-1][y]=='*'||amy[x+1][y]=='*'||amy[x][y+1]=='@'||amy[x][y-1]=='@'||amy[x-1][y]=='@'||amy[x+1][y]=='@'){cout<<"   (可装备)\n";}

			if(te==1){cout<<"   咦!你撞墙了";te=0;}

    	}}}

    if(h=='4'){

        cout<<"好,请选择游戏模式:";Sleep(500);cout<<endl<<"1,一决胜负   2,三局两胜   3,无限模式"<<endl<<"     ";

        cin>>v;

        if(v==1){s5=1;}

        if(v==2){s5=3;}

        if(v==3){s5=50000;}

        cout<<endl;cout<<"游戏开始!"<<endl;Sleep(500);

        for(int i=1;i<=s5;i++){srand(time(0));int g=rand()%3+1;s6=g;

            cout<<"请输入你要出的拳头";Sleep(500);cout<<endl<<"石头:1   剪刀:2   布:3"<<endl<<"    ";   

            cin>>s7;

            if(s6==1){s8="石头"; }if(s7==1){s9="石头"; }if(s6==2){s8="剪刀";}if(s7==2){s9="剪刀";}if(s6==3){s8="布"; }if(s7==3){s9="布"; }

            Sleep(300);system("cls");cout<<"石 头";Sleep(300);system("cls");cout<<"剪 刀";Sleep(350);system("cls");cout<<" 布"<<endl;Sleep(450);system("cls"); Sleep(50);cout<<" 你出了"<<s9;Sleep(433);cout<<",你的对手小黄出了"<<s8<<endl; Sleep(500);

            if(s9==s8){cout<<" 你们平手了"<<endl; Sleep(500);system("cls");}

            if(s9=="布"&&s8=="石头"||s9=="剪刀"&&s8=="布"||s9=="石头"&&s8=="剪刀"){cout<<" 本回合你胜出"<<endl;s11++;Sleep(444);}

            if(s9=="石头"&&s8=="布"||s9=="布"&&s8=="剪刀"||s9=="剪刀"&&s8=="石头"){cout<<" 本回合你输了"<<endl;s12++;Sleep(444);}

            if(s5==i){cout<<"是否继续游戏? "<<endl<<" 1,是   2,否 :";cin>>s13;if(s13==2){break;}}cout<<endl;

        }

        if(v!=1){cout<<"你胜出"<<s11<<"局,对手胜出"<<s12<<"局"<<endl;

            if(s11>s12){cout<<"你赢了"<<endl;}

            else if(s12>s11){cout<<"你输了"<<endl;}

            else{cout<<"你平手了"<<endl;}}}

    if(h=='5'){

string fms[8]={"","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ"};

char pictures1[200][200]={

    "       __________                ______              _____________   ", 

    "      /—————\\              |      |            /    卧室     |  ",

    "     /  物资仓库  \\             | 任务 |           |    /_____ /  |     ", 

    "     |     ℡     |             | 清单 |           |   /      /   |   ",

    "     |            |             |______|           | ↙|======|   |     ", 

    "  __                                               |   | sleep|   |    ",

    "_/ |__                                             |   |      |   |    ", 

    "     |                                             | ↙|______|   | ",

    " ___|                     厨房/   \\                |              |     ", 

    " |     __________            /_ ↑_\\               |_    _________|    ", 

    " |      |工作台|             。。。。                                 ", 

    " |      |      |          =============                                ",

    "/                                                                       ", 

    "                                                                        ",

    "             医药台                                                   ", 

    "          \\     / ______                           ________           ",

    "           |_+_|  | -- |                           |      |            ", 

    "            / l   | <> |                           | 出门 |            ",

    "                                                   |  ℡  |         ",

    "_|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|_|      |__|__|__|__|__|__",

    " |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | |      |  |  |  |  |  |",

    };

    char pictures2[200][200]={ 

    "                                              _________              ",

    "                         .  ..     .         |        |__3,世纪峡谷__",

    "                       . ..     .            |       ______________\\",

    "                        .     .              |      /               ",

    "      1,绿色平原          2,丘陵             |      |             ",

    "      _      _                               |  R   |               ",

    "       |____|                                |  I   \\              ", 

    "                                             |  V    |              ", 

    "                                             |  E    |     14,      ",

    "              10,篮球场                      |  R   /    隐藏矿洞 _ ",

    "                ———          回家         |      |            |_|",

    "               |+ 0 +|         |------|      |      |               ",

    "                ———         |0,home|      /      |               ",

    "                               |———|     |  桥  /                ",

    "                                        ___/|======|\\_              ",

    "                                        ___/|======|\\_              ",

    "                                            |      |                ",

    "       5,黑暗森林       6,部落             /       |                ", 

    "       [  , + , ]          /              /       /                 ",

    "      /~~  , , ~~\\      ---              /    |  /                  ",

    "     /  |   |  |  \\      /              /4,瀑布 /        -          ",

    "                     7,尸村   _________/       /        / \\         ",

    "                            /             |   /        /   \\        ",

    "                          _/                _/        |     |       ",

    "                         /       __________/           9,远山       ",

    "      15,               /   港  /                                   ",

    "     松林               |  湾  |                                    ", 

    "   ↑↑↑↑            /       |   11,      12,          13,        ",

    "           __________/         | 山顶洞  大山顶洞    超大的山顶洞   ",

    "       ___/    8,沉船          /    -     -----      -------------- ",

    "    __/      l----------/     /    | |   |     |    |              |",

    "   /          |l--------|     |     -     -----      -------------- ",

    }; 

    char pictures3[80][80]={

    "                                          __                   ",

    "                             ------------/  |                  ",

    "                            |-----------/|  |  钓鱼码头        ",

    "                             ------------|  J                  ",

    "  回家                                                         ",

    "      ___                                                      ",

    "    __|_|__                                                    ",

    "   /  HOME k                                                   ",

    "  /    _    k                种植园                            ",

    "  |   | |   |              +++++++++++                         ",

    "  |___|_|___|              |---------|                         ",

    "                           |---------|               野        ",

    "                           +++++++++++                         ",

    "                                                               ",

    "                                                     外        ",

    "                  ________                                     ",

    "                 |________|                                    ",

    "               ____|____|___                                   ",

    "                |  郊区   |                                    ",

    "                |   商店  |                                    ",

    "                |_________|                                    ",

    }; 

    char pictures4[100][100]={

    "                                                                          ",

    "   ___________________________________________________________________    ",

    "  /__________________________________________________________________/    ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||_____________________________________||                 ",

    "                ||_____________________________________||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ||                                     ||                 ",

    "                ︶                                     ︶                 ",

    "                                                                          ",

    };

    while(2){

            int shecheng=1;

        string dfs1[20]={"","","","","","",""}; 

        long long zidan=0;

//木材cll1  藤条cll2  棕榈叶cll3  铁锭cll4  石片cll5  青金石cll6  钢铁cll7 

//生肉sc1  土豆sc2   淡水sc3  蜂蜜sc4   

int cl7=0,ml1=0,ml2=0,tl1=0,tl2=0,tl3=0,tl4=0,tl5=0,tl6=0,tl7=0,plof=0;

short sc1=0,sc2=0,sc3=0,sc4=0,sc5=0,sc6=0,sc7=0; 

int tian20=1,tian21=1,tian22=1;

int zz1=0,zz2=2,zz3=2;

int cll1[49]={0,3,2,10,3,2,5,12,20,0,2,4,6,5,1,1,0,0,1,0,0,0,4,0,0,2,500,5,0,0,10,100,0,0,10,10,50,10};

int cll2[49]={0,0,10,15,0,2,3,5,12,0,0,3,4,3,5,30,5,0,0,0,1,0,0,0,0,1,0,7,0,40,0,100,0,0,50,0};  

int cll3[49]={0,3,0,15,2,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,2,0,0,10,50,100,80,200,0};

int cll4[49]={0,0,1,7,0,0,0,0,4,0,0,0,2,0,0,0,20,1,1,1,1,5,0,0,2,4,500,0,4,0,0,0,0,0,100,5};  

int cll5[49]={0,0,0,0,1,0,0,2,0,2,3,0,1,0,10,0,5,0,0,0,0,0,0,0,0,0,0,5,0,20,0,0,30,0,0,0};

int jnj[40]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};  

int hs[10]={0,0,0},hss[10]={0,0,0};

int j11[40]={0,1,2,4,6,10,15,20,60,150,151};

int j12[40]={0,7,15,25,50,100,220,340,1314,3000,250250,857857,22222,53453};

int j13[40]={0,25,50,90,175,220,350,700,1100,4500,3838,3838438,43553,114514};

int linjian[40]={0,0,0,0,0,0};

int jjjb[20]={0,7,12,30,50,80,300,520,700,2500,3830,413333,133331,310023};

int ve[20]={0,12,12,12};

int gjs[30]={0,2,3,2,7,10,12,19,31,54,92,8,15,100},xls[30]={0,15,21,70,40,82,100,120,200,2423,104664,5436,3665,200};

int jjjj[20]={0,8,13,5,25,39,65,90,160,275,1000,20,35,1500};

string ssss[30]={"","小野猪","狮子","鳄龟","成年狼","土蜥蜴","野人酋长","森林巨人","人物1","钏姍钾","蔡虚坤","悲伤的人物2","快乐的人物3","忧郁的人物4"};

int xxxx[20]={0,160,210,650,320,450,580,900,1620,2000,500000,114514,20005,123100};

int jbs[40]={0,90,15,120,220,400,550,300,1,8,1,10,35,40,20,400,500,1300,1800,10000,25000};

string sss[20]={"","绿色平原","沙漠丘陵","世纪峡谷","死亡瀑布","黑暗森林","野人部落","僵尸村落","沉船","远山","废弃的篮球场","山顶洞","大山顶洞","超大的山顶洞"};

int fmtj=0,fmtj2=0,fmtj3=0;int jl=150;

int uxl;int fy=0;int cl6=0;string dfs,dfs2; int ppm,ppm2;

int max1=0,max2=0;int zxc=0;int yd;int uyu;string ugg="当你坐上火箭,进入那广阔无垠的星空时,你意识到游戏胜利了"; 

long long q=0,am=0,cnt=0,sb=0,gj=0,xl=0,x1,t=0,bx1,sr,mjj,ll=8,sdd=0,gh=0,s5=0,s6=0,s7,s11=0,s12=0,s13,v,ti=15,yy=0,akm=0,ab=444,z,jj,n=0,x=0,y=100;

string s1,s2,s8,s9,s10,hj,s20;int k,gb,nd,yp,ugb=15,jxl=0,bd=0,jjb=0,sx=150,gsx=0,ggb=0,js=0,yls=0,ujy=0,jjy=0,jysx=100,dg=1,km=520,gm;int jm=20,jm2=5,io,cntm=100;string s45;

int njz=0,aqw=10;int akl=0,qwz=0,step,stepisSB,stepisverySB,lmk;int nm;int pl=0,srs=0; bool tm1=0,tm2=0,tm3=0,tm4=0,tm5=0;int cl1=2,cl2=2,cl3=2,cl4=0,cl5=0;int p1=0,p2=100,pdg=1;int tian=0,shi=8,fen=0; int rw1=0,rw11=0,rw2=0,rw21=0,rw3=0,rw31=0,rw4=0,rw41=0,rw51=0,rw61=0,rw7=0,rw71=0,rw8,rw81=0,rw9=0,rw91=0,rwa=0,rwa1=0,rwb=0,rwb1=0,rwc=0,rwc1=0,rwd=0,rwd1=0;

int et=0,jgj=0,jez=220,jezsx=220,sp1=1,sp2=1,sp3=0,jsp=0,sk12,cmk=180;

char amy[100][100];int k10=1; long long u;bool han=0;x1=5; int tm9=0;

uxl=150;sx=150;fmtj=fmtj2=fmtj3=0;int wsz=200,nsz=200,wszsx=200,nszsx=200;

        s1="拳头"; 

        for(int i=0;i<=sb1.size()-1;i++){

            cout<<sb1[i];Beep(mm3,45);Sleep(17);}

        Sleep(777);cout<<endl;

         cout<<"先创建一下你的名称:";

        cin>>s20; 

        if(s20=="只因"){

            jl=120;uxl=140;ugb=0;yls=1;sx=140;js=1;jjb=1;bd=1;jez=160;jezsx=160;

            cout<<endl<<"当前游戏模式为:\"挑战模式\""<<endl;

            Sleep(755);}

        if(s20=="小小坤"){

            cl1=cl2=cl3=cl4=cl5=cl6=5000;jl=10000;uxl=200000;ugb=100000000;yls=40;sx=200000;jez=857857;jezsx=857857;

            s1="上帝神话狼末(射击态)";x1=100000;shecheng=3; 

            cout<<endl<<"当前游戏模式为:\"创造模式\""<<endl;

            Sleep(755);}

        cout<<endl<<"好,以后就叫你"<<s20<<"了"<<endl<<endl;Sleep(744);

        cout<<"求生者"<<s20<<",";

        Sleep(333); 

        for(int i=0;i<=sb2.size()-1;i++){cout<<sb2[i];Beep(mm3,47);Sleep(10);} 

        cout<<endl<<endl;Sleep(555); 

        while(3){

            int k1=x1;fen+=2;

            if(fen>=60){shi+=fen/60;fen=fen%60;}

            if(shi>=24){shi=shi-24;tian+=1;ve[1]+=6;ve[2]+=6;ve[3]+=6;

            if(ve[1]>12){ve[1]=12;}           

            if(ve[2]>12){ve[2]=12;}

            if(ve[3]>12){ve[3]=12;}}

            if(tian%65>45){

                if(shi>=16||shi<=8){system("color 0F");}

                else{system("color F0");}

            } 

            else if(tian%65>15&&tian%65<30){

                if(shi>=19||shi<=6){system("color 0F");}

                else{system("color F0");}

            }   

            else{

                if(shi>=18||shi<=6){system("color 0F");}

                else{system("color F0");}

            }   

            if(qwz<0){uxl-=1;} 

            if(qwz<0)

            {if(akl!=1){aqw=4;}}        

        jez-=3;if(jez<=0){

        cout<<"干饭不积极,亲人两行泪"<<endl;Sleep(333);

        cout<<"你饿死了";Sleep(333);cout<<"不能复活哟!"; 

            Sleep(2000);system("cls");Sleep(500);break; }

        if(jez<=38){Sleep(111); cout<<endl<<"你要饿死了!"<<endl;} 

        if(shi>18||shi<=6){cout<<endl<<" 天黑了!";}cout<<endl<<"#===========气温:";if(tian%65<=15)

        {srand(time(0));qwz=rand()%10+1;s45="春"; qwz+=10;

        }else if(tian%65>=15&&tian%65<30)

        {srand(time(0));qwz=rand()%10+1;s45="夏";qwz+=10;}else

        if(tian%65>30&&tian%65<=45){srand(time(0));qwz=rand()%8+1;s45="秋";qwz+=12;}

        else{srand(time(0));qwz=rand()%15+1;s45="冬";qwz=0-qwz;}

        cout<<qwz<<"度"; cout<<"===时间 "<<shi<<":"<<fen<<"===季节:";cout<<s45;cout<<"===";cout<<"生存天数:"<<tian; 

        cout<<"===";cout<<"生存记录:"<<max2; cout<<"========#"<<endl;cout<<s20<<" 要做什么?\n\n";

        Sleep(455);int kt;

        cout<<"                                H  O  M  E \n\n"; 

        cout<<"         1,移动  2,查看状态  3,补给  4,任务  5,建造  6,查看仓库\n                 7,关于游戏  8,退出游戏";if(plof==1){cout<<" 9,火箭发射";}cout<<endl; 

        for(short i=0;i<=20;i++){

            puts(pictures1[i]);

        }

        cout<<endl<<"             ";

        char ch2;

        ch2=_getch();system("cls"); 

        if(ch2=='7'){

            system("cls"); 

            cout<<"\n\n\n   本游戏虽原创,但制作时借鉴了 部分游戏 的部分玩法,如果侵权,马上《删改》\n";

            Sleep(1000); 

        } 

        if(ch2=='8'){char hkl;

            cout<<"\n 确定要退出游戏吗?   1,yes  2,no :";hkl=_getch(); 

            if(hkl=='1'){

            if(max2<tian)

            {max2=tian;}Sleep(500);

            system("cls");Sleep(800);break; 

            }

        }

        if(ch2=='9'){

            if(plof==1){plof=0; 

                tl1-=10;tl2-=1;tl3-=1;tl4-=1;tl5-=1;tl6-=1;

                srand(time(0));

                cout<<"\n 火箭融合中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm=rand()%17+1;if(rm==2||rm==9){cout<<" 融合失败,本次发射失败!";Sleep(555);continue;} 

                cout<<"\n\n 火箭组装中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm1=rand()%20+1;if(rm1==2||rm1==3){cout<<" 组装失败,本次发射失败!";Sleep(555);continue;} 

                cout<<"\n\n 火箭架起中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm2=rand()%18+1;if(rm2==2||rm2==11){cout<<" 架起失败,本次发射失败!";Sleep(555);continue;} 

                cout<<"\n\n 构成指令中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                cout<<"\n\n 准备发射中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm3=rand()%72+1;if(rm3==2||rm3==9){cout<<" 准备失败,本次发射失败!";Sleep(555);continue;} 

                cout<<"\n\n 火箭点火中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm4=rand()%17+1;if(rm4==2||rm4==9){cout<<" 点火失败,本次发射失败!";Sleep(555);continue;} 

                cout<<"\n\n 坐乘发射中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}

                int rm5=rand()%8+1;if(rm5==2||rm5==6||rm5==7){cout<<" 发射失败,本次发射失败! 你快死了";uxl=1;Sleep(555);continue;} 

                for(int i=0;i<=ugg.size()-1;i++){

                    Sleep(68);cout<<ugg[i];} 

                if(max2<tian){max2=tian;} 

                Sleep(1000);system("cls"); 

                break;      

            }

        }

        if(ch2=='1')

        {char nop;

        cout<<"\n";cout<<"要去哪?\n\n 1,郊区商店  2,探险  3,寻宝  4,钓鱼  5,种植园  6,回家:\n";

        for(int i=0;i<=20;i++)

        {

            puts(pictures3[i]);

        }

        nop=_getch();cout<<"\n";

        if(nop=='6'){continue;}

        if(nop=='1'){system("cls"); 

        jez-=5;jl-=2;

        cout<<" /郊区商店/"<<endl<<"-----------------------------------------------------"<<endl;

        cout<<"/武器:";cout<<" 1,AK47  2,木棍请选  3,双节棍  4,手雷投掷器  5,M82A1巴雷特  ";Sleep(244);cout<<endl<<"6,拳头  7,偃月刀  8,手抛式小型核弹";Sleep(200);cout<<endl<<"  (注意!购买新的武器会覆盖当前装备武器)"<<endl;Sleep(244);cout<<endl<<"/药品:"<<"9,急救包  10,绷带   12,医疗箱";Sleep(244);cout<<endl<<endl<<"/升级道具:11,鸡血";Sleep(444);cout<<endl<<"/食品:13,穿山甲肉松饼干  14,龟野牌牛肉罐头  15,鸡汤";Sleep(444);cout<<endl<<endl<<"/材料:16,铁锭"<<endl<<endl<<"/技能: 17,技能1  18,技能2  19,技能3";

        cout<<endl<<"    填0返回"<<"   ";

        cin>>u;cntm=300;if(u==0){continue;} gb=jbs[u];

        if(u!=1&&u!=2&&u!=3&&u!=4&&u!=5&&u!=6&&u!=7&&u!=8&&u!=100){cout<<"好,输入你要购买的数量吧:";cin>>pl;gb*=pl; } 

        if(ugb<gb){cout<<"你的坤币不够,还差"<<gb-ugb<<"个"; continue;}

        else{rwa+=pl;}

        if(u==1){x1=50;s1="AK47";shecheng=3;fmtj=fmtj2=fmtj3=0;}

        if(u==2){x1=18;s1="木棍"; shecheng=1;  fmtj=fmtj2=fmtj3=0;}

        if(u==3){x1=55;s1="双节棍";shecheng=1;fmtj=fmtj2=fmtj3=0;}

        if(u==4){x1=140;s1="手雷投掷器";shecheng=2;fmtj=fmtj2=fmtj3=0;}

        if(u==5){x1=275;s1="M82A1巴雷特";shecheng=4;fmtj=fmtj2=fmtj3=0;}

        if(u==6){x1=450;s1="拳头";shecheng=1;fmtj=fmtj2=fmtj3=0;} 

        if(u==7){x1=1950;s1="偃月刀";shecheng=2;fmtj=fmtj2=fmtj3=0;}

        if(u==8){x1=66666;s1="手抛式救援核弹";shecheng=3;fmtj=fmtj2=fmtj3=0;} 

        if(u==9){jxl=75;jjb+=pl;}

        if(u==10){jxl=10;bd+=pl;}

        if(u==11){jgj=10;js+=pl;}

        if(u==12){yls+=pl;}

        if(u==13){sp1+=pl;}

        if(u==14) {sp2+=pl;}

        if(u==15){sp3+=pl;}

        if(u==16){cl4+=2*pl;}

        if(u==17){jnj[1]+=pl;}

        if(u==18){jnj[2]+=pl;}

        if(u==19){jnj[3]+=pl;}

        if(u==20){jnj[4]+=pl;}

        if(u==21){jnj[5]+=pl;}

        cout<<endl<<"购买成功,花费";

        if(u!=1&&u!=2&&u!=3&&u!=4&&u!=5&&u!=6&&u!=7&&u!=8){cout<<gb*pl; }

        else{cout<<gb;}

        cout<<"坤币";}

        if(nop=='2'){

        if(jl<15){cout<<"太疲惫了,无法前往"<<endl;Sleep(533);continue;}          

            jez-=4;jl-=5;fen+=50;

            if(fen>=60){shi+=fen/60;fen=fen-(60*(fen/60));}

            if(shi>=24){shi=shi-24;tian+=1;ve[1]+=6;ve[2]+=6;ve[3]+=6;

            if(ve[1]>12){ve[1]=12;}           

            if(ve[2]>12){ve[2]=12;}

            if(ve[3]>12){ve[3]=12;}}

            if(shi>18||shi<6) {cout<<"\n确定要出门探险么?夜里战斗可不利!\n   1,是  2,否"<<endl;char lmk1;lmk=_getch();}                                

            if(lmk=='2'){continue;}Sleep(333);system("cls");

            for(int i=0;i<=31;i+=1)

            {

                puts(pictures2[i]);

            }

            cin>>nd;if(nd==0||nd>15){continue;}Sleep(750);zairu();

            Sleep(333);

            system("cls");                             

            cout<<"你前往"; 

            if(nd==15){

                cout<<"松林";

                Sleep(555);               

                while(1){          

                srand(time(NULL));

                int mtts2=1+(int)(3.0 * rand()/(RAND_MAX+1.0)),mtts3=1+(int)(3.0 * rand()/(RAND_MAX+1.0));

                cout<<"===================================#"<<endl;

                cout<<"1.    剩余松树:"<<ve[3]<<endl;

                cout<<"2.    退出"<<endl; 

                    char nmk;nmk=_getch();         

                    if(nmk=='1'){if(jez<25){cout<<"饥饿值过低,无法收集材料\n";continue;}jez-=1; 

                        if(ve[3]<=0){ cout<<"没有松树了!"; }

                        else{ve[3]-=1; cl1+=mtts2;cl3+=mtts3;cout<<"你获得 木材X"<<mtts2<<", 棕榈叶X"<<mtts3<<" ,剩余松树"<<ve[3]<<"棵";}  Sleep(399);system("cls");}

                    if(nmk=='2'){break;}

                srand(time(0));int yyyyyk=rand()%25+1;

                if(yyyyyk==4){cout<<endl<<"你意外获得了 坤币X50 ";gb+=50;}              

                cout<<endl;}

            continue;} 

            if(nd==14){

                cout<<"矿场"<<endl;Sleep(555);char vb;

                while(1){

                srand(time(NULL));

                int mtts=1+(int)(3.0 * rand()/(RAND_MAX+1.0));

                cout<<"===================================#"<<endl;              

                cout<<"1.    剩余藤串:"<<ve[1]<<endl;

                cout<<"2.    剩余石片:"<<ve[2]<<endl;

                cout<<"3.    退出"<<endl;vb=_getch();  

                if(vb=='1'||vb=='2'){if(jez<25){cout<<"饥饿值过低,无法收集材料\n";continue;}jez-=1; }         

                if(vb=='1'){if(ve[1]<=0){cout<<"没有藤了!";}

                else{ve[1]-=1; cl2+=mtts;cout<<"采集成功!获得藤X"<<mtts<<",剩余藤串"<<ve[1];}}

                if(vb=='2'){if(ve[2]<=0){cout<<"没有石片了!"; }else{ve[2]-=1;cl5+=mtts;cout<<"采集成功!获得石片X"<<mtts<<",剩余石片"<<ve[2];}}

                if(vb=='3'){break;}int yyyyk=1+(int)(31.0 * rand()/(RAND_MAX+1.0));

                if(yyyyk==14||yyyyk==25){cout<<endl<<"你意外获得了 铁矿X10 ";cl4+=10;}

                if(yyyyk<=5||yyyyk==26||yyyyk==24){cout<<endl<<"你意外获得了 青金石X6";cl6+=6;}

                cout<<endl;}

            continue;} 

            gj=jjjj[nd];xl=xxxx[nd];s10=ssss[nd];cout<<sss[nd];gsx=j11[nd];jjy=j12[nd];ggb=jjjb[nd];gjfx=gjfxx[nd];

            if(shi>18||shi<6){gj=gj*4/3;}

            if(fy==4){gj=gj*2/3;}                    

            else if(fy==3){gj=gj*3/4;}   

            else if(fy==2){if(nd!=3){gj=gj*7/8;}else{gj-=1;}}  

            else if(fy==1){if(nd!=3){gj=gj*9/10;} }        

            if(ppm2==1){gj=gj*20/19;}

            if(ppm2==2){gj=gj*10/9;}

            if(ppm2==3){gj=gj*7/6;}

            if(ppm2==4){gj=gj*4/3;xl=xl-8;}

            if(ppm2==5){gj=gj/2;xl=xl-15;}           

            cout<<endl;Sleep(544); 

            cout<<"你遇到了"<<s10<<",危险指数为"<<gj/15+xl/45<<endl;Sleep(555);

            string s101=s10;

            srand(time(NULL));

            int gjuli=rand()%3+3;

            int ujuli=0;

            for(int i=1;;i++){

              int flags=0;    

            if(ppm==1){xl-=4;uxl+=3; }

            if(ppm==2){xl-=6;uxl+=7; }

            if(ppm==3){xl-=10;uxl+=14; }

            if(ppm==4){xl-=20;uxl+=38;}     

            if(ppm==5){xl-=30;uxl=uxl*17/16;}  

                if(qwz<-2){uxl-=4;}          

                jez-=3;jl-=1;if(jez<0){jez=0;}if(jl<0){jl=0;}                         

                fen+=7;

                if(fen>=60){fen=fen-60;shi+=1;}   

                if(cntm==-100){

                    cout<<"武器损坏了!!"<<endl;

                    x1=x1/2+1;s1="破烂"; 

                    cntm=2000000;             

                }                

                if(jez<=30){cout<<"你要饿死了\n"; } char kjk;

                cout<<"==============================================#"<<endl<<"要怎么办?"<<endl<<endl;Sleep(333);cout<<"  0,技能  1,攻击  2,防御  ";if(i>=3){cout<<"3,逃跑";}kjk=_getch();cout<<"\n"; 

                Sleep(344);char jnk;

                 

                if(kjk=='0'){

                    cout<<endl<<" 1,技能1(等级12,剩余"<<jnj[1]<<")   2,技能2(等级30,剩余"<<jnj[2]<<")  3,技能3(等级120,剩余"<<jnj[3]<<")  4,技能4(等级120,剩余"<<jnj[4]<<")  5,技能5(等级857,剩余"<<jnj[5]<<"):"; jnk=_getch();cout<<endl;

                    if(jnk=='1')  {

                        if(dg<12){ cout<<"等级不够!"<<endl;continue;}

                        if(jnj[1]==0){ cout<<"此技能没了!"<<endl;continue;}jnj[1]-=1;

                        cout<<"你使用了技能1,伤害提升";x1=x1*10/9;            

                    }

                    if(jnk=='2'){

                        if(dg<30)

                        {cout<<"等级不够!"<<endl;continue;}if(jnj[2]==0){cout<<"此技能没了!"<<endl;continue;}jnj[2]-=1;

                        cout<<"你使用了技能2,血量回满";uxl=sx;}

                    if(jnk=='3') {

                        if(dg<120){cout<<"等级不够!"<<endl;continue;}if(jnj[3]==0){cout<<"此技能没了!"<<endl;continue;}jnj[3]-=1;

                        cout<<"你使用了技能3,防御提升";gj=gj*15/14;                          

                    }

                    if(jnk=='4'){

                        if(dg<120){cout<<"等级不够!"<<endl;continue; }if(jnj[4]==0){cout<<"此技能没了!"<<endl;continue;}jnj[4]-=1;

                        cout<<"你使用了技能4,";Sleep(333);cout<<s10<<"受到"<<(xls[nd]+10)*2<<"点物理伤害";xl-=(xls[nd]+10)*2;

                    }

                    if(jnk=='5'){

                        if(dg<857){cout<<"等级不够!"<<endl;continue; }

                        if(jnj[5]==0){cout<<"此技能没了!"<<endl;continue;

                        }jnj[5]-=1;cout<<"你使用了技能5(大威土龙),";Sleep(333);xl/=3;}}  

                    if(gjuli-ujuli>1)

                    {

                        if(shecheng>=gjuli-ujuli)

                    	{}  

                    	else{cout<<"你向前一步\n\n";ujuli+=1;Sleep(350);    }

                    	if(gjuli-ujuli>1){gjuli-=1;cout<<s10<<"悄悄地向你走来,当前距离为"<<gjuli-ujuli<<"\n\n";}Sleep(500);

                    }         

                if(kjk=='1'){cout<<"你使用"<<s1<<"攻击,";

                srand(time(0));

                int ttl=rand()%14+1;

                if(ttl<4){cout<<s10<<"狡猾地躲避了你的攻击,";}

                else{cout<<"对"<<s10<<"造成"<<x1<<"点攻击,"; xl-=x1;}} 

                if(kjk=='2'){cout<<"你防御了来自"<<s10<<"的攻击,受到"<<2<<"点伤害";uxl-=2;xl-=4;ttk=1;}                   

                if(kjk=='3'){

                    if(i>=3)

                    {x1=k1;

                        srand(time(0));int wers=rand()%7+1;

                        if(wers==1||wers==2||wers==4){cout<<" 逃跑成功!"<<endl;}

                        else{

                            cout<<" 逃跑失败!"<<endl;

                            for(int p1=1;p1<=wers-1;p1++){if(uxl<=0)

                            {x1=k1;cout<<"你s了"; Sleep(444);

                    cout<<",是否用"<<km<<"个金币复活? 1是  2否"<<endl<<"     ";cin>>gm;

                    if(gm==1){

                        if(ugb>=km){

                            cout<<"复活成功!";ugb-=km;km+=300;

                            uxl=sx/2;break;}

                        else{Sleep(333);

                            cout<<"你的钱不够本次复活, 游戏失败!#_#"<<endl;Sleep(500);cout<<"    你生存了";Sleep(444);cout<<tian<<"天";max1=1;Sleep(500);

                        system("pause");

                        Sleep(300);

                            break; }}

                    else{

                        cout<<endl<<"游戏失败!#_#"<<endl<<"    你生存了"<<tian<<"天";tian=1;max1=1;Sleep(500);

                        system("pause");Sleep(300);

                        break;}     

                        }cout<<s10;uxl-=gj;

                                if(p1>1){cout<<"再次";}

                        cout<<"攻击!"<<endl;Sleep(444);cout<<"对你造成"<<gj<<"点伤害,当前你的血量为"<<uxl<<endl;Sleep(666); 

                        } cout<<"你趁着"<<s10<<"的攻击间隙,逃跑了" <<endl;

                    }break;

                }

            }

            Sleep(444);cntm-=1;

            cout<<"当前"<<s10<<"的血量为"<<xl<<",你的血量为"<<uxl<<endl<<endl;   

            if(kjk!='2'){if(xl>0){uxl-=gj;}} 

            if(xl<=0){}else

            {Sleep(577);

            srand(time(NULL));

            int cxk=rand()%24+1;

            if(cxk==6&&nd==10){cout<<"蔡虚坤发动了技能:唱跳rap,回复满了血量"<<endl;Sleep(633);cout<<endl;xl=500000; } 

            if(cxk==7&&nd==10) {cout<<"蔡虚坤发动了技能:只因你太美,伤害提升50%"<<endl;gj=gj*3/2;Sleep(633);cout<<endl;}

            if(cxk==8&&nd==10){cout<<"蔡虚坤发动了技能:两年半的贮蓄,穿甲提升"<<endl;gj=gj*8/7;Sleep(633);cout<<endl;x1=x1/3*2;}

            if(cxk==9||cxk==16) {

                if(nd==9){cout<<"钏姍钾发动了技能:鸡汤来咯,伤害提升30%"<<endl;Sleep(633);cout<<endl;gj=gj*13/10;}

                if(nd==8){cout<<"人物1发动了技能:伤害提升10%"<<endl;Sleep(633);cout<<endl;gj=gj*11/10;}

                if(nd==7){cout<<"森林巨人发动了技能:咀吼,伤害提升15%"<<endl;Sleep(633);cout<<endl;gj=gj*6/5;}

                if(s10=="怪哉"){cout<<"怪哉发动了技能:惊跳,穿甲提升"<<endl;Sleep(633);cout<<endl;gj=gj*7/6;}

            }

            if(i==12){cout<<s101<<"升级咯!"<<endl;s10="尸化分解"+s101;xl=xl+xls[nd]-1;gj=gj+gjs[nd]-1;}

            if(i==19){cout<<s101<<"升级咯!"<<endl;s10="未转化完全状态";xl+=xls[nd]+1;gj=gj+gjs[nd]+1;}

            if(i==29){cout<<s101<<"升级咯!"<<endl;s10="坤启吴炎泽兽";xl+=xls[nd];gj=gj+gjs[nd]+1;}

            if(i==33){cout<<s101<<"升级咯!"<<endl;s10="坤盛吴炎泽兽";xl+=xls[nd]*2;gj=gj+gjs[nd]*2;}

            if(i==39){cout<<s101<<"升级咯!"<<endl;s10="坤化吴炎泽兽";xl+=xls[nd]*3;gj=gj+gjs[nd]*3;}

            if(i==45){cout<<s101<<"升级咯!"<<endl;s10="坤坤病毒体";xl+=xls[nd]*5;gj=gj+gjs[nd]*5;}

            if(i==59){cout<<s101<<"升级咯!"<<endl;s10="魔化坤坤母体";xl+=6000;gj=gj*2;}

            if(ttk==1){ttk=0;continue;}

            if(gjuli-ujuli<=1)

            {

                 if(nd==8||s101=="小小坤"||s101=="怪哉"){xl=xl*90/89;}int cty=rand()%9+1;

                if(s10=="坤启吴炎泽兽"||s10=="坤盛吴炎泽兽"||s10=="坤化吴炎泽兽"||s10=="坤坤病毒体"||s10=="魔化坤坤母体"){system("color 5D");}

                else if(cty>=3){system("color 4C");}

                cout<<s10<<"使用";

                cout<<gjfx;cout<<"攻击了你,";

                srand(time(0));

                if(cty<3){cout<<"你向后一撤,避开了此次攻击,";}

                else {cout<<"对你造成了"<<gj<<"的伤害,";Sleep(60);}       

                if(shi>18||shi<=6){system("color 0F");}

                else{system("color F0");}

                Sleep(222);cout<<"当前"<<s10<<"的血量为"<<xl<<",你的血量为"<<uxl<<endl;cout<<endl;       

            }                        

            }                                                 

            Sleep(644);cout<<endl;

            if(xl<=0)

            {rw7+=1;

                if(nd==1){rw1+=1;}

                if(nd==2){rw4+=1;}              

                if(nd==4){rw8+=1;}

                if(nd==5){rwc+=1;}

                if(nd==6) {rwd+=1;}

                if(s101=="怪哉"){ml2++;}

                Sleep(100); x1=k1;cout<<" 最后,"<<s10<<"终于倒下了身躯"<<endl;Sleep(500);

                 

             if(s101=="蔡虚坤"){

                string db="这时,蔡虚坤手中的篮球突然现出一道金光...是毁灭了吗?当你再次睁开眼,一只小黑子蹦了出来。";

                for(int i=0;i<=db.size()-1;i+=1){cout<<db[i];Sleep(59);}

                cout<<endl;s101="小小坤";s10="小小坤";xl=400000;gj=300; continue;nd=8;

             }

             if(s10=="魔化坤坤母体"){

                string db2="出现一只更恐怖的怪哉,看样子难免一战了";

                for(int i=0;i<=db2.size()-1;i+=1){cout<<db2[i];Sleep(59);}

                cout<<endl;s101="怪哉";s10="怪哉";xl=320000;gj=28000; ml2+=1;continue; 

             }srand(time(0));int tlo=rand()%12+1;

            cout<<"  你击倒了"<<s10<<",血量上限+"<<gsx<<"  金币+"<<ggb<<endl;

            if(nd==1||nd==2){cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包1,野生绷带2,木材1,棕榈叶1"<<endl;jjb++;bd+=2;cl1+=1;cl3+=1;}

            else if(nd==3||nd==4){cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包3,野生绷带3,木材4,藤条3"<<endl;jjb+=3;bd+=3;cl1+=4;cl2+=3;}

            else if(nd==5){cout<<"   在"<<s10<<"的尸体上,你捡到了野生医疗箱3,青金石2,铁锭4,木材10,棕榈叶10"<<endl;cl6+=2;cl4+=4;yls+=3;cl1+=10;cl3+=10;}

            else if(nd==9){cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包120,野生鸡血100,医疗箱30 金币1000 藤条20 棕榈叶20 木材20 "<<endl;jjb+=120;yls+=30;gb+=1000;cl1+=20;cl2+=20;cl3+=20; js+=50;} 

            else if(nd==7||nd==8){cout<<"   在"<<s10<<"的尸体上,你捡到了青金石8,野生急救包50,野生鸡血50,医疗箱15 金币100 木材8 铁锭5"<<endl;cl6+=8;jjb+=50;yls+=15;gb+=100;js+=25;cl1+=8;cl4+=5;} 

            else if(s101=="小小坤"){cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包100,野生鸡血50,医疗箱15 金币1000 棕榈叶200 铁锭500"<<endl;jjb+=100;yls+=15;gb+=1000;js+=50;cl3+=200;cl4+=500;} 

            else if(nd==6){cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包50,青金石3,野生鸡血50,医疗箱20 金币100 鲜美的鸡汤10 木材10 铁锭3"<<endl;cl6+=3;jjb+=50;yls+=20;gb+=100;js+=25;sp3+=10;cl1+=10;cl4+=3;} 

            else{cout<<"   在"<<s10<<"的尸体上,你捡到了野生急救包100,野生鸡血500,医疗箱100,木材300,棕榈叶200,藤条200,铁锭150"<<endl;jjb+=100;js+=500;cl1+=300;cl5+=150;cl3+=200;cl2+=200;yls+=100;}

            cout<<"\n 生肉2";sc1+=1;

            if(nd==7||nd==12||nd==11||nd==13||nd==8||s101=="小小坤"){if(tlo<3||s101=="小小坤"){cout<<" 人类基因1";ml1+=1;}}

             sx+=gsx;ugb+=ggb;Sleep(545);

             cout<<"  +"<<jjy<<"XP"<<endl;ujy+=jjy;

             if(ujy>=jysx){

                cout<<"你升级了,当前等级为:";

                dg+=1+(jjy-jysx)/jysx;cout<<dg;sx+=jm;uxl+=jm;

                gj+=jm2-1;jm++;jm2++;

                jysx=jysx*2-1;

                jezsx+=2*(1+(jjy-jysx)/jysx);jez+=2*(1+(jjy-jysx)/jysx);cout<<"   增加了伤害"<<jm<<",血量"<<jm2-1<<endl;         

             }

                break;

            }                            

            if(uxl<=0){

                    cout<<"你死了"; Sleep(444);cout<<",是否用"<<km<<"个金币复活? 1是  2否"<<endl<<"     ";cin>>gm;

                    if(gm==1){

                    if(ugb>=km){cout<<"复活成功!";ugb-=km;km+=300;uxl=sx/2;break;}

                    else{Sleep(333);cout<<"你的钱不够本次复活, 游戏失败!#_#"<<endl;Sleep(500);cout<<"    你生存了";Sleep(444);cout<<tian<<"天";max1=1;Sleep(2000);system("pause");Sleep(300); break; }}

                    else{

                        cout<<endl<<"游戏失败!#_#"<<"    你生存了"<<tian<<"天\n"<<endl;max1=1;

                        Sleep(500);system("pause");Sleep(300); break;}

            }}}

        if(nop=='3'){

            jez-=6;jl-=4;fen+=30;

            if(jl<15){cout<<"你太疲惫了,无法寻宝";continue;} 

            cout<<"你四处搜寻,";

            Sleep(500);srand(time(NULL));int e=rand()%cmk+1;rwb++;

            if(e==60){

                int asdfghjkl;cout<<"找到了机关弩 \n 是否替换它?1,yes  2,no   :";cin>>asdfghjkl;  

                if(asdfghjkl==1){cout<<endl<<s1<<"被你丢弃了!";s1="机关弩";x1=3000;shecheng=3;} 

                else{cout<<"机关弩被你丢弃了!";}Sleep(100);

            }

            else if(e==8||e==9||e==18||e==19||e==21){cout<<"找到了5个绷带"<<endl;bd+=5;} 

            else if(e==6||e==7||e==17||e==22){cout<<"找到了1个急救包"<<endl;jjb+=1;}

            else if(e==23||e==24||e==25){cout<<"找到了2个鸡血"<<endl;js+=2;}

            else if(e==26||e==27||e==28){cout<<"找到了1个过期医疗箱"<<endl;yls+=1;}

            else if(e==29||e==30) {cout<<"找到了2个不知道有没有毒的鸡汤"<<endl;sp3+=2;}

            else if(e==31||e==32||e==33){cout<<"找到了3罐龟野牌牛肉罐头"<<endl;sp2+=3;}

            else if(e==20){cout<<"找到了一个宝箱,打开一看,居然是500个金币"<<endl;ugb+=500;}

            else{cout<<"没有找到什么宝藏"<<endl;rwb--;}       

             cout<<"  +"<<20<<"Find XP"<<endl;p1=p1+20;

            if(p1>=p2){cout<<"你升级了,当前等级为:";pdg+=1;cout<<pdg;p2=p2*2+5;cmk-=3;cout<<"  无收获概率降低"<<endl;}Sleep(555);    

        }

        if(nop=='4'){

            if(tm9==0){cout<<"需要钓鱼台以钓鱼!\n";continue;}int aa;

            while(3.14){            

            Sleep(500);   

            cout<<"1,饵料  2,钓鱼  3,退出\n";cin>>aa;

            if(aa==1){cout<<"无!\n"; }

            if(aa==2){

                fen+=30;jl-=1;jez-=3;

                if(fen>=60){shi+=fen/60;fen=fen%60;}

                cout<<"你等待一会,";Sleep(800);srand(time(NULL));int aas=rand()%80+1;

                if(fishing[aas]==""){cout<<"并没有钓到什么东西\n\n";continue;} 

                cout<<"等待了30分钟收货了"<<fishing[aas]<<"\n\n";

                fishs[aas].times+=1;}

            if(aa==3){break;} 

            }   

        }

        if(nop=='5'){system("cls");

            zz1++;

            if(zz1==1){tian20=tian21=tian22=tian;} 

            srand(time(0));

            int oo=rand()%5+2;

            if(tian21+1<tian){zz2=6;tian21=tian;}

            else{}

            if(tian22+1<tian){zz3=6;tian22=tian;}

            else{}

            if(tian20<tian){tian20=tian;}else{oo=0;} 

            cout<<"\n\n                            你的种植园\n";

            cout<<"   __|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__\n";

            cout<<"  |  |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |  |  \n";

            cout<<"__|__                                                             __|__\n";

            cout<<"__|__                                                             __|__\n";

            cout<<"__|__         O                   R                 D             __|__\n";

            cout<<"__|__        露水"<<oo<<"             土豆:"<<zz2<<"            蜂蜜:"<<zz3<<"           __|__\n";

            cout<<"__|__                                                             __|__\n";

            cout<<"__|__                                                             __|__\n";

            cout<<"  |__|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__|\n";

            cout<<"     |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |    \n";         

            cout<<"\n      是否采集: 1,yes   2,no ";char t;t=_getch();

            if(t=='1') 

            {

                sc2+=zz2;zz2=0;

                sc4+=zz3;zz3=0;

                sc3+=oo;oo=0;

                cout<<"\n    采集成功";Sleep(1000);

            }system("cls");

        } 

        }       

        if(ch2=='2'){

            cout<<" 当前游戏时间为   "<<shi<<":"<<fen<<"\n";

            cout<<" 现实时间 ";gettime();cout<<"   请注意游玩时间!"; 

            cout<<endl<<"  你的等级:"<<dg<<endl;          

            cout<<"   武器:"<<s1<<" (伤害"<<x1<<",射程"<<shecheng<<"段)"<<endl;

            for(int i=1;i<=3;i++){if(dfs1[1]==""){continue;}cout<<"      "<<dfs1[i]<<endl;}            

            cout<<endl<<"   饥饿值:"<<jez<<"/"<<jezsx;   

            if(jez<=44){cout<<" 饥肠辘辘"; }

            else if(jezsx-jez<=60){cout<<" 饱腹";}

            else {cout<<" 空腹"; }   

            cout<<endl ;cout<<"      精力:"<<jl<<endl;  cout<<"   血量HP:"<<uxl<<"/"<<sx<<"  ";

            if(uxl<=55){cout<<"血流不止"; }

            else if(uxl>55&&uxl<=sx/2) {cout<<"伤痕累累"; }

            else if(uxl>sx/2&&uxl<sx/4*3){cout<<"皮外伤";}

            else{cout<<"健康";}                                       

            Sleep(1055);

        }

        if(ch2=='3')

        {char fop; 

            cout<<"要怎么办?\n 1,治疗  2,食品  3,休息  4,退出:";fop=_getch();

            if(fop=='4'){cout<<"\n";continue;} 

            if(fop=='1'){

            cout<<"\n\n目前你的血量:"<<uxl<<"   状态:";

            if(uxl<=55){cout<<"血流不止";}

            else if(uxl>55&&uxl<=85){cout<<"伤痕累累";}

            else if(uxl>55&&uxl<125){cout<<"皮外伤";}

            else{cout<<"健康";}cout<<endl; 

            if(tm4==0){cout<<"  需要修复医药室来加血!"<<endl;Sleep(600);continue;}

            cout<<"药品:   急救包"<<jjb<<"个(填1)    绷带"<<bd<<"个(填2)   鸡血"<<js<<"个(填3)"<<"   医疗箱"<<yls<<"个(填4)"<<endl<<"    填5跳过"<<endl<<"   ";cin>>yp;

            if(yp>5||yp<1){cout<<"小兔崽子,重新输入!!!"<<endl;}

            if(yp==5){continue;} 

            if(yp==1&&jjb==0){cout<<"没有急救包了!"<<endl;continue;}

            else if(yp==2&&bd==0){cout<<"没有绷带了!"<<endl;continue;}

            else if(yp==3&&js==0){cout<<"没有鸡血了!"<<endl;continue;}

            else if(yp==4&&yls==0){cout<<"没有医疗箱了!"<<endl;}

            if(uxl==sx&&yp!=3){cout<<"血量已满,不用加血";continue;}cout<<endl<<"你使用了";

            if(yp==1){cout<<"急救包+18点血";uxl+=18;jjb-=1;}

            else if(yp==2){cout<<"绷带+2点血";uxl+=2;bd-=1;}

            else if(yp==4){cout<<"医疗箱+38点血";uxl+=38;yls-=1;}

            else if(yp==3){cout<<"鸡血+1点攻击";x1+=1;js-=1;cout<<"  当前你的伤害为:"<<x1;continue; }           

            if(uxl>sx){uxl=sx;}

            Sleep(399);cout<<"     当前血量HP为"<<uxl<<"/"<<sx<<endl;Sleep(555);   

            } 

            if(fop=='2'){Sleep(333); 

            cout<<"\n\n 当前你的饥饿值为:"<<jez<<"/"<<jezsx<<"   状态:";

            if(jezsx/4*1>=jez){cout<<"饥肠辘辘";}

            else if(jezsx/7*5<jez) {cout<<"饱腹";} 

            else{cout<<"空腹";}cout<<endl;

            if(tm5==0){cout<<"  需要修复食品加工台,来使用\n";Sleep(555);continue;}jl-=3;

            cout<<endl<<endl;Sleep(333);

            cout<<"         1,烹饪      2,食用\n"; char cltt;cltt=_getch();

            if(cltt=='2'){ 

            cout<<"\n目前你有食品:1,穿山甲肉松饼干"<<sp1<<"个  2,龟野牌牛肉罐头"<<sp2<<"个  3,无毒鸡汤"<<sp3<<"个 \n";

            for(int i=1;i<=14;i+=1){

                if(fishs[i].times ==0){continue;}

                cout<<i+3<<","<<fishing[i]<<fishs[i].times <<"个  ";

            }cout<<"\n";

            for(int i=1;i<=7;i++){

                if(cfs[i].ts ==0){continue;} 

                cout<<i+17<<","<<cfnm[i]<<cfs[i].ts <<"个  ";

            }

            cin>>io;if(io>26||io<1){cout<<"重新输入\n";continue;} int ttm=0,ttm2=0; 

            for(int i=1;i<=14;i+=1){if(fishs[i].times ==0){if(io-3==i){ttm=1;continue;}}}

            if(ttm==1){cout<<"重新输入\n";continue;}

            for(int i=1;i<=7;i++)

            {

                if(cfs[i].ts ==0){if(io-17==i){ttm2=1;continue;}} 

             } if(ttm2==1){cout<<"重新输入";continue;} 

            fen+=10;cout<<endl;

            if(io==0){continue;}else{rw9+=1;}

            if(jez>=jezsx){cout<<"你吃饱了!!"<<endl;continue;   }

            if(io==1){if(sp1<=0){cout<<"没有穿山甲肉松饼干了!"<<endl;sp1=0;continue;}}

            else if(io==2){if(sp2<=0){cout<<"没有龟野牌牛肉罐头了!"<<endl;sp2=0;continue;}}

            else if(io==3){if(sp3<=0){cout<<"没有无毒鸡汤了!"<<endl;sp3=0;continue;}}

            else if(io>3&&io<=17){if(fishs[io-3].times ==0){cout<<"没有"<<fishing[io-3]<<"了";}}

            else if(io>17){if(cfs[io-17].ts ==0){cout<<"没有"<<cfnm[io-17]<<"了";}}

            Sleep(100);cout<<" 正在食用";            

            if(io==1){cout<<"穿山甲肉松饼干"; jez+=60;sp1--;}

            else if(io==2){cout<<"龟野牌牛肉罐头";  jez+=120;sp2--;} 

            else if(io==3){cout<<"无毒鸡汤";jez=jezsx;sp3--;} 

            else if(io>3&&io<=17){io-=3;cout<<fishing[io];jez+=fishs[io].jjes ;fishs[io].times -=1;}

            else if(io>17){cout<<cfnm[io-17];jez+=cfs[io-17].js ;cfs[io-17].ts -=1;} 

            cout<<"中";        

            for(int i=1;i<=3;i++){cout<<".";Sleep(300);}

            if(jez>jezsx){jez=jezsx;}

            cout<<endl<<"食用完毕,当前饥饿值为"<<jez<<"/"<<jezsx<<endl;   

            Sleep(333);     

            }

             if(cltt=='1')

             {

            cout<<"\n    你解锁的菜谱\n";

            cout<<" 1, 烹饪烤肉\n";

            cout<<"  食材:木材1 生肉1 \n\n"; 

            cout<<" 2, 烹饪烤\'鱼\'\n";

            cout<<"  食材:木材1 蜂蜜1\n\n"; 

            cout<<" 3, 烹饪荒野烤肉\n";

            cout<<"  食材:蜂蜜2 藤条1 生肉1\n\n"; 

            cout<<" 4, 烹饪烤土豆\n";

            cout<<"  食材:木材1 土豆1 \n\n"; 

            cout<<" 5, 烹饪肉汤\n";

            cout<<"  食材:淡水1 生肉2 土豆1\n\n"; 

            cout<<" 6, 烹饪土豆泥\n";

            cout<<"  食材:淡水1 土豆3\n\n"; 

            cout<<" 7, 烹饪秘制炖肉\n";

            cout<<"  食材:淡水2 木材1 蜂蜜2\n";

            cout<<"  土豆1 藤条1 生肉2\n  "; 

            int cf;cin>>cf;

            if(cf==1){if(cl1<1||sc1<1){cout<<"食材不够!";continue;}cl1-=1;sc1-=1;} 

            if(cf==2){if(cl1<1||sc4<1){cout<<"食材不够!";continue;}cl1-=1;sc4-=1;}

            if(cf==3){if(cl2<1||sc4<2||sc1<1){cout<<"食材不够!";continue;}cl2-=1;sc4-=2;sc1-=1;}

            if(cf==4){if(cl1<1||sc2<1){cout<<"食材不够!";continue;}cl1-=1;sc2-=1;}

            if(cf==5){if(sc3<1||sc2<1||sc1<1){cout<<"食材不够!";continue;}sc3-=1;sc2-=1;sc1-=1;}

            if(cf==6){if(sc3<1||sc2<1){cout<<"食材不够!";continue;}sc3-=1;sc2-=1;}

            if(cf==7){if(cl1<1||cl2<1||sc1<2||sc2<1||sc3<2||sc4<2){cout<<"食材不够!";continue;}cl1-=1;cl2-=1;sc1-=2;sc2-=1;sc3-=2;sc4-=2;}

            cout<<"正在烹饪"<<cfnm[cf];for(int i=1;i<=3;i++){Sleep(300);cout<<".";}cout<<"\n";

            cout<<"      烹饪完毕";  

            cfs[cf].ts ++;Sleep(555);

             }  

            }

            if(fop=='3'){

            if(tm1==0&&tm2==0&&tm3==0){

            cout<<"\n没有床,无法睡觉";Sleep(444);continue; }

            cout<<"请设置入睡时间吧!"<<endl;

            cout<<"1:小息一会  1h"<<endl;

            cout<<"2: 深度休息  4h"<<endl;

            cout<<"3: 常规作息  8h"<<endl;

            cout<<"4: 睡到 XX->7:00"<<endl;cin>>stepisSB;

            if(stepisSB==1){stepisverySB=1;}

            if(stepisSB==2){stepisverySB=4;}

            if(stepisSB==3){stepisverySB=8;} 

            cout<<"确定要入睡吗?1确定,2否定(睡觉会消耗饥饿值,越好的床消耗饥饿值越少)";cin>>step;

            if(step==2){continue;}

            srand(time(0));int stm=rand()%aqw+1;

            if(stm==1){cout<<"\n\n睡梦中,你遭到了动物们的侵袭,\n";Sleep(555);cout<<"失去物品:金币"<<ugb/10+1<<" 木材"<<cl1/5+1<<" 急救包"<<jjb/4+1<<endl<<"肉松饼干"<<sp1/5+1<<"\n";

            ugb=ugb-ugb/10;cl1=cl1-cl1/8;                        

            jjb=jjb-jjb/8;sp1=sp1-sp1/5;                        

            njz-=15;Sleep(333);}

            if(qwz<-8)

            {cout<<endl<<"这一晚风雪交加,注定是个难熬的一夜!\n";uxl-=37;}    

            if(tm1==1&&tm2==0&&tm3==0){cout<<"你美美的睡上一觉,恢复了一定的血量";jl+=6;uxl+=60;jez-=48;}

            if(tm2==1&&tm3==0){cout<<"你美美的睡上一觉,恢复满了血量";jl+=10;uxl=sx;jez-=37;}  

            if(tm3==1){cout<<"你美美的睡上一觉,恢复满了血量,并获得加成";sx+=20;uxl=sx;jez-=15;jl+=12;jezsx+=2;}

            if(stepisSB==1){jl+=10;jez-=12;}

            if(stepisSB==2){jl+=40;jez-=35;}

            if(stepisSB==3){jl+=90;jez-=68;}

            if(stepisSB==4){                       

                if(shi>=1&&shi<7){shi=7;jl+=(7-shi)*8;jez-=(7-shi)*7;}

                else{shi=7;tian+=1;jl=100;jez-=62;}ve[1]+=6;ve[2]+=6;ve[3]+=6;

            if(ve[1]>12){ve[1]=12;}           

            if(ve[2]>12){ve[2]=12;}

            if(ve[3]>12){ve[3]=12;}}

            else{shi+=stepisverySB;}  

            if(uxl>sx){uxl=sx;}if(jl>150){jl=150;}    

            } 

        }

    if(ch2=='4')

    {if(rw11==0){cout<<"\n\n任务1:击杀小野猪2只 ";

    if(rw1>=2){cout<<"已完成"<<endl<<"  奖励铁锭4个";cl4+=1; rw11=1;}    

    else {cout<<"  进度:"<<rw1<<"/"<<2;} cout<<endl<<endl;Sleep(544);}

    if(rw11==1&&rw21==0) {cout<<"任务2:收集10个绷带";

    if(bd>=10){cout<<"已完成"<<endl<<"  奖励金币30个";ugb+=30; rw21=1;}    

    else {cout<<"  进度:"<<bd<<"/"<<10;} 

    cout<<endl<<endl;Sleep(544);}

    if(rw11==1&&rw21==1&&rw31==0) {cout<<"任务3:收集8个急救包";

    if(jjb>=8){cout<<"已完成"<<endl<<"  奖励穿山甲肉松饼干3个";sp1+=3; rw31=1;}    

    else {cout<<"  进度:"<<jjb<<"/"<<8;} 

    cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==0){

    cout<<"任务4:击败鳄龟3只";if(rw4>=3){

    cout<<"已完成"<<endl<<"  奖励鸡汤2个";sp3+=2; rw41=1;}    

    else {cout<<"  进度:"<<rw4<<"/"<<3;} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==0) {

    cout<<"任务5:拥有鸡血30";

    if(js>=30){cout<<"已完成"<<endl<<"  奖励鸡血40个";js+=40;rw51=1;}    

    else {cout<<"  进度:"<<js<<"/"<<30;} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==0){

    cout<<"任务6:等级达到8";

    if(js>=30){cout<<"已完成"<<endl<<"  奖励金币150个";ugb+=150;rw61=1;}    

    else {cout<<"  进度:"<<js<<"/"<<30;} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==0) {

    cout<<"任务7:使用热武器击杀5只动物";

    if(rw7>=5){cout<<"已完成"<<endl<<"  奖励鸡汤10个";sp3+=7; rw71=1;}    

    else{cout<<"  进度:"<<js<<"/"<<"5";} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==0){

    cout<<"任务8:击败水电怪3只";

    if(rw8>=3){cout<<"已完成"<<endl<<"  奖励医疗箱15个";yls+=15;rw81=1;}    

    else {cout<<"  进度:"<<rw8<<"/"<<"3";} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==0){

    cout<<"任务9:累计食用25个食物";

    if(rw8>=3){cout<<"已完成"<<endl<<"  奖励龟野牌牛肉罐头15个";sp2+=15;rw91=1;}    

    else {cout<<"  进度:"<<rw9<<"/"<<"15";} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==1&&rwa1==0){

    cout<<"任务10:累计购买30个商品";

    if(rwa>=30){cout<<"已完成"<<endl<<"  奖励金币200个";ugb+=200;rwa1=1;}    

    else {cout<<"  进度:"<<rwa<<"/"<<"30";}cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==1&&rwa1==1&&rwb1==0){

    cout<<"任务11:累计通过找寻获得10件物品";

    if(rwb>=8){cout<<"已完成"<<endl<<"  降低无收获概率%10";cmk-=15;rwb1=1;}    

    else {cout<<"  进度:"<<rwb<<"/"<<"8";} cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==1&&rwa1==1&&rwb1==1&&rwc1==0){

    cout<<"任务12:击败土蜥蜴";

    if(rwc>=1){cout<<"已完成"<<endl<<"  奖励差1秒过期的医疗箱17个";yls+=17;rwc1=1;}    

    else {cout<<"  进度:"<<rwc<<"/"<<"1";} 

    cout<<endl<<endl;Sleep(545);}

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==1&&rwa1==1&&rwb1==1&&rwc1==1&&rwd1==0){               

    cout<<"任务13:击败野人酋长";

    if(rwd>=1){cout<<"已完成"<<endl<<"  奖励差1秒过期的医疗箱20个";yls+=20;rwd1=1;}    

    else{cout<<"  进度:"<<rwd<<"/"<<"1";} cout<<endl<<endl;Sleep(545);} 

    if(rw11==1&&rw21==1&&rw31==1&&rw41==1&&rw51==1&&rw61==1&&rw71==1&&rw81==1&&rw91==1&&rwa1==1&&rwb1==1&&rwc1==1&&rwd1==0) {cout<<"任务全部完成";}

    Sleep(800);

} 

if(ch2=='5') {          

int lx1,lx2,lx3,lx4,lx5,ytrt;

cout<<"\n                   工作台\n";

cout<<"1,用具   2,武器  3,锻造   4,附魔   5,特殊";

for(int i=0;i<=18;i+=1){puts(pictures4[i]);} 

char nmt; 

nmt=_getch();

cout<<endl;

if(nmt=='1'){

cout<<"                  用具:"<<endl;

cout<<"1: 棕榈床    材料:木材3、 棕榈叶3"<<endl;

cout<<"2:吊床      材料:木材2、 藤条10、铁锭1"<<endl;

cout<<"3:卧室      材料:木材10、藤条15、棕榈叶15、铁锭7"<<endl; 

cout<<"4: 医药台    材料:木材3、 棕榈叶2、石片1"<<endl;

cout<<"5:食品加工台 材料:木材2、 藤条2 "<<endl;

cout<<"6: 低级围栏  材料:木材5、 藤条3"<<endl;

cout<<"7: 中级围栏  材料:木材12、藤条5、石片2\n";

cout<<"8: 高级围栏  材料:木材20、藤条12、铁锭4\n";

cout<<"27: 钓鱼台   材料:木材5、 藤条7、 石片5、棕榈叶2\n\n";

} else if(nmt=='2'){

cout<<"                  武器:"<<endl;

cout<<"9: 求生小刀    材料:石片2"<<endl;

cout<<"10: 战斗斧     材料:木材2、石片3"<<endl;

cout<<"11:  短弓      材料:木材4、藤条3"<<endl;

cout<<"12:木质弓弩    材料:木材6、石片1、铁锭2、藤条4"<<endl;

cout<<"22:木制手枪    材料:弹簧1 木材4 枪管1"<<endl;

cout<<"23:  猎枪      材料:撞针1 枪管2"<<endl;

cout<<"24:小型冲锋枪  材料:撞针1 弹簧2 枪管2 铁2"<<endl;

cout<<"25:  HK416     材料:撞针2 照门2 弹簧3 枪管3 铁4 木材2 藤条1"<<endl;       

cout<<"26: M2重机枪   材料  铁500 木材500"<<endl;     

} else if(nmt=='3'){

cout<<"  (消耗燃料木头2) 锻造:" <<endl; 

cout<<"13:木制盔甲   材料:木材5、藤条3"<<endl; 

cout<<"14: 石制盔甲   材料:木材1、石片10、藤条5"<<endl;

cout<<"15: 软绳盔甲   材料:木材1、藤条30、棕榈叶8"<<endl;

cout<<"16: 钢铁盔甲   材料:藤条5、铁锭20、钢铁6、石片5"<<endl;

cout<<"17: 撞针零件   材料:铁锭1"<<endl;

cout<<"19:   照门     材料:铁锭1"<<endl;

cout<<"20:   弹簧     材料:铁锭1 藤条1"<<endl;

cout<<"21:   枪管     材料:铁锭5"<<endl;

cout<<"28:   钢铁     材料:铁锭4 "<<endl<<endl; 

if(cl1<2){cout<<" 木材不够!"<<endl;continue;}cl1-=2;}

else if(nmt=='5'){

if(dg<80){cout<<"等级过低,无法制作(需80级)\n";Sleep(666);continue;}ytrt=5;

cout<<"                   特殊\n"; 

cout<<"29:      狼末       材料: 钢铁30    石片20     藤条40\n";

cout<<"30:    生物燃料     材料: 木材10    无毒鸡汤2  棕榈叶10\n";

cout<<"31:   一子级箭体    材料: 钢铁50    木材100    棕榈叶50  藤条100\n";

cout<<"32:   二子级箭体    材料: 钢铁100   棕榈叶100  石片30\n";

cout<<"33:   火箭助推器    材料: 钢铁10    棕榈叶80 \n";

cout<<"34:气温与压力控制舱 材料: 钢铁200   铁锭100    藤条50    棕榈叶200   木材10  远古智慧4\n";

cout<<"35:     居住舱      材料: 钢铁10    木材50     鸡汤10    牛肉罐头50  人类基因3(击败人类概率掉落)\n";

cout<<"36:   量子融合器    材料: 铁锭5     木材10 (注:完成1次火箭发射需10燃料)\n\n"; 

}

if(nmt!='4')

{cout<<" 你有木材:"<<cl1<<", 藤条:"<<cl2<<",棕榈叶"<<cl3<<",铁锭"<<cl4<<",石片"<<cl5<<",钢铁"<<cl7;if(ytrt==5){cout<<",生物燃料"<<tl1<<",人类基因"<<ml1;}cout<<endl; Sleep(555); 

cout<<"要制作什么?";

cin>>nm;      

if(jl<15){cout<<"精力不够,无法建造!";Sleep(666);continue;} 

if(nm==18){continue;}int sll;

lx1=cll1[nm];

lx2=cll2[nm];

lx3=cll3[nm];

lx4=cll4[nm];

lx5=cll5[nm];

if(nm==28){cout<<"输入数量:";cin>>sll;lx4*=sll;} 

if(cl1<lx1||cl2<lx2||cl3<lx3||cl4<lx4||cl5<lx5){cout<<"材料不够! "; Sleep(533);continue;}

cl1-=lx1;cl2-=lx2;cl3-=lx3;cl4-=lx4;cl5-=lx5; 

if(nm==1){tm1=1;}

if(nm==2){tm2=1;}

if(nm==3){tm3=1;}

if(nm==4){tm4=1;}

if(nm==5){tm5=1;}

if(nm==6){aqw=17;}

if(nm==7){aqw=25;}

if(nm==8){aqw=71;}                  

if(nm==27){tm9=1;} 

if(nm==9){s1="求生小刀";x1=20;shecheng=1;fmtj=fmtj2=fmtj3=0;}

if(nm==10){s1="战斗斧";x1=32;shecheng=1;fmtj=fmtj2=fmtj3=0;}     

if(nm==11){s1="短弓";x1=40;shecheng=2;fmtj=fmtj2=fmtj3=0;}

if(nm==12){s1="木制弓弩";x1=80;shecheng=3;fmtj=fmtj2=fmtj3=0;}

if(nm==13){fy=1;}

if(nm==14){fy=2;}

if(nm==15){fy=3;}

if(nm==16){if(cl7<6){cout<<"材料不够!";continue;}cl7-=6;fy=4;}

if(nm==17){linjian[1]+=1;}

if(nm==19){linjian[2]+=1;}

if(nm==20){linjian[3]+=1;}

if(nm==21){linjian[4]+=1;}

if(nm==22){if(linjian[3]<1||linjian[4]<1||cl1<4){cout<<"材料不够!";Sleep(533);continue;}linjian[3]-=1;linjian[4]-=1;cl1-=4;s1="木制手枪";shecheng=3;x1=200;fmtj=fmtj2=fmtj3=0;}

if(nm==23){if(linjian[1]<1||linjian[4]<2){cout<<"材料不够!";Sleep(533);continue;}linjian[1]-=1;linjian[4]-=2;s1="猎枪";shecheng=3;x1=330;  fmtj=fmtj2=fmtj3=0;}

if(nm==24){if(linjian[1]<1||linjian[3]<2||linjian[4]<2||cl4<2){cout<<"材料不够!";Sleep(533);continue;}linjian[1]-=1;linjian[3]-=2;linjian[4]-=2;cl4-=2;s1="冲锋枪";shecheng=4;x1=570;   fmtj=fmtj2=fmtj3=0;      }

if(nm==25){if(linjian[1]<2||linjian[2]<2||linjian[3]<3||linjian[4]<3||cl4<4||cl2<1||cl1<2){cout<<"材料不够!";Sleep(533);continue;}linjian[1]-=2;linjian[2]-=2;linjian[3]-=3;linjian[4]-=3;cl4-=4;cl2-=1;cl1-=2;s1="HK416突击步枪";shecheng=4;x1=1500;         } 

if(nm==26) {x1=2000;s1="m2重机枪";shecheng=4; fmtj=fmtj2=fmtj3=0;}

if(nm==28){cl7+=sll;} 

if(nm==29){if(cl7<30){cout<<"材料不够!";continue;}cl7-=30;s1="狼末";shecheng=2;x1=10000;fmtj=fmtj2=fmtj3=0;} 

if(nm==30){if(sp3<2){cout<<"材料不够!";continue;}sp3-=2;tl1+=2;} 

if(nm==31){if(cl7<50){cout<<"材料不够!";continue;}cl7-=50;tl2+=1;}

if(nm==32){if(cl7<100){cout<<"材料不够!";continue;}cl7-=200;tl3+=1;}

if(nm==33){if(cl7<10){cout<<"材料不够!";continue;}cl7-=10;tl4+=1;} 

if(nm==34){if(cl7<200||ml2<4){cout<<"材料不够!";continue;}ml2-=4;cl7-=500;tl5+=1;}

if(nm==35){if(cl7<10||sp3<10||sp2<50||ml1<3){cout<<"材料不够!";continue;}cl7-=10;sp3-=10;sp2-=50;ml1-=3;tl6+=1;} 

if(nm==36){tl7+=1;} 

if(tl1>=10&&tl2>0&&tl3>0&&tl4>0&&tl5>0&&tl6>0&&tl7>0){plof=1;} 

if(nm>36||nm<1){cout<<" 无此建造物品!";Sleep(564);continue; }

cout<<"正在建造中";for(int i=1;i<=3;i++){cout<<".";Sleep(555);}cout<<endl<<" 已建造完毕";Sleep(666);jl-=5;fen+=30;}

else{   string m0;             

cout<<"你的武器:"<<s1<<"     剩余青金石"<<cl6<<endl;Sleep(666);

cout<<" 1.锋利?  耗材10/"<<endl;

cout<<" 2.抗性?  耗材15//"<<endl;

cout<<" 3.吸血?  耗材20///"<<endl;

cin>>fmt;

if(fmt==1){

if(cl6<10){cout<<"材料不够!";continue;}

if(fmtj==1){cout<<"你附魔过此属性了";continue;}fmtj=1;

m0="锋利";cl6-=10;                                                        

}else              

if(fmt==2){

if(cl6<15){cout<<"材料不够!";continue;}

if(fmtj2==1){cout<<"你附魔过此属性了";continue;}fmtj2=1;

cl6-=15;m0="抗性";}               

else{

if(cl6<20){cout<<"材料不够!";continue;}

if(fmtj3==1){cout<<"你附魔过此属性了";continue;}fmtj3=1;

cl6-=20; m0="吸血";}

srand(time(0));int sa=rand()%5+1;

if(fmt==1){if(sa==1){x1=x1+15; }if(sa==2){x1=x1/5*6;}if(sa==3){x1=x1/5*7;}if(sa==4){x1=x1/5*8;}if(sa==5){x1=x1*2;}}   

if(sa==4){x1=x1/3*8;}if(fmt==2){if(sa==1){ppm2=1; }if(sa==2){ppm2=2;}if(sa==3){ppm2=3;}if(sa==4){ppm2=4;}if(sa==5){ppm2=5;}}if(fmt==3){if(sa==1){ppm=1;}if(sa==2){ppm=2;}if(sa==3){ppm=3;}if(sa==4){ppm=4;}if(sa==5){ppm=5;}}              

cout<<"正在附魔中";for(int i=1;i<=3;i++){cout<<".";Sleep(555);}

cout<<endl<<"  附魔成功     你附魔:";cout<<m0<<fms[sa]<<endl;jl-=2;dfs1[fmt]=m0+fms[sa];

continue;}}

if(ch2=='6'){

cout<<"你有金币: "<<ugb<<endl;

cout<<"材料:  木材"<<cl1<<"个    藤条"<<cl2<<"个    棕榈叶"<<cl3<<"个    铁锭"<<cl4<<"个    石片"<<cl5<<"个     青金石"<<cl6<<"个    钢铁"<<cl7<<"个   人类基因"<<ml1<<"个"<<endl;Sleep(555); 

cout<<"        远古智慧"<<ml2<<"个\n";

cout<<"药品:   急救包"<<jjb<<"个    绷带"<<bd<<"个    鸡血"<<js<<"个    医疗箱"<<yls<<"个"<<endl;Sleep(555);

cout<<"食品:  穿山甲饼干"<<sp1<<"个    龟野牌牛肉罐头"<<sp2<<"个    鸡汤"<<sp3<<"个";

for(int i=1;i<=14;i+=1){

if(fishs[i].times ==0){continue;}cout<<"   "<<fishing[i]<<fishs[i].times <<"个";

}cout<<endl;Sleep(555);} 

for(int i=1;i<=7;i++){if(cfs[i].ts ==0){continue;}cout<<"   "<<cfnm[i]<<cfs[i].ts <<"个"; }

if(max1==1){if(max2<tian){max2=tian;max1=0;}cout<<endl<<"已记录你的战绩";Sleep(888);system("cls"); Sleep(1000);  break;}}}

        }}

    return 0;

}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值