#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
long long g=10,x=10,f=10,kj=10,chuan=10,money=300,lv=1;
long long vip,xue=600,ff=f,sys=0,yhk=0,b;
int a,tr;
bool jiasu,fandian=1,heidian=1;
long long bag[41]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
void slowout(char *p){
while(1){
if(*p!=0)
printf("%c",*p++);
else
break;
Sleep(100);
}
}
void chuangzao(int moshi){
if(moshi!=19850127) return;
while(true){
while(true){
system("cls");
cout<<"1.更改血量 2.更改防御 3.更改攻击 4.更改背包 5.更改金币 6.更改等级 7.退出创作者模式"<<endl;
cin>>a;
if(a==7){
return;
}
if(a==4){
system("cls");
cout<<"物品ID:";
cin>>a;
cout<<endl;
cout<<"数量:";
int b;
cin>>b;
cout<<endl;
if(a>41){
if(a==42){
vip+=b;
}
if(a==43){
sys+=b;
}
if(a==44){
yhk+=b;
}
chuangzao(moshi);
}else{
bag[a]=b;
chuangzao(moshi);
}
}
if(a!=7){
system("cls");
cout<<"1.继续更改 2.取消"<<endl;
cin>>a;
if(a==1){
system("cls");
cout<<"更改为:";
cin>>tr;
cout<<endl;
if(a==1){
xue=tr;
chuangzao(moshi);
}
if(a==2){
f=tr;
chuangzao(moshi);
}
if(a==3){
g=tr;
}
if(a==4){
system("cls");
cout<<"物品ID:";
cin>>a;
cout<<endl;
cout<<"数量:";
int b;
cin>>b;
cout<<endl;
if(a>41){
if(a==42){
vip+=b;
}
if(a==43){
sys+=b;
}
if(a==44){
yhk+=b;
}
chuangzao(moshi);
}else{
bag[a]=b;
chuangzao(moshi);
}
}
if(a==5){
money=tr;
}
if(a==6){
lv=tr;
}
}
}
}
}
}
int zhandou(int g1,int x1,int f1,int q,int shan,int fang,char boss[20]){
int k=0;
x=xue;
ff=f;
while(1){
int cc=g-f1;
if(cc<=0) cc=0;
x1-=cc;
printf("你向%s攻击,%s扣了%d滴血,\
还剩%d滴血\n",boss,boss,cc,x1<0?0:x1);
if(x1<=0){
k++;
break;
}
Sleep(10);
if(rand()%fang) printf("%s十分恼怒,防御+%d\n",boss,q),f1+=q;
else printf("%s气势低沉,防御-%d\n",boss,q),f1-=q;
Sleep(10);
printf("%s向你扑来\n",boss);
Sleep(10);
int ccc=g1-f;
if(ccc<0) ccc=0;
x-=ccc;
printf("%s向你发动攻击,你扣了%d滴血,\
还剩%d滴血\n",boss,ccc,x<0?0:x);
if(x<=0){
printf("你已死亡!\n");
Sleep(3000);
break;
}
Sleep(10);
if(rand()%2) printf("你十分恼怒,防御+%d\n",q),f+=q;
else printf("你气势低沉,防御-%d\n",q),f-=q;
Sleep(10);
}
f=ff;
return k;
}
void juqin(){
if(b!=1){
if(jiasu==1){
Sleep(10);
printf("在2024年,S城……\n");
Sleep(10);
printf("这是一座充满未知的神秘城市…………\n");
Sleep(10);
printf("某一天……\n");
Sleep(10);
Sleep(10);
printf("警察A:这都快半年了,S城一直平安无事,你说我们俩在这里天天转悠,够无聊的。\n");
Sleep(10);
printf("警察B:哎,咋们也是为了混口饭吃,不容易啊!\n");
Sleep(10);
printf("警察A:算了,巡逻巡逻吧。\n");
Sleep(10);
printf("突然,惊天动地一声巨响,两名警察应声倒地\n") ;
Sleep(10);
printf("该死,没子弹了。\n");
Sleep(10);
printf("烟雾中,你出现了~\n\n\n");
}else{
Sleep(10);
slowout("在2024年,S城……\n");
Sleep(10);
slowout("这是一座充满未知的神秘城市…………\n");
Sleep(10);
slowout("某一天……\n");
Sleep(10);
Sleep(10);
slowout("警察A:这都快半年了,S城一直平安无事,你说我们俩在这里天天转悠,够无聊的。\n");
Sleep(10);
slowout("警察B:哎,咋们也是为了混口饭吃,不容易啊!\n");
Sleep(10);
slowout("警察A:算了,巡逻巡逻吧。\n");
Sleep(10);
slowout("突然,惊天动地一声巨响,两名警察应声倒地\n") ;
Sleep(10);
slowout("该死,没子弹了。\n");
Sleep(10);
slowout("烟雾中,你出现了~\n\n\n");
}
}
}
int main(){
srand((int)time(0));
long long shangdian[15]={rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,rand()%10*10+rand()%10+10,1};
char name[20];
int c,d,e,u,v,w,x,y,z,wuqi=0,key=0,kc=0,slb=0;
int exp=0,lv1=1,huihe;
for(int i=1;i<=40;i++)
bag[i]==0;
int xie=0,chuan=0,xz[21];
for(int i=0;i<=20;i++)
xz[i]=0;
system("cls");
printf("歹");
Sleep(500);
printf("徒");
Sleep(500);
printf("逃");
Sleep(500);
printf("亡\n");
Sleep(500);
printf("v1.7.2正式版,大力支持二创作者 shalebajibe\n");
Sleep(1000);
system("cls");
system("color 70");
printf("加速模式?\n");
printf("1.不开启\n");
printf("2.开启\n");
cin>>b;
system("cls");
if(b!=1){
jiasu=1;
}
printf("是否开启剧情?\n");
printf("1.跳过\n");
printf("2.开启\n");
cin>>b;
juqin();
Sleep(10);
system("cls");
if(jiasu==1){
printf("请输入你的名字:");
}else{
slowout("请输入你的名字:");
}
cin>>name;
system("cls");
printf("确认名字:你的名字是%s\n",name);
Sleep(10);
slowout("下面正式开始游戏~\n\n\n\n\n");
Sleep(10);
system("cls");
if(jiasu==1){
printf("你,%s是一名S城的弱鸡歹徒,然而,你想干出一番大事业。\n",name);
Sleep(2000);
}else{
slowout("你,");
printf("%s",name);
slowout("是一名S城的弱鸡歹徒,然而,你想干出一番大事业。\n");
Sleep(100);
Sleep(100);
Sleep(100);
}
system("cls");
while(true){
goto a1;
a1:{
system("cls");
while(exp>500){
exp-=500;
lv+=1;
}
if(lv-lv1==1){
if(jiasu==1){
printf("你升级了!\n");
}else{
slowout("你升级了!\n");
}
xue+=100;
g+=50;
f+=20;
lv1++;
}
if(lv>lv1&&lv-lv1!=1){
int eeeee=lv-lv1;
if(jiasu==1){
printf("你连升了");
cout<<eeeee;
printf("级!\n");
}else{
slowout("你连升了");
cout<<eeeee;
slowout("级!\n");
}
xue+=100*eeeee;
g+=50*eeeee;
f+=20*eeeee;
lv1+=eeeee;
}
if(jiasu==1){
printf("现在你要去哪里\n");
printf("1.大街 2.商店 3.矿场 4.实验室 5.省警察局 6.银行 7.查看背包 8.试炼场 9.黑市 10.开启VIP 11.饭店 12.抽奖机 13.设置\n");
}else{
slowout("现在你要去哪里\n");
printf("1.大街 2.商店 3.矿场 4.实验室 5.省警察局 6.银行 7.查看背包 8.试炼场 9.黑市 10.开启VIP 11.饭店 12.抽奖机 13.设置\n");
}
huihe++;
if(huihe%15==0){
ofstream fout("歹徒逃亡.存档");
fout<<g<<endl<<x<<endl<<kj<<endl<<chuan<<endl<<money<<endl<<lv<<endl<<vip<<endl<<xue<<endl<<ff<<endl<<f<<endl<<sys<<endl<<yhk<<endl<<fandian<<endl;
for(int i=0;i<41;++i) fout<<bag[i]<<endl;
for(int i=0;i<14;++i) fout<<shangdian[i]<<endl;
fout<<jiasu<<endl<<c<<endl<<d<<endl<<e<<endl<<u<<endl<<v<<endl<<w<<endl<<x<<endl<<y<<endl<<z<<endl<<wuqi<<endl<<key<<endl<<kc<<endl<<slb<<endl;
printf("%s\n",name);
fout<<exp<<endl<<lv1<<endl<<xie<<endl;
for(int i=0;i<41;++i) cout<<xz[i]<<endl;
fout.close();
}
cin>>a;
system("cls");
}
if(a>13*100){
chuangzao(a);
}
if(a==1){
int dajie;
srand((unsigned)time(NULL));
dajie=rand()%10;
if(dajie>=0&&dajie<=4){
printf("大街上走来了一个路人\n");
Sleep(10);
printf("是否打他? 1.是 2.否\n");
cin>>b;
if(b==1){
if(zhandou(100,350,0,10,1,2,"路人")){
int luren;
luren=rand()%10;
printf("胜利!\n");
printf("获得500金币,30经验\n");
money+=500;exp+=30;
if(luren>=0&&luren<=4){
int geilu=rand()%10*10+rand()%10;
if(geilu==66){
printf("恭喜获得:黑市终身贵宾卡*1\n");
bag[22]++;
}else{
if(geilu<=5){
printf("恭喜获得:开启实验室的钥匙*1\n");
sys++;
}else{
if(geilu>=70){
printf("恭喜获得:白纸*3\n");
bag[18]++;
bag[18]++;
bag[18]++;
}else{
printf("恭喜获得:挖矿镐*3\n");
bag[31]++;
bag[31]++;
bag[31]++;
}
}
}
Sleep(3000);
}else{
printf("没有获得物品\n");
Sleep(3000);
}
}
}
goto a1;
}
if(dajie>4&&dajie<=6){
printf("大街上过来了一名警察\n");
Sleep(10);
printf("是否攻击?1.是 2.否\n");
cin>>b;
if(b==1){
if(zhandou(200,700,50,5,1,2,"警察")){
int police;
police=rand()%10;
printf("胜利!\n");
printf("获得1000金币,80经验\n");
money+=1000;exp+=80;
if(police>=0&&police<=3){
printf("恭喜获得:中瓶攻击药水*1\n");
bag[2]++;
}
if(police>3&&police<=6){
int geilu=rand()%10;
if(geilu<=2){
printf("恭喜获得:长刀*1\n");
bag[7]++;
}
if(geilu>4){
printf("恭喜获得:手枪*1\n");
bag[7]++;
}
if(geilu==3){
printf("恭喜获得:98K*1\n");
bag[7]++;
}
if(geilu==4){
printf("恭喜获得:机关枪*1\n");
bag[7]++;
}
Sleep(3000);
}
else printf("没有获得任何物品\n");
Sleep(3000);
goto a1;
}
}
goto a1;
}
if(dajie>6&&dajie<=8){
printf("安全。\n");
goto a1;
}
if(dajie==9){
printf("大街上来了一辆装甲车\n");
Sleep(10);
printf("是否攻击?1.是 2.否\n");
cin>>b;
if(b==1){
if(zhandou(850,3000,660,0,1,2,"装甲车")){
printf("你胜利了!\n");
Sleep(10);
printf("获得6000金币,500经验!!!\n");
money+=6000;exp+=500;
Sleep(10);
printf("你抢走了这辆装甲车!\n");
bag[13]++;
Sleep(3000);
}
}
goto a1;
}
}
if(a==2){
if(heidian==0){
cout<<"还有脸来,给爷死!"<<endl;
slowout("黑点老板拿出了等离子大炮!你没有办法,只能迎战!\n");
Sleep(10);
if(zhandou(650,1300,130,10,1,2,"")){
printf("你把黑店老板狠揍了一顿,并且又抢到了10000金币\n");
heidian=0;
money+=10000;
}
else{
printf("抢劫没抢成,反倒赔了200000金币!\n");
money-=200000;
}
}
long long jiege;
int id;
slowout("黑店老板:你要做甚么? 1.购买 2.抢劫\n");
cin>>c;
if(c==1){
slowout("黑店老板:你要买啥类?\n");
Sleep(10);
printf("1.长刀 200¥ 剩余%d个商品\n",shangdian[0]);
printf("2.青龙偃月刀 666¥ 剩余%d个商品\n",shangdian[1]);
printf("3.开启实验室的钥匙 500¥ 剩余%d个商品\n",shangdian[2]);
printf("4.银行卡(里面没钱)300¥ 剩余%d个商品\n",shangdian[3]);
printf("5.手枪 8000¥ 剩余%d个商品\n",shangdian[4]);
printf("6.机关枪 10000¥ 剩余%d个商品\n",shangdian[5]);
printf("7.98K 19999¥ 剩余%d个商品\n",shangdian[6]);
printf("8.熔炼炉 650¥ 剩余%d个商品\n",shangdian[7]);
printf("9.树皮/木头/白纸/碳(随机) 100¥ 剩余%d个商品\n",shangdian[8]);
printf("10.黑市入场券 100¥ 剩余%d个商品\n",shangdian[9]);
printf("11.挖矿镐 150¥ 剩余%d个商品\n",shangdian[10]);
printf("12.黑市终身贵宾卡 9999¥ 剩余%d个商品\n",shangdian[11]);
printf("13.等离子大炮 2000000¥ 剩余%d个商品\n",shangdian[12]);
printf("14.高级装甲车升级道具 9999999¥ 剩余%d个商品\n",shangdian[13]);
printf("15.催老板进货 100¥\n");
printf("16.退出\n");
cin>>b;
if(b!=1 && b!=2 && b!=3 && b!=4 && b!=5 && b!=6 && b!=7 && b!=8 && b!=9 && b!=10 && b!=11 && b!=12 && b!=13 && b!=14 && b!=15){
goto a1;
}
slowout("黑店老板:你要买几个?\n");
cin>>kj;
if(shangdian[b]<kj){
cout<<"买断货了!"<<endl;
}else{
if(b==1){
id=7;
jiege=200;
}
if(b==2){
id=8;
jiege=666;
}
if(b==3){
jiege=500;
}
if(b==4){
jiege=300;
}
if(b==5){
id=9;
jiege=8000;
}
if(b==6){
id=10;
jiege=10000;
}
if(b==7){
id=11;
jiege=19999;
}
if(b==8){
id=20;
jiege=650;
}
if(b==9){
jiege=100;
}
if(b==10){
id=21;
jiege=100;
}
if(b==11){
id=31;
jiege=150;
}
if(b==12){
id=22;
jiege=9999;
}
if(b==13){
id=12;
jiege=2000000;
}
if(b==14){
id=14;
jiege=9999999;
}
if(b==15){
jiege=100;
}
if(jiege*kj>money){
slowout("黑店老板:钱都没有?来人,打出去!\n");
}else{
money-=jiege*kj;
for(int i=0;i<kj;++i){
if(b==3){
sys=sys+kj;
}
if(b==4){
yhk=yhk+kj;
}
if(b==15){
for(int i=0;i<14;++i){
for(int j=0;j<rand()%10+10;++j){
shangdian[i]++;
}
}
shangdian[15]++;
}
if(b==9){
int bianhao=10;
while(bianhao>3) bianhao=rand()%10;
if(bianhao==0){
bag[16]++;
slowout("获得树皮\n");
}
if(bianhao==1){
bag[17]++;
slowout("获得木头\n");
}
if(bianhao==2){
bag[18]++;
slowout("获得白纸\n");
}
if(bianhao==3){
bag[19]++;
slowout("获得碳\n");
}
}else{
bag[id]++;
}
}
slowout("购买成功!\n");
shangdian[b-1]--;
}
}
}
if(c==2){
slowout("黑店老板:我草你妈!给爷死!\n");
Sleep(10);
slowout("黑点老板拿出了等离子大炮!你没有办法,只能迎战!\n");
Sleep(10);
if(zhandou(650,1300,130,10,1,2,"")){
printf("你把黑店老板狠揍了一顿,并且抢到了10000金币\n");
heidian=0;
money+=10000;
}
else{
printf("抢劫没抢成,反倒赔了2000金币!\n");
money-=2000;
}
}
Sleep(10);
goto a1;
}
if(a==3){
if(jiasu==1){
if(kc==1){
slowout("欢迎来到属于你的矿场!你要做什么?\n");
printf("1.挖矿 2.退出\n");
cin>>b;
if(b==1){
if(bag[31]==0)
printf("你没有挖矿镐!\n");
if(bag[31]>0){
printf("挖矿开始!\n");
Sleep(3000);
int wk;
wk=rand()%13;
if(wk==0||wk==1||wk==2||wk==3){
printf("挖中青铜矿*1\n");
bag[26]++;
}
if(wk==4||wk==5){
printf("挖中铁矿*1\n");
bag[27]++;
}
if(wk==6){
printf("挖中金矿*1\n");
bag[28]++;
}
if(wk==7){
printf("运气超赞,挖中钻石矿*1\n");
bag[29]++;
}
if(wk==8){
printf("运气爆棚,挖中翡翠矿*1,但是由于太过坚硬,废了一把稿子\n");
bag[30]++;
bag[31]--;
}
if(wk>8){
printf("运气太差,啥也没挖到,稿子还断了\n");
bag[31]--;
}
}
}
}
}else{
if(kc==1){
slowout("欢迎来到属于你的矿场!你要做什么?\n");
printf("1.挖矿 2.退出\n");
cin>>b;
if(b==1){
if(bag[31]==0)
slowout("你没有挖矿镐!\n");
if(bag[31]>0){
printf("挖矿开始!\n");
Sleep(3000);
int wk;
wk=rand()%13;
if(wk==0||wk==1||wk==2||wk==3){
slowout("挖中青铜矿*1\n");
bag[26]++;
}
if(wk==4||wk==5){
slowout("挖中铁矿*1\n");
bag[27]++;
}
if(wk==6){
slowout("挖中金矿*1\n");
bag[28]++;
}
if(wk==7){
slowout("运气超赞,挖中钻石矿*1\n");
bag[29]++;
}
if(wk==8){
slowout("运气爆棚,挖中翡翠矿*1,但是由于太过坚硬,废了一把稿子\n");
bag[30]++;
bag[31]--;
}
if(wk>8){
slowout("运气太差,啥也没挖到,稿子还断了\n");
bag[31]--;
}
}
}
}
}
if(kc==0){
if(jiasu==1){
printf("你进入矿场\n");
printf("你看见许多劳工在不停地干活,而监工们却十分清闲,如果有劳工停了一下,他们还用鞭子抽打\n");
printf("你虽是歹徒,却也看不下去了\n");
printf("%s:",name);
printf("你们这样太过分了,民主平等年代怎么还会有这种事!\n");
printf("监工:哪里来的乡巴佬,多管闲事!\n");
printf("%s:",name);
printf("(怒)老子是歹徒,不是乡巴佬!\n");
if(zhandou(350,800,100,10,1,2,"矿场监工"))
printf("另一名监工冲了过来\n");
else{
printf("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
if(zhandou(400,900,200,10,1,2,"矿场监工"))
printf("监工找来了总监工\n");
else{
printf("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
printf("总监工:竟敢扰乱矿场秩序,老子杀了你!\n");
if(zhandou(600,1200,250,5,1,2,"矿场总监工"))
printf("矿场主出现了!\n");
else{
printf("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
printf("矿场主:乡巴佬,你不要自寻死路!\n");
printf("%s:",name);
printf("(暴怒)再说一遍,老子不是乡巴佬!\n");
if(zhandou(800,2000,200,10,1,2,"矿场主"))
printf("你干掉了矿场主,所有劳工都自由了!\n");
else{
printf("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
slowout("所有劳工:感谢您救了我们,以示报答,这个矿场属于您了!\n");
system("cls");
kc=1;
}else{
slowout("你进入矿场\n");
slowout("你看见许多劳工在不停地干活,而监工们却十分清闲,如果有劳工停了一下,他们还用鞭子抽打\n");
slowout("你虽是歹徒,却也看不下去了\n");
printf("%s:",name);
slowout("你们这样太过分了,民主平等年代怎么还会有这种事!\n");
slowout("监工:哪里来的乡巴佬,多管闲事!\n");
printf("%s:",name);
slowout("(怒)老子是歹徒,不是乡巴佬!\n");
if(zhandou(350,800,100,10,1,2,"矿场监工"))
slowout("另一名监工冲了过来\n");
else{
slowout("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
if(zhandou(400,900,200,10,1,2,"矿场监工"))
slowout("监工找来了总监工\n");
else{
slowout("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
slowout("总监工:竟敢扰乱矿场秩序,老子杀了你!\n");
if(zhandou(600,1200,250,5,1,2,"矿场总监工"))
slowout("矿场主出现了!\n");
else{
slowout("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
slowout("矿场主:乡巴佬,你不要自寻死路!\n");
printf("%s:",name);
slowout("(暴怒)再说一遍,老子不是乡巴佬!\n");
if(zhandou(800,2000,200,10,1,2,"矿场主"))
slowout("你干掉了矿场主,所有劳工都自由了!\n");
else{
slowout("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
slowout("所有劳工:感谢您救了我们,以示报答,这个矿场属于您了!\n");
system("cls");
kc=1;
}
}
Sleep(10);
goto a1;
}
if(a==4){
if(sys<1)
slowout("你没有钥匙,进不去!\n");
else{
slowout("你要研制些甚么?\n");
Sleep(10);
printf("1.小瓶/中瓶/大瓶攻击药水 需要:①50¥/100¥/150¥ ②树皮*1/*2/*4\n");
printf("2.小瓶/中瓶/大瓶增血药水 需要:①50¥/100¥/200¥ ②木头*1/*2/*3\n");
printf("3.小瓶/中瓶/大瓶经验药水 需要 ①500¥/1000¥/2000¥ ②碳*3/*6/*9\n");
printf("4.退出\n") ;
printf("更多研制内容敬请期待……\n");
if(bag[20]>0){
cin>>b;
if(b==1){
printf("小瓶/中瓶/大瓶?\n");
cin>>c;
slowout("你要研制几瓶?\n");
cin>>kj;
if(c==1){
if(money<50*kj&&bag[16]<kj)
slowout("钱(或材料)不够!\n");
else{
if(money<50*kj){
slowout("研制成功!\n");
bag[16]-=kj;
bag[1]+=kj;
}
else{
slowout("研制成功!\n");
money-=50*kj;
bag[1]+=kj;
}
}
}
if(c==2){
if(money<100*kj&&bag[16]<2*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<100*kj){
slowout("研制成功!\n");
bag[16]-=2*kj;
bag[2]+=kj;
}
else{
slowout("研制成功!\n");
money-=100*kj;
bag[2]+=kj;
}
}
}
if(c==3){
if(money<150*kj&&bag[16]<4*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<150*kj){
slowout("研制成功!\n");
bag[16]-=4*kj;
bag[3]+=kj;
}
else{
slowout("研制成功!\n");
money-=150*kj;
bag[3]+=kj;
}
}
}
}
if(b==2){
printf("小瓶/中瓶/大瓶?\n");
cin>>c;
if(c==1){
if(money<=50*kj&&bag[17]<kj)
slowout("钱(或材料)不够!\n");
else{
if(money<50*kj){
slowout("研制成功!\n");
bag[17]-=kj;
bag[4]+=kj;
}
else{
slowout("研制成功!\n");
money-=50*kj;
bag[4]+=kj;
}
}
}
if(c==2){
if(money<=100*kj&&bag[17]<2*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<100*kj){
slowout("研制成功!\n");
bag[17]-=2*kj;
bag[5]+=kj;
}
else{
slowout("研制成功!\n");
money-=100*kj;
bag[5]+=kj;
}
}
}
if(c==3){
if(money<=200*kj&&bag[17]<3*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<200*kj){
slowout("研制成功!\n");
bag[17]-=3*kj;
bag[6]+=kj;
}
else{
slowout("研制成功!\n");
money-=200*kj;
bag[6]+=kj;
}
}
}
}
if(b==3){
printf("小瓶/中瓶/大瓶?\n");
cin>>c;
slowout("你要研制几瓶?\n");
cin>>kj;
if(c==1){
if(money<=500*kj&&bag[19]<kj*3)
slowout("钱(或材料)不够!\n");
else{
if(money<500*kj){
slowout("研制成功!\n");
bag[19]-=3*kj;
bag[34]+=kj;
}
else{
slowout("研制成功!\n");
money-=500*kj;
bag[34]+=kj;
}
}
}
if(c==2){
if(money<=1000*kj&&bag[19]<6*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<1000*kj){
slowout("研制成功!\n");
bag[19]-=6*kj;
bag[35]+=kj;
}
else{
slowout("研制成功!\n");
money-=1000*kj;
bag[35]+=kj;
}
}
}
if(c==3){
if(money<=1500*kj&&bag[19]<9*kj)
slowout("钱(或材料)不够!\n");
else{
if(money<1500*kj){
slowout("研制成功!\n");
bag[19]-=9*kj;
bag[36]+=kj;
}
else{
slowout("研制成功!\n");
money-=1500*kj;
bag[36]+=kj;
}
}
}
}
}
else slowout("你没有炼药炉\n");
}
Sleep(10);
goto a1;
}
if(a==5){
slowout("你确定要闯进去吗?不要作死! 1.确定 2.算了\n");
cin>>b;
if(b==1){
slowout("你走到门口,门卫拦住了你\n");
if(zhandou(200,600,50,5,1,2,"门卫"))
slowout("战斗胜利,继续前进!\n");
else{
slowout("你都还没进门就嗝屁了~告诉过你不要作死!\n");
goto a1;
}
Sleep(10);
slowout("你走了进去,一名拿着青龙偃月刀(从哪儿冒出来的?)的警察拦住了你\n");
if(zhandou(650,800,80,10,1,2,"警察"))
slowout("战斗胜利,继续前进!\n");
else{
slowout("才第二关诶!你这个傻逼二货水平也敢进省警察局?菜就多练!\n");
goto a1;
}
Sleep(10);
slowout("你继续前进,一名铁甲警察掏出手枪对准了你!\n");
if(zhandou(600,1000,400,15,1,2,"铁甲警察"))
slowout("战斗胜利,继续前进!\n");
else{
slowout("你也不赖了,可战力还需提高!\n");
goto a1;
}
Sleep(10);
slowout("你就要走到省警察局大楼的门口了,忽然,一名凭空出现的警察掏出了98K!\n");
if(zhandou(1000,1100,150,10,1,2,"警察"))
slowout("战斗胜利,继续前进!\n");
else{
slowout("你完蛋了,变强后再来吧!\n");
goto a1;
}
Sleep(10);
slowout("你走到了大楼门口,省警察局局长出现了!\n");
slowout("局长:大胆歹徒,竟敢闯入省警察局,我要让你有去无回!\n");
slowout("省警察局局长派出了一名保镖!\n");
if(zhandou(900,1800,300,20,1,2,"局长保镖"))
slowout("局长:什么?!你赢了!走着瞧!\n");
else{
slowout("你凉了……\n");
goto a1;
}
Sleep(10);
slowout("局长:没想到你这么难打,只好派出我的精英保镖了!\n");
if(zhandou(1100,2200,450,20,1,2,"精英保镖"))
slowout("局长:你这么厉害?!看来只能请求支援了!\n");
else{
slowout("……你失败了,下次再来吧!\n");
goto a1;
}
Sleep(10);
slowout("局长:呼叫上级,呼叫上级,请求支援!\n");
slowout("一辆超强装甲车开了过来~\n");
slowout("你有一次逃跑的机会,是否逃跑?1.逃跑 2.继续战斗!\n");
cin>>c;
if(c==1){
slowout("你溜了\n");
goto a1;
}
if(zhandou(1200,4000,800,0,1,2,"超强装甲车"))
slowout("局长:纳尼!只能使出终极武器了!\n");
else{
slowout("NO 作 NO die!\n");
goto a1;
}
Sleep(10);
slowout("一辆坦克说来就来了……\n");
slowout("你已无法逃跑,决一死战吧!\n");
if(zhandou(2000,7500,1000,0,1,2,"坦克"))
slowout("局长:这……这怎么可能!\n");
else{
slowout("你被坦克轰死了~\n");
goto a1;
}
Sleep(10);
slowout("局长:我要亲自上,干掉你这个家伙!呃啊啊啊啊啊啊啊\n");
slowout("局长进入了暴怒状态,血量暴增!\n");
if(zhandou(1100,15000,0,100,1,2,"省警察局局长"))
slowout("你把省警察局局长干掉了!你占领了整个省警察局!\n");
else{
slowout("唉,都最后一关了,真是遗憾!\n");
goto a1;
}
Sleep(10);
system("cls");
slowout("你成功占领了省警察局,任务完成,游戏成功!\n\n\n\n\n\n\n\n\n");
slowout("请不要关闭游戏,不然你会后悔的");
Sleep(5000);
system("cls");
slowout("此时……国防部……\n");
slowout("国防部部长:什么?!一个歹徒就把省警察局给占了?警察局的人都干什么吃的?!\n");
slowout("国防部议员:部长,省警察局有很多的弹药和武器,我认为现在可以发射蔡徐坤的篮球,炸掉警察局,也炸掉那歹徒的老巢\n");
slowout("国防部部长:嗯……好,就这样办!\n");
slowout("篮球发射系统:准备发射蔡徐坤的篮球,准备发射蔡徐坤的篮球,目标:S城,省警察局。倒计时开始\n");
Sleep(10);
printf("五 ");
Sleep(10);
printf("四 ");
Sleep(10);
printf("三 ");
Sleep(10);
printf("二 ");
Sleep(10);
printf("一\n");
Sleep(10);
printf("歹徒逃亡第二部,敬请期待!\n");
Sleep(3000);
return 0;
}
Sleep(10);
goto a1;
}
if(a==6){
slowout("前台:你要在银行作甚么? 1.存钱 2.抢银行\n");
cin>>b;
if(b==1){
if(yhk<1) slowout("你没有银行卡,存不了钱!\n");
else{
slowout("你要存多少钱?\n");
cin>>c;
if(c>money)
slowout("前台:小伙子,你没有那么多钱!\n");
else{
printf("存钱成功!\n");
Sleep(10);
money-=c;
printf("等待中……\n");
int shijian;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
cout<<shijian<<endl;
Sleep(1000);
shijian--;
int cunqian;
cunqian=rand()%10;
if(cunqian<=1){
slowout("运气不错,收获利息1.5倍!\n");
c*=1.5;
money+=c;
}
if(cunqian>1&&cunqian<=4){
slowout("运气不错,收获利息1.2倍!\n");
c*=1.2;
money+=c;
}
if(cunqian>4&&cunqian<=7){
slowout("很遗憾,运气不好,存的钱只剩一半了\n");
c*=0.5;
money+=c;
}
if(cunqian>7)
slowout("很遗憾,运气不好,银行倒闭了,存的钱都打水漂了\n");
}
}
}
if(b==2){
slowout("前台:喂,110吗?这里有人抢银行啊!你们快来啊!\n");
Sleep(10);
printf("一名防弹持枪警察冲了过来!\n");
Sleep(10);
if(zhandou(900,1500,300,15,1,2,"防弹持枪警察")){
int qiang;
qiang=rand()%10;
if(qiang<=4){
slowout("抢银行成功了!获得100000元\n");
money+=100000;
}
if(qiang>4&&qiang<=7){
slowout("抢银行成功了!获得200000元\n");
money+=200000;
}
if(qiang>7&&qiang<=9){
slowout("抢银行成功了!获得300000元\n");
money+=300000;
}
if(qiang>9){
slowout("抢银行成功了!获得500000元\n");
money+=500000;
}
}
else{
slowout("抢银行没成功,你被警察带走了……你被关了一个月,还被罚了1000金币\n");
money-=1000;
slowout("一个月后……\n");
}
}
Sleep(10);
goto a1;
}
if(a==7){
printf("1.查看属性 2.查看武器 3.查看药水 4.查看其它\n");
cin>>b;
if(b==1){
b1:
system("cls");
printf("%s\n",name);
printf("等级:%d\n",lv);
printf("金币:%d\n",money);
printf("经验:%d\n",exp);
printf("血量:%d\n",xue);
printf("攻击:%d\n",g);
printf("防御:%d\n",f);
printf("试炼币:%d\n",slb);
printf("请输入0退出\n");
cin>>c;
if(c==0){
system("cls");
goto a1;
}
else
goto b1;
}
if(b==2){
b2://7.长刀 8.青龙偃月刀(乱入) 9.手枪 10.机关枪 11.98K
//12.等离子大炮 13.装甲车 14.高级装甲车 15.坦克
system("cls");
printf("7.长刀*%d\n8.青龙偃月刀*%d\n9.手枪*%d\n10.机关枪*%d\n11.98K*%d\n",bag[7],bag[8],bag[9],bag[10],bag[11]);
printf("12.等离子大炮*%d\n13.装甲车*%d\n14.高级装甲车*%d\n15.坦克*%d\n",bag[12],bag[13],bag[14],bag[15]);
printf("输入1穿上装备,输入2卸下装备,输入0退出\n");
cin>>c;
if(c==0){
system("cls");
goto a1;
}
if(c==1){
slowout("请输入要穿上的装备。\n");
cin>>d;
if(bag[d]==0){
slowout("抱歉,你没有这件装备!\n");
goto b2;
}
if(chuan==1){
slowout("你已经穿上装备了!请先卸下原有装备!\n");
goto b2;
}
if(bag[d]>0&&chuan==0){
slowout("装备成功!\n");
chuan=1;
system("cls");
wuqi=d;
if(d==7){
xue+=150;g+=100;f+=20;xz[7]==1;
}
if(d==8){
xue+=200;g+=200;f+=35;xz[8]==1;
}
if(d==9){
xue+=200;g+=250;f+=50;xz[9]==1;
}
if(d==10){
xue+220;g+=330;f+=60;xz[10]==1;
}
if(d==11){
xue+=230;g+=400;f+=60;xz[11]==1;
}
if(d==12){
xue+=250;g+=600;f+=80;xz[12]==1;
}
if(d==13){
xue+=400;g+=700;f+=300;xz[13]==1;
}
if(d==14){
xue+=420;g+=700;f+=380;xz[14]==1;
}
if(d==15){
xue+=650;g+=1000;f+=500;xz[15]==1;
}
}
}
if(c==2){
slowout("请输入你要卸下的装备\n");
cin>>d;
if(wuqi!=d){
slowout("你还没有穿这件装备!\n");
goto b2;
}
if(wuqi==d){
slowout("成功卸下装备!\n");
chuan=0;
if(d==7){
xue-=150;g-=100;f-=20;xz[7]==0;
}
if(d==8){
xue-=200;g-=200;f-=35;xz[8]==0;
}
if(d==9){
xue-=200;g-=250;f-=50;xz[9]==0;
}
if(d==10){
xue-=220;g-=330;f-=60;xz[10]==0;
}
if(d==11){
xue-=230;g-=400;f-=60;xz[11]==0;
}
if(d==12){
xue-=250;g-=600;f-=80;xz[12]==0;
}
if(d==13){
xue-=400;g-=700;f-=300;xz[13]==0;
}
if(d==14){
xue-=420;g-=700;f-=380;xz[14]==0;
}
if(d==15){
xue-=650;g-=1000;f-=500;xz[15]==0;
}
goto b2;
}
}
else goto b2;
}
if(b==3){
b3:
system("cls");
printf("1.小瓶攻击药水*%d\n2.中瓶*%d\n3.大瓶*%d\n",bag[1],bag[2],bag[3]);
printf("4.小瓶增血药水*%d\n5.中瓶*%d\n6.大瓶*%d\n",bag[4],bag[5],bag[6]);
printf("7.小瓶经验药水*%d\n8.中瓶*%d\n9.大瓶*%d\n",bag[34],bag[35],bag[36]);
printf("输入1喝下药水,输入0退出\n");
cin>>c;
if(c==0){
system("cls");
goto a1;
}
if(c==1){
slowout("请输入药水序号\n");
cin>>d;
slowout("请输入要使用的数量\n");
cin>>e;
if(d!=7&&d!=8&&d!=9)
if(e>bag[d]||e<=0){
slowout("你没有那么多药水!\n");
goto b3;
}
if(d==7||d==8||d==9)
if(e>bag[27+d]||e<=0){
slowout("你没有那么多药水!\n");
goto b3;
}
if(d!=7&&d!=8&&d!=9)
if(e<=bag[d]&&e>0){
slowout("成功喝下药水\n");
bag[d]-=e;
if(d==1)
g+=10*e;
if(d==2)
g+=20*e;
if(d==3)
g+=35*e;
if(d==4)
xue+=40*e;
if(d==5)
xue+=75*e;
if(d==6)
xue+=100*e;
system("cls");
}
if(d==7||d==8||d==9)
if(e<=bag[d+27]&&e>0){
bag[d+27]-=e;
if(d==7)
exp+=500*e;
if(d==8)
exp+=1000*e;
if(d==9)
exp+=2000*e;
}
goto a1;
}
}
if(b==4){
b4:
system("cls");
printf("树皮*%d\n木头*%d\n白纸*%d\n碳*%d\n熔炼炉*%d\n",bag[16],bag[17],bag[18],bag[19],bag[20]);
/*21.黑市入场券 22.黑市终身贵宾卡 23.黑市交易券 24.试炼券 25.抽奖券*/
printf("黑市入场券*%d\n黑市终身贵宾卡*%d\n试炼1.2倍经验符*%d\n试炼券*%d\n抽奖券*%d\n",bag[21],bag[22],bag[23],bag[24],bag[25]);
/*26.青铜矿 27.铁矿 28.金矿 29.钻石矿 30.翡翠矿 31.挖矿镐*/
printf("青铜矿*%d\n铁矿*%d\n金矿*%d\n钻石矿*%d\n翡翠矿*%d\n挖矿镐*%d\n",bag[26],bag[27],bag[28],bag[29],bag[30],bag[31]);
printf("输入0退出\n");
cin>>c;
if(c==0){
system("cls");
goto a1;
}
else goto b4;
}
Sleep(10);
goto a1;
}
if(a==8){
slowout("请选择模式,1为战斗试炼场,2为商店,3抢劫\n");
cin>>c;
if(c==1)
if(bag[24]==0){
slowout("你没有试炼券\n");
Sleep(10);
goto a1;
}
else{
slowout("即将迎来您的对手:蔡徐坤\n");
{
printf("试炼场上来了一只坤\n");
Sleep(10);
printf("是否攻击?1.是 2.否\n");
cin>>b;
if(b==1){
if(zhandou(250,3000,560,0,1,2,"坤王")){
printf("你胜利了!\n");
Sleep(10);
printf("获得50试炼币!!!\n");
slb+=50;
Sleep(10);
{
printf("试炼场上来了一辆火箭\n");
Sleep(10);
printf("是否攻击?1.是 2.否\n");
cin>>b;
if(b==1){
if(zhandou(1550,1,2000,0,1,2,"火箭")){
printf("你胜利了!\n");
Sleep(10);
printf("获得200试炼币!!!\n");
slb+=200;
Sleep(10);
}
}
}
goto a1;
}
}
}
Sleep(10);
goto a1;
}
if(c==2){
slowout("商店老板:你要买啥类?\n");
Sleep(10);
printf("1. 坦克 2333333¥\n");
printf("2. 退出\n");
cin>>b;
if(b==1){
slowout("商店老板:你要买几个?\n");
cin>>kj;
if(slb<2333333*kj)
slowout("没钱还来买东西\n");
else{
slowout("购买成功\n");
bag[15]+=kj;
slb-=2333333*kj;
}
}
goto a1;
}
if(c==3){
slowout("商店老板:抢劫了,救命啊\n");
slowout("一名未来战士小跑而来,你避无可避,只能迎战\n");
if(zhandou(1780,12200,1220,10,1,2,"未来战士"))
slowout("你干掉了未来战士,获得了200试炼币!\n");
else{
slowout("没实力就不要装B!\n");
Sleep(10);
goto a1;
}
Sleep(10);
slb+=200;
goto a1;
}
}
if(a==9){
if(bag[22]==0){
slowout("黑衣人:您好,黑市是秘密地点,请问您有黑市入场券吗?\n");
printf("1.进入(消耗黑市入场券*1) 2.算了\n");
cin>>b;
if(b==1){
if(bag[21]==0)
slowout("入场券不足。\n");
else{
bag[21]--;
int hs;
hs=rand()%3;
if(hs==0){
printf("今日上架:\n");
printf("1.500¥ 交换 300经验\n");
printf("2.碳*2 交换 中瓶攻击药水*4\n");
printf("3.小瓶增血药水*3 交换 金币*400\n");
cin>>c;
printf("买几个?\n");
int shuliang;
cin>>shuliang;
if(c==1){
if(money<500*shuliang)
slowout("钱不够!\n");
else{
printf("交易成功,获得%d经验\n",300*shuliang);
exp+=300*shuliang;
money-=500*shuliang;
}
}
if(c==2){
if(bag[19]<2*shuliang)
slowout("材料不足。\n");
else{
printf("交易成功,获得中瓶攻击药水*%d\n",4*shuliang);
bag[19]-=2*shuliang;
bag[2]+=4*shuliang;
}
}
if(c==3){
if(bag[4]<3*shuliang)
slowout("药水不足\n");
else{
printf("交易成功,获得金币*%d\n",400*shuliang);
bag[4]-=3*shuliang;
money+=400*shuliang;
}
}
}
if(hs>0)
printf("黑市歇业中……\n");
}
}
}
if(bag[22]>0){
slowout("黑衣人:啊,您有终身贵宾卡!赶快迎接!\n");
printf("%s",name);
slowout("大摇大摆地走了进去。\n");
printf("贵宾上架:\n");
printf("1.金币*100 交换 抽奖券*3\n");
printf("2.钻石矿*1 交换 金币*1000\n");
printf("3.小瓶攻击药水*2 交换 大瓶增血药水*5\n");
cin>>c;
printf("买几个?\n");
int shuliang;
cin>>shuliang;
if(c==1){
if(money<100*shuliang)
slowout("金币不足!\n");
else{
printf("交易成功,获得抽奖券*%d\n",3*shuliang);
money-=100*shuliang;
bag[25]+=3*shuliang;
}
}
if(c==2){
if(bag[29]<shuliang)
slowout("钻石矿不足。\n");
else{
printf("交易成功,获得金币*%d\n",1000*shuliang);
money+=1000*shuliang;
bag[29]-shuliang;
}
}
if(c==3){
if(bag[1]<2*shuliang)
slowout("药水不足。\n");
else{
printf("交易成功,获得大瓶增血药水*%d\n",5*shuliang);
bag[1]-=2*shuliang;
bag[6]+=5*shuliang;
}
}
}
Sleep(10);
goto a1;
}
if(a==10){
if(vip!=1){
system("cls");
printf("-----------VIP模式特权:-------------\n");
printf(" 1.超高金币 \n");
printf(" 2.超高生命值 \n");
printf(" 3.超高攻击力 \n");
printf(" 4.抽奖券*9\n");
printf(" 5.直接拥有最强武器——坦克\n");
Sleep(50);
printf("请输入密码:");
cin>>d;
if(d==1){
for(int ii=1; ii<=5; ii++){
system("color 10");
system("color 20");
system("color 30");
system("color 40");
system("color 50");
system("color 60");
system("color 70");
system("color 80");
system("color 90");
system("color a0");
system("color b0");
system("color c0");
system("color d0");
system("color e0");
system("color f0");
}
slowout("恭喜密码正确!成功开启VIP模式!!!\n");
money+=99999;
xue+=9999;
g+=999;
bag[25]+=9;
bag[15]++;
vip=1;
Sleep(10);
system("color 0A");
system("cls");
goto a1;
}
if(d==58840 || d==14588 || d==58841){
system("color 10");
slowout("恭喜密码正确,但你居然想开挂!成功开启-VIP模式!!!\n");
money=-14588;
xue=1;
g=1;
bag[25]=0;
bag[15]=0;
vip=0;
Sleep(10);
system("color 09");
system("cls");
goto a1;
}
else{
slowout("不晓得密码就别开启了,你只配玩普通模式!\n");
Sleep(10);
system("cls");
goto a1;
}
}else{
slowout("你已经是-VIP了!\n");
goto a1;
}
}
if(a==11){
if(fandian==true){
cout<<fandian<<endl;
if(jiasu==1){
printf("境泽:欢迎光临屎真香饭店,我是店长境泽。你要点什么?\n");
}else{
slowout("境泽:欢迎光临屎真香饭店,我是店长境泽。你要点什么?\n");
}
printf(" 真香菜单\n");
printf("1.独家秘制招牌真香蛋炒饭 300¥\n");
printf("2.宫保鸡丁 150¥\n");
printf("3.鱼香肉丝 180¥\n");
printf("4.番茄炒蛋 200¥\n");
printf("5.九转大肠 0¥\n");
printf("0.退出\n");
cin>>b;
int fd;
if(b==5){
printf("%s:是故意的还是不小心的\n",name);
slowout("你感觉全身恶心,加攻击力-20点,防御力-5点!\n");
g-=20;f-=5;
int mans=rand()%10;
if(mans<=4){
cout<<"境泽:是故意的。"<<endl;
slowout("你获得了一分钱的赔偿金,并且屎真香饭店关门大吉\n");
fandian=0;
++money;
b=0;
}else{
if(b==5){
cout<<"境泽:是故意不小心的。"<<endl;
slowout("你获得了一分钱的赔偿金,并且屎真香饭店关门大吉\n");
fandian=0;
++money;
b=0;
}else{
cout<<"境泽:是不小心的。"<<endl;
slowout("你获得了一分钱的赔偿金\n");
++money;
b=0;
}
g-=20;f-=5;
}
}
if(b==1){
if(money<300)
slowout("你的钱不够!\n");
else{
printf("%s:真香!\n",name);
money-=300;
Sleep(10);
slowout("获得150经验\n");
exp+=150;
fd=rand()%5;
if(fd==0){
slowout("你元气爆棚,加血50滴,加攻击力20点,加防御力8点!\n");
g+=20;xue+=50;f+=8;
}
if(fd==1){
slowout("你感觉全身充满了力量,加攻击力20点,防御力5点!\n");
g+=20;f+=5;
}
if(fd==2){
slowout("你奇迹般地获得了2张试炼券!\n");
bag[24]+=2;
}
}
}
if(b==2){
if(money<150)
slowout("你的钱不够!\n");
else{
printf("%s:味道不错!\n",name);
money-=150;
Sleep(10);
slowout("加经验80点\n");
exp+=80;
fd=rand()%3;
if(fd==0){
slowout("你运气很好,获得黑市终身贵宾卡一张!\n");
bag[22]++;
}
if(fd==1){
slowout("你奇迹般地获得了3张抽奖券!\n");
bag[25]+=3;
}
}
}
if(b==3){
if(money<180)
slowout("你的钱不够!\n");
else{
printf("%s:太难吃了!",name);
money-=180;
Sleep(10);
slowout("获得经验80点\n");
exp+=80;
fd=rand()%2;
if(fd==0){
slowout("你从鱼香肉丝中获得了神奇的力量,血量加30滴!\n");
xue+=30;
}
}
}
if(b==4){
if(money<200)
slowout("你的钱不够!\n");
else{
printf("%s:DELICIOUS!\n",name);
money-=200;
Sleep(10);
slowout("获得经验100点\n");
exp+=100;
fd=rand()%2;
if(fd==0){
slowout("你瞬间爆发出神力,加攻击力20点,防御力3点!\n");
g+=20;f+=3;
}
}
}
Sleep(10);
goto a1;
}else{
cout<<"饭店倒闭了!"<<endl;
goto a1;
}
}
if(a==12){
slowout("欢迎来到抽奖机!拥有抽奖券即有机会获得以下惊喜大礼!\n");
printf("1.试炼券*3 2.50金币 3.试炼券*2 4.黑市入场券*3 5.200经验\n");
printf("6.100金币 7.大瓶增血药水*1 8.钻石矿*5(终极大奖)\n");
printf("1.开始抽奖(消耗抽奖券*1)2.退出\n");
cin>>b;
if(b==1){
int aca;
cin>>aca;
if(bag[25]<=aca)
slowout("抽奖券不足!\n");
else{
printf("正在抽奖中……\n");
bag[25]-=aca;
Sleep(5000);
for(int i=0;i<=aca;i++){
int cj;
cj=rand()%11;
if(cj==1){
slowout("获得试炼券*3\n");
bag[24]+=3;
}
if(cj==2){
slowout("获得50金币\n");
money+=50;
}
if(cj==3){
slowout("获得试炼券*2\n");
bag[24]+=2;
}
if(cj==4){
slowout("获得黑市入场券*3\n");
bag[22]+=3;
}
if(cj==5){
slowout("获得200经验\n");
exp+=200;
}
if(cj==6){
slowout("获得1000金币\n");
money+=100;
}
if(cj==7||cj==8){
slowout("获得大瓶增血药水*1\n");
bag[6]+=1;
}
if(cj==9){
slowout("抽中大奖:钻石矿*5\n");
bag[29]+=5;
}
if(cj>9)
slowout("很遗憾,没有抽中!\n");
}
}
Sleep(10);
goto a1;
}
}
if(a==13){
cout<<"1.更改速度 2.读取存档 3.写入存档 4.更改名字 5.更改颜色 6.退出"<<endl;
cin>>a;
system("cls");
if(a==1){
printf("加速模式?\n");
printf("1.不开启\n");
printf("2.开启\n");
cin>>b;
system("cls");
if(b!=1){
jiasu=1;
}else{
jiasu=0;
}
}
for(int i=0;i<1;++i){
if(a==2){
int temp;
char temp1[50];
cout<<"读取存档中,请稍后 |"<<endl;
ifstream fin("歹徒逃亡.存档");
fin>>temp;
g=temp;
fin>>temp;
x=temp;
fin>>temp;
kj=temp;
fin>>temp;
chuan=temp;
fin>>temp;
money=temp;
fin>>temp;
lv=temp;
fin>>temp;
vip=temp;
fin>>temp;
xue=temp;
fin>>temp;
ff=temp;
fin>>temp;
f=temp;
fin>>temp;
sys=temp;
fin>>temp;
yhk=temp;
fin>>temp;
fandian=temp;
cout<<"1"<<endl;
for(int i=0;i<41;++i){
fin>>temp;
bag[i]=temp;
}
cout<<"2"<<endl;
for(int i=0;i<14;++i){
fin>>temp;
shangdian[i]=temp;
}
fin>>temp;
jiasu=temp;
fin>>temp;
c=temp;
fin>>temp;
d=temp;
fin>>temp;
e=temp;
fin>>temp;
u=temp;
fin>>temp;
v=temp;
fin>>temp;
w=temp;
fin>>temp;
x=temp;
fin>>temp;
y=temp;
fin>>temp;
z=temp;
fin>>temp;
wuqi=temp;
fin>>temp;
key=temp;
fin>>temp;
kc=temp;
fin>>temp;
slb=temp;
for(int i=0;i<20;++i){
name[i]=temp1[i];
}
fin>>temp;
exp=temp;
fin>>temp;
lv1=temp;
fin>>temp;
xie=temp;
for(int i=0;i<41;++i){
fin>>temp;
xz[i]=temp;
}
fin.close();
for(int i=0;i<10;++i){
system("cls");
if(i%4==0){
cout<<"读档中,请稍后 \\"<<endl;
}
if(i%4==1){
cout<<"读档中,请稍后 |"<<endl;
}
if(i%4==2){
cout<<"读档中,请稍后 /"<<endl;
}
if(i%4==3){
cout<<"读档中,请稍后 --"<<endl;
}
Sleep(1);
}
}
if(a==3){
cout<<"存档中,请稍后 |"<<endl;
ofstream fout("歹徒逃亡.存档");
fout<<g<<endl<<x<<endl<<kj<<endl<<chuan<<endl<<money<<endl<<lv<<endl<<vip<<endl<<xue<<endl<<ff<<endl<<f<<endl<<sys<<endl<<yhk<<endl<<fandian<<endl;
for(int i=0;i<41;++i) fout<<bag[i]<<endl;
for(int i=0;i<14;++i) fout<<shangdian[i]<<endl;
fout<<jiasu<<endl<<c<<endl<<d<<endl<<e<<endl<<u<<endl<<v<<endl<<w<<endl<<x<<endl<<y<<endl<<z<<endl<<wuqi<<endl<<key<<endl<<kc<<endl<<slb<<endl;
printf("%s\n",name);
fout<<exp<<endl<<lv1<<endl<<xie<<endl;
for(int i=0;i<41;++i) cout<<xz[i]<<endl;
fout.close();
for(int i=0;i<10;++i){
system("cls");
if(i%4==0){
cout<<"存档中,请稍后 \\"<<endl;
}
if(i%4==1){
cout<<"存档中,请稍后 |"<<endl;
}
if(i%4==2){
cout<<"存档中,请稍后 /"<<endl;
}
if(i%4==3){
cout<<"存档中,请稍后 --"<<endl;
}
Sleep(1);
}
}
if(a==4){
cout<<"请输入你的新名字:";
cin>>name;
cout<<endl;
}
if(a==5){
int colour;
cout<<"1.蓝色 2.灰色 3.黄色 4.紫色 5.红色 6.青蓝色 7.绿色 8.深蓝色 9.白色 10.随机颜色 11.默认颜色"<<endl;
cout<<"将颜色更改为:";
cin>>colour;
cout<<endl;
if(colour==1){
system("color 90");
}
if(colour==2){
system("color 80");
}
if(colour==3){
system("color 60");
}
if(colour==4){
system("color 50");
}
if(colour==5){
system("color 40");
}
if(colour==6){
system("color 30");
}
if(colour==7){
system("color 20");
}
if(colour==8){
system("color 10");
}
if(colour==9){
system("color f0");
}
if(colour==10){
for(;colour==0 || colour>=9;){
colour=rand()%10;
}
if(colour==1){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了蓝色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 90");
}
}
if(colour==2){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了灰色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 80");
}
}
if(colour==3){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了黄色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 60");
}
}
if(colour==4){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了紫色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 50");
}
}
if(colour==5){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了红色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 40");
}
}
if(colour==6){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了青蓝色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 30");
}
}
if(colour==7){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了绿色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 20");
}
}
if(colour==8){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了深蓝色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color 10");
}
}
if(colour==9){
int yesorno;
yesorno=MessageBox(NULL,"你随机到了白色","歹徒逃亡",MB_ICONEXCLAMATION | MB_SYSTEMMODAL);
if(yesorno=1){
system("color f0");
}
}
}
if(colour!=1 && colour!=2 && colour!=3 && colour!=4 && colour!=5 && colour!=6 && colour!=7 && colour!=8 && colour!=9 && colour!=10){
system("color 70");
}
}
goto a1;
}
}
if(a>13||a<1){
slowout("输出错误\n");
cin>>a;
goto a1;
}
system("cls");
}
}
歹徒逃亡改编版(可以存档!!可以抽奖!!)
于 2024-08-14 17:55:19 首次发布