作者不写,我写
2024-10-22 16:23:29
发布于:浙江
/*在上面的 工具 -> 编译选项 -> 代码生成/优化 -> 代码生成 ->语言标准中
选择ISOc++11或者GNUc++11(最好在devc++里)
(把怪大增强了,开局有100000信用点)
@流萤是我的O.o */
#include<bits/stdc++.h>//纯自创(wo不是作者)
#include<windows.h>
using namespace std;
int a=1,b=0,c=0;
struct node {
int dengj, guangz, xuel, gongj, fangy, baol, touk, hujia,hut,chong;
double baos;
};
map<string, node>juese;
struct noder {
int xuel, gongj;
string cail;
};
map<string, noder>dir;
map<string, int>beibao;
string cl[] = {"_2星材料-掠夺的本能", "_2星材料-掠夺的本能", "-2星材料-古代零件"};
string cl2[] = {"_3星材料-篡改的野心", "_3星材料-篡改的野心", "-3星材料-古代转轴"};
string cl3[] = {"_4星材料-践踏的意志", "_4星材料-践踏的意志", "-4星材料-古代引擎"};
string cl4[] = {"_5星材料-铜矿", "_5星材料-铜矿", "-5星材料-铁矿"};
string cl5[] = {"_6星材料-金矿", "_6星材料-金矿", "-6星材料-钛合金矿"};
string cl6[] = {"_7星材料-钻石", "_7星材料-钻石", "-7星材料-紫莹石"};
string cl7[] = {"_8星材料-星铜石", "_8星材料-星铜石", "-8星材料-缠丝matong"};
string cl8[] = {"_9星材料-无敌材料", "_9星材料-无敌材料", "-9星材料-2无敌材料"};
string cl9[] = {"_10星材料-重生之门", "_10星材料-重生之门", "-10星材料-2重生之门"};
string cl10[] = {"_11星材料-苍天之门", "_11星材料-苍天之门", "-11星材料-苍天之上"};
string dw[] = {"开拓者", "丹恒", "娜塔莎"};
string dr[] = {"虚卒", "自动机兵", "兴风者", "自动机兵-齿狼", "自动机兵-齿狼2", "自动机兵-齿狼3", "最终BOOS", "无敌BOOS"};
string dr2[] = {"练气", "筑基", "金丹", "元婴", "化神", "合体", "渡劫", "仙"};
string dr3[] = {"王则羽","陈宇铭","徐俊杰"};
int shengji[101];
void zd(string diren) {
system("cls");
srand(time(NULL));
node a[3];
a[0] = juese["开拓者"];
a[1] = juese["丹恒"];
a[2] = juese["娜塔莎"];
noder d = dir[diren];
int winner = 0, zhanjidian = 3;
d.gongj = max(max(a[0].fangy + 1, a[1].fangy + 1), max(a[2].fangy + 1, d.gongj));
for (int n = 0;; n++) {
cout << "开拓者" << (a[0].xuel < 0 ? 0 : a[0].xuel) << "/" << juese["开拓者"].xuel << endl;
cout << "丹恒" << (a[1].xuel < 0 ? 0 : a[1].xuel) << "/" << juese["丹恒"].xuel << endl;
cout << "娜塔莎" << (a[2].xuel < 0 ? 0 : a[2].xuel) << "/" << juese["娜塔莎"].xuel << endl;
cout << diren << "剩余血量" << (d.xuel < 0 ? 0 : d.xuel) << endl;
cout << "目前战技点:";
for (int i = 1; i <= zhanjidian; i++)cout << "◆";
for (int i = zhanjidian + 1; i <= 5; i++)cout << "◇";
cout << endl;
if (a[0].xuel <= 0 && a[1].xuel <= 0 && a[2].xuel <= 0)break;
else if (d.xuel <= 0) {
winner = 1;
break;
}
if (n % 4 == 3) {
int _ = rand() % 3;
while (a[_].xuel <= 0 && (a[0].xuel > 0 || a[1].xuel > 0 || a[2].xuel > 0))_ = rand() % 3;
cout << diren << "对" << dw[_] << "造成了" << d.gongj*5 - a[_].fangy*2 << "点伤害\n";
a[_].xuel -= d.gongj*5 - a[_].fangy*2;
Sleep(1000);
_ = rand() % 3;
while (a[_].xuel <= 0 && (a[0].xuel > 0 || a[1].xuel > 0 || a[2].xuel > 0))_ = rand() % 3;
cout << diren << "对" << dw[_] << "造成了" << d.gongj*2 - a[_].fangy*1.2 << "点伤害\n";
a[_].xuel -= d.gongj*2 - a[_].fangy*1.2;
Sleep(1000);
system("cls");
} else {
int _ = n % 4;
cout << "轮到" << dw[_] << "行动\n";
cout << "使用 1.普攻 2.战技\n";
if (a[_].xuel <= 0) {
system("cls");
continue;
}
while (1) {
int bj = rand() % 100 - 1;
char c;
cin >> c;
if (c == '2' && zhanjidian == 0)cout << "战技点不够,请重新输入\n";
else if (c == '2') {
if (dw[_] == "娜塔莎") {
cout << "对谁使用\n";
cout << "1." << dw[0] << "\n2." << dw[1] << "\n3." << dw[2] << "\n4.返回\n";
char c;
cin >> c;
if (c == '1') {
cout << dw[0] << "回复了" << int(juese["娜塔莎"].xuel * 0.2) << "点血量\n";
a[0].xuel += int(juese["娜塔莎"].xuel * 0.2);
a[0].xuel = min(a[0].xuel, juese[dw[0]].xuel);
zhanjidian--;
Sleep(1000);
system("cls");
break;
} else if (c == '2') {
cout << dw[1] << "回复了" << int(juese["娜塔莎"].xuel * 0.2) << "点血量\n";
a[1].xuel += int(juese["娜塔莎"].xuel * 0.2);
a[1].xuel = min(a[1].xuel, juese[dw[1]].xuel);
zhanjidian--;
Sleep(1000);
system("cls");
break;
} else if (c == '3') {
cout << dw[2] << "回复了" << int(juese["娜塔莎"].xuel * 0.2) << "点血量\n";
a[2].xuel += int(juese["娜塔莎"].xuel * 0.2);
a[2].xuel = min(a[2].xuel, juese[dw[2]].xuel);
zhanjidian--;
Sleep(1000);
system("cls");
break;
} else if (c == '4') {
cout << "轮到" << dw[_] << "行动\n";
cout << "使用 1.普攻 2.战技\n";
continue;
} else {
cout << "不是哥们,重输\n";
cout << "轮到" << dw[_] << "行动\n";
cout << "使用 1.普攻 2.战技\n";
continue;
}
}
if (bj <= juese[dw[_]].baol) {
cout << "暴击! " << dw[_] << "对" << diren << "造成了" << int(juese[dw[_]].gongj * 1.5 * (1 + juese[dw[_]].baos)) << "点伤害";
d.xuel -= int(juese[dw[_]].gongj * 1.5 * (1 + juese[dw[_]].baos));
} else {
cout << dw[_] << "对" << diren << "造成了" << int(juese[dw[_]].gongj * 1.5) << "点伤害";
d.xuel -= int(juese[dw[_]].gongj * 1.5);
}
zhanjidian--;
Sleep(1000);
system("cls");
break;
} else if (c == '1') {
if (bj <= juese[dw[_]].baol) {
cout << "暴击! " << dw[_] << "对" << diren << "造成了" << int(juese[dw[_]].gongj * (1 + juese[dw[_]].baos)) << "点伤害";
d.xuel -= int(juese[dw[_]].gongj * (1 + juese[dw[_]].baos));
} else {
cout << dw[_] << "对" << diren << "造成了" << juese[dw[_]].gongj << "点伤害";
d.xuel -= juese[dw[_]].gongj;
}
if (zhanjidian < 5)zhanjidian++;
Sleep(1000);
system("cls");
break;
}
}
}
}
if (winner) {
int _ = rand() % 5 + 1, __ = rand() % 1500 + 100;
cout << "你成功战胜了 " << diren << "\n获得 " << d.cail << "*" << _ << " 信用点*" << __ << endl;
cout << "你成功战胜了 " << diren << "\n获得 " << 2 << "*" << _ << " 星*" << __ << endl;
beibao[d.cail] += _;
beibao["信用点"] += __;
c=c+rand() % 1000 + 100;
return;
} else {
cout << "(),就多练";
c-=1;
return;
}
}
void xq() {
system("cls");
for (int i = 0; i < 3; i++) {
cout << dw[i] << " Lv." << juese[dw[i]].dengj << " 光锥Lv." << juese[dw[i]].guangz << endl << "血量:" << juese[dw[i]].xuel << " 攻击:" << juese[dw[i]].gongj << " 防御:" << juese[dw[i]].fangy << " 爆率:" << juese[dw[i]].baol << "%" << " 爆伤:" << juese[dw[i]].baos * 100 << "% " << "光锥等级Lv." << juese[dw[i]].guangz << "\n\n";
}
if (!beibao.empty())cout << "背包内现在有:\n";
for (auto it : beibao) {
cout << it.first << ":" << it.second << endl;
}
system("pause");
}
void js() {
system("cls");
cout << "角色升级界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].dengj << endl;
}
cout << "4.退出" << endl;
char c;
cin >> c;
c = c - '0'-1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].dengj == 1) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl[c] << "*3 你现在拥有" << beibao[cl[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 20 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl[c]] >= 3) {
beibao[cl[c]] -= 3;
juese[dw[c]].dengj = 20;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 20) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl[c] << "*6 你现在拥有" << beibao[cl[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 40 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.8) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 1.8) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 1.8) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl[c]] >= 6) {
beibao[cl[c]] -= 6;
juese[dw[c]].dengj = 40;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.8);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 1.8);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 1.8);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 40) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl2[c] << "*6 你现在拥有" << beibao[cl2[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 50 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.7) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 1.7) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 1.7) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl2[c]] >= 6) {
beibao[cl2[c]] -= 6;
juese[dw[c]].dengj = 50;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.7);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 1.7);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 1.7);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 50) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl2[c] << "*10 你现在拥有" << beibao[cl2[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 60 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl2[c]] >= 10) {
beibao[cl2[c]] -= 10;
juese[dw[c]].dengj = 60;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 60) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl2[c] << "*20 你现在拥有" << beibao[cl2[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 70 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl2[c]] >= 20) {
beibao[cl2[c]] -= 20;
juese[dw[c]].dengj = 70;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 70) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl3[c] << "*3 你现在拥有" << beibao[cl3[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 80 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl3[c]] >= 3) {
beibao[cl3[c]] -= 3;
juese[dw[c]].dengj = 80;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 80) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*3 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 90 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 3) {
beibao[cl4[c]] -= 3;
juese[dw[c]].dengj = 90;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 90) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*6 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 100 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 6) {
beibao[cl4[c]] -= 6;
juese[dw[c]].dengj = 100;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 100) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*6 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 120 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 6) {
beibao[cl5[c]] -= 6;
juese[dw[c]].dengj = 120;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 120) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*10 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 150 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 10) {
beibao[cl5[c]] -= 10;
juese[dw[c]].dengj = 150;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.1);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2.1);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2.1);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 150) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl6[c] << "*6 你现在拥有" << beibao[cl6[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 180 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2.2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2.2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl6[c]] >= 6) {
beibao[cl6[c]] -= 6;
juese[dw[c]].dengj = 180;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 180) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl6[c] << "*10 你现在拥有" << beibao[cl6[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 180 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2.2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2.2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl6[c]] >= 6) {
beibao[cl6[c]] -= 10;
juese[dw[c]].dengj = 200;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].dengj == 200) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl7[c] << "*10 你现在拥有" << beibao[cl7[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 180 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2.2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2.2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl7[c]] >= 10) {
beibao[cl7[c]] -= 10;
juese[dw[c]].dengj = 210;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
else if (juese[dw[c]].dengj == 210) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl7[c] << "*10 你现在拥有" << beibao[cl7[c]] << "个" << "\n升级后等级" << juese[dw[c]].dengj << "->" << 180 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2.2) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj * 2.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 2.2) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl7[c]] >= 10) {
beibao[cl7[c]] -= 10;
juese[dw[c]].dengj = 210;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.2);
juese[dw[c]].fangy = int(juese[dw[c]].fangy * 2.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
}
if (c == 3) {
return;
}
js();
system("cls");
}
void wq() {
system("cls");
cout << "光锥升级界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].guangz << endl;
}
cout << "4.退出" << endl;
char c;
cin >> c;
c = c - '0' - 1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].guangz == 1) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl[c] << "*3 你现在拥有" << beibao[cl[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 20 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "20%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "80%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl[c]] >= 3) {
beibao[cl[c]] -= 3;
juese[dw[c]].guangz = 20;
juese[dw[c]].baol = 20;
juese[dw[c]].baos = 0.8;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 20) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl[c] << "*6 你现在拥有" << beibao[cl[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 40 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "35%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "110%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl[c]] >= 6) {
beibao[cl[c]] -= 6;
juese[dw[c]].guangz = 40;
juese[dw[c]].baol = 35;
juese[dw[c]].baos = 1.1;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 40) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl[c] << "*20 你现在拥有" << beibao[cl[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 60 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "45%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "130%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl[c]] >= 20) {
beibao[cl[c]] -= 20;
juese[dw[c]].guangz = 60;
juese[dw[c]].baol = 45;
juese[dw[c]].baos = 1.3;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 60) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl2[c] << "*3 你现在拥有" << beibao[cl2[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 70 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "55%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "150%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl2[c]] >= 3) {
beibao[cl2[c]] -= 3;
juese[dw[c]].guangz = 70;
juese[dw[c]].baol = 55;
juese[dw[c]].baos = 1.5;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 70) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl2[c] << "*6 你现在拥有" << beibao[cl2[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 80 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "65%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "150%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl2[c]] >= 6) {
beibao[cl2[c]] -= 6;
juese[dw[c]].guangz = 80;
juese[dw[c]].baol = 65;
juese[dw[c]].baos = 1.5;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 80) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl3[c] << "*6 你现在拥有" << beibao[cl3[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 90 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "75%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "160%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl3[c]] >= 6) {
beibao[cl3[c]] -= 6;
juese[dw[c]].guangz = 90;
juese[dw[c]].baol = 75;
juese[dw[c]].baos = 1.6;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 90) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*3 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 100 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "75%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "167%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 3) {
beibao[cl4[c]] -= 3;
juese[dw[c]].guangz = 100;
juese[dw[c]].baol = 75;
juese[dw[c]].baos = 1.67;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 100) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*6 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 120 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "80%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "170%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 6) {
beibao[cl4[c]] -= 6;
juese[dw[c]].guangz = 120;
juese[dw[c]].baol = 80;
juese[dw[c]].baos = 1.70;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].guangz == 120) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*6 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].guangz << "->" << 150 << endl;
cout << "升级后爆率" << juese[dw[c]].baol << "% ->" << "85%" << endl;
cout << "升级后爆伤" << juese[dw[c]].baos << "% ->" << "170%" << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 6) {
beibao[cl5[c]] -= 6;
juese[dw[c]].guangz = 150;
juese[dw[c]].baol = 85;
juese[dw[c]].baos = 1.70;
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
} else if (c == 3) {
return;
}
system("cls");
wq();
}
void zb() {
system("cls");
for (int i = 0; i < 8; i++) {
cout << i + 1 << "." << dr2[i] << endl;
}
cout << "9.退出\n";
char c;
cin >> c;
if (c >= '1' && c <= '8')zd(dr2[c - '0' - 1]);
else if (c == '9')return;
else cout << "不是哥们,重输\n";
system("pause");
zb();
}
void xg() {
system("cls");
for (int i = 0; i < 8; i++) {
cout << i + 1 << "." << dr[i] << endl;
}
cout << "9.退出\n";
char c;
cin >> c;
if (c >= '1' && c <= '8')zd(dr[c - '0' - 1]);
else if (c == '9')return;
else cout << "不是哥们,重输\n";
system("pause");
xg();
}
void wd() {
system("cls");
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dr3[i] << endl;
}
cout << "4.退出\n";
char c;
cin >> c;
if (c >= '1' && c <= '3')zd(dr3[c - '0' - 1]);
else if (c == '4')return;
else cout << "不是哥们,重输\n";
system("pause");
wd();
}
void sc() {
system("cls");
for (int i = 1; i < 3; i++) {
cout << i << "." << cl[i] << "(200信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 2 << "." << cl2[i] << "(400信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 4 << "." << cl3[i] << "(600信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 6 << "." << cl4[i] << "(1000信用点)\n";
}
cout << "9.退出\n";
char c;
cin >> c;
c -= '0';
if (c == 1) {
if (beibao["信用点"] >= 200) {
beibao[cl[c]]++;
beibao["信用点"] -= 200;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 2) {
if (beibao["信用点"] >= 200) {
beibao[cl[c]]++;
beibao["信用点"] -= 200;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 3) {
if (beibao["信用点"] >= 400) {
beibao[cl2[c - 2]]++;
beibao["信用点"] -= 400;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 4) {
if (beibao["信用点"] >= 400) {
beibao[cl2[c - 2]]++;
beibao["信用点"] -= 400;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 5) {
if (beibao["信用点"] >= 600) {
beibao[cl3[c - 4]]++;
beibao["信用点"] -= 600;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 6) {
if (beibao["信用点"] >= 600) {
beibao[cl3[c - 4]]++;
beibao["信用点"] -= 600;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 7) {
if (beibao["信用点"] >= 1000) {
beibao[cl4[c - 6]]++;
beibao["信用点"] -= 1000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 8) {
if (beibao["信用点"] >= 1000) {
beibao[cl4[c - 6]]++;
beibao["信用点"] -= 1000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 9) {
return;
}
sc();
}
void sd() {
system("cls");
for (int i = 1; i < 3; i++) {
cout << i << "." << cl5[i] << "(3000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 2 << "." << cl6[i] << "(6000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 4 << "." << cl6[i] << "(9000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 6 << "." << cl7[i] << "(10000信用点)\n";
}
cout << "9.退出\n";
char c;
cin >> c;
c -= '0';
if (c == 1) {
if (beibao["信用点"] >= 3000) {
beibao[cl5[c]]++;
beibao["信用点"] -= 3000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 2) {
if (beibao["信用点"] >= 3000) {
beibao[cl5[c]]++;
beibao["信用点"] -= 3000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 3) {
if (beibao["信用点"] >= 6000) {
beibao[cl6[c - 2]]++;
beibao["信用点"] -= 6000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 4) {
if (beibao["信用点"] >= 6000) {
beibao[cl6[c - 2]]++;
beibao["信用点"] -= 6000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 5) {
if (beibao["信用点"] >= 9000) {
beibao[cl7[c - 4]]++;
beibao["信用点"] -= 9000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 6) {
if (beibao["信用点"] >= 9000) {
beibao[cl7[c - 4]]++;
beibao["信用点"] -= 9000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 7) {
if (beibao["信用点"] >= 10000) {
beibao[cl8[c - 6]]++;
beibao["信用点"] -= 10000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 9) {
if (beibao["信用点"] >= 10000) {
beibao[cl8[c - 6]]++;
beibao["信用点"] -= 10000;
} else {
cout << "不是哥们你也没钱啊\n";
Sleep(1000);
}
}
if (c == 9) {
return;
}
sd();
}
void fp() {
system("cls");
for (int i = 1; i < 3; i++) {
cout << i << "." << cl[i] << "+(200信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 2 << "." << cl2[i] << "+(400信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 4 << "." << cl3[i] << "+(600信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 6 << "." << cl4[i] << "+(1000信用点)\n";
}
cout << "9.退出\n";
char c;
cin >> c;
c -= '0';
if (c == 1) {
if (beibao[cl[c]] >= 1) {
beibao[cl[c]] -= 1;
beibao["信用点"] += 200;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 2) {
if (beibao[cl[c]] >= 1) {
beibao[cl[c]] -= 1;
beibao["信用点"] += 200;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 3) {
if (beibao[cl2[c - 2]] >= 1) {
beibao[cl2[c - 2]] -= 1;
beibao["信用点"] += 400;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 4) {
if (beibao[cl2[c - 2]] >= 1) {
beibao[cl2[c - 2]] -= 1;
beibao["信用点"] += 400;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 5) {
if (beibao[cl3[c - 4]] >= 1) {
beibao[cl3[c - 4]] -= 1;
beibao["信用点"] += 600;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 6) {
if (beibao[cl3[c - 4]] >= 1) {
beibao[cl3[c - 4]] -= 1;
beibao["信用点"] += 600;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 7) {
if (beibao[cl4[c - 6]] >= 1) {
beibao[cl4[c - 6]] -= 1;
beibao["信用点"] += 1000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 8) {
if (beibao[cl4[c - 6]] >= 1) {
beibao[cl4[c - 6]] -= 1;
beibao["信用点"] += 1000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 9) {
return;
}
system("cls");
fp();
}
void fd() {
system("cls");
for (int i = 1; i < 3; i++) {
cout << i << "." << cl5[i] << "+(3000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 2 << "." << cl6[i] << "+(6000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 4 << "." << cl7[i] << "+(9000信用点)\n";
}
for (int i = 1; i < 3; i++) {
cout << i + 6 << "." << cl8[i] << "+(10000信用点)\n";
}
cout << "9.退出\n";
char c;
cin >> c;
c -= '0';
if (c == 1) {
if (beibao[cl5[c ]] >= 1) {
beibao[cl5[c ]] -= 1;
beibao["信用点"] += 3000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 2) {
if (beibao[cl5[c ]] >= 1) {
beibao[cl5[c ]] -= 1;
beibao["信用点"] += 3000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 3) {
if (beibao[cl6[c - 2]] >= 1) {
beibao[cl6[c - 2]] -= 1;
beibao["信用点"] += 6000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 4) {
if (beibao[cl6[c - 2]] >= 1) {
beibao[cl6[c - 2]] -= 1;
beibao["信用点"] += 6000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 5) {
if (beibao[cl7[c - 4]] >= 1) {
beibao[cl7[c - 4]] -= 1;
beibao["信用点"] += 9000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 6) {
if (beibao[cl7[c - 4]] >= 1) {
beibao[cl7[c - 4]] -= 1;
beibao["信用点"] += 9000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 7) {
if (beibao[cl8[c - 6]] >= 1) {
beibao[cl8[c - 6]] -= 1;
beibao["信用点"] += 10000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 8) {
if (beibao[cl8[c - 6]] >= 1) {
beibao[cl8[c - 6]] -= 1;
beibao["信用点"] += 10000;
} else {
cout << "不是哥们你也没材料啊\n";
Sleep(1000);
}
}
if (c == 9) {
return;
}
}
void tk() {
system("cls");
cout << "头盔升级界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].touk << endl;
}
cout << "4.退出\n";
char c;
cin >> c;
c = c - '0'-1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].touk == 0) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*3 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].touk << "->" << 20 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 3) {
beibao[cl4[c]] -= 3;
juese[dw[c]].touk = 20;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].touk == 20) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*6 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].touk << "->" << 40 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 6) {
beibao[cl4[c]] -= 6;
juese[dw[c]].touk = 40;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.3);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].touk == 40) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*6 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].touk << "->" << 60 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 2.8) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 1.4) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 6) {
beibao[cl5[c]] -= 6;
juese[dw[c]].touk = 60;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.8);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 1.4);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
}
if (c == 3) {
return;
}
tk();
}
void hj() {
system("cls");
cout << "护甲升级界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].hujia << endl;
}
cout << "4.退出\n";
char c;
cin >> c;
c = c - '0' - 1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].hujia == 0) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*3 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 20 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 3) {
beibao[cl4[c]] -= 3;
juese[dw[c]].hujia = 20;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hujia == 20) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*6 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 40 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 6) {
beibao[cl4[c]] -= 6;
juese[dw[c]].hujia = 40;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.8);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 1.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hujia == 40) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*6 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 60 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 6) {
beibao[cl5[c]] -= 6;
juese[dw[c]].hujia = 60;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hujia == 60) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl6[c] << "*6 你现在拥有" << beibao[cl6[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 70 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.5) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3.5) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl6[c]] >= 6) {
beibao[cl6[c]] -= 6;
juese[dw[c]].hujia = 70;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.5);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3.5);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
}
if (c == 3) {
return;
}
hj();
}
void ht() {
system("cls");
cout << "护腿升级界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].hut << endl;
}
cout << "4.退出\n";
char c;
cin >> c;
c = c - '0' - 1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].hut == 0) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*3 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 20 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 3) {
beibao[cl4[c]] -= 3;
juese[dw[c]].hujia = 20;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hut == 20) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl4[c] << "*6 你现在拥有" << beibao[cl4[c]] << "个" << "\n升级后等级" << juese[dw[c]].hujia << "->" << 40 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl4[c]] >= 6) {
beibao[cl4[c]] -= 6;
juese[dw[c]].hujia = 40;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2.8);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 1.2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hut == 40) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl5[c] << "*6 你现在拥有" << beibao[cl5[c]] << "个" << "\n升级后等级" << juese[dw[c]].hut << "->" << 60 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.2) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl5[c]] >= 6) {
beibao[cl5[c]] -= 6;
juese[dw[c]].hujia = 60;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 2);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 2);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
if (juese[dw[c]].hut == 60) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl6[c] << "*6 你现在拥有" << beibao[cl6[c]] << "个" << "\n升级后等级" << juese[dw[c]].hut << "->" << 70 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel * 1.5) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy * 3.5) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl6[c]] >= 6) {
beibao[cl6[c]] -= 6;
juese[dw[c]].hujia = 70;
juese[dw[c]].xuel = int(juese[dw[c]].xuel * 1.5);
juese[dw[c]].gongj = int(juese[dw[c]].gongj * 3.5);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
} else if (c == 3) {
return;
}
hj();
}
void cs() {
system("cls");
cout << "重生界面\n";
for (int i = 0; i < 3; i++) {
cout << i + 1 << "." << dw[i] << " Lv." << juese[dw[i]].chong << endl;
}
cout << "4.退出" << endl;
char c;
cin >> c;
c = c - '0'-1;
if (c >= 0 && c < 3) {
if (juese[dw[c]].chong == 0) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl9[c] << "*3 你现在拥有" << beibao[cl9[c]] << "个" << "\n升级后次数" << juese[dw[c]].chong << "->" << 20 << endl<<"升级后等级" << juese[dw[c]].dengj << "->" << 1 << endl;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel /4) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj /4) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy /4) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl9[c]] >= 3) {
beibao[cl9[c]] -= 3;
juese[dw[c]].chong = 1;
juese[dw[c]].dengj = 1;
juese[dw[c]].xuel = int(juese[dw[c]].xuel /4);
juese[dw[c]].fangy = int(juese[dw[c]].fangy /4);
juese[dw[c]].gongj = int(juese[dw[c]].gongj /4);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].chong == 1) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl9[c] << "*6 你现在拥有" << beibao[cl9[c]] << "个" << "\n升级后次数" << juese[dw[c]].chong<< "->" << 40 << endl<<"升级后等级" << juese[dw[c]].dengj << "->" << 1 << endl;;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel / 4) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj / 4) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy / 4) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl9[c]] >= 6) {
beibao[cl9[c]] -= 6;
juese[dw[c]].chong = 2;
juese[dw[c]].dengj = 1;
juese[dw[c]].xuel = int(juese[dw[c]].xuel /4);
juese[dw[c]].fangy = int(juese[dw[c]].fangy /4);
juese[dw[c]].gongj = int(juese[dw[c]].gongj /4);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
} else if (juese[dw[c]].chong == 2) {
cout << "是否确定升级(y/n)" << dw[c] << " 升级消耗" << cl9[c] << "*6 你现在拥有" << beibao[cl9[c]] << "个" << "\n升级后次数" << juese[dw[c]].chong << "->" << 50 << endl<<"升级后等级" << juese[dw[c]].dengj << "->" << 1 << endl;;
cout << "升级后生命" << juese[dw[c]].xuel << "->" << int(juese[dw[c]].xuel / 4) << endl;
cout << "升级后攻击" << juese[dw[c]].gongj << "->" << int(juese[dw[c]].gongj / 4) << endl;
cout << "升级后防御" << juese[dw[c]].fangy << "->" << int(juese[dw[c]].fangy / 4) << endl;
char _;
cin >> _;
if (_ == 'y' && beibao[cl9[c]] >= 6) {
beibao[cl9[c]] -= 6;
juese[dw[c]].chong = 3;
juese[dw[c]].dengj = 1;
juese[dw[c]].xuel = int(juese[dw[c]].xuel /4);
juese[dw[c]].fangy = int(juese[dw[c]].fangy /4);
juese[dw[c]].gongj = int(juese[dw[c]].gongj /4);
} else if (_ == 'y') {
cout << "没材料就别来了:(\n";
Sleep(1000);
}
}
} else if(c==3) {
return;
}
cs();
}
void dul() {
if(c>10000) {
c-=10000;
b-=1;
}
if(b==0) {
a+=1;
b=10;
}
if(c==0) {
b+=1;
c=10000;
}
if(b<10) {
a-=1;
b=1;
c=10000;
}
if(a==1) {
cout<<"一阶新手";
} else if(a==2) {
cout<<"二阶青铜";
} else if(a==3) {
cout<<"三阶白银";
} else if(a==4) {
cout<<"四阶黄金";
} else if(a==5) {
cout<<"五阶珀金";
} else if(a==6) {
cout<<"六阶钻石";
} else if(a==7) {
cout<<"七阶战神";
} else {
cout<<"八阶天神";
}
if(b==5) {
cout<<"V";
} else if(b==4) {
cout<<"IV";
} else if(b==3) {
cout<<"III";
} else if(b==2) {
cout<<"II";
} else if(b==1) {
cout<<"I";
} else if(b==6) {
cout<<"VI";
} else if(b==7) {
cout<<"VII";
} else if(b==8) {
cout<<"XII";
} else if(b==9) {
cout<<"XI";
} else if(b==8) {
cout<<"X";
}
cout<<" "<<c;
system("pause");
system("cls");
return;
}
void sb() {
while (1) {
system("cls");
cout << "1.高级废品回收\n2.头盔制造(目前支持1~60,增加生命防御)\n3.护甲制作(目前支持1~70,增加生命防御)\n4.护腿制作(目前支持1~60,增加生命防御)\n5.重生\n6.无敌大怪\n7.段位\n8.退出\n";
char c;
cin >> c;
if (c == '1') fd();
else if (c == '2') tk();
else if (c == '3') hj();
else if (c == '4') ht();
else if (c == '5') cs();
else if (c == '6') wd();
else if (c == '7') dul();
else if (c == '8') return;
else cout << "你输了个什么东西\n";
}
}
void ck() {
while (1) {
system("cls");
cout << "1.详情\n2.角色升级(目前支持1~220,增加生命攻击防御)\n3.光锥升级(目前支持1~150,增加爆率爆伤)\n4.神级大怪(角色、光锥材料)\n5.低阶小怪(角色、光锥材料)\n6.低级商城(信用点买材料)\n7.高级商城(信用点买材料)\n8.低级废品回收\n9.其他\n";
char c;
cin >> c;
if (c == '1') xq();
else if (c == '2') js();
else if (c == '3') wq();
else if (c == '4') zb();
else if (c == '5') xg();
else if (c == '6') sc();
else if (c == '7') sd();
else if (c == '8') fp();
else if (c == '9') sb();
else cout << "你输了个什么东西\n";
}
}
int main() {
srand(time(NULL));
juese["开拓者"].dengj = 1;
juese["丹恒"].dengj = 1;
juese["娜塔莎"].dengj = 1;
juese["开拓者"].guangz = 1;
juese["丹恒"].guangz = 1;
juese["娜塔莎"].guangz = 1;
juese["开拓者"].xuel = 203, juese["开拓者"].gongj = 134, juese["开拓者"].fangy = 52, juese["开拓者"].baol = 5, juese["开拓者"].baos = 0.5;
juese["丹恒"].xuel = 196, juese["丹恒"].gongj = 164000, juese["丹恒"].fangy = 42, juese["丹恒"].baol = 5, juese["丹恒"].baos = 0.5;
juese["娜塔莎"].xuel = 249, juese["娜塔莎"].gongj = 124, juese["娜塔莎"].fangy = 65, juese["娜塔莎"].baol = 5, juese["娜塔莎"].baos = 0.5;
dir["虚卒"].xuel = 3002, dir["虚卒"].gongj = 504, dir["虚卒"].cail = "_2星材料-掠夺的本能";
dir["自动机兵"].xuel = 3952, dir["自动机兵"].gongj = 924, dir["自动机兵"].cail = "-2星材料-古代零件";
dir["兴风者"].xuel = 9552, dir["兴风者"].gongj = 1374, dir["兴风者"].cail = "_3星材料-篡改的野心";
dir["自动机兵-齿狼"].xuel = 14352, dir["自动机兵-齿狼"].gongj = 1544, dir["自动机兵-齿狼"].cail = "-3星材料-古代转轴";
dir["自动机兵-齿狼2"].xuel = 34352, dir["自动机兵-齿狼2"].gongj = 1944, dir["自动机兵-齿狼2"].cail = "_4星材料-践踏的意志";
dir["自动机兵-齿狼3"].xuel = 54352, dir["自动机兵-齿狼3"].gongj = 3044, dir["自动机兵-齿狼3"].cail = "_5星材料-铜矿";
dir["最终BOOS"].xuel = 100000, dir["最终BOOS"].gongj = 4144, dir["最终BOOS"].cail = "_5星材料-铁矿";
dir["无敌BOOS"].xuel = 200000, dir["无敌BOOS"].gongj = 4544, dir["无敌BOOS"].cail = "_6星材料-金矿";
dir["练气"].xuel = 400002, dir["练气"].gongj = 16900, dir["练气"].cail = "_6星材料-钛合金矿";
dir["筑基"].xuel = 1000002, dir["筑基"].gongj = 25004, dir["筑基"].cail = "_7星材料-钻石";
dir["金丹"].xuel = 1600000, dir["金丹"].gongj = 36004, dir["金丹"].cail = "-7星材料-紫莹石";
dir["元婴"].xuel = 2800002, dir["元婴"].gongj = 66004, dir["元婴"].cail = "_8星材料-星铜石";
dir["化神"].xuel = 4000002, dir["化神"].gongj = 156004, dir["化神"].cail = "-8星材料-缠丝matong";
dir["合体"].xuel = 8000002, dir["合体"].gongj = 306004, dir["合体"].cail = "_9星材料-无敌材料";
dir["渡劫"].xuel = 16000002, dir["渡劫"].gongj = 606004, dir["渡劫"].cail = "_9星材料-2无敌材料";
dir["仙"].xuel = 10000002, dir["仙"].gongj = 2406004, dir["仙"].cail = "_10星材料-重生之门";
dir["王则羽"].xuel = 310000002, dir["王则羽"].gongj = 25006004, dir["王则羽"].cail = "_10星材料-2重生之门";
dir["陈宇铭"].xuel = 520000002, dir["陈宇铭"].gongj = 40006004, dir["陈宇铭"].cail = "_11星材料-苍天之门";
dir["徐俊杰"].xuel = 1040000002, dir["徐俊杰"].gongj = 80006004, dir["徐俊杰"].cail = "_11星材料-苍天之上";
beibao["_2星材料-掠夺的本能"] = 0, beibao["_3星材料-篡改的野心"] = 0, beibao["_4星材料-践踏的意志"] = 0, beibao["_5星材料-铜矿"] = 0, beibao["_6星材料-金矿"] = 0, beibao["_7星材料-钻石"] = 0, beibao["_8星材料-星铜石"] = 0, beibao["_9星材料-无敌材料"] = 0,beibao["_10星材料-重生之门"] = 0,beibao["_11星材料-苍天之上"] = 0;
beibao["-2星材料-古代零件"] = 0, beibao["-3星材料-古代转轴"] = 0, beibao["-4星材料-古代引擎"] = 0, beibao["-5星材料-铁矿"] = 0, beibao["-6星材料-钛合金矿"] = 0, beibao["-7星材料-紫莹石"] = 0, beibao["-8星材料-缠丝matong"] = 0,beibao["-9星材料-2无敌材料"] = 0,beibao["-10星材料-2重生之门"] = 0,beibao["-11星材料-苍天之上"] = 0;
beibao["信用点"] = 500000;
ck();
}
全部评论 16
顶
2024-09-17 来自 浙江
1顶
2024-09-17 来自 浙江
1顶
2024-09-17 来自 浙江
16
2024-10-22 来自 浙江
06
2024-10-22 来自 浙江
06
2024-10-22 来自 浙江
06
6
6
6
66
66
66
62024-10-22 来自 浙江
0顶
2024-10-15 来自 浙江
0顶
2024-10-15 来自 浙江
0顶
2024-10-15 来自 浙江
0顶
2024-10-15 来自 浙江
0顶
2024-10-15 来自 浙江
0顶
2024-10-15 来自 浙江
0不是哥们
2024-10-13 来自 上海
0我去你无敌了
2024-09-17 来自 广东
0我也要玩迷你世界😭😭😭
2024-09-17 来自 广东
0我去你玩mn也是无敌了(((
2024-09-18 来自 上海
0hhh
2024-09-18 来自 广东
0
顶
2024-09-17 来自 浙江
0
有帮助,赞一个