后续中的后续
2025-08-01 11:10:10
发布于:浙江
else if (b == 4) {
while (1) {
if (xing <= 0) {
while (duixing) {
cout << "对手回合";
Sleep(1000);
if (abs(oi - ri) + abs(oj - rj) <= 5 && duixing >= 2 && dcd2 == 0) {
cout << "对手释放激光造成了" << difagong << "点伤害";
duixing -= 1;
Sleep(1000);
sheng -= difagong;
dcd2 += 4;
} else if (abs(oi - ri) + abs(oj - rj) <= 5 && duixing >= 1 && dcd1 <= 0) {
cout << "对手引力炸弹造成了" << (20 + difagong) * 0.2 << "点伤害";
duixing -= 1;
sheng -= (20 + difagong * 0.2);
Sleep(1000);
dcd1++;
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
Sleep(2000);
}
} 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 (ri < oi) {
cout << "对手1坐标+1" << endl;
ri++;
duixing -= 1;
} else if (ri > oi) {
ri--;
cout << "对手1坐标-1" << endl;
duixing -= 1;
} else if (rj < oj) {
cout << "对手2坐标+1" << endl;
duixing -= 1;
rj++;
} else if (rj > oj) {
cout << "对手2 坐标-1" << endl;
duixing -= 1;
rj--;
}
cout << "目前坐标" << rj << "," << ri;
Sleep(400);
Sleep(2000);
}
dcd1--;
dcdd--;
dcd2--;
if (sheng <= 0) {
break;
cout << "你输了";
chao -= 20;
Sleep(1000);
}
}
xing += 6;
duixing = 6;
duixing -= jiandian;
}
system("cls");
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
}
system("cls");
cout << " 第" << l << "回合\n";
cout << "你的回合\n0.普攻,1.标记箭,2.爆炸箭,3.飓风之力,w一坐标****一坐标-1,d二坐标+1,a二坐标-1\n行动点剩余" << xing << endl << " 生命" << sheng << " 对手血量" << disheng;
if (jingda == true) {
cout << "你的大招被禁用了";
}
cout << " 目前位置:" << "(" << oi << "," << oj << ")\n";
cout << " 对手目前位置:" << "(" << ri << "," << rj << ")\n";
char aa;
cin >> aa;
float linjia = 0, xing1 = 1;
dachi -= 1;
if (dachi >= 1) {
xing1 = 0.5;
}
if (aa == 'w') {
oi++;
xing -= 1;
Sleep(500);
}
if (aa == 's') {
oi--;
xing -= 1;
Sleep(500);
}
if (aa == 'd') {
oj++;
xing -= 1;
Sleep(500);
}
if (aa == 'a') {
oj--;
xing -= 1;
Sleep(500);
} else if (aa == '0' && cdp <= 0 && abs(oi - ri) + abs(oj - rj) <= 4) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= xing1;
cout << "你对对手造成了" << ((wugong) * ((xul + shengda + 100) / 100) + (pue * dishengmax / 100))*(linjia / 100 + 1) << "点伤害\n";
disheng = disheng - ((wugong) * ((xul + shengda + 100) / 100) + (pue * dishengmax / 100)) * (linjia / 100 + 1);
shengda = 0;
if (xu == true && dachi < 0) {
cdp = 2;
}
for (int i = 0; i < ci; i++) {
if (he > 0) {
cout << "合金狼牙棒:造成了" << he*disheng * 0.01 << "点伤害\n";
disheng-=he*disheng*0.01;
}if(quan>0){
cout<<"巨人拳套:造成了"<<shengmax*quan*0.01;
disheng-=shengmax*quan*0.01;
}
}
Sleep(1000);
wugong += pujia;
} else if (aa == '1' && cd1 <= 0) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= 1;
if (jingda == true) {
cd1 = 2;
} else {
cd1 = 4;
}
if (abs(oi - rj) + abs(oj - ri) <= 7) {
cout << "你对对手造成了" << ((20 + wugong * 1.2) * (1 + shengda / 100))*(linjia / 100 + 1) << "点伤害\n";
if (zhuanhei == true) {
cd1--;
}
Sleep(200);
disheng = disheng - ((20 + wugong * 1.2) * (1 + shengda / 100)) * (linjia / 100 + 1);
if (disheng <= dishengmax / 2) {
cout << "(落井下石)你对对手造成了" << (20 + wugong * (1 + shengda / 100))*(luojin - 1) << "点伤害\n";
disheng = disheng - (20 + wugong * (1 + shengda / 100)) * (luojin - 1);
}
Sleep(1000);
}
} else if (aa == '2' && cd2 <= 0) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= 1;
if (abs(oi - rj) + abs(oj - ri) <= 7) {
cout << "你对对手造成了" << ((20 + fen2 / 100 * wugong) * (1 + shengda / 100))*(linjia / 100 + 1) << "点伤害\n";
if (zhuanhei == true) {
cd1--;
}
Sleep(200);
disheng = disheng - ((20 + wugong * fen2 / 100) * (1 + shengda / 100)) * (linjia / 100 + 1);
if (zhuan4 == true) {
cout << "多重投放额外" << ((20 + wugong * fen2 / 100) * (1 + shengda / 100)) * (linjia / 100 + 1);
disheng = disheng - ((20 + wugong * fen2 / 100) * (1 + shengda / 100)) * (linjia / 100 + 1);
Sleep(200);
}
if (disheng <= dishengmax / 2) {
cout << "(落井下石)你对对手造成了" << (20 + wugong * (1 + shengda / 100))*(luojin - 1) << "点伤害\n";
disheng = disheng - (20 + wugong * 1.5 * (1 + shengda / 100)) * (luojin - 1);
}
Sleep(1000);
}
if (jingda == true) {
cd2 = 4;
} else {
cd2 = 8;
}
} else if (aa == '3' && cdd <= 0) {
dachi = 6;
if (jingda == true) {
cdd = 5;
} else {
cdd = 9;
}
} else {
cdd++;
cd2++;
cd1++;
cdp++;
l--;
}
if (disheng <= 0) {
cout << "你赢了";
Sleep(1000);
dichao -= 20;
break;
}
cdd--;
cd2--;
cd1--;
cdp--;
l++;
}
} else if (b == 5) {
while (1) {
if (xing <= 0) {
while (duixing) {
cout << "对手回合";
Sleep(1000);
if (abs(oi - ri) + abs(oj - rj) <= 5 && duixing >= 2 && dcd2 == 0) {
cout << "对手释放滚动造成了" << diwugong << "点伤害";
duixing -= 1;
Sleep(1000);
sheng -= difagong;
dcd2 += 4;
} else if (abs(oi - ri) + abs(oj - rj) <= 5 && duixing >= 1 && dcd1 <= 0) {
cout << "对手普攻造成了" << (20 + diwugong) * 0.2 << "点伤害";
duixing -= 1;
sheng -= (20 + difagong * 0.2);
Sleep(1000);
dcd1++;
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
Sleep(2000);
}
} 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 (ri < oi) {
cout << "对手1坐标+1" << endl;
ri++;
duixing -= 1;
} else if (ri > oi) {
ri--;
cout << "对手1坐标-1" << endl;
duixing -= 1;
} else if (rj < oj) {
cout << "对手2坐标+1" << endl;
duixing -= 1;
rj++;
} else if (rj > oj) {
cout << "对手2 坐标-1" << endl;
duixing -= 1;
rj--;
}
cout << "目前坐标" << rj << "," << ri;
Sleep(400);
Sleep(2000);
}
dcd1--;
dcdd--;
dcd2--;
if (sheng <= 0) {
break;
cout << "你输了";
chao -= 20;
Sleep(1000);
}
}
xing += 6;
duixing = 6;
duixing -= jiandian;
}
system("cls");
if (sheng <= 0) {
cout << "你输了";
chao -= 20;
break;
}
system("cls");
cout << " 第" << l << "回合\n";
cout << "你的回合\n0.普攻,1.快迟到了,2.拍拍拍,3.淘气一击,w一坐标****一坐标-1,d二坐标+1,a二坐标-1\n行动点剩余" << xing << endl << " 生命" << sheng << " 对手血量" << disheng;
if (jingda == true) {
cout << "你的大招被禁用了";
}
cout << " 目前位置:" << "(" << oi << "," << oj << ")\n";
cout << " 对手目前位置:" << "(" << ri << "," << rj << ")\n";
char aa;
cin >> aa;
float linjia = 0, xing1 = 0, puxiao = 1;
if (dachi > 0) {
xing1 = 0.3;
puxiao = 0.5;
} else {
xing1 = 1;
}
if (aa == 'w') {
oi++;
xing -= 1;
Sleep(500);
}
if (aa == 's') {
oi--;
xing -= 1;
Sleep(500);
}
if (aa == 'd') {
oj++;
xing -= 1;
Sleep(500);
}
if (aa == 'a') {
oj--;
xing -= 1;
Sleep(500);
} else if (aa == '0' && cdp <= 0 && abs(oi - ri) + abs(oj - rj) <= 4) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= xing1;
cout << "你对对手造成了" << ((wugong * ((xul + shengda + 100) / 100) + (pue * dishengmax / 100)) * (linjia / 100 + 1))*puxiao << "点伤害\n";
disheng = disheng - ((wugong) * ((xul + shengda + 100) / 100) + (pue * dishengmax / 100)) * (linjia / 100 + 1) * puxiao;
shengda = 0;
for (int i = 0; i < ci; i++) {
if (he > 0) {
cout << "合金狼牙棒:造成了" << he*disheng * 0.01 << "点伤害\n";
disheng-=he*disheng*0.01;
}if(quan>0){
cout<<"巨人拳套:造成了"<<shengmax*quan*0.01;
disheng-=shengmax*quan*0.01;
}
}
if (xu == true && dachi < 0) {
cdp = 2;
}
Sleep(1000);
wugong += pujia;
} else if (aa == '1' && cd1 <= 0) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= 1;
if (jingda == true) {
cd1 = 3;
} else {
cd1 = 5;
}
if (abs(oi - rj) + abs(oj - ri) <= 5) {
cout << "你对对手造成了" << ((20 + wugong * 0.8) * (1 + shengda / 100))*(linjia / 100 + 1) << "点伤害\n";
if (zhuanhei == true) {
cd1--;
}
Sleep(200);
disheng = disheng - ((20 + wugong * 1.2) * (1 + shengda / 100)) * (linjia / 100 + 1);
if (disheng <= dishengmax / 2) {
cout << "(落井下石)你对对手造成了" << (20 + wugong * (1 + shengda / 100))*(luojin - 1) << "点伤害\n";
disheng = disheng - (20 + wugong * (1 + shengda / 100)) * (luojin - 1);
}
Sleep(1000);
}
} else if (aa == '2' && cd2 <= 0) {
dachi = 5;
cout << "你开启了拍拍拍";
if (jingda == true) {
cd2 = 7;
} else {
cd2 = 15;
}
} else if (aa == '3' && cdd <= 0) {
int g = rand() % 20;
if (g <= wubao) {
cout << "暴击!!,";
linjia = wubaos;
}
xing -= 1;
cout << "你对对手造成了" << ((wugong * 1.2) * (( shengda + 100) / 100) + (pue * dishengmax / 100))*(linjia / 100 + 1) << "点伤害\n";
disheng = disheng - ((wugong * 1.2) * (( shengda + 100) / 100) + (pue * dishengmax / 100)) * (linjia / 100 + 1);
shengda = 0;
if (xu == true && dachi < 0) {
cdp = 2;
}
Sleep(1000);
} else {
cdd++;
cd2++;
cd1++;
cdp++;
l--;
chi++;
}
if (disheng <= 0) {
cout << "你赢了";
Sleep(1000);
dichao -= 20;
break;
}
cdd--;
cd2--;
cd1--;
cdp--;
dachi--;
l++;
}
}else if(b==6){
}
if (mu < 7) {
if (dichao <= 0) {
int n = 80 - xingg / 100 - mu * 5;
if (n <= 30) {
n = 31;
}
for (int i = 0; i < n * cheng; i++) {
cout << "你的段位加星\n";
cout << "目前段位" << xingg << "星";
xingg++;
system("cls");
Sleep(5);
}
shengmax += jie;
}
if (chao <= 0) {
cout << "你的段位掉星\n";
cout << "目前段位" << xingg << "星";
int n = xingg / 100 + mu * 5;
if (n >= 50) {
n = 49;
}
for (int i = 0; i < n * cheng; i++) {
cout << "你的段位掉\n";
cout << "目前段位" << xingg << "星";
xingg--;
system("cls");
Sleep(5);
}
}
shengda = hui;
if (xingg >= 1000) {
mu++;
xingg -= 1000;
}
if (mu == 7) {
xingg = 0;
}
cout << "目前段位" << duan[mu] << "段" << xingg << "星";
Sleep(3000);
system("cls");
} else {
if (dichao <= 0) {
jia(1);
}
if (chao <= 0) {
jia(-9);
}
}
}
}
这里空空如也
有帮助,赞一个