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

点我查看完整代码​​​​​​​

5001~7500

           {cout<<"钱不够!";break;}things[7]-=k;float cl[25]={0,0,0,0,0,0,0,0,0,0,0.5,0.7,0.7,0.7,0.9,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45};n=Snake();cls();m=k*cl[n];printf("你获得了:%d元",m);things[7]+=m;gotmoney+=m;break;}case '1':{use(40);happened+=(name+"在游乐场和老板玩石头剪刀布/");tepan();things[8]-=5;cls();cout<<"你要押多少钱?(注:输了血本无归,平局回本,赢了双倍收获\n";cin>>k;if (things[7]<k){cout<<"钱不够!";break;}cls();things[7]-=k;n=psss();if (n==1)things[7]+=k,gotmoney+=k;if (n==2)things[7]+=k*2,gotmoney+=k*2;break;}case '2':{tepan();use(41);things[8]-=5;cls();cout<<"你要押多少钱?(注:输了血本无归,赢了双倍收获)\n";cin>>k;if (things[7]<k){cout<<"钱不够!";break;}cls();things[7]-=k;n=saolei();if (n){happened+=(name+"玩扫雷游戏,还成功了/");cout<<"你赢了!";things[7]+=k*2;gotmoney+=k*2;hdcj(40);}else{cout<<"你输了!";happened+=(name+"在玩扫雷游戏时被雷炸飞了/");}break;}case '3':{tepan();use(42);things[8]-=5;cout<<"你要押多少钱?(注:60每分钟以下没钱,60回本,以后每50增加10%)"; cin>>n;if (things[7]<n){cout<<"钱不够!";break;}things[7]-=n;j=dazi();if (j>=250)hdcj(8);m=0;if (j==60)m=n;if (j>60){m=n*(1+(float(j/50)*0.1));} cout<<"你赚到了:"<<m<<"元!\n";gs();things[7]+=m;gotmoney+=m;break;}case '4':{tepan();things[8]-=5;printf("你要押多少钱?(输了无钱,赢了双倍收获)\n");cin>>m;if (m>things[7]){cout<<"钱不够!";break;}things[7]-=m;if (game2048())m*=2;elsem=0;things[7]+=m;cout<<"你赚到了"<<m<<"元";gotmoney+=m;happened+=(name+"在游乐场玩2048/");break;}case '5':tepan();things[8]-=5;return;case '6':{cls();gotoxy(1,45);printf("有奖问答");coutwhat(2,20,2,70,"=");gotoxy(5,25);printf("规则:");gotoxy(7,29);printf("1.每轮共有20道问题需要回答\n");gotoxy(9,29);printf("2.答对一题+5分,答错-5分\n");gotoxy(11,29);printf("3.");}case '/'://作弊,没事别用 {int num;string dm;string one,two,three,four;cin>>dm>>one>>two>>three>>four;cin>>num;if (dm!="/")break;//gamemodeif (one=="gamemode"&&three=="*"&&four=="*")things[21]=two[0]-'0';//thingsif (one=="gamethings"&&three=="of"&&four=="*"){int a,b;a=(two[0]-'0')*100+(two[1]-'0')*10+(two[2]-'0')*1;things[a]+=num;}//fostif (one=="fost"&&three=="of"&&four=="*"){int a,b;a=(two[0]-'0')*100+(two[1]-'0')*10+(two[2]-'0')*1;fost[a]+=num;}break;} }gs();}
}
void market()
{cout<<"WAH:小子,又来打工了啊,你这样的小身板还敢来人力市场!\n";const string where[]={"搬砖(60%概率成功,得500块)(临工)","抄作业(100%概率成功,可以批量接受,但是要密码,100块)","文字录入(40%概率成功,1000)(临时工)","离开","找工作","领取挂机收益"};int i,j,k,n,m;while(1){cls();char l;for(i=0;i<6;i++)printf("%d.%s\n",i,where[i].c_str());if (things[188]==1)l=choose(5)+'0';elsel=_getch();tepan();things[8]-=15;switch(l){case '0':use(43);tepan();things[8]-=5;happened+=(name+"在工地上搬砖/");Sout("你费力地搬起一堆堆沉重的砖头,砖头却纹丝不动,你又使出了吃奶的劲儿。");jdt(10);if (rand()%5<=2){cout<<"获得:500元";things[7]+=500;gotmoney+=500;}elsecout<<"WAH:你才搬了几块砖头?!没有工资!!";gs();break;case '1':{cout<<"密码:";bool Right=true;string MM="ZJL20090206";for(j=0;j<11;j++){char m=_getch();cout<<'*';if (m!=MM[j])Right=false;}if (Right){happened+=(name+"窃取了抄作业的密码,疯狂抄作业/");cout<<"抄几次?";cin>>m;jdt(10);things[7]+=100*m,gotmoney+=100*m; }else{cout<<"没有密码就别逞强!";happened+=(name+"竟然没有密码也想抄作业赚钱/");}gs();break;}case '2':use(44);tepan();things[8]-=5;Sout("你费力地看着一行行文字,感觉眼睛生疼,但是为了赚到钱,你拼了!");jdt(10);if (rand()%5<=1){cout<<"获得1000元!";things[7]+=1000,gotmoney+=1000;}elsecout<<"WAH:打错了好几个字,没有工资!!";gs();break;case '3':return;case '4':{use(45);tepan();things[8]-=5;switch(things[28]){case 4:cls();Sout("老板:这位可是白云大学的呢!来这里!工资高!");gs();cout<<"你被SORT_TIS公司录取了,(挂机收益:70元/分钟)";things[29]=70;happened+=(name+"被SORT_TIS公司录取为高级程序员/");break;case 3:cls();Sout("老板:你是白云大学的啊。还不错哦~");gs();cout<<"你被WAMVA公司录取了,(挂机收益:55元/分钟)";things[29]=55;happened+=(name+"被WAMVA公司录取为经理/");break;case 2:cls();Sout("老板:emmmmm...白云大学,没听说过呢。");gs();cout<<"你被WMC公司录取了,(挂机收益:35元/分钟)";happened+=(name+"被WMC公司录取为科长/");things[29]=35;break;case 1:cls();Sout("老板:(很为难的样子)白云大学,不怎么样啊,公司缺人,你还是来上班吧。。。");gs();cout<<"你被NOTSH公司录取了,(挂机收益10元/分钟)";happened+=(name+"被NOTSH公司录取为一名普通职员/");things[29]=10;break;case 0:cls();Sout("老板:你连大学都没上啊,你去办公室扫地吧。。。");gs();cout<<"你被CLEAN_FLOOR公司录取了,(挂机收益3元/分钟)";happened+=(name+"被CLEAN_FLOOR公司录取为清洁工/");things[29]=3;break;}break;}case '5':{tepan();things[8]-=5;use(46);time_t temp;time(&temp);m=temp-start;cout<<"挂机开始时间:"<<start<<'\n';cout<<"挂机结束时间:"<<temp<<'\n';cout<<"你挂机了"<<m<<"秒\n"; m/=60;if (m>=480)hdcj(29);if (m>=2880)hdcj(30);cout<<"你已经挂机了"<<m<<"分钟\n";if (m>=things[30])m=things[30];cout<<"收益:"<<things[29]<<"元/分钟\n";cout<<"获得:"<<m*things[29]<<"元钱!\n";things[7]+=things[29]*m,gotmoney+=things[29]*m;time_t te;time(&te);start=te;gs();break;}}  }
}
void Duchang()
{cls();srand(time(0));cout<<"WYQ:小子,又来赌场了啊,还想把裤子都输掉吗?哈哈哈...";const string where[]={"赌大小","猜数","彩票","取数游戏","离开","老虎机"};int i,j,k,n,m;while(1){char l;for(i=0;i<1000;i++)if (kbhit())l=getch();//垃圾收集器 cls();for(i=0;i<6;i++){printf("%d.%s\n",i,where[i].c_str());}l=_getch();tepan();things[8]-=10;switch(l){case '0':{use(47);hdcj(16);tepan();things[8]-=5;system("cls");cout<<"1-大 2-小\n";cin>>m;cout<<"赌多少钱?";cin>>i;k=0;if (things[7]<i){cout<<"钱不够!";break;}things[7]-=i;for(j=1;j<=6;j++){n=rand()%6+1;printf("%d\n",n);k+=n;}if (k>21)j=1;elsej=0;if (m==j){cout<<"赚到了!";things[7]+=i*2;gotmoney+=i*2;happened+=(name+"在赌场大赚一笔/");}else{cout<<"血本无归!";happened+=(name+"在赌场血亏/");}break;}case '1':{use(48);cout<<"赌多少钱?";cin>>i;tepan();things[8]-=5;k=0;if (things[7]<i){cout<<"钱不够!";break;}things[7]-=i;n=random(1,50);for(j=1;j<=6;j++){system("cls");cout<<"猜一个数,1~50之间,你还有"<<7-j<<"次机会\n";cin>>m; if (m>n)cout<<"Too big!";if (m<n)cout<<"Too small!";if (m==n){things[69]++;cout<<"猜中了!你赚到了"<<i*2<<"元!";happened+=(name+"在猜数游戏中赚了很多钱/");things[7]+=i*2;gotmoney+=i*2;break;}gs();}if (j==7){cout<<"血本无归!";happened+=(name+"竟然连猜数游戏都猜不中/");things[69]=0;}if (things[69]>=5)hdcj(37);break;}case '2':{use(49);tepan();things[8]-=5;int a[6]={0,1,100,10000,500000,1000},b[6]={0,100,10000,500000,10000000,1000000};int c[6]={0,20,10,5,4,1};cout<<"你要买什么彩票?\n";cout<<"1.1-->100 20%概率中\n";cout<<"2.100-->10000 10%\n";cout<<"3.10000-->500000 5%\n";cout<<"4.500000-->10000000 4%\n";cout<<"5.1000 --> 1000000 1%\n";cin>>m;if (things[7]<a[m]){cout<<"钱不够!";break;}if (rand()%100+1<=c[m]){cout<<"中奖了!简直是好运附体!";happened+=(name+"买彩票中奖了!/");things[7]+=b[m];gotmoney+=b[m];if (++things[198]>=20)hdcj(55); }else{cout<<"毛都没抽到!";happened+=(name+"早上没洗脸,买彩票遭血亏/");}break;}case '3':{cls();tepan();things[8]-=5;cout<<"赌多少钱?\n";cin>>m;if (things[7]>=m)things[7]-=m;else{cout<<"钱不够";break;}int a[21];cls();for(i=1;i<=20;i++)a[i]=random(1,10000);for(i=1;i<=20;i++){gotoxy(0,0);cout<<a[i]<<' ';gotoxy(1,0);cout<<"1.选择 2.下一个";char l=_getch();switch(l){case '1':k=a[i];i=5555;case '2':break;}}j=0;for(i=1;i<=20;i++)j+=(a[i]>k);cls();cout<<"得分:"<<20-j;switch(j){case 0:k=400;break;case 1:k=330;break;case 2:k=260;break;case 3:k=185;break;case 4:k=115;break;case 5:k=84;break;default:k=0;break;}m*=(k/100.0);cout<<"\n赚了"<<m<<"元\n";cout<<"序列为:";for(i=1;i<=20;i++)cout<<a[i]<<' ';things[7]+=m;gotmoney+=m;gs();break;}case '4':return;case '5':{tepan();things[8]-=5;char o[3]={'O','X','K'};//3,3 3,6 3,9int line[4]={0,3,6,9};cls();int i,j,k,last;cout<<"赌多少钱?";cin>>j;if (j>things[7]){Sout("老虎机:钱,不够,出去!");break;}elsethings[7]-=j;coutwhat(1,1,1,12,"#");coutwhat(1,1,6,1,"#");coutwhat(1,12,6,12,"#");coutwhat(6,1,6,12,"#");coutwhat(2,5,5,5,"#");coutwhat(2,8,5,8,"#");bool win=true;for(i=1;i<=3;i++){for(int nbi=1;nbi<=random(40,50);nbi++){gotoxy(3,line[i]);k=rand()%3;cout<<o[k];if (i==1)last=k;Sleep(50); }if (last!=k)win=false;}if (win){gotoxy(12,0);Sout("手气不错,你赢了!");j*=5;things[7]+=j,gotmoney+=j;}else{gotoxy(5,0);Sout("血本无归。");}gs();break;}}gs();}
}
void Mid_School()
{const string where[]={"家(存档的地方)","学校(学习的地方)","小超市(购物的地方)","公园(运动)","游乐场(玩耍,赚点零花钱)","保存并退出","关于游戏","自杀","人力市场","赌场"};int i,j,k,n,m,l;while(1){for(i=0;i<1000;i++)if (kbhit())l=getch();//垃圾收集器 tepan();things[8]-=5;cls();if (things[0]>=4)return;if (things[10]>=18)things[0]++;cout<<" Day "<<things[16]+((things[10]-6)*30)<<'\n';cout<<"你想去哪里,按下序号\n";for(i=0;i<10;i++)printf("%d.%s\n",i,where[i].c_str());char s=_getch();switch(s){case '0':home();break;case '1':school();break;case '2':shop();break;case '3':park();break;case '4':carnie();break;case '5':Write_File();me.play+=clock(),exit(0);case '6':about();break;case '7':Sout("Ftr:????");Die();break;case '8':market();break;case '9':Duchang();break;}}
}
int Exa()
{use(50);string q[100],a[100],b;int i,j,k;int n,m;n=50;q[1]="赌场老板叫什么名字?";a[1]="WYQ";q[2]="作者的生日你打算送什么?(Tips:水题)";a[2]="GIFT";q[3]="作者生活在哪个城市?(格式:例如广东广州为GDGZ)";a[3]="GDDG";q[4]="中序遍历的顺序?(父节点F,左节点L,右节点R)";a[4]="LFR";q[5]="1.01的12次方?(精确结果)";a[5]="1.126825030131969720661201";q[6]="360分解质因数的结果是:(Tips:格式,假如数据是35,那么输入结果为5*7";a[6]="2*2*2*3*3*5";q[7]="雪米拉的儿子叫什么?";a[7]="DM";q[8]="布鲁特斯是谁的老师?";a[8]="KASS";q[9]="克艾索斯和百夫长的决斗中谁赢了?";a[9]="KASS";q[10]="沙暴天气是谁释放的?(称号)";a[10]="QZ";q[11]="冰雪世界是谁的必杀技?";a[11]="KZD";q[12]="MC创作于哪一年?";a[12]="2009";q[13]="作者的出生日期?";a[13]="20090206";q[14]="MC的吉祥物是JS,KL和_____";a[14]="PXZ";q[15]="凋零的血量是:";a[15]="600";q[16]="MC最强的附魔属性是:";a[16]="JYXB";q[17]="用锋利V的木剑打人造成的伤害是多少?";a[17]="12";q[18]="娑丽丝的外号?";a[18]="HL";q[19]="扎普拉尔的克星?";a[19]="LKLDY";q[20]="三体星系就是______";a[20]="BRMZ";int num=19;int wincount=0;bool quested[100];memset(quested,0,sizeof(quested));string yourans;int count=0;while(count<=19){system("cls");int number=rand()%num+1;while(quested[number])number=rand()%num+1;for(i=0;i<19;i++)if (quested[i]==0)break;if (i>=19)break;cout<<"第";cout<<count;cout<<"轮"<<endl; Sout(""),Sout(q[number]);cout<<endl<<"请回答:";string yourans;cin>>yourans;if(yourans==a[number]){Sout("恭喜你,你答对了!"); wincount++;Sout("你已经累计答对"),cout<<wincount<<"次!";cout<<endl; _getch();}else{Sout("很抱歉,你答错了");Sout("正确答案是:"),cout<<a[number]<<endl;_getch(); }quested[number]=1;count++;if (count>=19)break;}happened+=(name+"参加了高考/");Sout("你已经答完了题库中现有的所有题!你的正确率是");printf("%llf",(wincount*1.0)/(num*1.0)*100);cout<<"%"<<endl;Sout("\n你的得分是:");cout<<wincount*38;_getch();return wincount*38;
}
//0 可通行格子 1.挡墙 2.返回点 3.出生点 4.宝藏洞窟 5. 帮助 6.secret
const int dm[][110]=
{{1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{1,3,0,5,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 High[500];
int mhigh[100];
//0可通行 1墙 2宝藏 3陷阱
int mm[40][102];
const char sd[]={' ','#','B','X'};
const char ch[]={' ','#','B','F','S','H','R','s'};
int teea;
void Getrmap(float a,int k)
{cls();for(int i=1;i<=90;i++){gotoxy((101-mhigh[i]),i);cout<<"-";}
}
void run()
{tepan();things[8]-=5;float mh=0.0;int i,j,k=1,l=1,r=90,time=0;for(i=5;i<=450;i++)if (rand()%((High[i-1]/15+1))||High[i-1]>=50)High[i]=random(0,High[i-1])%100;elseHigh[i]=High[i-1]+1;for(i=l,j=1;i<=r;i++,j++)mhigh[j]=High[i];Getrmap(0.0,1);while(k<=450){char a='?';if (kbhit())a=getch();gotoxy(60,50);cout<<(k/450.0)*100.0<<"%\t\t\t"<<(float)time/20.0<<"s\t\t\tH:"<<mh<<"\t\t\t";time++;switch(a){case 'a':if (k>1&&mhigh[(k+1)%90-2]<=mh)k--;break;case 'd':if (k<450&&mhigh[(k+1)%90]<=mh)k++;break;case ' ':if (abs(mh)==mhigh[(k+1)%90-1])mh+=1.5;break;case 'e':return;}if (k%90==0){k++; l=k+1;r=l+90;for(i=l,j=1;i<=r;i++,j++)mhigh[j]=High[i];Getrmap(mh,(k+1)%90-1);}if (mh-0.4>mhigh[(k+1)%90-1])mh-=0.4;elsemh=mhigh[(k+1)%90-1];gotoxy(100-mh,(k+1)%90-1);cout<<"O";Sleep(50);gotoxy(100-mh,(k+1)%90-1);cout<<" ";if (k>=450)break;}gotoxy(0,50);cout<<"恭喜你到达了终点!";Sleep(2000);gs();cout<<"奖品:";k=random(4,6);j=random(2,30);cout<<fsn[k]<<'*'<<j;fost[k]+=j;k=random(10000,500000);j=random(5000,80000);cout<<' '<<"XP*"<<k<<" money*"<<j;things[1]+=k;things[7]+=j;gotmoney+=j;gs();Getmap();
}
void SD()
{tepan();things[8]-=5;things[193]++; use(75);int i,j,k,n,m,a,b;cout<<"生成地图中...";while(1){for(i=0;i<40;i++)for(j=0;j<101;j++)mm[i][j]=0;switch(things[21]){case 1:m=random(260,320);break;case 2:m=random(311,360);break;case 3:m=random(355,389);break;case 4:m=random(371,460);break;}for(i=1;i<=m;i++){do{j=random(1,39);k=random(1,99);}while(mm[j][k]!=0);mm[j][k]=3;}int q=random(700,1300);for(i=1;i<=q;i++){do{j=random(1,39);k=random(1,99);}while(mm[j][k]!=0);mm[j][k]=1;}do{j=random(1,39);k=random(1,99);}while(mm[j][k]!=0||(j==1||k==1));mm[j][k]=2;a=j,b=k;teea=1;break;}cls(); coutwhat(0,0,40,0,"#");coutwhat(0,0,0,100,"#");coutwhat(40,0,40,100,"#");coutwhat(0,100,40,100,"#");
//  color(7);for(i=1;i<40;i++){gotoxy(i,1);for(j=1;j<100;j++){if (mm[i][j]==2){//  color(1);printf("%c",sd[mm[i][j]]);color(7);}else printf("%c",sd[mm[i][j]]);}printf("\n");}int x=1,y=1,zd=5,sy=3;int _3=1;bool find=1;while(find){gotoxy(x,y);//   color(3);cout<<"o";gotoxy(43,0);cout<<"B 宝藏 o你 #墙 X陷阱\n";cout<<"WASD移动,E退出,Q使用炸弹 V使用瞬移(下次移动时朝那个方向移动3格)\n";cout<<"炸弹剩余:"<<zd<<"瞬移技能剩余:"<<sy<<endl;printf("你(%d,%d) 宝藏(%d,%d)",x,y,a,b); char l=_getch();if (l=='w'||l=='s'||l=='a'||l=='d'){gotoxy(x,y);cout<<" "; }switch(l){case 'w':if (x-_3>0&&mm[x-_3][y]!=1) x-=_3,_3=1;break;case 's':if (x+_3<=40&&mm[x+_3][y]!=1)x+=_3,_3=1;break;case 'a':if (y-_3>0&&mm[x][y-_3]!=1)y-=_3,_3=1;break;case 'd':if (y+_3<=100&&mm[x][y+_3]!=1)y+=_3,_3=1;break;case 'q':{if (zd){for(i=x-1;i<=x+1;i++)for(j=y-1;j<=y+1;j++)if (mm[i][j]==1||mm[i][j]==3){mm[i][j]=0;cout<<" ";gotoxy(i,j);}zd--;}break;}case 'v':if (sy) sy--,_3=3;break;case 'e':if (things[193]-things[194]-things[196]>=50)hdcj(3);Getmap();cls();return;}switch(mm[x][y]){case 2:{int c,d;c=rand()%3+4;d=rand()%15+5;++things[194]; printf("恭喜你找到了宝藏!获得:%s*%d",fsn[c].c_str(),d);fost[c]+=d;c=rand()%10000+1000;d=rand()%8000+500;cout<<' '<<"XP*"<<c<<" money*"<<d;things[1]+=c;things[7]+=d;gotmoney+=d;find=false;things[203]=1;break;}case 3:{happened+=(name+"在探索神殿时踩中陷阱/");++things[196];Die();return;}}}gs();Getmap();
}
void Divinity()
{tepan();things[8]-=5;use(76);int a,b;int i,j,k;int n,m;int x=1,y=1;Getmap();while(1){gotoxy(x,y);cout<<"o";char l=_getch();if (l=='w'||l=='s'||l=='a'||l=='d'){gotoxy(x,y);cout<<" "; }switch(l){case 'w':if (x>1&&dm[x-1][y]!=1) x--;break;case 's':if (x<44&&dm[x+1][y]!=1)x++;break;case 'a':if (y>1&&dm[x][y-1]!=1)y--;break;case 'd':if (y<110&&dm[x][y+1]!=1)y++;break;}switch(dm[x][y]){case 2:if ((MessageBox(NULL,TEXT("确定返回主世界吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))return;break;case 4:if ((MessageBox(NULL,TEXT("确定前往星墓吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))hole();Getmap();break;case 5:if ((MessageBox(NULL,TEXT("是否获取帮助?"),TEXT("HELP"),MB_YESNO)==IDYES))help();Getmap();break;}}
}
void Getmap()
{use(77);gotoxy(0,0);int i,j;for(i=0;i<44;i++){for(j=0;j<110;j++){printf("%c",ch[dm[i][j]]);}printf("\n");}
}
int WAR()
{tepan();things[8]-=5;use(78);int mh=things[5]*random(16,30),ma=things[5],mc=things[6];int sah=0,aa=things[9]*random(2,4),ac=things[9]*random(1,2),bn=0;int time=0,sh;int x,y,x1,y1;x=1,y=1;x1=1,y1=5;int cs=0;int ae=0,aad=0;while(mh>0&&time<=90){cls(); int X=aa,Y=ac;aa*=(1+bn*5);ac*=(1+bn*3);cs++;gotoxy(0,0);cout<<"伤害:"<<sah<<"\t狂暴层数:"<<bn<<"\t剩余时间:"<<90-time<<"s\t剩余血量:"<<mh<<"AIENERGY:"<<ae<<"\n";cout<<"======================================================\n";char l='l';if (kbhit())l=getch();gotoxy(x,y);cout<<"♀";gotoxy(x1,y1);cout<<"♀";switch(l){case 'w':if (x>2)x--;break;case 'a':if (y>2)y--;break;case 's':if (x<40)x++;break;case 'd':if (y<80)y++;break;case ' ':if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5) {sh=ma-ac;gotoxy(x1-2,y1);cout<<'-'<<sh;sah+=sh;gotoxy(x-1,y);cout<<'+'<<sh*0.2;sh*=0.2;mh+=sh;int dc=random(15,32);ae+=dc,aad+=dc;}}if (rand()%2)x1+=(x>x1);elsey1+=(y>y1);if (rand()%2){if (x-x1<=5&&x1-x<=5&&y-y1<=5&&y1-y<=5) {sh=aa-mc;gotoxy(x-2,y);cout<<'-'<<sh;mh-=sh;}}if (sah/10000>bn)bn++;if (ae>=1000){gotoxy(40,35);cout<<"湮灭枷锁";sh=aa*2;float ls=random(30,70)/100.0;if (aad<300)sh*=(1+ls);elsesh*=(1+ls*5);ae*=(1-ls);gotoxy(x-2,y);cout<<'-'<<sh;Sleep(500);mh-=sh;ae=0;}if (cs%10==0){time++;if (time%8==0){gotoxy(40,35);cout<<"黑域之旅";gotoxy(x-1,y-2);//   color(3);cout<<"()";gotoxy(x,y);cout<<"  "; //    color(4);Sleep(1000);x=random(x-4,x+4);y=random(y-4,y+4);gotoxy(x,y);cout<<"♀";sh=aa*2;if (aad>=1000)sh*=1.5;gotoxy(x-2,y);cout<<'-'<<sh;mh-=sh; //    color(4);}if (time%10==0){gotoxy(40,35);cout<<"异界怒雷";gotoxy(x-5,y-2);cout<<"()";gotoxy(x-4,y);cout<<"|";gotoxy(x-3,y);cout<<"|";gotoxy(x-2,y);cout<<"|";gotoxy(x-1,y);cout<<"|";gotoxy(x,y);cout<<"|";gotoxy(x+1,y);cout<<"|";gotoxy(x+2,y);cout<<"|";gotoxy(x+3,y);cout<<"|";gotoxy(x+4,y);cout<<"|";gotoxy(x+5,y-2);cout<<"()";gotoxy(x,y-7);cout<<"()";gotoxy(x,y-2);cout<<"-";gotoxy(x,y-1);cout<<"-";gotoxy(x,y);cout<<"-";gotoxy(x,y+1);cout<<"-";gotoxy(x,y+2);cout<<"-";gotoxy(x,y+3);cout<<"()";sh=aa*2.4;Sleep(450);gotoxy(x-2,y);cout<<"-"<<sh;if (aad>=2000)ma*=0.96;mh-=sh;}}aa=X,ac=Y;}return sah;
}
void hole()
{use(79);cls();cout<<"星墓守门人技能(根据伤害发放奖励)\n";cout<<"湮灭枷锁:用湮灭能量对敌人造成200%攻击伤害并损失30~70%能量,自身每损失1%能量,伤害提高1%\n";cout<<"黑域之旅:打开亚空间之门将敌人传送至星墓,一秒后从空中落下造成160%攻击伤害并短暂眩晕\n";cout<<"异界怒雷:从多道亚空间之门中召唤怒雷,造成220%攻击水平伤害\n";cout<<"邪神之眼:当能量累计恢复300/1000/2000时睁开一只邪神之眼,第一只眼使“湮灭枷锁”的伤害提高改为5%,第二只眼使“黑域之旅”的伤害提高50%,第三只眼使被“异界怒雷”命中的敌人降低4%攻击\n\n";cout<<"狂暴:每受到一定伤害,叠加一层能力效果\n";cout<<"复制之躯:开场时自身的血量无限,等级同敌人一样\n";cout<<"异界控制:敌人的技能全部无效(吸血鬼之牙除外)\n\n\n";cout<<"你:吸血鬼之牙:吸血+20%\n";gs();long long n=WAR();int money=n*0.008;int XP=n*0.009;int kw=n*0.0001,kW=random(4,6);cout<<"获得:"<<fsn[kW]<<'*'<<kw<<' '<<"钱*"<<money<<" 经验*"<<XP;Sleep(3000);things[7]+=money,gotmoney+=money,things[1]+=XP; fost[kW]+=kw;gs();Getmap();return;
}
void help()
{use(80);cls(); cout<<"wasd移动(你是'o'),以下为各种符号代表的东西\n";cout<<"# 墙,不可以通过\n";cout<<"B 返回点\n";cout<<"F 出生点\n";cout<<"S 星墓\n";cout<<"H 帮助\n";gs();Getmap();
}
void delp()
{use(81);cls(); cout<<"wasd移动(你是'o'),以下为各种符号代表的东西\n";cout<<"# 墙,不可以通过\n";cout<<"B 返回点\n";cout<<"F 出生点\n";cout<<"S 神殿\n";cout<<"R 登山跑酷\n";cout<<"H 帮助\n";cout<<"s 神秘\n";gs();Getmap();
}
void Hell()
{tepan();things[8]-=5;use(82);int a,b;int i,j,k;int n,m;int x=1,y=1;Getmap();while(1){gotoxy(x,y);cout<<"o";char l=_getch();if (l=='w'||l=='s'||l=='a'||l=='d'){gotoxy(x,y);cout<<" "; }switch(l){case 'w':if (x>1&&dm[x-1][y]!=1) x--;break;case 's':if (x<44&&dm[x+1][y]!=1)x++;break;case 'a':if (y>1&&dm[x][y-1]!=1)y--;break;case 'd':if (y<110&&dm[x][y+1]!=1)y++;break;}switch(dm[x][y]){case 2:if ((MessageBox(NULL,TEXT("确定返回主世界吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))return;break;case 4:if ((MessageBox(NULL,TEXT("确定前往神殿吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))SD();Getmap();break;case 5:if ((MessageBox(NULL,TEXT("是否获取帮助?"),TEXT("HELP"),MB_YESNO)==IDYES))help();Getmap();break;case 6:if ((MessageBox(NULL,TEXT("确定前往登山跑酷吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES))run();Getmap();break;case 7:if ((MessageBox(NULL,TEXT("确定前往    吗?"),TEXT("传送NPC"),MB_YESNO)==IDYES)&&things[10]>=100&&things[201]==1&&things[202]==1&&things[203]==1)things[0]=7;things[213]=1,things[220]=1;tepan();return;}}
}
bool dalie()
{tepan();things[8]-=5;use(51);cls();int n,i,j,k,m=6;int x=25,y=25,x1=5,y1=5;while(1){cout<<"按k键射击,wasd控制\n";cout<<"你还有"<<m<<"发子弹\n";char l=' ';if (kbhit())l=getch();switch(l){case 'w':x-=random(2,5);break;case 's':x+=random(2,5);break;case 'a':y-=random(2,5);break;case 'd':y+=random(2,5);break;case 'k':m--;if (x==x1&&y==y1||x-2<=x1&&y1==y||x+2>=x1&&y==y)return 1;default:break;}if (m<=0)return 0;srand(time(0));if (m!=3||(m==3&&rand()%10==7))n=rand()%4+1;switch(n){case 1:x1-=random(1,3);break;case 2:x1+=random(2,4);break;case 3:y1-=random(1,3);break;case 4:y1+=random(2,4);break;}gotoxy(x,y-3);cout<<"-- ·--";gotoxy(x-1,y);cout<<"|";gotoxy(x-2,y);cout<<"|";gotoxy(x+1,y);cout<<"|";gotoxy(x+2,y);cout<<"|";gotoxy(x1-1,y1);cout<<"---";gotoxy(x1,y1);cout<<"| |";gotoxy(x1+1,y1);cout<<"---";if (x>40)x=40;if (y>50)y=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,-1,6,-1,6,6,-1,6,},{25,25,25,25,-1,25,-1,-1,-1,},{24,-1,24,24,24,24,24,24,24,},{24,24,24,24,-1,24,24,-1,24,},{-1,-1,-1,26,-1,26,26,-1,26,},{-1,26,-1,-1,25,-1,-1,2,-1,},{24,25,26,-1,2,-1,-1,2,-1,},{26,25,-1,24,2,-1,-1,2,-1,},{31,31,31,31,-1,31,-1,-1,-1,},{28,-1,28,28,28,28,28,28,28,},{29,29,29,29,-1,29,29,-1,29,},{-1,-1,-1,38,-1,38,38,-1,38,},{-1,43,-1,-1,43,-1,-1,2,-1,},{44,44,44,-1,2,-1,-1,2,-1,},{45,45,-1,45,2,-1,-1,2,-1,},{-1,56,-1,26,55,26,-1,54,-1,},{3,3,3,3,3,3,3,3,3,},{24,24,24,26,56,26,56,54,56,},{-1,-1,-1,6,6,4,-1,-1,-1,},
};
void forest()
{hdcj(31);srand(time(0));const string where[]={"打猎","砍树","工作台","探索","查看合成表","离开","附魔","森林背包","查看当前附魔属性","看看森林中各物品说明"};int i,j,k,n,m;char l;while(1){for(i=0;i<1000;i++)if (kbhit())l=getch();//垃圾收集器 things[8]-=5;tepan();cls();printf("树林茂密的森林中,不时传来的尖叫声给人一种不安的气氛\n");for(i=0;i<10;i++)printf("%d.%s\n",i,where[i].c_str());cout<<"` (ESC下面)神秘人\n";if (things[188]==1)l=choose(6)+'0';elsel=_getch();switch(l){case '0':{cls();if (rand()%4==1){cout<<"运气不巧,什么都没碰到";gs();break;}cout<<"你遇到了一只野";string animal[6]={"","牛","羊","猪","鸡","兔"};srand(time(0));n=random(1,5);cout<<animal[n];gs();if (dalie()){happened+=(name+"在小森林打猎,收获猎物一只/");if (n==1)hdcj(39);things[81]++;if (things[81]>=20)hdcj(44);cout<<"打中了!";cout<<"卖了";n=random(800,8000);cout<<n;cout<<"元";things[7]+=n;gotmoney+=n;gs();}else{things[84]=0;happened+=(name+"打猎时手滑走火导致猎物逃走/");cout<<"没打中!";gs();}break;}case '1':{use(52);gs();hdcj(20);Sout("你费力地挥舞着斧头,树木吱吱的发出不祥的叫声。");happened+=(name+"在森林乱砍乱伐/");gs();for(i=1;i<=random(4,7);i++){m=60000;n=0;n+=fost[17]*1593;n+=fost[18]*3983;n+=fost[19]*6927;n+=fost[20]*6281;n+=fost[21]*12817;n+=fost[45]*18693;n+=fost[53]*23100;n*=random(1,has_fumo[1][1]+1);m-=n;jdt(float(m/10000.0));n=random(2,4);n*=random(1,has_fumo[2][4]+1);cout<<"原木*"<<n;fost[0]+=n;}break;}case '2':{use(53);gs();cout<<"______________________________\n";cout<<"|         |         |         |\n";cout<<"|         |         |         |\n";cout<<"|_________|_________|_________|\n";cout<<"|         |         |         |\n";cout<<"|         |         |         |\n";cout<<"|_________|_________|_________|\n";cout<<"|         |         |         |\n";cout<<"|         |         |         |\n";cout<<"|_________|_________|_________|\n";cout<<"输入你有的东西的编号,放进对应的格子";int f[3][3];int grid[3][3][2]={{2,2,2,14,2,26,},{5,2,5,14,5,26,},{8,2,8,14,8,26,},};for(i=0;i<3;i++)for(j=0;j<3;j++){gotoxy(16,3);cout<<"第"<<i*3+j+1<<"格放什么?输入编号(什么都不放输入-1)           \n";int g=0;for(k=0;k<=56;k++)if (fost[k]){printf("%d.%s * %d\t",k,fsn[k].c_str(),fost[k]);if ((++g)%3==0)printf("\n");}cin>>f[i][j];gotoxy(grid[i][j][0],grid[i][j][1]);if (f[i][j]==-1)cout<<"空";elsecout<<fsn[f[i][j]];}cls();n=-1;for(i=0;i<=56;i++){bool flag=true;for(j=0;j<3;j++)for(k=0;k<3;k++)if (f[j][k]!=map[i][j][k])flag=false;if (flag){n=i;break;}}if (n==-1){cout<<"不存在该合成表!";gs();break;}cout<<"做几个 "<<fsn[n]<<" ?";int l1;cin>>l1;int get[201];memset(get,0,sizeof(get));for(i=0;i<200;i++)get[i]=fost[i]; bool can=true;for(i=0;i<3;i++)for(j=0;j<3;j++)if (map[n][i][j]>=0)if (get[map[n][i][j]]<l1){can=false;break;}elseget[map[n][i][j]]-=l1;cout<<can<<endl;if (can==0){cout<<"材料不足!,缺少"<<i<<','<<j<<'\n';gs();break; }for(i=0;i<3;i++)for(j=0;j<3;j++){if (map[n][i][j]!=-1){fost[map[n][i][j]]-=l1;}}if (i!=500&&j!=600){cout<<"获得:"<<fsn[n]<<'*'<<l1;if (n==9)hdcj(13);if (n==14)hdcj(19);if (n==11)hdcj(21);if (n==12)things[5]+=l1;if (n==13)things[5]+=2*l1;if (n==14)things[5]+=3*l1;if (n==15)things[5]+=5*l1;if (n==22)things[5]+=17*l1;happened+=(name+"合成了"+fsn[n]+"/");if (i<=5&&j<=5)fost[n]+=l1;if (n==1)fost[n]+=3*l1;if (n==2)fost[n]+=3*l1;if (n==4)fost[n]+=8*l1;if (n==5)fost[n]+=8*l1;if (n==6)fost[n]+=8*l1;if (n>=35&&n<=38){bool diamond=true;for(int ji=35;ji<=38;ji++)if (fost[ji]<=0)diamond=false;if (diamond)hdcj(23);}if (n>=39&&n<=42){bool diamond=true;for(int ji=39;ji<=42;ji++)if (fost[ji]<=0)diamond=false;if (diamond)hdcj(24);}if (n>=46&&n<=49){bool diamond=true;for(int ji=46;ji<=49;ji++)if (fost[ji]<=0)diamond=false;if (diamond)hdcj(25);}/*iron golden diamond hero skyhead   4    3         6        9   15clothes 6    4        8       14  23tussle  5    4        7       12  19shoes 3    2        5     8   13*/if (n==27)things[6]+=4;if (n==28)things[6]+=6;if (n==29)things[6]+=5;if (n==30)things[6]+=3;if (n==31)things[6]+=3;if (n==32)things[6]+=4;if (n==33)things[6]+=4;if (n==34)things[6]+=2;if (n==35)things[6]+=6;if (n==36)things[6]+=8;if (n==37)things[6]+=7;if (n==38)things[6]+=5;if (n==39)things[6]+=9;if (n==40)things[6]+=14;if (n==41)things[6]+=12;if (n==42)things[6]+=8;if (n==43)things[5]+=16;if (n==46)things[6]+=15;if (n==47)things[6]+=23;if (n==48)things[6]+=19;if (n==49)things[6]+=13;if (n==50)things[5]+=35;if (n==53){things[5]+=46;hdcj(27);}}break;}case '3':{/* string fumoname[4][5]=
{{"耐久","锋利","抢夺","雷电之力","落雷术"},{"耐久","效率","洪荒之力","木之克星","时运"},{"耐久","效率","急迫","精准采集","时运"}{"耐久","保护","血量提升","荆棘","雷电附身"},
}; */n=random(1,6);if (things[187]==2&&rand()%3<=1)n=7;cls();switch(n){case 1:{use(54);Sout("你遇到了一只僵尸!");m=random(things[9]-10,things[9]+15);int hp,attack,run;hp=m*(random(17,29));attack=m*(random(4,13));run=m;while(1){cls();cout<<"Your hp:"<<things[2]<<'\n';cout<<"JS's hp:"<<hp<<'\n';cout<<"1.attack 2.run away\n";char l=_getch();cout<<l;if (l=='2'){if (rand()%4==1){cout<<"逃跑成功,运气不错!";break;}elsecout<<"逃跑失败!\n";}else{if (fost[22]==0&&fost[43]==0&&fost[50]==0&&fost[53]==0){n=gongji(things[5]);gotoxy(12,0);n-=run;Sout("你发动了攻击,僵尸受到了");}else{if (fost[22]>=1){cout<<"你发动了技能【火炮轰炸】\n";n=1.2*things[5];}if (fost[43]>=1)//43,50,53{cout<<"你发动了技能【横扫】\n";n+=1.1*things[5];}if (fost[50]>=1){cout<<"你发动了技能【坠入虚空】\n";n+=hp*0.5;}if (fost[53]>=1){cout<<"你发动了技能【量子充能】\n";n+=0.4*things[2];}}if (has_fumo[3][4])if (rand()%(70/(70/has_fumo[3][4])))cout<<"你发动了技能【雷电之力】\n",n+=has_fumo[3][4]*0.01*things[2];Sout("造成了");cout<<n;Sout("点伤害\n");hp-=n;}Sout("僵尸发动了攻击,你受到了");n=attack*0.87-things[6];if (n<1)n=1;cout<<n;Sout("点伤害\n");Sout("反伤:");m=0;if (has_fumo[3][3])m=n*(has_fumo[3][3])*0.03;cout<<m<<"点\n";things[2]-=n;hp-=m;if (things[2]<=0){happened+=(name+"被僵尸杀死了/");Die();}if (hp<=0){hdcj(22);break;}}Sout("胜利!战利品:");things[83]++;if (fost[22]>=1)things[197]++;if (things[197]>=166)hdcj(6);happened+=(name+"杀死了一只僵尸/");n=random(2,4);m=random(0,2);cout<<fsn[m]<<"*"<<n;n*=random(1,has_fumo[0][2]+1);fost[m]+=n;gs();break;}case 2:{use(55);cls();Sout("你遇到了一只骷髅!");m=random(things[9]-10,things[9]+15);int hp,attack,run;hp=m*(random(7,23));attack=m*(random(5,8));run=m;while(1){cout<<"Your hp:"<<things[2]<<'\n';cout<<"KL's hp:"<<hp<<'\n';cout<<"1.attack 2.run away\n";char l=_getch();cout<<l;if (l=='2'){if (rand()%4==1){cout<<"逃跑成功,运气不错!";break;}elsecout<<"逃跑失败!\n";}else{n=gongji(things[5]);gotoxy(12,0);n-=run;Sout("你发动了攻击,KL受到了");cout<<n;Sout("点伤害\n");hp-=n;}Sout("骷髅发动了攻击,你受到了");n=attack*0.87-things[6];if (n<1)n=1;cout<<n;Sout("点伤害\n");Sout("反伤:");m=0;if (has_fumo[3][3])m=n*(has_fumo[3][3])*0.03;cout<<m<<"点\n";things[2]-=n;hp-=m;if (things[2]<=0){happened+=(name+"被骷髅杀死了/");Die();}if (hp<=0){hdcj(22);break;}}happened+=(name+"杀死了一只骷髅/");Sout("胜利!战利品:");things[83]++;n=random(2,4);m=random(0,2);n*=random(1,has_fumo[0][2]+1);cout<<fsn[m]<<"*"<<n;fost[m]+=n;gs();break;}case 3:{use(56);Sout("你遇到了一只爬行者!");m=random(things[9]-10,things[9]+15);int hp,attack,run;hp=m*(random(17,23));attack=m*(random(6,8));run=m;while(1){cls();cout<<"Your hp:"<<things[2]<<'\n';cout<<"PXZ's hp:"<<hp<<'\n';cout<<"1.attack 2.run away\n";char l=_getch();if (l=='2'){if (rand()%4==1){cout<<"逃跑成功,运气不错!";break;}elsecout<<"逃跑失败!\n";}if (fost[22]==0&&fost[43]==0&&fost[50]==0&&fost[53]==0){n=gongji(things[5]);gotoxy(12,0);n-=run;Sout("你发动了攻击,爬行者受到了");cout<<n;Sout("点伤害\n");hp-=n;}Sout("爬行者自爆了,你受到了");n=attack*1.4-things[6];cout<<n;Sout("点伤害") ;things[2]-=n;hp=0;if (things[2]<=0){happened+=(name+"被creeper炸飞了/");Die();}if (hp<=0)break;}Sout("胜利!战利品:");n=random(2,5);m=23;n*=random(1,has_fumo[0][2]+1);cout<<fsn[m]<<"*"<<n;fost[23]+=n;gs();break;}case 4:{use(57);Sout("你找到了一个矿洞.");Sout("\n是否挖矿?1.是 2.否");char l=_getch();if (l=='2')break;n=60000;n-=fost[7]*2838;n-=fost[8]*5092;n-=fost[9]*7928;n-=fost[10]*9203;n-=fost[11]*13029;n-=fost[44]*17832;n-=fost[51]*30091;n*=1-has_fumo[2][1]*0.04;n*=1-has_fumo[2][2]*0.05;if (n<10000)n=10000;for(i=1;i<=6;i++){m=random(3,6);if (has_fumo[2][3]){cout<<"你想要什么?\n";cout<<"1.石头\n";cout<<"2.铁锭\n";cout<<"3.金锭\n";cout<<"4.钻石\n";int a;cin>>a;if (a>4)a=random(1,4);m=a+2;}if (m==6)hdcj(12);jdt(n/10000+(m-3));k=random(1,3);k*=random(1,has_fumo[2][4]+1);fost[m]+=k;cout<<fsn[m]<<'*'<<k;happened+=(name+"在矿洞淘钻/");gs();}break;}case 5:{use(58);srand(time(0));Sout("你遇到了一个废弃矿道");cout<<"是否探索?1.是 2.否 3.查看故事";char l=_getch();if (l=='3'){cls();cout<<"    这是一条灵异矿道,以前的矿工常常在里面离奇失踪,\n";cout<<"数日后便会有几个影子在矿道里游荡。有人说这是矿工的亡\n";cout<<"魂,也有人说这是恶魔的影子。\n";cout<<"    唯一一个或者从矿道里走出来的是WYQ,他在下矿之前被\n";cout<<"MCYH施加了BUFF,所以没事。但是他亲口说自己看到了地上躺\n";cout<<"着无数没有生命的躯体,眼里冒着绿光。忽然他们全都站了起\n";cout<<"来向WYQ扑过来,但是他们看到MCYH的BUFF时立刻魂飞魄散了。\n";cout<<"    从此以后,只有游戏主宰者MCYH和好友WYQ能在矿道和地上\n";cout<<"世界中自由的穿梭,只有他能为地面上的人类带来矿道里丰富的宝藏。\n";cout<<"    所以,这位看故事的玩家,你敢进去吗?\n";cout<<"是否探索?1.是 2.否";l=_getch();if (l=='2'){Sout("MCYH:胆小鬼,我编个故事吓吓你而已...");break;}}n=rand()%4+1;switch(n){case 1:case 2:case 3:{Sout("你发现了一个箱子,是否打开?1.YES 2.NO");l=_getch();if (l=='2')break;if (l=='1'){srand(time(0));if (rand()%2){happened+=(name+"在废弃矿道找到了很多宝藏/");cout<<"你找到了一堆宝藏!\n";cout<<"获得:";n=random(3,6);m=random(3,5);cout<<fsn[n]<<'*'<<m;fost[n]+=m;cout<<",";n=random(3,6);m=random(3,5);cout<<fsn[n]<<'*'<<m;fost[n]+=m;break; }{Sout("你遇到了一只游魂!");hdcj(14);m=random(things[9]-10,things[9]+15);int hp,attack,run;hp=m*(random(23,28));attack=m*(random(7,9));run=m;while(1){cls();cout<<"Your hp:"<<things[2]<<'\n';cout<<"YH's hp:"<<hp<<'\n';cout<<"敌军等级:"<<m<<"\n"; cout<<"1.attack 2.run away\n";char l=_getch();if (l=='2'){if (rand()%2){cout<<"逃跑成功,运气不错!";break;}elsecout<<"逃跑失败!\n";}else{if (fost[22])cout<<"你发动了技能【火炮轰炸】\n",n=1.2*things[5];if (fost[43])//43,50,53cout<<"你发动了技能【横扫】\n",n+=1.1*things[5];if (fost[50])cout<<"你发动了技能【坠入虚空】\n",n+=hp*0.5;if (fost[53])cout<<"你发动了技能【量子充能】\n",n+=0.4*things[2];if (fost[22]==0&&fost[43]==0&&fost[50]==0&&fost[53]==0){n=gongji(things[5]);n-=run;Sout("你发动了攻击,游魂受到了");}cout<<n;Sout("点伤害\n");hp-=n;}if (rand()%4){Sout("游魂发动了攻击,你受到了");n=attack*0.87-things[6];if (n<1)n=1;cout<<n;Sout("点伤害") ;things[2]-=n;}else{cout<<"游魂发动技能“灵魂威慑”,对你造成了"<<attack*1.5<<"点伤害\n";things[2]-=attack*1.5;}if (things[2]<=0){happened+=(name+"被游魂杀死了/");Die();}if (hp<=0)break;cls();}Sout("胜利!战利品:");if (fost[22]>=1)things[197]++;if (things[197]>=166)hdcj(6);things[83]++;n=random(2,6);m=random(0,6);n*=random(1,has_fumo[0][2]+1);cout<<fsn[m]<<"*"<<n;fost[m]+=n;gs();break;}  }}case 4:{if (rand()%2){use(59);cout<<"你遇到了MCYH!\n";cout<<"1.attack 2.run away";char l=_getch();switch(l){case '2':break;default:{Sout("\nMCYH:和作者打架。。。");hdcj(15);Sout("\nMCYH(拿起纳米剑):来吧!准备好了没有?Y/N");char g=_getch();if (g!='Y'&&g!='y'){Sout("MCYH:胆小鬼!");break;}gs();things[0]++;return;break;}}break;}else{use(60);cout<<"你遇到了WYQ!\n";cout<<"1.attack 2.run away\n";char l=_getch();switch(l){case '2':break;default:Sout("MCYH:竟敢和作者的好兄弟WYQ打架?!关机吧!!!");system("Shutdown -H");break;}break;}}}break;}case 6:{use(61);cout<<"你遇到了SLS(索罗斯)!";int a,b,c,d=random(things[9]-3,things[9]+5);int huanying=0;a=d*(random(21,30));b=d*(random(6,11));c=d;gs();while(1){cls();Sout("YOUR HP:");cout<<things[2]<<'\n';Sout("SLS HP:");cout<<a<<'\n';Sout("SLS ATTACK:");cout<<b<<'\n';Sout("SLS DEFENCE:");cout<<c<<'\n';Sout("SLS XP:");cout<<d<<'\n';Sout("SLS幻影层数:");cout<<huanying<<'\n';cout<<"1.attack 2.run away\n";char l=_getch();if (l=='2'){if (rand()%4==1){Sout("逃跑成功,运气不错");break;}elseSout("逃跑失败!\n");}else{if (fost[22])cout<<"你发动了技能【火炮轰炸】\n",n=1.2*things[5];if (fost[43])//43,50,53

人生之路1.20代码 第三部分相关推荐

  1. 人生之路1.20代码 第一部分

    代码不止这一段,不止这一段,不止这一段!!! 点我查看全部代码 1~2500 #include<algorithm> #include<cmath> #include<v ...

  2. 人生之路1.20代码 第四部分

    代码不止这一段,不止这一段,不止这一段!!! 点我查看完整代码 7501~10000 cout<<"你发动了技能[横扫]\n",n+=1.1*things[5];if ...

  3. 人生之路小游戏代码2

    点我查看全部代码 还没发完,接着发 void show() {shuoming();time_t ld;time(&ld);kaishi=ld;cout<<"当前时间刻: ...

  4. 是非人生 — 一个菜鸟程序员的5年职场路 第20节

    是非人生 - 一个菜鸟程序员的5年职场路第20节作者: 花8 天涯IT: http://cache.tianya.cn/publicforum/content/itinfo/1/77229.shtml ...

  5. devc++人生之路游戏

    点我查看全部代码 不知道什么原因,第一部分的代码没发出来,真离谱... #include<algorithm> #include<cmath> #include<vect ...

  6. 【经验谈】开发工程师人生之路

    相对同时刚出校门同学从事其它行业而言优厚的薪水,以及不断学习更新的专业知识不仅仅让你感到生活的充实,更满足了你那不让外人知的虚荣心.在刚出校门的 几年中,你经常回头看看被你落在后面的同学们,在内心怜悯 ...

  7. 徐小平:不做人生规划,你离挨饿只有三天

    徐小平,新东方教育科技集团董事,新东方文化发展研究院院长,2003年荣登中国<福布斯>名人录,被中国青年一代尊称为"人生设计师". 靠自己的劳动赢得生存就是成功 难以找 ...

  8. 不做人生规划,你离挨饿只有三天(转)

    不做人生规划,你离挨饿只有三天(转) 作者:徐小平 靠自己的劳动赢得生存就是成功 难以找到工作的青年,一般有三种情况:一是缺少求职技巧的人:二是缺乏就业竞争力的人:第三种人我觉得最糟糕--他们认为&q ...

  9. 转载--徐小平:不做人生规划,你离挨饿只有三天

    靠自己的劳动赢得生存就是成功 难以找到工作的青年,一般有三种情况:一是缺少求职技巧的人:二是缺乏就业竞争力的人:第三种人我觉得最糟糕----他们认为"仅为生存工作是可耻的",认为& ...

  10. 徐小平 不做人生规划,你离挨饿只有三天

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 徐小平: ...

最新文章

  1. 排序命令: sort, wc, uniq
  2. 为什么监听不到开机广播action.BOOT_COMPLETED
  3. java设计模式之简单工厂模式
  4. 傅里叶变换应用——信号调制与解调
  5. 剑指Offer - 面试题56 - I. 数组中数字出现的次数(异或,分组)
  6. vue中在当前组件中定义的全局变量怎么在methods中使用_Vue原理解析(十):搞懂事件API原理及在组件库中的妙用...
  7. 使用com.alibaba.fastjson.JSONObject构造简单的JSON数据
  8. 在给函数传递实参时,不能对用到引用的传NULL
  9. Codevs 1684 垃圾陷阱
  10. 前端性能优化原理与实践
  11. swfobject2.2
  12. Node.Js实现最最最简单的登录注册
  13. 字节跳动大裁员,测试工程师差点遭团灭:大厂招人背后的套路,有多可怕?
  14. 时序逻辑电路的设计(一) -- 模10的计数器电路(附Multisim)
  15. JQuery Ajax 参数含有特殊字符
  16. 系统错误:蓝屏提示IRQL-NOT-LESS-OR EQUAL
  17. win11系统下 安装成功ENVI5.6sarscape但不显示插件
  18. 亿道丨三防平板丨工业平板丨比消费类平板好在哪?
  19. 面试——Java字节面经(已获Offer)
  20. 使用ijkplayer进行视频播放

热门文章

  1. 武汉星起航跨境电商——亚马逊日本站JCT政策将实现改革
  2. html:button按钮背景图片设置
  3. DP(Nietzsche)的hu测 T1(状压dp)
  4. mysql idb 恢复_mysql靠idb文件恢复数据
  5. 【UI设计No5】LOGO设计
  6. Fresco之强大之余的痛楚
  7. 爱你却不能长相厮守痛楚等你殊不知道终局
  8. 如何解决遇到的The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone
  9. OS---Windows 7 旗舰版OEM密钥
  10. 第十一周项目一 类的继承填空