后续中的后续
2025-06-17 18:42:18
发布于:浙江
else if (b == 3) {
while (1) {
if (xing <= 0) {
while (duixing) {
cout << "对手回合";
if (abs(oi - ri) + abs(oj - rj) <= 5 && duixing >= 2 && dcd2 == 0) {
cout << "对手释放惊吓箱造成了" << diwugong + 35 << "点伤害";
duixing -= 1;
Sleep(1000);
sheng -= (diwugong + 35);
dcd2 += 4;
} else if (abs(oi - ri) + abs(oj - rj) <= 3 && duixing >= 1) {
cout << "对手普攻造成了" << diwugong << "点伤害";
duixing -= 1;
sheng -= diwugong;
Sleep(1000);
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
Sleep(1000);
Sleep(1000);
}
} else if (duixing <= 0) {
break;
} else {
if (rj < oi) {
cout << "对手2坐标+1" << endl;
rj++;
duixing -= 1;
}
if (rj > oi) {
rj--;
cout << "对手2坐标-1" << endl;
duixing -= 1;
}
if (ri < oj) {
cout << "对手1坐标+1" << endl;
duixing -= 1;
ri++;
}
if (ri > oj) {
cout << "对手1坐标-1" << endl;
duixing -= 1;
ri--;
}
if (ri == rj) {
cout << "对手普攻造成了" << diwugong << "点伤害";
duixing -= 1;
sheng -= diwugong;
Sleep(1000);
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
Sleep(1000);
Sleep(1000);
}
}
cout << "目前坐标" << rj << "," << ri;
Sleep(1000);
}
dcd1--;
dcdd--;
if (sheng <= 0) {
chao -= 20;
break;
cout << "你输了";
Sleep(1000);
}
}
xing += 6;
duixing = 7;
duixing -= jiandian;
}
system("cls");
if (sheng <= 0) {
break;
cout << "你输了";
}
cout << " 第" << l << "回合\n";
cout << "你的回合,0.普攻 ,1.闪耀冲刺,2.能量光波,3.真理脉冲\nw一坐标 s一坐标-1,d二坐标+1,a二坐标-1\n行动点剩余" << xing << endl << " 生命" << sheng << " 对手血量" << disheng << endl;
if (jingda == true) cout << "你的大招被禁用了" << endl;
cout << " 目前位置:" << "(" << oi << "," << oj << ")\n";
cout << " 对手目前位置:" << "(" << ri << "," << rj << ")\n";
float linjia = 0;
char aa;
cin >> aa;
if (aa == 'w') {
oi++;
xing -= 1;
}
if (aa == 's') {
oi--;
xing -= 1;
}
if (aa == 'd') {
oj++;
xing -= 1;
}
if (aa == 'a') {
oj--;
xing -= 1;
}
if (aa == '2' && cd2 <= 0) {
int g = rand() % 20 + 1;
if (jingda == true) {
cd2 = 3;
} else {
cd2 = 6;
}
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= 1;
if (abs(oi - ri) + abs(oj - rj) <= 4) {
cout << "你对对手造成了" << ((20 + wugong * 1.2) * (1 + shengda / 100 + wei / 100 ))*(linjia / 100 + 1) << "点伤害\n";
cd1 -= ji;
cd2 -= ji;
cdd -= ji;
Sleep(200);
disheng = disheng - ((20 + wugong * 1.0) * (1 + shengda / 100 + wei / 100 )) * (linjia / 100 + 1);
if (disheng <= dishengmax / 2) {
cout << "(落井下石)你对对手造成了" << ((20 + wugong * 1.0) * (1 + shengda / 100 + wei / 100 ))*(linjia / 100 + 1)*(luojin - 1) << "点伤害\n";
disheng = disheng - (20 + fagong * (1 + shengda / 100 + wei / 100)) * (luojin - 1);
}
if (zhuan3 == true) {
cout << "复刻射击额外" << ((20 + wugong * 1.0) * (1 + shengda / 100 + wei / 100 ))*(linjia / 100 + 1) << "点伤害";
disheng = disheng - ((20 + wugong * 1.0) * (1 + shengda / 100 + wei / 100 )) * (linjia / 100 + 1);
Sleep(200);
cd1 -= ji;
cd2 -= ji;
cdd -= ji;
}
shengda = 0;
} else {
cout << "没打中\n";
Sleep(2300);
}
if (disheng <= 0) {
dichao -= 20;
cout << "你赢了";
break;
}
} else if (aa == '1' && cd1 <= 0) {
cout << "朝哪个方向移动 w一坐标+2 s一坐标-2,d二坐标+2,a二坐标-2";
char aaa;
cin>>aaa;
cd2 = 0;
if (aaa == 'w') {
oi += 2;
}
if (aaa == 's') {
oi -= 2;
}
if (aaa == 'd') {
oj += 2;
}
if (aaa == 'a') {
oj -= 2;
}
if (jingda == true) {
cd1 = 3;
} else {
cd1 = 6;
}
} else if (aa == '3' && cdd <= 0 && jingda != true) {
int g = rand() % 20 + 1;
if (g <= fabao) {
cout << "暴击!!,";
linjia = fabaos;
}
xing -= 1;
cout << "你对对手造成了" << 20 + wugong*(1 + shengda / 100 + wei / 100) * da/100 << "点伤害,并持续1回合\n";
Sleep(200);
disheng = disheng - (20 + wugong*(1 + shengda / 100 + wei / 100) * da/100);
if (disheng <= dishengmax / 2) {
cout << "(落井下石)你对对手造成了" << 20 + wugong*(1 + shengda / 100 + wei / 100) * da/100* (luojin - 1) << "点伤害\n";
disheng = disheng - (20 + wugong*(1 + shengda / 100 + wei / 100) * da/100* (luojin - 1));
}
if (jingda == true) {
cdd = 3;
} else {
cdd = 6;
}
if (disheng <= 0) {
cout << "你赢了";
chao -= 20;
break;
}
} else if (aa == '0' && cdp <= 0 && abs(oi - ri) + abs(oj - rj) <= 7) {
xing -= 1;
cout << "你对对手造成了" << (shengda / 100 + 1)*wugong*(xul / 100 + 1) + (pue * dishengmax / 100) << "点伤害\n";
disheng = disheng - ((shengda / 100 + 1) * wugong * (xul / 100 + 1) + (pue * dishengmax / 100));
if (xu == true) {
cdp = 2;
}
wugong += pujia;
Sleep(300);
} else {
cdd++;
cd2++;
cd1++;
cdp++;
l--;
}
Sleep(500);
if (disheng <= 0) {
cout << "你赢了";
dichao -= 20;
break;
}
dcd1--;
dcdd--;
dcd2--;
cdd--;
cd2--;
l++;
cd1--;
cdp--;
}
shengda = hui;
cout << "对手剩余超燃值" << dichao << " 我剩余超燃值" << chao;
if (dichao <= 0) {
int n = 45 - xingg / 100;
if (n <= 10) {
n = 11;
}
for (int i = 0; i < n; i++) {
cout << "你的段位加星\n";
cout << "目前段位" << xingg << "星";
xingg++;
system("cls");
Sleep(5);
}
shengmax += jie;
}
if (chao <= 0) {
cout << "你的段位掉星\n";
cout << "目前段位" << xingg << "星";
int n = xingg / 100;
if (n >= 30) {
n = 29;
}
for (int i = 0; i < n; i++) {
cout << "你的段位掉\n";
cout << "目前段位" << xingg << "星";
xingg--;
system("cls");
Sleep(5);
}
}
cout << "目前段位" << xingg << "星";
Sleep(3000);
system("cls");
}
shengda = hui;
}
}
这里空空如也
有帮助,赞一个