概述
#include<bits/stdc++.h>
#include<Windows.h>
#include<conio.h>
#include<time.h>
#define mm1 700
#define mm2 1200
#define mm3 1900
using namespace std;
const long long m=MAXn=10000000000000000000;
int fishjez[30]={0,80,40,60,90,100,85,55,75,25,25,40,60,50,45,130,70};
string gjfxx[30]={"","獠牙","利爪","笙忼术","笙电术","土玄术","战斧","法杖","易闽术","鸡汤术","篮球","易慴术","戟埕术","黑子"};
string fz[30]={"","野猪","毒腥","吞噬","火电","咀骨","僵尸","协增","黑子","长臂","召唤","黄眸","蛛形","鸡王"};
string fishing[200]={"","石斑鱼","螃蟹","条石斑","鲭鱼","鲶鱼","红鳟鱼","海鲂","小鲨鱼","海参","鳐鱼","沙丁鱼","鳕鱼","蝴蝶鱼","章鱼","秋刀鱼","罗非鱼","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
string fms[8]={"","I","II","III","IV","V"};
string dfs1[20]={"","","",""};
struct o{
int times;
int jjes;
}fishs[1000];
int main(){
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位):" ;
string hhhh;
for(int i=1;;i++){
cin>>hhhh;
if(hhhh=="123456"){cout<<"密码正确!"<<endl;Beep(mm2,201);break; }
cout<<"密码错误 ";Beep(mm1,500);
if(i>1){cout<<"已尝试"<<k10<<"次"<<endl;}k10+=1;}
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};
int gjs[30]={0,3,4,2,15,18,25,100,350,500,4,6,15},xls[30]={0,25,40,100,70,250,280,350,1000,23423,546654,54336,56665};
int jjjj[20]={0,12,15,5,100,160,220,350,1250,4500,6000,20,35,100};
string ssss[30]={"","小野猪","小狮子","小鳄龟","火电怪","土蜥蜴","野人酋长","森林女巫","森林巨人","钏姍钾","蔡虚坤","人物3","人物4","人物5"};
int xxxx[20]={0,160,220,700,450,1000,1200,2000,7000,20000,500000,114514,20005};
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 h,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;
string r;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;
cin>>h;
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宠物6n ";
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<<"nn";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<<"nn";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 @,生命药水nn";
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]=='#'){ 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]=='#'){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]=='#'){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]=='#'){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<<"nnnnnnnn 游戏失败!";
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){
s1="空手";
for(int i=0;i<=sb1.size()-1;i++){
cout<<sb1[i];Beep(mm3,45);Sleep(17);}
Sleep(777);cout<<endl;
cout<<"先创建一下你的名称(15个字符/汉字以内):";
cin>>s20;
if(s20=="坤"){
jl=120;uxl=140;ugb=0;yls=1;sx=140;js=1;jjb=1;bd=1;jez=150;jezsx=150;
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;
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>=19||shi<=8){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<<"不能复活哟!";
return 0; }
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<<" 要做什么?nn";
Sleep(455);int kt;
cout<<" 1,移动 2,查看状态 3,补给 4,任务 5,建造 6,查看背包";
if(plof==1){cout<<" 7,火箭发射";}
cout<<endl<<" ";cin>>r;
if(r=="1000"){
if(max2<tian)
{max2=tian;}
break;
}
if(r=="7"){
if(plof==1){
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<<"nn 火箭组装中";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<<"nn 火箭架起中";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<<"nn 构成指令中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}
cout<<"nn 准备发射中";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<<"nn 火箭点火中";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<<"nn 火箭发射中";for(int i=1;i<=3;i+=1){Sleep(300);cout<<".";}
int rm5=rand()%8+1;if(rm5==2||rm5==6||rm5==7){cout<<" 发射失败,本次发射失败!";Sleep(555);continue;}
cout<<"发射成功,游戏胜利!";
if(max2<tian){max2=tian;}
Sleep(1000);
break;
}
}
if(r=="1")
{int nop;
cout<<"要去哪?nn 1,商店 2,探险 3,寻宝 4,钓鱼 :";cin>>nop;
if(nop==1){
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=70;s1="AK47";fmtj=fmtj2=fmtj3=0;}
if(u==2){x1=18;s1="木棍"; fmtj=fmtj2=fmtj3=0;}
if(u==3){x1=65;s1="双节棍";fmtj=fmtj2=fmtj3=0;}
if(u==4){x1=140;s1="手雷";fmtj=fmtj2=fmtj3=0;}
if(u==5){x1=275;s1="巴雷特";fmtj=fmtj2=fmtj3=0;}
if(u==6){x1=450;s1="拳头";fmtj=fmtj2=fmtj3=0;}
if(u==7){x1=1950;s1="偃月刀";fmtj=fmtj2=fmtj3=0;}
if(u==8){x1=66666;s1="手抛式救援核弹";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;}
if(shi>18||shi<6) {cout<<"确定要出门探险么?夜里战斗可不利!n 1,是 2,否"<<endl;cin>>lmk;}
if(lmk==2){continue;}
cout<<"01,绿色平原:难度1 14,矿场"<<endl;
cout<<"02,沙漠丘陵:难度2 15,松林"<<endl;
cout<<"03,世纪峡谷:难度4 "<<endl;
cout<<"04,死亡瀑布:难度9 "<<endl;
cout<<"05,黑暗森林:难度20 "<<endl;
cout<<"06,野人部落:难度30 "<<endl;
cout<<"07,僵尸村落:难度55 "<<endl;
cout<<"08,悲伤星球:难度92 "<<endl;
cout<<"09,快乐鸡汤城:难度240 "<<endl;
cout<<"10,废弃的篮球场:难度未知 "<<endl;
cout<<"11,山顶洞 :难度∞ "<<endl;
cout<<"12,大山顶洞 :难度∞+1 "<<endl;
cout<<"13,超大的山顶洞:难度∞^∞ "<<endl;
cout<<" 填0返回"<<endl;
cout<<" 你要去哪?"<<endl<<" ";
cin>>nd;if(nd==0){continue;}
system("cls");
cout<<"你前往";
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(nd==15){
cout<<"松林";
Sleep(555);
while(1){
cout<<"==================================="<<endl;
cout<<"1. 剩余松树:"<<ve[3]<<endl;
cout<<"2. 退出"<<endl;
int nmk;cin>>nmk;
if(nmk==1){jez-=2;if(jez<15){cout<<"饥饿值过低,无法收集材料n";continue;}
if(ve[3]<=0){ cout<<"没有松树了!"; }
else{ve[3]-=1; cl1+=2;cl3+=2;cout<<"你获得木材2、棕榈叶2 ,剩余松树"<<ve[3]<<"棵";} Sleep(699);system("cls");}
if(nmk>1){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);int vb;
while(1){
cout<<"==================================="<<endl;
cout<<"1. 剩余绳索:"<<ve[1]<<endl;
cout<<"2. 剩余石片:"<<ve[2]<<endl;
cout<<"3. 退出"<<endl;cin>>vb;
if(vb==1||vb==2){jez-=2;if(jez<15){cout<<"饥饿值过低,无法收集材料n";continue;} }
if(vb==1){if(ve[1]<=0){cout<<"没有藤了!"; }
else{ve[1]-=1; cl2+=3;cout<<"采集成功!获得藤3,剩余藤"<<ve[1];}}
if(vb==2){if(ve[2]<=0){cout<<"没有石片了!"; }else{ve[2]-=1;cl5+=2;cout<<"采集成功!获得石片2,剩余石片"<<ve[2];}}
if(vb>2){break;}srand(time(0));int yyyyk=rand()%40+1;
if(yyyyk==24){cout<<endl<<"你意外获得了 铁矿X6 ";cl4+=6;}
if(yyyyk==5||yyyyk==21||yyyyk==38){cout<<endl<<"你意外获得了 青金石X3";cl6+=3;}
cout<<endl;}
continue;}
if(shi>18||shi<6){gj+=40;}
if(fy==1){if(nd!=3){gj=gj*9/10;} }
else if(fy==2){if(nd!=3){gj=gj*7/8;}else{gj-=1;}}
else if(fy==3){gj=gj*3/4;}
else if(fy==4){gj=gj*2/3;}
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-5;}
if(ppm2==5){gj=gj*3/2;xl=xl-15;}
cout<<endl;Sleep(544);
cout<<"你遇到了"<<s10<<",危险指数为"<<gj/15+xl/45<<endl;Sleep(555);
string s101=s10;
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-=12;uxl+=14; }
if(ppm==4){xl-=23;uxl+=38;}
if(ppm==5){xl-=32;uxl=(1+uxl/7)*8;}
if(qwz<-1){uxl-=2;}
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==0){
cout<<"武器损坏了!!!"<<endl;
x1=x1/2;
cntm=10000000;
s1="破烂";
}
if(jez<=30){cout<<"你要饿死了n"; }
cout<<"==============================================#"<<endl<<"要怎么办?"<<endl<<endl;Sleep(333);cout<<" 0,技能 1,攻击 2,防御 ";if(i>=3){cout<<"3,逃跑";}cin>>kjk;
Sleep(344);int jnk;
if(kjk==0){
cout<<endl<<" 技能1(等级12,剩余"<<jnj[1]<<") 技能2(等级30,剩余"<<jnj[2]<<") 技能3(等级120,剩余"<<jnj[3]<<") 技能4(等级120,剩余"<<jnj[4]<<") 技能5(等级857,剩余"<<jnj[5]<<"):"; cin>>jnk;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/5*6;
}
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*3+1)/4;
}
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);cout<<"震慑地煞";xl/=3;}}
if(kjk==1){cout<<"你使用"<<s1<<"攻击,对"<<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()%8+1;
if(wers==1||wers==4||wers==5||wers==7||wers==8){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;
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(624);
srand(time(NULL));
int cxk=rand()%24+1;
if(cxk==6&&s10=="蔡虚坤"){cout<<"蔡虚坤发动了技能:唱跳rap,回复满了血量"<<endl;Sleep(633);cout<<endl;xl=500000; }
if(cxk==9||cxk==16) {
if(s10=="钏姍钾"){cout<<"钏姍钾发动了技能:鸡汤来咯,伤害提升30%"<<endl;Sleep(633);cout<<endl;gj=gj/10*13;}
if(s10=="森林巨人"){cout<<"森林巨人发动了技能:伤害提升10%"<<endl;Sleep(633);cout<<endl;gj=gj/10*11;}}
if(cxk==13&&s10=="蔡虚坤") {cout<<"蔡虚坤发动了技能:只因你太美,伤害提升50%"<<endl;gj=gj/2*3;Sleep(633);cout<<endl;}
if(cxk==19&&s10=="蔡虚坤"){cout<<"蔡虚坤发动了技能:两年半的贮蓄,提升防御"<<endl;gj=gj/2*3;Sleep(633);cout<<endl;x1=x1/3*2;}
if(i==7){cout<<s101<<"升级咯!"<<endl;s10="未转化完全"+s101;xl=xl+xls[nd];gj=gj+gjs[nd];}
if(i==13){cout<<s101<<"升级咯!"<<endl;s10="被同化的"+s101;xl+=xls[nd];gj=gj+gjs[nd];}
if(i==18){cout<<s101<<"升级咯!"<<endl;s10="原始"+s101;xl+=xls[nd];gj=gj+gjs[nd];}
if(i==23){cout<<s101<<"升级咯!"<<endl;s10="进化"+fz[nd]+"兽";xl+=xls[nd]*2;gj=gj+gjs[nd]*2;}
if(i==29){cout<<s101<<"升级咯!"<<endl;s10="适应"+fz[nd]+"兽";xl+=xls[nd]*3;gj=gj+gjs[nd]*3;}
if(i==36){cout<<s101<<"升级咯!"<<endl;s10="适应吞噬兽";xl+=xls[nd]*5;gj=gj+gjs[nd]*5;}
if(i==45){cout<<s101<<"升级咯!"<<endl;s10="远古君魔";xl+=6000;gj=gj*2;}
if(ttk==1){ttk=0;continue;}
if(s10=="适应"+fz[nd]+"兽"||s10=="升级"+fz[nd]+"兽"||s10=="进化"+fz[nd]+"兽"||s10=="召唤母体"){system("color 5D");}
else {system("color 4C");}
cout<<s10<<"使用";
cout<<gjfx;
cout<<"攻击了你,对你造成了"<<gj<<"的伤害,";Sleep(64);
if(shi>18||shi<=6){system("color 0F");}
else{system("color F0");}
Sleep(244);cout<<"当前"<<s10<<"的血量为"<<xl<<",你的血量为"<<uxl<<endl;cout<<endl;
}
Sleep(644);cout<<endl;
if(xl<=0)
{rw7+=1;
if(s101=="小野猪"){rw1+=1;}
if(s101=="小鳄龟"){rw4+=1;}
if(s101=="火电怪"){rw8+=1;}
if(s101=="土蜥蜴"){rwc+=1;}
if(s101=="野人酋长") {rwd+=1;}
Sleep(100); x1=k1;cout<<" 最后,"<<s10<<"终于倒下了身躯"<<endl;Sleep(500);
if(s10=="蔡虚坤"){
string db="这时,蔡徐坤手中的篮球突然射出一道金光...是毁灭了吗?当你再次睁开眼,一只小黑子蹦了出来。";
for(int i=0;i<=db.size()-1;i+=1){cout<<db[i];Sleep(59);}
cout<<endl;s101="小小坤";s10="小小坤";xl=400000;gj=700; continue;nd=8;
}
cout<<" 你击倒了"<<s10<<",血量上限+"<<gsx<<" 金币+"<<ggb<<endl;
if(s101=="小野猪"||s101=="小狮子"){cout<<" 在"<<s10<<"的尸体上,你捡到了野生急救包1,野生绷带2,木材1,棕榈叶1"<<endl;jjb++;bd+=2;cl1+=1;cl3+=1;}
else if(s101=="小鳄龟"||s101=="火电怪"){cout<<" 在"<<s10<<"的尸体上,你捡到了野生急救包3,野生绷带3,木材4,藤条3"<<endl;jjb+=3;bd+=3;cl1+=4;cl2+=3;}
else if(s101=="土蜥蜴"){cout<<" 在"<<s10<<"的尸体上,你捡到了野生医疗箱3,铁锭4,木材10,棕榈叶10"<<endl;cl4+=4;yls+=3;cl1+=10;cl3+=10;}
else if(s101=="钏嬗钾"||s101=="小小坤"){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(s101=="野人部落"){cout<<" 在"<<s10<<"的尸体上,你捡到了野生急救包50,野生鸡血50,医疗箱15 金币100 木材8 铁锭5"<<endl;jjb+=50;yls+=15;gb+=100;js+=25;cl1+=8;cl4+=5;}
else if(s101=="僵尸村落"){cout<<" 在"<<s10<<"的尸体上,你捡到了野生急救包50,野生鸡血50,医疗箱20 金币100 鲜美的鸡汤10 木材10 铁锭3"<<endl;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;}
if(s101=="森林巨人"||s101=="人物4"||s101=="人物3"||s101=="人物5"||s101=="野人酋长"){srand(time(0));int tlo=rand()%12+1;if(tlo<3){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;}
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<<"找寻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<<"并没有钓到什么东西nn";continue;}
cout<<"等待了30分钟收货了"<<fishing[aas]<<"nn";
fishs[aas].times+=1;}
if(aa==3){break;}
}
}
}
if(r=="2"){
cout<<"当前时间为 "<<shi<<":"<<fen;
cout<<endl<<" 等级 "<<dg<<endl;
cout<<" 武器:"<<s1<<" (伤害"<<x1<<")"<<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(r=="3")
{int fop;
cout<<"要怎么办?n 1,加血 2,干饭 3,休息 :";cin>>fop;
if(fop==1)
{
cout<<"目前你的血量:"<<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;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<<"当前你的饥饿值为:"<<jez<<"/"<<jezsx<<" 状态:";
if(jezsx/4*1>=jez){cout<<"饥肠辘辘";}
else if(jezsx/7*5<jez) {cout<<"饱腹";}
else{cout<<"空腹";}cout<<endl;
if(tm5==0){cout<<" 没有食品加工台,无法食用";Sleep(555);continue;}jl-=3;
cout<<endl<<endl;Sleep(333);
cout<<"目前你有食品:1,穿山甲肉松饼干"<<sp1<<"个 2,龟野牌牛肉罐头"<<sp2<<"个(填2) 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";
cin>>io;if(io>19||io<1){cout<<"重新输入n";continue;} int tt=0;
for(int i=1;i<=16;i+=1){if(fishs[i].times ==0){if(io-3==i){tt=1;}continue;}}
if(tt==1){cout<<"重新输入n";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(fishs[io-3].times ==0){cout<<"没有"<<fishing[io-3]<<"了";}}
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{io-=3;cout<<fishing[io];jez+=fishs[io].jjes ;fishs[io].times -=1;}cout<<"中";
for(int i=1;i<=3;i++){cout<<".";Sleep(520);}
if(jez>jezsx){jez=jezsx;}
cout<<endl<<"食用完毕,当前饥饿值为"<<jez<<"/"<<jezsx<<endl;
Sleep(333);
}
if(fop==3){
if(tm1==0&&tm2==0&&tm3==0){
cout<<"没有床,无法睡觉";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==3){cout<<endl<<"睡梦中,你遭到了动物们的侵袭,"<<endl<<"失去物品:金币"<<ugb/5+1<<" 木材"<<cl1/5+1<<" 急救包"<<jjb/4+1<<endl<<"肉松饼干"<<sp1/5+1<<"n";
ugb=ugb-ugb/5+1;cl1=cl1-cl1/5+1;
jjb=jjb-jjb/4+1;sp1=sp1-sp1/5+1;
njz-=15;Sleep(333);}
if(qwz < (0-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;}}
else{shi+=stepisverySB;}
if(uxl>sx){uxl=sx;}if(jl>150){jl=150;}
}
}
if(r=="4")
{if(rw11==0){cout<<"任务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(r=="5") {
int lx1,lx2,lx3,lx4,lx5,ytrt;
cout<<"1,用具 2,武器 3,锻造 4,附魔 5,特殊"<<endl<<" ";
cin>>nm;
cout<<endl;
if(nm==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、石片2n";
cout<<"8: 高级围栏 材料:木材20、藤条12、铁锭4n";
cout<<"27: 钓鱼台 材料:木材5、 藤条7、 石片5、棕榈叶2nn";
} else if(nm==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(nm==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(nm==5){
if(dg<100){cout<<"等级过低,无法制作(需100级)n";Sleep(666);continue;}ytrt=5;
cout<<" 特殊n";
cout<<"29: 狼末 材料: 钢铁30 石片20 藤条40n";
cout<<"30: 生物燃料 材料: 木材10 无毒鸡汤2 棕榈叶10n";
cout<<"31:一子级箭体 材料: 钢铁50 木材100 棕榈叶50 藤条100n";
cout<<"32:二子级箭体 材料: 钢铁200 棕榈叶100 石片30n";
cout<<"33:火箭助推器 材料: 钢铁10 棕榈叶80 n";
cout<<"34: 边箭体 材料: 钢铁500 铁锭100 藤条50 棕榈叶200 木材10n";
cout<<"35: 居住舱 材料: 钢铁10 木材50 鸡汤10 牛肉罐头50 人类基因3(击败人类概率掉落)n";
cout<<"36: 融合器 材料: 铁锭5 木材10nn";
}
if(nm!=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=15;}
if(nm==7){aqw=30;}
if(nm==8){aqw=80;}
if(nm==27){tm9=1;}
if(nm==9){s1="求生小刀";x1=32;fmtj=fmtj2=fmtj3=0;}
if(nm==10){s1="战斗斧";x1=65;fmtj=fmtj2=fmtj3=0;}
if(nm==11){s1="短弓";x1=120;fmtj=fmtj2=fmtj3=0;}
if(nm==12){s1="木制弓弩";x1=300;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="木制手枪";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="猎枪";x1=430; 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="冲锋枪";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突击步枪";x1=1500; }
if(nm==26) {x1=2800;s1="m2重机枪"; fmtj=fmtj2=fmtj3=0;}
if(nm==28){cl7+=sll;}
if(nm==29){if(cl7<30){cout<<"材料不够!";continue;}cl7-=30;s1="狼末";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<200){cout<<"材料不够!";continue;}cl7-=200;tl3+=1;}
if(nm==33){if(cl7<10){cout<<"材料不够!";continue;}cl7-=10;tl4+=1;}
if(nm==34){if(cl7<500){cout<<"材料不够!";continue;}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.锋利? 耗材30/"<<endl;
cout<<" 2.抗性? 耗材35//"<<endl;
cout<<" 3.吸血? 耗材40///"<<endl;
cin>>fmt;
if(fmt==1){
if(cl6<30){cout<<"材料不够!";continue;}
if(fmtj==1){cout<<"你附魔过此属性了";continue;}fmtj=1;
m0="锋利";cl6-=30;
}else
if(fmt==2){
if(cl6<35){cout<<"材料不够!";continue;}
if(fmtj2==1){cout<<"你附魔过此属性了";continue;}fmtj2=1;
cl6-=35;m0="抗性";}
else{
if(cl6<40){cout<<"材料不够!";continue;}
if(fmtj3==1){cout<<"你附魔过此属性了";continue;}fmtj3=1;
cl6-=40; 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(r=="6"){
cout<<"你有金币: "<<ugb<<endl;
cout<<"材料: 木材"<<cl1<<"个 藤条"<<cl2<<"个 棕榈叶"<<cl3<<"个 铁锭"<<cl4<<"个 石片"<<cl5<<"个 青金石"<<cl6<<"个 钢铁"<<cl7<<"个 人类基因"<<ml1<<"个"<<endl;Sleep(555);
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);}
if(max1==1){if(max2<tian){max2=tian;max1=0;}
cout<<endl<<"已记录你的战绩";Sleep(888);
system("cls"); Sleep(1000); break;
}}}}
return 0;
}
最后
以上就是幸福小虾米为你收集整理的c++小游戏 要求:DEV-C++的全部内容,希望文章能够帮你解决c++小游戏 要求:DEV-C++所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复