跳到正文

个人记录

地铁florr

yanziwei88约 77 分钟
原文
文章信息与版本

文章信息

发布
2024年7月7日
收录
2025年12月12日
更新
2026年11月12日
篇幅
约 77 分钟

版本

  1. v1当前

#include<bits/stdc++.h> #include<windows.h> #include<stdio.h> #include<conio.h> #include<time.h> #include<bitset> #define int long long using namespace std; int hp=100,coin; int jy,jyxy=10,dj; /* A:回血 B:连击 C: 击晕 D:中毒 E:数量 */ struct huabanzl{ string pz,nm; int gj,sd; char tsxg; }; huabanzl zhuangbei[109]; huabanzl cangku[1009]; int topck; int top,lqsd=10; void save(){ ofstream out(“地铁florr.in”); out<<hp<<’ ‘<<dj<<’ ‘<<jy<<’ ‘<<jyxy<<’ ‘<<coin<<‘\n’; out<<top<<’ ‘<<topck<<‘\n’; for(int i=1;i<=top;i++){ out<<zhuangbei[i].pz<<‘\n’<<zhuangbei[i].nm<<‘\n’<<zhuangbei[i].gj<<’ ‘<<zhuangbei[i].sd<<’ ‘<<zhuangbei[i].tsxg<<‘\n’; } for(int i=1;i<=topck;i++){ out<<cangku[i].pz<<‘\n’<<cangku[i].nm<<‘\n’<<cangku[i].gj<<’ ‘<<cangku[i].sd<<’ ‘<<cangku[i].tsxg<<‘\n’; } out.close(); } void read(){ ifstream in(“地铁florr.in”); if (!in.is_open()){ cout << “无法读取存档文件!” << endl; return; } in >> hp >> dj >> jy >> jyxy >> coin; in >> top >> topck; for (int i = 1; i <= top; i++){ in >> zhuangbei[i].pz; in >> zhuangbei[i].nm; in >> zhuangbei[i].gj >> zhuangbei[i].sd >> zhuangbei[i].tsxg; } for (int i = 1; i <= topck; i++){ in >> cangku[i].pz; in >> cangku[i].nm; in >> cangku[i].gj >> cangku[i].sd >> cangku[i].tsxg; } in.close(); } huabanzl huaban[1009]={ {“普通”,“基本”,10,25}, {“普通”,“轻”,13,8} , {“普通”,“岩石”,67,40}, {“普通”,“刺”,100,100}, {“普通”,“齿轮”,13,19}, {“普通”,“鸢尾”,70,40,‘D’}, {“普通”,“翅膀”,20,25}, {“普通”,“导弹”,25,20}, {“普通”,“葡萄”,17,20,‘D’}, {“普通”,“快”,5,25,‘B’}, {“普通”,“米”,4,1}, {“普通”,“沙子”,4,15}, {“普通”,“爪子”,55,35}, {“普通”,“豌豆”,13,20}, {“普通”,“胡萝卜”,15,15}, {“普通”,“骨头”,18,25}, {“普通”,“玻璃”,15,10}, {“普通”,“三角形”,5,20,‘E’},

{“罕见”,“轻”,133,8,}, {“罕见”,“岩石”,673,40}, {“罕见”,“刺”,1003,100}, {“罕见”,“齿轮”,133,19}, {“罕见”,“鸢尾”,703,40,‘D’}, {“罕见”,“翅膀”,203,25}, {“罕见”,“导弹”,253,20}, {“罕见”,“葡萄”,173,20,‘D’}, {“罕见”,“快”,53,25,‘B’}, {“罕见”,“米”,43,1}, {“罕见”,“沙子”,43,15}, {“罕见”,“爪子”,553,35}, {“罕见”,“豌豆”,133,20}, {“罕见”,“胡萝卜”,153,15}, {“罕见”,“骨头”,183,25}, {“罕见”,“玻璃”,153,10}, {“罕见”,“三角形”,5*3,20,‘E’}, {“罕见”,“木板”,10,19}, {“罕见”,“橘子”,21,35},

{“稀有”,“轻”,139,8} , {“稀有”,“岩石”,679,40}, {“稀有”,“刺”,1009,100}, {“稀有”,“齿轮”,139,19}, {“稀有”,“鸢尾”,709,40,‘D’}, {“稀有”,“翅膀”,209,25}, {“稀有”,“导弹”,259,20}, {“稀有”,“葡萄”,179,20,‘D’}, {“稀有”,“快”,59,25,‘B’}, {“稀有”,“米”,49,1}, {“稀有”,“沙子”,49,15}, {“稀有”,“爪子”,559,35}, {“稀有”,“豌豆”,139,20}, {“稀有”,“胡萝卜”,159,15}, {“稀有”,“骨头”,189,25}, {“稀有”,“玻璃”,159,10}, {“稀有”,“三角形”,59,20,‘E’}, {“稀有”,“木板”,103,19}, {“稀有”,“橘子”,21*3,35},

{“史诗”,“轻”,1327,8} , {“史诗”,“岩石”,6727,40}, {“史诗”,“刺”,10027,100}, {“史诗”,“齿轮”,1327,19}, {“史诗”,“鸢尾”,7027,40,‘D’}, {“史诗”,“翅膀”,2027,25}, {“史诗”,“导弹”,2527,20}, {“史诗”,“葡萄”,1727,20,‘D’}, {“史诗”,“快”,527,25,‘B’}, {“史诗”,“米”,427,1}, {“史诗”,“沙子”,427,15}, {“史诗”,“爪子”,5527,35}, {“史诗”,“豌豆”,1327,20}, {“史诗”,“胡萝卜”,1527,15}, {“史诗”,“骨头”,1827,25}, {“史诗”,“玻璃”,1527,10}, {“史诗”,“三角形”,527,20,‘E’}, {“史诗”,“木板”,109,19}, {“史诗”,“橘子”,21*9,35},

{“传奇”,“轻”,1381,8} , {“传奇”,“岩石”,6781,40}, {“传奇”,“刺”,10081,100}, {“传奇”,“齿轮”,1381,19}, {“传奇”,“鸢尾”,7081,40,‘D’}, {“传奇”,“翅膀”,2081,25}, {“传奇”,“导弹”,2581,20}, {“传奇”,“葡萄”,1781,20,‘D’}, {“传奇”,“快”,581,25,‘B’}, {“传奇”,“米”,481,1}, {“传奇”,“沙子”,481,15}, {“传奇”,“爪子”,5581,35}, {“传奇”,“豌豆”,1381,20}, {“传奇”,“胡萝卜”,1581,15}, {“传奇”,“骨头”,1881,25}, {“传奇”,“玻璃”,1581,10}, {“传奇”,“三角形”,581,20,‘E’}, {“传奇”,“木板”,1027,19}, {“传奇”,“橘子”,21*27,35},

{“神话”,“轻”,13243,8} , {“神话”,“岩石”,67243,40}, {“神话”,“刺”,100243,100}, {“神话”,“齿轮”,13243,19}, {“神话”,“鸢尾”,70243,40,‘D’}, {“神话”,“翅膀”,20243,25}, {“神话”,“导弹”,25243,20}, {“神话”,“葡萄”,17243,20,‘D’}, {“神话”,“快”,5243,25,‘B’}, {“神话”,“米”,4243,1}, {“神话”,“沙子”,4243,15}, {“神话”,“爪子”,55243,35}, {“神话”,“豌豆”,13243,20}, {“神话”,“胡萝卜”,15243,15}, {“神话”,“骨头”,18243,25}, {“神话”,“玻璃”,15243,10}, {“神话”,“三角形”,5243,20,‘E’}, {“神话”,“木板”,1081,19}, {“神话”,“橘子”,21*81,35},

{“究极”,“轻”,13729,8} , {“究极”,“岩石”,67729,40}, {“究极”,“刺”,100729,100}, {“究极”,“齿轮”,13729,19}, {“究极”,“鸢尾”,70729,40,‘D’}, {“究极”,“翅膀”,20729,25}, {“究极”,“导弹”,25729,20}, {“究极”,“葡萄”,17729,20,‘D’}, {“究极”,“快”,5729,25,‘B’}, {“究极”,“米”,4729,1}, {“究极”,“沙子”,4729,15}, {“究极”,“爪子”,55729,35}, {“究极”,“豌豆”,13729,20}, {“究极”,“胡萝卜”,15729,15}, {“究极”,“骨头”,18729,25}, {“究极”,“玻璃”,15729,10}, {“究极”,“三角形”,5729,20,‘E’}, {“究极”,“木板”,10243,19}, {“究极”,“橘子”,21*243,35},

{“超级”,“轻”,132187,8} , {“超级”,“岩石”,672187,40}, {“超级”,“刺”,1002187,100}, {“超级”,“齿轮”,132187,19}, {“超级”,“鸢尾”,702187,40,‘D’}, {“超级”,“翅膀”,202187,25}, {“超级”,“导弹”,252187,20}, {“超级”,“葡萄”,172187,20,‘D’}, {“超级”,“快”,52187,25,‘B’}, {“超级”,“米”,42187,1}, {“超级”,“沙子”,42187,15}, {“超级”,“爪子”,552187,35}, {“超级”,“豌豆”,132187,20}, {“超级”,“胡萝卜”,152187,15}, {“超级”,“骨头”,182187,25}, {“超级”,“玻璃”,152187,10}, {“超级”,“三角形”,52187,20,‘E’}, {“超级”,“木板”,10729,19}, {“超级”,“橘子”,21*729,35}

}; /* 0.基本 1.轻 2.岩石 3.刺 4.齿轮 5.鸢尾 6.翅膀 7.导弹 8.葡萄 9.快 10.米 11.沙子 12.爪子 13.豌豆 14.胡萝卜 15.骨头 16.玻璃 17.三角形 18.木板 19.橘子 */ struct yiliaoping{ string pz,nm; int xg,jb; }; yiliaoping yiliao[40]{ {“普通”,“叶子”,1,1}, {“普通”,“丝兰”,3,3}, {“普通”,“海星”,4,4}, {“普通”,“玫瑰”,8,8},

代码
{"罕见","叶子",1*3,1*3},
{"罕见","丝兰",3*3,3*3},
{"罕见","海星",4*3,4*3},
{"罕见","玫瑰",8*3,8*3},

{"稀有","叶子",1*9,1*10},
{"稀有","丝兰",3*9,3*10},
{"稀有","海星",4*9,4*10},
{"稀有","玫瑰",8*9,8*10},

{"史诗","叶子",1*27,1*50},
{"史诗","丝兰",3*27,3*50},
{"史诗","海星",4*27,4*50},
{"史诗","玫瑰",8*27,8*50},

{"传奇","叶子",1*81,1*500},
{"传奇","丝兰",3*81,3*500},
{"传奇","海星",4*81,4*500},
{"传奇","玫瑰",8*81,8*500},

{"神话","叶子",1*243,1*2000},
{"神话","丝兰",3*243,3*2000},
{"神话","海星",4*243,4*2000},
{"神话","玫瑰",8*243,8*2000},

{"究极","叶子",1*729,1*10000},
{"究极","丝兰",3*729,3*10000},
{"究极","海星",4*729,4*10000},
{"究极","玫瑰",8*729,8*10000},

{"超级","叶子",1*2187,1*100000},
{"超级","丝兰",3*2187,3*100000},
{"超级","海星",4*2187,4*100000},
{"超级","玫瑰",8*2187,8*100000},

}; // 普通 罕见 稀有 史诗 传奇 神话 究极 超级 struct guaiwutujian{ string pz,nm; int gj,xl,jb; }; guaiwutujian guaiwu[1009]{ {}, {“普通”,“瓢虫”,10,60,10},//1 {“普通”,“蜜蜂”,50,35,15},//2 {“普通”,“石头”,0,100,5},//3 {“普通”,“幼蚁”,0,25,4},//4 {“普通”,“工蚁”,10,60,10},//5 {“普通”,“兵蚁”,10,100,12},//6 {“普通”,“蚁后”,10,250,20},//7 {“普通”,“黄蜂”,50,35,15},//8 {“普通”,“蜈蚣”,10,25,8},//9 {“普通”,“蜘蛛”,15,60,12},//10

代码
{"罕见","瓢虫",10*3,60*3,10*3},//11
{"罕见","蜜蜂",50*3,35*3,15*3},//12
{"罕见","石头",0*3,100*3,5*3},//13
{"罕见","幼蚁",0*3,25*3,4*3},//14
{"罕见","工蚁",10*3,60*3,10*3},//15
{"罕见","兵蚁",10*3,100*3,12*3},//16
{"罕见","蚁后",10*3,250*3,20*3},//17
{"罕见","黄蜂",50*3,35*3,15*3},//18
{"罕见","蜈蚣",10*3,25*3,8*3},//19
{"罕见","蜘蛛",15*3,60*3,12*3},//20

{"稀有","瓢虫",10*9,60*13,10*10},//21
{"稀有","蜜蜂",50*9,35*13,15*10},//22
{"稀有","石头",0*9,100*13,5*10},//23
{"稀有","幼蚁",0*9,25*13,4*10},//24
{"稀有","工蚁",10*9,60*13,10*10},//25
{"稀有","兵蚁",10*9,100*13,12*10},//26
{"稀有","蚁后",10*9,250*13,20*10},//27
{"稀有","黄蜂",50*9,35*13,15*10},//28
{"稀有","蜈蚣",10*9,25*13,8*10},//29 
{"稀有","蜘蛛",15*9,60*13,12*10},//30

{"史诗","瓢虫",10*27,60*54,10*50},//31
{"史诗","蜜蜂",50*27,35*54,15*50},//32
{"史诗","石头",0*27,100*54,5*50},//33
{"史诗","幼蚁",0*27,25*54,4*50},//34
{"史诗","工蚁",10*27,60*54,10*50},//35
{"史诗","兵蚁",10*27,100*54,12*50},//36
{"史诗","蚁后",10*27,250*54,20*50},//37
{"史诗","黄蜂",50*27,35*54,15*50},//38
{"史诗","蜈蚣",10*27,25*54,8*50},//39
{"史诗","蜘蛛",15*27,60*54,12*50},//40

{"传奇","瓢虫",10*81,60*324,10*500},//41
{"传奇","蜜蜂",50*81,35*324,15*500},//42
{"传奇","石头",0*81,100*324,5*500},//43
{"传奇","幼蚁",0*81,25*324,4*500},//44
{"传奇","工蚁",10*81,60*324,10*500},//45
{"传奇","兵蚁",10*81,100*324,12*500},//46
{"传奇","蚁后",10*81,250*324,20*500},//47
{"传奇","黄蜂",50*81,35*324,15*500},//48
{"传奇","蜈蚣",10*81,25*324,8*500},//49
{"传奇","蜘蛛",15*81,60*324,12*500},//50

{"神话","瓢虫",10*243,60*2430,10*2000},//51
{"神话","蜜蜂",50*243,35*2430,15*2000},//52
{"神话","石头",0*243,100*2430,5*2000},//53
{"神话","幼蚁",0*243,25*2430,4*2000},//54
{"神话","工蚁",10*243,60*2430,10*2000},//55
{"神话","兵蚁",10*243,100*2430,12*2000},//56
{"神话","蚁后",10*243,250*2430,20*2000},//57
{"神话","黄蜂",50*243,35*2430,15*2000},//58
{"神话","蜈蚣",10*243,25*2430,8*2000},//59
{"神话","蜘蛛",15*243,60*2430,12*2000},//60

{"究极","瓢虫",10*729,60*29160,10*10000},//61
{"究极","蜜蜂",50*729,35*29160,15*10000},//62
{"究极","石头",0*729,100*29160,5*10000},//63
{"究极","幼蚁",0*729,25*29160,4*10000},//64
{"究极","工蚁",10*729,60*29160,10*10000},//65
{"究极","兵蚁",10*729,100*29160,12*10000},//66
{"究极","蚁后",10*729,250*29160,20*10000},//67
{"究极","黄蜂",50*729,35*29160,15*10000},//68
{"究极","蜈蚣",10*729,25*29160,8*10000},//69
{"究极","蜘蛛",15*729,60*29160,12*10000},//70

{"超级","瓢虫",10*2187,60*1312200,10*100000},//71
{"超级","蜜蜂",50*2187,35*1312200,15*100000},//72
{"超级","石头",0*2187,100*1312200,5*100000},//73
{"超级","幼蚁",0*2187,25*1312200,4*100000},//74
{"超级","工蚁",10*2187,60*1312200,10*100000},//75
{"超级","兵蚁",10*2187,100*1312200,12*100000},//76
{"超级","蚁后",10*2187,250*1312200,20*100000},//77
{"超级","黄蜂",50*2187,35*1312200,15*100000},//78
{"超级","蜈蚣",10*2187,25*1312200,8*100000},//79
{"超级","蜘蛛",15*2187,60*1312200,12*100000},//80

{"普通","火兵蚁",20,100,18},//81
{"普通","火工蚁",20,60,12},//82
{"普通","火幼蚁",0,25,4},//83
{"普通","火蚁后",20,250,25},//84
{"普通","幼蚁",0,25,4},//85
{"普通","工蚁",10,60,10},//86
{"普通","兵蚁",10,100,12},//87
{"普通","蚁后",10,250,20},//88
{"普通","白幼蚁",0,25,4},//89
{"普通","白工蚁",10,60,10},//90
{"普通","白兵蚁",10,100,12},//91
{"普通","白蚁后",10,250,20},//92
{"普通","蠕虫",15,100,15},//93

{"罕见","火兵蚁",20*3,100*3,18*3},//94
{"罕见","火工蚁",20*3,60*3,12*3},//95
{"罕见","火幼蚁",0,25*3,4*3},//96
{"罕见","火蚁后",20*3,250*3,25*3},//97
{"罕见","幼蚁",0,25*3,4*3},//98
{"罕见","工蚁",10*3,60*3,10*3},//99
{"罕见","兵蚁",10*3,100*3,12*3},//100
{"罕见","蚁后",10*3,250*3,20*3},//101
{"罕见","白幼蚁",0,25*3,4*3},//102
{"罕见","白工蚁",10*3,60*3,10*3},//103
{"罕见","白兵蚁",10*3,100*3,12*3},//104
{"罕见","白蚁后",10*3,250*3,20*3},//105
{"罕见","蠕虫",15*3,100*3,15*3},//106

{"稀有","火兵蚁",20*9,100*13,18*10},//107
{"稀有","火工蚁",20*9,60*13,12*10},//108
{"稀有","火幼蚁",0,25*13,4*10},//109
{"稀有","火蚁后",20*9,250*13,25*10},//110
{"稀有","幼蚁",0,25*13,4*10},//111
{"稀有","工蚁",10*9,60*13,10*10},//112
{"稀有","兵蚁",10*9,100*13,12*10},//113
{"稀有","蚁后",10*9,250*13,20*10},//114
{"稀有","白幼蚁",0,25*13,4*10},//115
{"稀有","白工蚁",10*9,60*13,10*10},//116
{"稀有","白兵蚁",10*9,100*13,12*10},//117
{"稀有","白蚁后",10*9,250*13,20*10},//118
{"稀有","蠕虫",15*9,100*13,15*10},//119

{"史诗","火兵蚁",20*27,100*54,18*50},//120
{"史诗","火工蚁",20*27,60*54,12*50},//121
{"史诗","火幼蚁",0,25*54,4*50},//122
{"史诗","火蚁后",20*27,250*54,25*50},//123
{"史诗","幼蚁",0,25*54,4*50},//124
{"史诗","工蚁",10*27,60*54,10*50},//125
{"史诗","兵蚁",10*27,100*54,12*50},//126
{"史诗","蚁后",10*27,250*54,20*50},//127
{"史诗","白幼蚁",0,25*54,4*50},//128
{"史诗","白工蚁",10*27,60*54,10*50},//129
{"史诗","白兵蚁",10*27,100*54,12*50},//130
{"史诗","白蚁后",10*27,250*54,20*50},//131
{"史诗","蠕虫",15*27,100*54,15*50},//132

{"传奇","火兵蚁",20*81,100*324,18*500},//133
{"传奇","火工蚁",20*81,60*324,12*500},//134
{"传奇","火幼蚁",0,25*324,4*500},//135
{"传奇","火蚁后",20*81,250*324,25*500},//136
{"传奇","幼蚁",0,25*324,4*500},//137
{"传奇","工蚁",10*81,60*324,10*500},//138
{"传奇","兵蚁",10*81,100*324,12*500},//139
{"传奇","蚁后",10*81,250*324,20*500},//140
{"传奇","白幼蚁",0,25*324,4*500},//141
{"传奇","白工蚁",10*81,60*324,10*500},//142
{"传奇","白兵蚁",10*81,100*324,12*500},//143
{"传奇","白蚁后",10*81,250*324,20*500},//144
{"传奇","蠕虫",15*81,100*324,15*500},//145

{"神话","火兵蚁",20*243,100*2430,18*2000},//146
{"神话","火工蚁",20*243,60*2430,12*2000},//147
{"神话","火幼蚁",0,25*2430,4*2000},//148
{"神话","火蚁后",20*243,250*2430,25*2000},//149
{"神话","幼蚁",0,25*2430,4*2000},//150
{"神话","工蚁",10*243,60*2430,10*2000},//151
{"神话","兵蚁",10*243,100*2430,12*2000},//152
{"神话","蚁后",10*243,250*2430,20*2000},//153
{"神话","白幼蚁",0,25*2430,4*2000},//154
{"神话","白工蚁",10*243,60*2430,10*2000},//155
{"神话","白兵蚁",10*243,100*2430,12*2000},//156
{"神话","白蚁后",10*243,250*2430,20*2000},//157
{"神话","蠕虫",15*243,100*2430,15*2000},//158

{"究极","火兵蚁",20*729,100*29160,18*10000},//159
{"究极","火工蚁",20*729,60*29160,12*10000},//160
{"究极","火幼蚁",0,25*29160,4*10000},//161
{"究极","火蚁后",20*729,250*29160,25*10000},//162
{"究极","幼蚁",0,25*29160,4*10000},//163
{"究极","工蚁",10*729,60*29160,10*10000},//164
{"究极","兵蚁",10*729,100*29160,12*10000},//165
{"究极","蚁后",10*729,250*29160,20*10000},//166
{"究极","白幼蚁",0,25*29160,4*10000},//167
{"究极","白工蚁",10*729,60*29160,10*10000},//168
{"究极","白兵蚁",10*729,100*29160,12*10000},//169
{"究极","白蚁后",10*729,250*29160,20*10000},//170
{"究极","蠕虫",15*729,100*29160,15*10000},//171

{"超级","火兵蚁",20*2187,100*1312200,18*100000},//172
{"超级","火工蚁",20*2187,60*1312200,12*100000},//173
{"超级","火幼蚁",0,25*1312200,4*100000},//174
{"超级","火蚁后",20*2187,250*1312200,25*100000},//175
{"超级","幼蚁",0,25*1312200,4*100000},//176
{"超级","工蚁",10*2187,60*1312200,10*100000},//177
{"超级","兵蚁",10*2187,100*1312200,12*100000},//178
{"超级","蚁后",10*2187,250*1312200,20*100000},//179
{"超级","白幼蚁",0,25*1312200,4*100000},//180
{"超级","白工蚁",10*2187,60*1312200,10*100000},//181
{"超级","白兵蚁",10*2187,100*1312200,12*100000},//182
{"超级","白蚁后",10*2187,250*1312200,20*100000},//183
{"超级","蠕虫",15*2187,100*1312200,15*100000},//184

{"普通","仙人掌",0,80,5},//185
{"普通","甲虫",30,100,20},//186
{"普通","蝎子",15,100,15},//187
{"普通","火兵蚁",20,100,18},//188
{"普通","火工蚁",20,60,12},//189
{"普通","火幼蚁",0,25,4},//190
{"普通","火蚁后",20,250,25},//191
{"普通","沙尘暴",40,125,30},//192
{"普通","沙漠蜈蚣",10,25,8},//193

{"罕见","仙人掌",0,80*3,5*3},//194
{"罕见","甲虫",30*3,100*3,20*3},//195
{"罕见","蝎子",15*3,100*3,15*3},//196
{"罕见","火兵蚁",20*3,100*3,18*3},//197
{"罕见","火工蚁",20*3,60*3,12*3},//198
{"罕见","火幼蚁",0,25*3,4*3},//199
{"罕见","火蚁后",20*3,250*3,25*3},//200
{"罕见","沙尘暴",40*3,125*3,30*3},//201
{"罕见","沙漠蜈蚣",10*3,25*3,8*3},//202

{"稀有","仙人掌",0,80*13,5*10},//203
{"稀有","甲虫",30*9,100*13,20*10},//204
{"稀有","蝎子",15*9,100*13,15*10},//205
{"稀有","火兵蚁",20*9,100*13,18*10},//206
{"稀有","火工蚁",20*9,60*13,12*10},//207
{"稀有","火幼蚁",0,25*13,4*10},//208
{"稀有","火蚁后",20*9,250*13,25*10},//209
{"稀有","沙尘暴",40*9,125*13,30*10},//210
{"稀有","沙漠蜈蚣",10*9,25*13,8*10},//211

{"史诗","仙人掌",0,80*54,5*50},//212
{"史诗","甲虫",30*27,100*54,20*50},//213
{"史诗","蝎子",15*27,100*54,15*50},//214
{"史诗","火兵蚁",20*27,100*54,18*50},//215
{"史诗","火工蚁",20*27,60*54,12*50},//216
{"史诗","火幼蚁",0,25*54,4*50},//217
{"史诗","火蚁后",20*27,250*54,25*50},//218
{"史诗","沙尘暴",40*27,125*54,30*50},//219
{"史诗","沙漠蜈蚣",10*27,25*54,8*50},//220

{"传奇","仙人掌",0,80*324,5*500},//221
{"传奇","甲虫",30*81,100*324,20*500},//222
{"传奇","蝎子",15*81,100*324,15*500},//223
{"传奇","火兵蚁",20*81,100*324,18*500},//224
{"传奇","火工蚁",20*81,60*324,12*500},//225
{"传奇","火幼蚁",0,25*324,4*500},//226
{"传奇","火蚁后",20*81,250*324,25*500},//227
{"传奇","沙尘暴",40*81,125*324,30*500},//228
{"传奇","沙漠蜈蚣",10*81,25*324,8*500},//229

{"神话","仙人掌",0,80*2430,5*2000},//230
{"神话","甲虫",30*243,100*2430,20*2000},//231
{"神话","蝎子",15*243,100*2430,15*2000},//232
{"神话","火兵蚁",20*243,100*2430,18*2000},//233
{"神话","火工蚁",20*243,60*2430,12*2000},//234
{"神话","火幼蚁",0,25*2430,4*2000},//235
{"神话","火蚁后",20*243,250*2430,25*2000},//236
{"神话","沙尘暴",40*243,125*2430,30*2000},//237
{"神话","沙漠蜈蚣",10*243,25*2430,8*2000},//238

{"究极","仙人掌",0,80*29160,5*10000},//239
{"究极","甲虫",30*729,100*29160,20*10000},//240
{"究极","蝎子",15*729,100*29160,15*10000},//241
{"究极","火兵蚁",20*729,100*29160,18*10000},//242
{"究极","火工蚁",20*729,60*29160,12*10000},//243
{"究极","火幼蚁",0,25*29160,4*10000},//244
{"究极","火蚁后",20*729,250*29160,25*10000},//245
{"究极","沙尘暴",40*729,125*29160,30*10000},//246
{"究极","沙漠蜈蚣",10*729,25*29160,8*10000},//247

{"超级","仙人掌",0,80*1312200,5*100000},//248
{"超级","甲虫",30*2187,100*1312200,20*100000},//249
{"超级","蝎子",15*2187,100*1312200,15*100000},//250
{"超级","火兵蚁",20*2187,100*1312200,18*100000},//251
{"超级","火工蚁",20*2187,60*1312200,12*100000},//252
{"超级","火幼蚁",0,25*1312200,4*100000},//253
{"超级","火蚁后",20*2187,250*1312200,25*100000},//254
{"超级","沙尘暴",40*2187,125*1312200,30*100000},//255
{"超级","沙漠蜈蚣",10*2187,25*1312200,8*100000},//256

// {“普通”,“海星”,20,150,200},//1 // {“普通”,“螃蟹”,25,75,120},//14 // {“普通”,“水母”,25,75,120},//15 // 普通 罕见 稀有 史诗 传奇 神话 究极 超级 }; void color(int a){ /* 0:黑 1:深蓝 2:绿 3:浅蓝 4:红 5:紫 6:黄 7:白 8:灰 9:蓝 10:翠绿 11:青 12:粉 13:浅紫 14:浅黄 15:米白 */ SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a); } void COUT(string s,int co){ color(co); for(int i=0;i<s.size();i++){ cout<<s[i]; Sleep(20); } color(7); }

bool coo(huabanzl x,huabanzl y){ return x.sd<y.sd; } int hp1=100; int lq[109]; void zhan(int x){ srand(time(NULL)); hp1=hp; huabanzl s[29]; int dfhp=guaiwu[x].xl; int dfgj=guaiwu[x].gj; int jb=guaiwu[x].jb; for(int i=1;i<=top;i++){ s[i]=zhuangbei[i]; lq[i]=0; } while(1){ system(“cls”); if(hp1<=0){ color(7); COUT(“你死了\n”,4); Sleep(2000); system(“cls”); return ; } if(dfhp<=0){ color(7); COUT(“你赢了!!!\n”,7); cout<<“获得”<<jb<<“枚coin”<<endl; cout<<“获得”; if(guaiwu[x].pz==“普通”){ cout<<5; jy+=5; } if(guaiwu[x].pz==“罕见”){ cout<<10; jy+=10; } if(guaiwu[x].pz==“稀有”){ cout<<25; jy+=25; } if(guaiwu[x].pz==“史诗”){ cout<<50; jy+=50; } if(guaiwu[x].pz==“传奇”){ cout<<100; jy+=100; } if(guaiwu[x].pz==“神话”){ cout<<500; jy+=500; } if(guaiwu[x].pz==“究极”){ cout<<4000; jy+=4000; } if(guaiwu[x].pz==“超级”){ cout<<80000; jy+=80000; } cout<<“经验\n”; while(jy>jyxy){ jy-=jyxy; jyxy=jyxy1.5; hp=hp1.1; dj++; cout<<“升级了”<<endl; if(dj==5){ zhuangbei[++top]=huaban[0]; } if(dj==10){ zhuangbei[++top]=huaban[0]; } if(dj==15){ zhuangbei[++top]=huaban[0]; } if(dj==20){ zhuangbei[++top]=huaban[0]; } if(dj==25){ zhuangbei[++top]=huaban[0]; } } coin+=jb; save(); Sleep(2000); system(“cls”); return ; } if(guaiwu[x].pz==“普通”){ color(2); } if(guaiwu[x].pz==“罕见”){ color(6); } if(guaiwu[x].pz==“稀有”){ color(1); } if(guaiwu[x].pz==“史诗”){ color(5); } if(guaiwu[x].pz==“传奇”){ color(4); } if(guaiwu[x].pz==“神话”){ color(11); } if(guaiwu[x].pz==“究极”){ color(12); } if(guaiwu[x].pz==“超级”){ color(10); } cout<<guaiwu[x].pz<<guaiwu[x].nm<<“血量:“<<dfhp<<“攻击:“<<dfgj<<endl; color(7); cout<<“你 血量:“<<hp1<<endl; for(int i=1;i<=top;i++){ color(7); if(s[i].pz==“普通”){ color(2); } if(s[i].pz==“罕见”){ color(6); } if(s[i].pz==“稀有”){ color(1); } if(s[i].pz==“史诗”){ color(5); } if(s[i].pz==“传奇”){ color(4); } if(s[i].pz==“神话”){ color(11); } if(s[i].pz==“究极”){ color(12); } if(s[i].pz==“超级”){ color(10); } cout<<”(“<<i<<”)“<<zhuangbei[i].pz<<zhuangbei[i].nm<<”:”; if(lq[i]<=0){ cout<<“冷却已好”<<endl; }else{ cout<<fixed<<setprecision(1); cout<<“还要”<<1.0lq[i]/10<<“s”; cout<<fixed<<setprecision(0)<<endl; } color(7); } cout<<“(1)攻击(2)逃跑(3)拉扯”<<endl; int u; cin>>u; if(u==2){ color(7); int uu=rand()%(7+8); if(uu==9||uu==1){ cout<<“逃跑失败”<<endl; Sleep(2000); }else{ cout<<“你逃跑了”<<endl; Sleep(2000); return ; } } if(u==3){ color(7); int uu=rand()%(9+1); if(uu==9||uu==1){ cout<<“拉扯失败”<<endl; Sleep(500); }else{ // cout<<u<<endl; cout<<“拉扯成功”<<endl; for(int i=1;i<=top;i++){ lq[i]-=lqsd; } Sleep(500); continue; } } for(int i=1;i<=top;i++){ if(u!=1)continue; if(lq[i]>0)continue; / 0:黑 1:深蓝 2:绿 3:浅蓝 4:红 5:紫 6:黄 7:白 8:灰 9:蓝 10:翠绿 11:青 12:粉 13:浅紫 14:浅黄 15:米白 / lq[i]=s[i].sd; color(7); if(s[i].pz==“普通”){ color(2); } if(s[i].pz==“罕见”){ color(6); } if(s[i].pz==“稀有”){ color(1); } if(s[i].pz==“史诗”){ color(5); } if(s[i].pz==“传奇”){ color(4); } if(s[i].pz==“神话”){ color(11); } if(s[i].pz==“究极”){ color(12); } if(s[i].pz==“超级”){ color(10); } if(s[i].tsxg==‘A’){ cout<<“你用”; cout<<s[i].nm<<“回了”<<s[i].gj<<“滴血”<<endl; hp1+=s[i].gj; }else if(s[i].tsxg==‘B’){ int lj=rand()%5+1; for(int ggg=1;ggg<=lj;ggg++){ cout<<“你用”<<s[i].nm<<“对”<<guaiwu[x].nm<<“造成了”<<s[i].gj<<“点伤害”<<endl; dfhp-=s[i].gj; } }else if(s[i].tsxg==‘D’){ cout<<“你用”<<s[i].nm<<“对”<<guaiwu[x].nm<<“造成了”<<s[i].gj<<“点中毒伤害”<<endl; dfhp-=s[i].gj; }else if(s[i].tsxg==‘E’){ int sum=s[i].gj; for(int j=1;j<=top;j++){ if(i==j)continue; if(s[i].nm==s[j].nm){ if(s[j].pz==“普通”){ sum+=4; } if(s[j].pz==“罕见”){ sum+=12; } if(s[j].pz==“稀有”){ sum+=36; } if(s[j].pz==“史诗”){ sum+=108; } if(s[j].pz==“传奇”){ sum+=324; } if(s[j].pz==“神话”){ sum+=972; } if(s[j].pz==“究极”){ sum+=2916; } if(s[j].pz==“超级”){ sum+=8748; } } } cout<<“你用”<<s[i].nm<<“对”<<guaiwu[x].nm<<“造成了”<<sum<<“点伤害”<<endl; dfhp-=sum; }else{ cout<<“你用”<<s[i].nm<<“对”<<guaiwu[x].nm<<“造成了”<<s[i].gj<<“点伤害”<<endl; dfhp-=s[i].gj; } Sleep(200); if(dfhp<=0){ color(7); COUT(“你赢了!!!\n”,7); cout<<“获得”<<jb<<“枚coin”<<endl; cout<<“获得”; if(guaiwu[x].pz==“普通”){ cout<<5; jy+=5; } if(guaiwu[x].pz==“罕见”){ cout<<10; jy+=10; } if(guaiwu[x].pz==“稀有”){ cout<<25; jy+=25; } if(guaiwu[x].pz==“史诗”){ cout<<50; jy+=50; } if(guaiwu[x].pz==“传奇”){ cout<<100; jy+=100; } if(guaiwu[x].pz==“神话”){ cout<<500; jy+=500; } if(guaiwu[x].pz==“究极”){ cout<<4000; jy+=4000; } if(guaiwu[x].pz==“超级”){ cout<<80000; jy+=80000; } cout<<“经验\n”; while(jy>jyxy){ jy-=jyxy; jyxy=jyxy1.5; hp=hp1.1; dj++; cout<<“升级了”<<endl; if(dj==5){ zhuangbei[++top]=huaban[0]; } if(dj==10){ zhuangbei[++top]=huaban[0]; } if(dj==15){ zhuangbei[++top]=huaban[0]; } if(dj==20){ zhuangbei[++top]=huaban[0]; } if(dj==25){ zhuangbei[++top]=huaban[0]; } } coin+=jb; save(); Sleep(2000); system(“cls”); return ; } } color(7); int xkw=rand()%10; if(xkw==7||xkw==8||xkw==9||xkw==1){ cout<<“你闪避了他的攻击”<<endl; for(int i=1;i<=top;i++){ lq[i]-=lqsd; } Sleep(500); continue; } if(guaiwu[x].pz==“普通”){ color(2); } if(guaiwu[x].pz==“罕见”){ color(6); } if(guaiwu[x].pz==“稀有”){ color(1); } if(guaiwu[x].pz==“史诗”){ color(5); } if(guaiwu[x].pz==“传奇”){ color(4); } if(guaiwu[x].pz==“神话”){ color(11); } if(guaiwu[x].pz==“究极”){ color(12); } if(guaiwu[x].pz==“超级”){ color(10); } for(int i=1;i<=top;i++){ lq[i]-=lqsd; } cout<<guaiwu[x].nm<<“对你造成了”<<dfgj<<“点伤害”<<endl; color(7); hp1-=dfgj; Sleep(1000); } } int mai[9]={0,50,100,300,1000,5000,50000,1000000,10000000}; int mia[9]={0,10,20,60,200,1000,10000,200000,10000000}; void heishi(){ system(“cls”); cout<<“你的coin:“<<coin<<endl; cout<<“你要干什么?(1)买花瓣(2)卖花瓣(3)退出”<<endl; int u; cin>>u; if(u==3)return ; if(u==1){ cout<<“你要买什么品质的花瓣?1~6(普通到神话)“<<endl; cin>>u; for(int i=1;i<=17;i++){ cout<<’(‘<<i<<’)‘<<huaban[i].nm<<endl; } if(u!=1){ cout<<“(18)木板\n(19)橘子\n”<<endl; } int u1; cin>>u1; if(u1>19||u1<1||u==1&&u1>17){ cout<<“滚!!!”<<endl; Sleep(500); return ; } cout<<“你要几份?”<<endl; int u2; cin>>u2; cout<<“一共要”<<u2mai[u]<<“coin。你要买吗?(1)买(2)不买”<<endl; int u12; cin>>u12; if(u12!=1&&u12!=2){ cout<<“滚!!!”<<endl; Sleep(500); return ; } if(u12==2)return ; if(u2mai[u]>coin){ cout<<“没钱滚蛋!!!”<<endl; Sleep(500); return ; } coin-=u2mai[u]; if(u!=1){ u—; u1+=17; } for(int i=1;i<=u2;i++){ cangku[++topck]=huaban[u1+(u-1)*19]; } }else if(u==2){ cout<<“你要卖什么品质的花瓣?1~6(普通到传奇)“<<endl; cin>>u; if(u==1){ cout<<“(0)基本\n”; } for(int i=1;i<=17;i++){ cout<<’(‘<<i<<’)‘<<huaban[i].nm<<endl; } if(u!=1){ cout<<“(18)木板\n(19)橘子\n”<<endl; } int u1; cin>>u1; if(u==1&&u1==0){ cout<<“卖多少?(1)一份(2)全卖(3)退出”<<endl; int u12; cin>>u12; if(u12==1){ for(int i=1;i<=topck;i++){ if(cangku[i].pz==huaban[0].pz&&cangku[i].nm==huaban[0].nm){ cout<<“售卖成功”<<endl; coin+=10; cangku[i]=cangku[topck]; topck—; Sleep(1000); return ; } } }else if(u12==2){ for(int i=1;i<=topck;i++){ if(cangku[i].pz==huaban[0].pz&&cangku[i].nm==huaban[0].nm){ cout<<“售卖成功”<<endl; coin+=10; cangku[i]=cangku[topck]; topck—; i=0; } } Sleep(2000); return ; }else{ return ; } } if(u1>19||u1<1||u==1&&u1>17){ cout<<“滚!!!”<<endl; Sleep(500); return ; } cout<<“卖多少?(1)一份(2)全卖(3)退出”<<endl; int u12; cin>>u12; int ans=u1; if(u!=1){ ans+=17; } if(u!=1){ ans+=(u-2)*19; }else{ ans+=(u-1)*19; } if(u12==1){ for(int i=1;i<=topck;i++){ if(cangku[i].pz==huaban[ans].pz&&cangku[i].nm==huaban[ans].nm){ cout<<“售卖成功”<<endl; coin+=mia[u]; cangku[i]=cangku[topck]; topck—; Sleep(1000); return ; } } }else if(u12==2){ for(int i=1;i<=topck;i++){ if(cangku[i].pz==huaban[ans].pz&&cangku[i].nm==huaban[ans].nm){ cout<<“售卖成功”<<endl; coin+=mia[u]; cangku[i]=cangku[topck]; topck—; i=0; } } Sleep(2000); }else{ return ; } } } void ccck(){ system(“cls”); while(1){ system(“cls”); cout<<“----仓库花瓣----\n”; for(int i=1;i<=topck;i++){ if(cangku[i].pz==“普通”){ color(2); } if(cangku[i].pz==“罕见”){ color(6); } if(cangku[i].pz==“稀有”){ color(1); } if(cangku[i].pz==“史诗”){ color(5); } if(cangku[i].pz==“传奇”){ color(4); } if(cangku[i].pz==“神话”){ color(11); } if(cangku[i].pz==“究极”){ color(12); } if(cangku[i].pz==“超级”){ color(10); } cout<<”(“<<i<<”)“<<cangku[i].nm<<’ ‘<<cangku[i].pz<<endl; } color(7); cout<<“----装备花瓣----\n”; for(int i=1;i<=top;i++){ if(zhuangbei[i].pz==“普通”){ color(2); } if(zhuangbei[i].pz==“罕见”){ color(6); } if(zhuangbei[i].pz==“稀有”){ color(1); } if(zhuangbei[i].pz==“史诗”){ color(5); } if(zhuangbei[i].pz==“传奇”){ color(4); } if(zhuangbei[i].pz==“神话”){ color(11); } if(zhuangbei[i].pz==“究极”){ color(12); } if(zhuangbei[i].pz==“超级”){ color(10); } cout<<”(“<<i<<”)“<<zhuangbei[i].pz<<zhuangbei[i].nm<<endl; } color(7); cout<<“你要替换什么?按0 0退出”<<endl; int x,y; cin>>x>>y; if(x==0&&y==0)return ; if(x>top||y>topck){ cout<<“你搞错了”<<endl; return ; } swap(zhuangbei[x],cangku[y]); }

} void huayuanjc(){ system(“cls”); srand(time(NULL)); int wz=rand()%5+10; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==5){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=5){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%78+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%10+1; cout<<“你遇到了普通”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%10+11; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%10+21; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%10+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%91+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=5){ int gw=rand()%10+11; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>5&&x<=7){ int gw=rand()%10+21; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>7&&x<=10){ int gw=rand()%10+31; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void huayuanjj(){ system(“cls”); srand(time(NULL)); int wz=rand()%5+10; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==5){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=5){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%178+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%10+21; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%10+31; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%10+41; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%20+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%291+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=6){ int gw=rand()%10+31; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=10){ int gw=rand()%10+41; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>9&&x<=14){ int gw=rand()%10+51; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>14&&x<=16){ int gw=rand()%10+61; cout<<“你遇到了究极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x==17){ int gw=rand()%10+71; cout<<“你遇到了超极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>17&&x<=19){ int gw=rand()%10+41; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else{ int gw=rand()%10+51; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void mayidiyujc(){ system(“cls”); srand(time(NULL)); int wz=rand()%3+5; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==3){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=3){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%78+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%13+81; cout<<“你遇到了普通”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%13+94; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%13+107; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%10+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%91+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=5){ int gw=rand()%13+94; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>5&&x<=7){ int gw=rand()%13+107; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>7&&x<=10){ int gw=rand()%13+120; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void mayidiyujj(){ system(“cls”); srand(time(NULL)); int wz=rand()%3+5; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==3){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=3){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%178+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%13+107; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%13+120; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%13+133; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%20+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%291+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=6){ int gw=rand()%13+120; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=10){ int gw=rand()%13+133; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>9&&x<=14){ int gw=rand()%13+146; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>14&&x<=16){ int gw=rand()%13+159; cout<<“你遇到了究极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x==17){ int gw=rand()%13+172; cout<<“你遇到了超极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>17&&x<=19){ int gw=rand()%13+133; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else{ int gw=rand()%13+146; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void shamojc(){ system(“cls”); srand(time(NULL)); int wz=rand()%7+13; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==9){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=9){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%78+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%9+185; cout<<“你遇到了普通”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%9+194; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%9+203; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%10+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%91+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=5){ int gw=rand()%9+194; cout<<“你遇到了罕见”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>5&&x<=7){ int gw=rand()%9+203; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>7&&x<=10){ int gw=rand()%9+212; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void shamojj(){ system(“cls”); srand(time(NULL)); int wz=rand()%7+13; while(1){ if(hp1<=0){ return ; } if(wz==0){ cout<<“撤离成功!!”<<endl; Sleep(100); return ; } if(wz==9){ COUT(“你正在危险区!!!\n”,4); } cout<<“你距离撤离点还有”<<wz<<“米”<<endl; cout<<“(1)搜索 (2)向撤离点移动(3)打开仓库”<<endl; int u; cin>>u; if(u==1){ if(wz!=9){ int x=rand()%10+1; if(x<=2){ cout<<“什么也没有”<<endl; }else if(x==3){ int jb=rand()%178+1; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>3&&x<=6){ int gw=rand()%9+203; cout<<“你遇到了稀有”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=8){ int gw=rand()%9+212; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>8&&x<=10){ int gw=rand()%9+221; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } }else{ int x=rand()%20+1; if(x<=1){ cout<<“什么也没有”<<endl; }else if(x==2){ int jb=rand()%291+10; cout<<“你捡到了”<<jb<<“枚coin”<<endl; coin+=jb; }else if(x>2&&x<=6){ int gw=rand()%9+212; cout<<“你遇到了史诗”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>6&&x<=10){ int gw=rand()%9+221; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>9&&x<=14){ int gw=rand()%9+230; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>14&&x<=16){ int gw=rand()%9+239; cout<<“你遇到了究极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x==17){ int gw=rand()%9+248; cout<<“你遇到了超极”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else if(x>17&&x<=19){ int gw=rand()%9+221; cout<<“你遇到了传奇”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); }else{ int gw=rand()%9+230; cout<<“你遇到了神话”<<guaiwu[gw].nm<<endl; Sleep(1000); zhan(gw); } } Sleep(500); }else if(u==2){ wz—; }else if(u==3){ ccck(); } system(“cls”); } system(“cls”); } void ditu(){ cout<<“请选择地图”<<endl; cout<<“(1)花园”<<endl; cout<<“(2)蚂蚁地狱”<<endl; cout<<“(3)沙漠”<<endl; int u; cin>>u; if(u==1){ int u1; cout<<“基础还是进阶?(1)基础(2)进阶”<<endl; cin>>u1; if(u1==1){ huayuanjc(); }else{ huayuanjj(); } } if(u==2){ int u1; cout<<“基础还是进阶?(1)基础(2)进阶”<<endl; cin>>u1; if(u1==1){ mayidiyujc(); }else{ mayidiyujj(); } } if(u==3){ int u1; cout<<“基础还是进阶?(1)基础(2)进阶”<<endl; cin>>u1; if(u1==1){ shamojc(); }else{ shamojj(); } } } signed main(){ COUT(“欢迎来到地铁florr\n”,6); cout<<“是否读档(1)读档(2)不读档”<<endl; int o; cin>>o; if(o==1)read(); else{ zhuangbei[++top]=huaban[0]; zhuangbei[++top]=huaban[0]; zhuangbei[++top]=huaban[0]; zhuangbei[++top]=huaban[0]; zhuangbei[++top]=huaban[0]; } system(“cls”);

C++
while(1){
	hp1=hp;
	system("cls");
	cout<<"你的coin:"<<coin<<endl;
	cout<<"(1)进入黑市(2)进入仓库(3)冒险"<<endl;
	save();
	int u;
	cin>>u;
	if(u==1){
		heishi();
	}else if(u==2){
		ccck();
	}else{
		ditu();
	}
}

}

原文
存档评论1 条抓取于