1.5版本开始
你,准备好了吗?
本期新角色:
流萤 藿藿
流萤:平时耗血中攻,大招后一段回合增血强攻。
藿藿:战技为1名角色回大量血并为其相邻角色回少量血,大招增强全队的攻击力。
代码:
点击查看代码
#include<bits/stdc++.h>
#include<windows.h>
#include<stdio.h>
#include<conio.h>
#include<time.h>
#include<cmath>
using namespace std;
struct x{
int xue=100;
int yxue=100;
int ylan=100;
int lan=30;
int Agong=10;
int Egong=15;
int Qgong=50;
int dengji=1;
int baojigailv=1;
int baojibeilv=105;
int jingyan=0;
int chongneng=10;
int mingzuo=0;
int wupi=0-1;
bool y=0;
int xueren=10;
int shuxing=-1;
}juese[300];
struct debuff{
bool jipo=false;
int rendu=10;
bool ruodian[11];
int jianxue;
int jinggu;
}buff_di;
struct shitou{
int BJGLshi=0;
int BJSHshi=0;
int SMshi=0;
int SHshi=0;
int Lshi=0;
int CNshi=0;
}shi;
//wx行wy列
//属性:风(0 岩(1 雷(2 草(3 水(4 火(5 冰(6 物理(7 量子(8 虚数(9 异能(10
void tj();
bool ZD_molakesi();
bool ZD_fengmolong_YS();
void youxiang();
void jz();
void SJwuqi();
void cka();
void bb();
void ck();
void zhandou1();
void maoxian();
bool ZD_shuishilaimu();
bool ZD_fengmolong();
int juesej();
int baoji();
void Yshi();
void shengji();
void MXshengji();
int BeiBao();
void Jia();
void pengren();
void XingXi();
void JYshengji();
void wuqi();
void shangdian();
void SetPos(int x,int y);
bool ZD_molakesi_1jd();
bool ZD_molakesi_2jd();
bool ZD_molakesi_1jd_YS();
bool ZD_molakesi_2jd_YS();
void cka2();
void ditusc();
void GK_xz();
void zudui();
void techou1();
void techou2();
void tack2();
void tack1();
void twack();
void YCGK();
void techou();
bool ZD_MuZhuang(int n);
int bd,up,s,a,tbd,ts,tup,MXDengJi=1,hui,MX,MoLa=1000,wgong=0,shijie=0,jjss=0-1,tiwatejiandan=2,ZJD=0,shengshi=1;
int jidan=0,yuanshi=0,tsg[1001],wtsg[1001];
int upwq[100][2],swq[100][2],fwq[70][2],kachi;
int DW[5];
bool VIP,TX,GK[1001],lq=false,upqh=false;
int js;
struct JYS{
int DYXdjy=0;
int LLZdjy=0;
int MXJdjy=0;
}JingYanShu;
char NAME[110];//名字
int n,x;
int ditu[51][51];
int wx,wy;
int dt1=20,dt2=20;
char t;
bool flag=true;
bool uppf[100],wpf[100],spf[100];
void sc(string n)
{
for(int i=0;i<n.size();i++)
{
cout<<n[i];
Sleep(10);
}
puts("");
Sleep(15);
}
void open()
{
ifstream in("ysck.txt");
in>>bd;
in>>up;
in>>s;
in>>a;
for(int i=0;i<100;i++) in>>uppf[i];
for(int i=0;i<100;i++) in>>wpf[i];
for(int i=0;i<100;i++) in>>spf[i];
for(int i=0;i<100;i++) in>>upwq[i][0];
for(int i=0;i<100;i++) in>>swq[i][0];
for(int i=0;i<70;i++) in>>fwq[i][0];
in>>tup;
in>>ts;
in>>tbd;
in>>upqh;
in.close();
}
void cclose()
{
ofstream out("ysck.txt");
out<<bd<<" ";
out<<up<<" ";
out<<s<<" ";
out<<a<<" ";
for(int i=0;i<100;i++) out<<uppf[i]<<" ";
for(int i=0;i<100;i++) out<<wpf[i]<<" ";
for(int i=0;i<100;i++) out<<spf[i]<<" ";
for(int i=0;i<100;i++) out<<upwq[i][0]<<" ";
for(int i=0;i<100;i++) out<<swq[i][0]<<" ";
for(int i=0;i<70;i++) out<<fwq[i][0]<<" ";
out<<tup<<" ";
out<<ts<<" ";
out<<tbd<<" ";
out<<upqh<<" ";
}
void open2()
{
ifstream in("ysjs.txt");
in>>NAME;
for(int i=0;i<300;i++){
in>>juese[i].yxue;
in>>juese[i].xue;
in>>juese[i].ylan;
in>>juese[i].lan;
in>>juese[i].Agong;
in>>juese[i].Egong;
in>>juese[i].Qgong;
in>>juese[i].dengji;
in>>juese[i].baojibeilv;
in>>juese[i].baojigailv;
in>>juese[i].chongneng;
}
for(int i=0;i<300;i++)
in>>juese[i].mingzuo;
for(int i=0;i<300;i++)
in>>juese[i].wupi;
for(int i=0;i<300;i++){
in>>juese[i].xueren;
in>>juese[i].shuxing;
}
in.close();
}
void cclose2()
{
ofstream out("ysjs.txt");
out<<NAME<<"\n";
for(int i=0;i<300;i++){
out<<juese[i].yxue<<" ";
out<<juese[i].xue<<" ";
out<<juese[i].ylan<<" ";
out<<juese[i].lan<<" ";
out<<juese[i].Agong<<" ";
out<<juese[i].Egong<<" ";
out<<juese[i].Qgong<<" ";
out<<juese[i].dengji<<" ";
out<<juese[i].baojibeilv<<" ";
out<<juese[i].baojigailv<<" ";
out<<juese[i].chongneng<<" ";
}
for(int i=0;i<300;i++)
out<<juese[i].mingzuo<<" ";
for(int i=0;i<300;i++)
out<<juese[i].wupi;
for(int i=0;i<300;i++){
out<<juese[i].xueren;
out<<juese[i].shuxing;
}
}
void open3()
{
ifstream in("yszy.txt");
in>>JingYanShu.LLZdjy;
in>>JingYanShu.MXJdjy;
in>>JingYanShu.DYXdjy;
in>>yuanshi;
in>>MoLa;
in>>VIP;
for(int i=1;i<=1000;i++){
in>>GK[i];
}
in>>hui;
in>>shengshi;
in>>shi.BJGLshi;
in>>shi.BJSHshi;
in>>shi.CNshi;
in>>shi.Lshi;
in>>shi.SHshi;
in>>shi.SMshi;
in.close();
}
void cclose3()
{
ofstream out("yszy.txt");
out<<JingYanShu.LLZdjy<<" ";
out<<JingYanShu.MXJdjy<<" ";
out<<JingYanShu.DYXdjy<<"\n";
out<<yuanshi;
out<<" "<<MoLa<<"\n";
out<<VIP<<" ";
for(int i=1;i<=1000;i++){
out<<GK[i]<<" ";
}
out<<hui<<" ";
out<<shengshi<<" ";
out<<shi.BJGLshi<<" ";
out<<shi.BJSHshi<<" ";
out<<shi.CNshi<<" ";
out<<shi.Lshi<<" ";
out<<shi.SHshi<<" ";
out<<shi.SMshi<<" ";
}
void open4()
{
ifstream in("ysfl.txt");
in>>lq;
in.close();
}
void cclose4()
{
ofstream out("ysfl.txt");
out<<lq;
}
int main()
{
srand((unsigned)time(NULL));
CONSOLE_CURSOR_INFO cursor_info={1,0};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
system("mode con cols=120 lines=30");
if (MessageBox(0, TEXT("请不要输入中文,否则将导致游戏崩溃!"), TEXT("重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK)
{
MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("重要提示"), MB_OK);
return 0;
};
char cz;
system("title 原神");
//jz();//出场动画
cout<<"==================================\n";
cout<<"是(y)否(n)读档?(没存档就别乱来)\n";
char DXxz;
cin>>DXxz;
if(DXxz=='y'){open();open2();open3();open4();cout<<".";Sleep(100);cout<<".";Sleep(100);cout<<".";Sleep(100);cout<<".";Sleep(100);cout<<".";Sleep(100);cout<<".";Sleep(100);cout<<"\n完成!";Sleep(500);}
else{
system("cls");
cout<<"输入你的名字:";
cin>>NAME;
if(NAME[0]=='G'&&NAME[1]=='E'&&NAME[2]=='N'&&NAME[3]=='S'&&NAME[4]=='H'&&NAME[5]=='I'&&NAME[6]=='N'){
yuanshi+=1000000;
JingYanShu.DYXdjy+=100;
}
cout<<"OK!";
Sleep(800);
system("cls");
cout<<"送你个角色\n获得——云堇!";
spf[0]=1;
Sleep(1000);
}
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
system("cls");
while(1)
{
if(yuanshi>999999999) yuanshi=999999999;
if(MoLa>999999999) MoLa=999999999;
printf(//输入对应编号进入程序
"=======================================================================================================================\n"
"| |\n"
"| 1.**************抽卡* 2.****************图鉴* 3.************冒险* 4.家*********** 5.信息********** |\n"
"| | &&& & & | | &&&&&&& & | | o__ o | | ■■■■ | | __O__ | |\n"
"| | & & & | | & & | | C| o o o| | ■■■■■ | | | | |\n"
"| | & &&& | | & & & | | /] o | | | | | | | | | |\n"
"| | &&& & & | | & && | | / | | | | | | | | | |\n"
"| ------------------- ----------------------- ------------------- --------------- ---------------- |\n"
"| 6.**************商店* 7.****************关卡* |\n"
"| | ■■■■■■ | | O ^ * * | |\n"
"| | ■■ | O | ■■ | } /|>| * ** * * { |\n"
"| | + | Y | + | | /]| * * | |\n"
"| | ■■■■■■ | { / | * } |\n"
"| --------------------- ----------------------- |\n"
"| |\n"
"| P烹饪 D队伍 Y邮箱 T特抽 |\n"
"| |\n"
"|注:按0退出 |\n"
"=======================================================================================================================\n"
);
cin>>cz;
if(cz=='0') break;
if(cz=='1')
ck();
else if(cz=='2')
tj();
else if(cz=='3') maoxian();
else if(cz=='4') Jia();
else if(cz=='5') XingXi();
else if(cz=='6') shangdian();
else if(cz=='P'||cz=='p') pengren();
else if(cz=='7') GK_xz();
else if(cz=='D'||cz=='d') zudui();
else if(cz=='Y'||cz=='y') youxiang();
else if(cz=='T'||cz=='t') techou();
else if(cz=='!') YCGK();
else cout<<"你按错了!!!",Sleep(500);
system("cls");
}
}
void Jia(){
while(1){
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
system("cls");
printf(//输入对应编号进入程序
"=======================================================================================================================\n"
"| 1.存档 |\n"
"| |\n"
"| 2.回复 |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"|注:按0退出 |\n"
"=======================================================================================================================\n"
);
int xz;
cin>>xz;
if(xz==0) break;
else if(xz==1){
cclose(),cclose2(),cclose3(),cclose4();
cout<<"Waiting";
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<'.',Sleep(300);
cout<<"Finish!";
Sleep(700);
}
else if(xz==2){
if(MoLa<200){
cout<<"这年头,连饭都吃不起...";
Sleep(900);
if(juese[jjss].xue<=0){
cout<<"\n算了,可怜一下你吧";
juese[DW[1]].lan=juese[DW[1]].ylan;
juese[DW[1]].xue=juese[DW[1]].yxue;
juese[DW[2]].lan=juese[DW[2]].ylan;
juese[DW[2]].xue=juese[DW[2]].yxue;
juese[DW[3]].lan=juese[DW[3]].ylan;
juese[DW[3]].xue=juese[DW[3]].yxue;
juese[DW[4]].lan=juese[DW[4]].ylan;
juese[DW[4]].xue=juese[DW[4]].yxue;
Sleep(900);
}
}
else if(juese[jjss].xue==juese[jjss].yxue){
cout<<"吃饱了还来干什么!";
Sleep(900);
}
else{
cout<<"消耗了400摩拉,回满了血、蓝";
juese[DW[1]].lan=juese[DW[1]].ylan;
juese[DW[1]].xue=juese[DW[1]].yxue;
juese[DW[2]].lan=juese[DW[2]].ylan;
juese[DW[2]].xue=juese[DW[2]].yxue;
juese[DW[3]].lan=juese[DW[3]].ylan;
juese[DW[3]].xue=juese[DW[3]].yxue;
juese[DW[4]].lan=juese[DW[4]].ylan;
juese[DW[4]].xue=juese[DW[4]].yxue;
Sleep(900);
}
}
else cout<<"你按错了!!!",Sleep(500);
system("cls");
}
}
void ck()
{
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
system("cls");
srand(time(0));
cout<<"你好!\n";
Sleep(500);
bool h=0;
cout<<"我是您的抽卡小助手,接下来是抽卡的一些小规则\n\n";
Sleep(100);
while(1)
{
cout<<"*****************************************\n";
cout<<"* 1.卡池分为武器池和UP池,本次UP为高 *\n";
cout<<"* 天的歌者——温迪、尘世闲游——钟离, *\n";
cout<<"* 五星(S级)陪跑为迪锅巴,琴团长,四星( *\n";
cout<<"* A级)陪跑若干,九十抽小保底,一百八十 *\n";
cout<<"* 抽大保底。 *\n";
cout<<"* 2.武器池up为和璞鸢、终末嗟叹之诗 *\n";
cout<<"* 注:按a一抽,按s十连,0退出,按b背包 *\n";
cout<<"* 五星出率:%2 UP出率(已出五星):%10 *\n";
cout<<"* 一发所需原石:160 按h换卡池,默认up池为 *\n";
cout<<"* 换up池请按1(温迪)2(钟离),武器池无保底 *\n";
cout<<"*****************************************\n";
cout<<"目前原石:"<<yuanshi<<"个\n";
t=_getch();
if(t=='1'){
kachi=1;
}
if(t=='2'){
kachi=2;
}
if(t=='h'){
if(h==false) h=true;
else h=false;
cout<<"已换卡池\n";
Sleep(800);
system("cls");
continue;
}
if(t!='a'&&t!='s'&&t!='b'&&t!='0')
{
cout<<"你按错了!!";
Sleep(600);
system("cls");
continue;
}
if(t=='a')
{
if(yuanshi<160){
cout<<"你的原石不够了\n";
Sleep(700);
system("cls");
continue;
}
else{
yuanshi-=160;
if(h==0)
cka();
if(h==1){
cka2();
Sleep(800);
system("cls");
continue;
}
}
}
if(t=='0')
break;
if(t=='s')
{
if(yuanshi<1600){
cout<<"你的原石不够了\n";
Sleep(700);
system("cls");
continue;
}
else{
yuanshi-=1600;
for(int i=1;i<=10;i++)
{
if(h==false)
cka();
if(h==true){
cka2();
}
}
}
}
if(s>99&&h==0){
s=100;
cout<<"目前五星99+个 ";
}
else cout<<"目前五星"<<s<<"个 UP";
if(up>99&&h==0){
up=100;
cout<<"99+个 四星";
}
else cout<<up<<"个 四星";
if(a>99&&h==0){
a=100;
cout<<"99+个 距离大保底还有";
}
else cout<<a<<"个 距离大保底还有";
if(h==0) cout<<180-bd<<"次\n";
if(t=='b')
{
bb();
}
cclose();
Sleep(2000);
system("cls");
}
system("cls");
}
void jz(){
// SetFont(30);
system("color F0");
cout<<"\n\n\n\n\n\n\n\n\n\n 玖葉";
Sleep(2000);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 原神\n\n\n\n\n\n\n\n\n\n\n\n\n\nGAME制作:玖葉 剧情策划:玖葉 如侵立删";
Sleep(2000);
// SetFont(20);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
cout<<" 火 水 风 雷 草 冰 岩";
Sleep(1000);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 水 风 雷 草 冰 岩";
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 风 雷 草 冰 岩";
Sleep(1000);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),250);
cout<<" 风";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 雷 草 冰 岩";
Sleep(600);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),250);
cout<<" 风";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),245);
cout<<" 雷";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 草 冰 岩";
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),250);
cout<<" 风";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),245);
cout<<" 雷";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),242);
cout<<" 草";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 冰 岩";
Sleep(895);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),250);
cout<<" 风";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),245);
cout<<" 雷";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),242);
cout<<" 草";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),251);
cout<<" 冰";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),240);
cout<<" 岩";
Sleep(1599);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n 加载中\n\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),252);
cout<<" 火";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),249);
cout<<" 水";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),250);
cout<<" 风";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),245);
cout<<" 雷";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),242);
cout<<" 草";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),251);
cout<<" 冰";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),254);
cout<<" 岩";
system("cls");
system("color F0");
Sleep(20);
system("color 70");
Sleep(20);
system("color 80");
Sleep(20);
system("color 0F");
Sleep(500);
}
void cka2(){
int x=rand()%100;
if(x==50||x==16)//五星
{
x=rand()%10;
if(x==2){
x=rand()%2;
if(x==1){
cout<<"获得——终末嗟叹之诗!!\n";
upwq[0][0]=1;
upwq[0][1]=45;
}
else{
cout<<"获得——和璞鸢!!\n";
upwq[1][0]=1;
upwq[1][1]=60;
}
}
else{
cout<<"获得——狼的末路!\n";
upwq[2][0]=1;
upwq[2][1]=40;
}
}
else if(x>10&&x<20){
x=rand()%2;
if(x==1){
cout<<"获得——祭礼剑\n";
swq[0][0]=1;
swq[0][1]=30;
}
else{
cout<<"获得——笛剑\n";
swq[1][0]=1;
swq[1][1]=20;
}
}
else{
cout<<"获得——依托答辩(*O▽0*)??\n";
}
}
void cka(){
x=rand()%1000;
if(x>=11&&x<=21||x>=597&&x<=607||bd>=90)//五星
{
s++;
x=rand()%100;
if(x>11&&x<17||x==99||x==43||x>=50&&x<=53||bd>=180||upqh)
{
if(kachi==1)
{
cout<<"获得——温迪!\n";
if(uppf[2]==1){
if(juese[2].mingzuo<6)
juese[2].mingzuo++;
else{
hui+=100;
}
}
if(uppf[2]==false){
juese[2].Agong=8;
juese[2].baojibeilv=120;
juese[2].baojigailv=11;
juese[2].Egong=15;
juese[2].lan=32;
juese[2].Qgong=75;
juese[2].xue=110;
juese[2].ylan=100;
juese[2].yxue=110;
juese[2].xueren=20;
juese[2].shuxing=0;
}
uppf[2]=1;
hui+=50;
up++;
}
else
{
cout<<"获得——钟离!\n";
if(uppf[1]==1){
if(juese[1].mingzuo<6)
juese[1].mingzuo++;
else{
hui+=100;
}
}
uppf[1]=1;
if(uppf[1]==false){
juese[1].Agong=15;
hui+=50;
juese[1].baojibeilv=120;
juese[1].baojigailv=10;
juese[1].Egong=20;
juese[1].lan=40;
juese[1].Qgong=60;
juese[1].xue=130;
juese[1].ylan=100;
juese[1].yxue=100;
juese[1].xueren=30;
juese[1].shuxing=1;
}
up++;
}
bd=0;
}
else
{
upqh=true;
x=rand()%10;
if(x==1||x==5||x==2||x==10||x==7){
cout<<"获得——迪卢克!\n";
if(wpf[0]==false){
wpf[0]=1,juese[4].Agong=11,juese[4].baojibeilv=119,juese[4].baojigailv=20,juese[4].Egong=21,juese[4].lan=31,juese[4].Qgong=65,juese[4].xue=100,juese[4].ylan=100,juese[4].yxue=100;
}
hui+=30;
if(wpf[0]==1){
if(juese[4].mingzuo<6)
juese[4].mingzuo;
else
hui+=100;
}
}
else{
cout<<"获得——琴团长!\n";
wpf[2]=1,hui+=30,juese[6].Agong=10,juese[6].baojibeilv=116,juese[6].baojigailv=15,juese[6].Egong=22,juese[6].lan=29,juese[6].Qgong=60,juese[6].xue=100,juese[6].ylan=100,juese[6].yxue=100;
if(wpf[2]==1){
if(juese[6].mingzuo<6)
juese[6].mingzuo;
else
hui+=100;
}
}
}
}
else
{
x=rand()%100;
if(x>=22&&x<=66)
{
x=rand()%100;
if(x>=1&&x<=20) cout<<"获得——云堇!\n",spf[0]=1;
else if(x>=21&&x<=40) cout<<"获得——班尼特!\n",spf[1]=1;
else if(x>=41&&x<=60) cout<<"获得——行秋!\n",spf[2]=1;
else if(x>=61&&x<=80) cout<<"获得——久岐忍!\n",spf[3]=1;
else if(x>=81&&x<=100) cout<<"获得——香菱!\n",spf[4]=1;
a++;
hui+=1;
}
else
cout<<"依托答辩\n";
bd++;
}
}
void bb(){
cout<<NAME<<"的角色库\n-----------------------------------------------------\n";
int y=1;
for(int i=0;i<14;i++)
{
switch(i)
{
case 0:if(uppf[0])cout<<y<<'.',sc("爱莉希雅"),y++;break;
case 1:if(uppf[1])cout<<y<<'.',sc("钟离"),y++;break;
case 2:if(uppf[2])cout<<y<<'.',sc("温迪"),y++;break;
case 3:if(uppf[3])cout<<y<<'.',sc("魈"),y++;break;
case 4:if(uppf[4])cout<<y<<'.',sc("镜流"),y++;break;
case 5:if(uppf[5])cout<<y<<'.',sc("流萤"),y++;break;
case 6:if(uppf[6])cout<<y<<'.',sc("藿藿"),y++;break;
case 7:if(wpf[0])cout<<y<<'.',sc("迪卢克"),y++;break;
case 8:if(wpf[1])cout<<y<<'.',sc("提纳里"),y++;break;
case 9:if(wpf[2])cout<<y<<'.',sc("琴团长"),y++;break;
case 10:if(spf[0])cout<<y<<'.',sc("云堇"),y++;break;
case 11:if(spf[1])cout<<y<<'.',sc("班尼特"),y++;break;
case 12:if(spf[2])cout<<y<<'.',sc("行秋"),y++;break;
case 13:if(spf[3])cout<<y<<'.',sc("久岐忍"),y++;break;
case 14:if(spf[4])cout<<y<<'.',sc("香菱"),y++;break;
case 15:if(wpf[3])cout<<y<<'.',sc("克拉拉"),y++;break;
}
}
}
void tj(){
int x=1;
system("cls");
while(x!=0)
{
sc("0退出");
cout<<1<<'.',sc("爱莉希雅");
cout<<2<<'.',sc("钟离");
cout<<3<<'.',sc("温迪");
cout<<4<<'.',sc("魈");
cout<<5<<'.',sc("迪卢克");
cout<<6<<'.',sc("提纳里");
cout<<7<<'.',sc("琴团长");
cout<<8<<'.',sc("云堇");
cout<<9<<'.',sc("班尼特");
cout<<10<<'.',sc("行秋");
cout<<11<<'.',sc("久岐忍");
cout<<12<<'.',sc("香菱");
sc("请输入查询编号:");
cin>>x;
system("cls");
if(x==0) break;
switch(x)
{
case 1:sc("爱莉希雅");
sc("背景资料:");
cout<<"凡事任凭心意而为,自由自在,与副首领身份格格不入的少女。亦是逐火英桀的创立者,聚集并维系此十三人的核心人物。\n";
Sleep(1000);
cout<<"只在喜欢的人上花时间,但每个人都很喜欢;只在有趣的事上花心思,但每件事都很有趣——心怀如此信念,带着真诚与热情拥抱每一天的纯真女孩\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 2:sc("钟离");
sc("背景资料:");
cout<<"钟离样貌俊美,举止高雅,拥有远超常人的学识。\n";
Sleep(1000);
cout<<"虽说来历不明,却知礼数、晓规矩。坐镇“往生堂”,能行天地万物之典仪。\n";
cout<<"PS:俗称街溜子\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 3:sc("温迪");
sc("背景资料:");
cout<<"自由城邦蒙德的建立者,“尘世七执政”中的风神,为了让蒙德人民得到自由而放弃治理。\n";
Sleep(600);
cout<<"千年后重返蒙德,辅助奴隶少女温妮莎推翻贵族的残暴统治,设立四风守护。\n";
Sleep(600);
cout<<"又过千年,愚人众和深渊教团令蒙德内外交困,因而引来神的回归。\n";
cout<<"解救被深渊教团操控的东风之龙。\n";
cout<<"PS:俗称卖唱的\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 4:sc("魈");
sc("背景资料:");
cout<<"守护璃月港的“三眼五显仙人”之一,妙称“护法夜叉大将”。\n";
Sleep(500);
cout<<"虽然外表看起来是一个少年人,但一些有关他的传说,已在古卷中流传千年。\n";
Sleep(500);
cout<<"在仙人之间,魈的辈分与声望堪称翘楚,但在人间,他的名望并不高。\n";
Sleep(500);
cout<<"因为他既非招揽富贵、庇佑世人安康的福星;也非手握仙道,高居在绝云间的圣众。\n";
cout<<"PS:又称抬头不见低头见真君o(^▽^)o\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 5:sc("迪卢克");
sc("背景资料");
cout<<"身为蒙德城第一富豪,风度翩翩的迪卢克总是以完美的贵公子形象示人。\n";
Sleep(1000);
cout<<"然而他真实的一面,是秉承坚定信念的战士,他那“不惜一切守护蒙德”的意志犹如火焰般炽热,令他能以恐怖的攻势,毫不留情地将一切敌人击溃。\n";
cout<<"PS:俗称迪锅巴\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 6:sc("提纳里");
sc("背景资料");
cout<<"道成林的巡林官,毕业于须弥教令院阿弥利多学院的生论派植物学学者。\n";
Sleep(800);
cout<<"每天都过着巡查雨林、保护生态、教训笨蛋的充实生活。\n";
Sleep(800);
cout<<"提纳里是巴螺迦修那和人类的混血后代,但不同于父亲,提纳里不擅长应付烈日。\n晒久了脑袋里就一团浆糊,晃晃荡荡的。\n";
cout<<"PS:歪过诶\n";
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
case 7:sc("琴·古恩希尔德");
sc("背景资料");
cout<<"蒙德城西风骑士团代理团长,四风守护中的南风之狮。\n",Sleep(700);
cout<<"身为西风骑士团的代理团长,琴一直忠于职守,为人们带来安宁。\n",Sleep(700);
cout<<"虽然并非天赋异禀,但通过刻苦训练,如今的她已然能够独当一面。\n",Sleep(700);
cout<<"当风魔龙的威胁开始临近,这位可靠的代理团长早已做好了准备,誓要守护蒙德。\n",Sleep(700);
printf("按下任意键继续...");
while(1){
if(kbhit())
break;
}
system("cls");
break;
default:
sc("四星不想做……(~^▽^)~ "),Sleep(500);
system("cls");
}
}
}
void SetPos(int x,int y)
{
COORD pos;
pos.X=y*2,pos.Y=x;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
void jueseshiyong()
{
while(1)
{
system("cls");
cout<<"请输入你要用的角色:\n";
cout<<1<<'.'<<"|t_爱莉希雅_t|\n";
cout<<2<<'.'<<"w钟离w\n";
cout<<3<<'.'<<"w温迪w\n";
cout<<4<<'.'<<"w魈w\n";
cout<<5<<'.'<<"w迪卢克w\n";
cout<<6<<'.'<<"w提纳里w\n";
cout<<7<<'.'<<"w琴团长w\n";
cout<<8<<'.'<<"云堇\n";
cout<<9<<'.'<<"班尼特\n";
cout<<10<<'.'<<"行秋\n";
cout<<11<<'.'<<"久岐忍\n";
cout<<12<<'.'<<"香菱\n";
cout<<13<<'.'<<"|t_镜流_t|\n";
cout<<14<<'.'<<"tw克拉拉wt\n";
cout<<15<<'.'<<"|t_流萤_t|\n";
cout<<16<<'.'<<"|t_藿藿_t|\n";
cin>>js;
if(js<1||js>16) cout<<"乱搞什么!";
if((js==1&&uppf[0]==0)||(js==2&&uppf[1]==0)||(js==3&&uppf[2]==0)||(js==4&&uppf[3]==0)||(js==5&&wpf[0]==0)||(js==6&&wpf[1]==0)||(js==7&&wpf[2]==0)||(js==8&&spf[0]==0)||(js==9&&spf[1]==0)||(js==10&&spf[2]==0)||(js==11&&spf[3]==0)||(js==12&&spf[4]==0)||(js==13&&uppf[4]==0)||(js==14&&wpf[3]==0)||(js==15&&uppf[5]==0)||(js==16&&uppf[6]==0))
cout<<"还没抽到呢~~";
else{jjss=js-1;juese[jjss].y=1;break;}
Sleep(600);
system("cls");
}
}
bool ZD_shuishilaimu()
{
ZJD=3;
int gxue=100*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=20;
buff_di.ruodian[2]=true;
buff_di.ruodian[5]=true;
buff_di.ruodian[6]=true;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,xz;
long long gg=0;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(glan>=10){
glan-=10;
int y=rand()%100+1;
gg=10;
if(y>=0&&y<=45){
gg=gg*1.0/100*110;
}
}
cout<<"你受到了"<<gg<<"点伤害\n";
if(jjss==13){
cout<<"水史莱姆受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
Sleep(600);
juese[jjss].xue-=gg;
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/4的摩拉";
MoLa=MoLa*1.0/4;
Sleep(1000);
return false;
}
if(tsg[14]>0)
tsg[14]--;
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}
int juesej()
{
while(1){
system("cls");
cout<<"1.普攻(A)\n2.战技(E)\n3.爆发(Q)\n";
long long xz,xz1,gg=0;
cin>>xz;
if(jjss==0&&juese[0].mingzuo>3){
gg+=20;
}
if(xz==1){
gg+=juese[jjss].Agong;
if(jjss==12&&tsg[12]>0){
cout<<"不可用\n";
continue;
}
else if(jjss==12&&juese[12].mingzuo>=5){
gg=gg*3;
}
else{
if(ZJD<6)
ZJD++;
gg=gg;
}
if(jjss==0&&tsg[0]<8){
tsg[0]++;
}
if(jjss==14&&tsg[14]>0){
tsg[14]--;
gg=gg*1.0/100*juese[jjss].Qgong+juese[jjss].xue/2*(juese[jjss].mingzuo);
juese[jjss].xue+=juese[jjss].yxue*1.0/100*15;
}
}
if(xz==2){
if(ZJD>=1&&!(juese[jjss].mingzuo>=1&&jjss==14&&tsg[14]>0)){
if(jjss==15){
system("cls");
cout<<"你选哪个角色?(1)(2)(3)(4)\n";
cin>>xz1;
if(tsg[15]<4){
tsg[15]++;
}
else if(tsg[15]==4){
gg+=juese[jjss].yxue*1.0/100*14;
}
gg+=juese[jjss].Egong+juese[jjss].xue*1.0/4;
}
if(jjss==12&&tsg[12]>0){
tsg[12]--;
juese[jjss].xue-=100;
gg+=juese[jjss].Egong+juese[jjss].Agong*juese[jjss].baojibeilv;
}
else if(jjss==12&&juese[12].mingzuo>=5){
gg+=juese[jjss].Egong*10;
}
else{
ZJD--;
if(jjss==1) gg+=juese[jjss].xue/2+juese[jjss].Egong;
else gg+=juese[jjss].Egong;
}
if(jjss==0&&tsg[0]<8){
tsg[0]++;
}
if(jjss==14){
if(juese[jjss].xue>juese[jjss].Egong)
juese[jjss].xue-=juese[jjss].Egong;
else
juese[jjss].xue--;
gg=gg*1.5;
}
}
else if(jjss==14&&tsg[14]>0&&juese[jjss].mingzuo>=1){
gg=juese[jjss].Egong;
tsg[14]--;
gg=gg*1.0/100*juese[jjss].Qgong+juese[jjss].baojibeilv*(juese[jjss].mingzuo+1);
juese[jjss].xue+=juese[jjss].yxue*1.0/100*55;
}
}
if(xz==3){
if(juese[jjss].lan>=juese[jjss].ylan){
if(jjss==15){
tsg[15]=8;
}
if(jjss==12&&juese[12].mingzuo>=5){
gg+=juese[jjss].Qgong*1280;
}
else if(jjss==14&&tsg[14]>0){
cout<<"不可用!";
continue;
}
else if(jjss==14){
gg=0;
tsg[14]+=6;
}
else if(jjss==15){
gg=0;
}
else{
juese[jjss].lan-=juese[jjss].ylan;
gg+=juese[jjss].Qgong;
}
if(jjss==13){
tsg[13]+=4;
}
else if(jjss==12){
tsg[12]+=2;
}
else if(jjss==0){
tsg[0]+=9;
}
}
}
if(jjss==15&&xz==2){
juese[DW[xz1]].xue+=gg*2;
if(xz1-1!=0){
juese[DW[xz1-1]].xue+=gg;
}
if(xz1+1!=5){
juese[DW[xz1+1]].xue+=gg;
}
return 0;
}
if(tsg[15]>4){
tsg[15]--;
gg=gg*1.0/100*juese[15].Qgong;
}
if(jjss==0&&juese[jjss].wupi==1){
tsg[0]++;
}
if(jjss==0&&juese[0].mingzuo>=6){
gg=gg*1.0/100*1296;
}
if(jjss==0&&tsg[0]>=4&&tsg[0]<9){
gg=gg*1.0/100*648;
tsg[0]-=4;
}
if(jjss==0&&tsg[0]>=7){
tsg[0]-=2;
gg=gg*1.0/100*juese[jjss].baojibeilv;
gg=gg*1.0/100*juese[jjss].Qgong;
}
if(jjss==1&&xz==2){
juese[DW[rand()%4+1]].xue+=gg;
return 0;
}
if(jjss==14&&juese[jjss].mingzuo>=3){
gg=gg*(juese[jjss].mingzuo*10);
}
if(gg+upwq[(juese[jjss].wupi)-1][1]<1000000000)
return gg+upwq[(juese[jjss].wupi)-1][1];
else
return 999999999;
cout<<"乱搞什么!";
Sleep(500);Sleep(500);
system("cls");
gg=0;
}
}
int baoji()
{
int BJ=rand()%100+1;
if(BJ>=1&&BJ<=juese[jjss].baojigailv){
cout<<"并且暴击!\n";
long long x=juese[jjss].baojibeilv;
juese[jjss].lan+=10;
return x;
}
else return 100;
}
void shengji()
{
system("cls");
juese[jjss].jingyan-=juese[jjss].dengji*10;
juese[jjss].dengji++;
cout<<"\n升级啦!\n";
cout<<"血量上限+10,血量回满\n";
cout<<"蓝量回满\n";
cout<<"Q攻击力+30\n";
cout<<"E攻击力+20\n";
cout<<"A攻击力+10\n";
juese[jjss].yxue+=10;juese[jjss].xue=juese[jjss].yxue;
juese[jjss].lan=juese[jjss].ylan;
juese[jjss].Agong+=10;
juese[jjss].Egong+=20;
if(jjss==0){
cout<<"您的角色为爱莉希雅,Q攻击力+15\n";
juese[jjss].Qgong+=15;
}
else
juese[jjss].Qgong+=30;
}
void MXshengji()
{
system("cls");
cout<<"冒险等级提升了!\n";
MX-=MXDengJi*10;
MXDengJi++;
Sleep(900);
system("cls");
}
int BeiBao()
{
system("cls");
cout<<"背包里有:\n1.提瓦特煎蛋X";
cout<<tiwatejiandan<<"个\n";
cout<<"你要用:";
int xz;
cin>>xz;
if(xz==1){
juese[jjss].xue+=5;
tiwatejiandan--;
cout<<"血量+5\n";
Sleep(800);
}
system("cls");
}
void maoxian()
{
system("cls");
jueseshiyong();
DW[1]=jjss;
jueseshiyong();
DW[2]=jjss;
jueseshiyong();
DW[3]=jjss;
jueseshiyong();
DW[4]=jjss;
while(1)
{
system("cls");
cout<<"------(我是分割线~~)----------------------\n";
cout<<"1.虐待水史莱姆\n2.探索\n3.逛图\n0.退出\n请选择:";
int xz;
cin>>xz;
if(xz==1)
ZD_shuishilaimu();
if(xz==2)
{
int x=rand()%10;
if(x==0){
cout<<"------(我是分割线~~)----------------------\n";
cout<<"发现原石!!!";
int x1=rand()%10;
if(x1<=7&&x1>=3){
cout<<"\n原石+10";
yuanshi+=10;
}
else{
cout<<"\n原石+4800";
yuanshi+=160;
}
}
else if(x>=1&&x<=5){
cout<<"------(我是分割线~~)----------------------\n";
cout<<"鸡蛋+2";
jidan+=2;
}
else if(x>=6&&x<=7){
cout<<"------(我是分割线~~)----------------------\n";
int xx=rand()%4;
if(xx==1){
cout<<"冒险家的经验+10";
JingYanShu.MXJdjy+=10;
}
else if(xx==2){
int xx2=rand()%10;
if(xx2==1||xx2==2){
cout<<"大英雄的经验+100";
JingYanShu.DYXdjy+=100;
}
else{
cout<<"大英雄的经验+10";
JingYanShu.DYXdjy+=10;
}
}
else{
cout<<"流浪者的经验+200";
JingYanShu.LLZdjy+=200;
}
}
else{
cout<<"啥也没有";
}
Sleep(1000);
system("cls");
}
if(xz==3){
wx=1;
wy=1;
/*ditu[1][1]=2;ditu[1][2]=2;ditu[1][3]=2;ditu[1][4]=2;ditu[1][5]=2;ditu[1][6]=2;ditu[1][7]=2;ditu[1][8]=2;ditu[1][9]=2;ditu[1][10]=2;ditu[1][11]=2;ditu[1][12]=2;ditu[1][13]=2;ditu[1][14]=2;ditu[1][15]=2;ditu[1][16]=2;ditu[1][17]=2;ditu[1][18]=2;ditu[1][19]=2;ditu[1][20]=2;
ditu[2][1]=2;ditu[2][2]=1;ditu[2][3]=2;ditu[2][4]=2;ditu[2][5]=2;ditu[2][6]=2;ditu[2][7]=2;ditu[2][8]=2;ditu[2][9]=2;ditu[2][10]=2;ditu[2][11]=2;ditu[2][12]=2;ditu[2][13]=2;ditu[2][14]=2;ditu[2][15]=2;ditu[2][16]=2;ditu[2][17]=2;ditu[2][18]=2;ditu[2][19]=2;ditu[2][20]=2;
ditu[3][1]=2;ditu[3][2]=0;ditu[3][3]=2;ditu[3][4]=2;ditu[3][5]=2;ditu[3][6]=2;ditu[3][7]=2;ditu[3][8]=2;ditu[3][9]=2;ditu[3][10]=2;ditu[3][11]=2;ditu[3][12]=2;ditu[3][13]=2;ditu[3][14]=2;ditu[3][15]=2;ditu[3][16]=2;ditu[3][17]=2;ditu[3][18]=2;ditu[3][19]=2;ditu[3][20]=2;
ditu[4][1]=2;ditu[4][2]=0;ditu[4][3]=2;ditu[4][4]=2;ditu[4][5]=2;ditu[4][6]=2;ditu[4][7]=2;ditu[4][8]=2;ditu[4][9]=2;ditu[4][10]=2;ditu[4][11]=2;ditu[4][12]=2;ditu[4][13]=2;ditu[4][14]=2;ditu[4][15]=2;ditu[4][16]=2;ditu[4][17]=2;ditu[4][18]=2;ditu[4][19]=2;ditu[4][20]=2;
ditu[5][1]=2;ditu[5][2]=0;ditu[5][3]=2;ditu[5][4]=2;ditu[5][5]=2;ditu[5][6]=2;ditu[5][7]=2;ditu[5][8]=2;ditu[5][9]=2;ditu[5][10]=2;ditu[5][11]=2;ditu[5][12]=2;ditu[5][13]=2;ditu[5][14]=2;ditu[5][15]=2;ditu[5][16]=2;ditu[5][17]=2;ditu[5][18]=2;ditu[5][19]=2;ditu[5][20]=2;
ditu[6][1]=2;ditu[6][2]=0;ditu[6][3]=2;ditu[6][4]=2;ditu[6][5]=2;ditu[6][6]=2;ditu[6][7]=2;ditu[6][8]=2;ditu[6][9]=2;ditu[6][10]=2;ditu[6][11]=2;ditu[6][12]=2;ditu[6][13]=2;ditu[6][14]=2;ditu[6][15]=2;ditu[6][16]=2;ditu[6][17]=2;ditu[6][18]=2;ditu[6][19]=2;ditu[6][20]=2;
ditu[7][1]=2;ditu[7][2]=0;ditu[7][3]=0;ditu[7][4]=2;ditu[7][5]=2;ditu[7][6]=2;ditu[7][7]=2;ditu[7][8]=2;ditu[7][9]=2;ditu[7][10]=2;ditu[7][11]=2;ditu[7][12]=2;ditu[7][13]=2;ditu[7][14]=2;ditu[7][15]=2;ditu[0][16]=2;ditu[7][17]=2;ditu[7][18]=2;ditu[7][19]=2;ditu[7][20]=2;
ditu[8][1]=2;ditu[8][2]=2;ditu[8][3]=0;ditu[8][4]=0;ditu[8][5]=2;ditu[8][6]=0;ditu[8][7]=2;ditu[8][8]=2;ditu[8][9]=2;ditu[8][10]=2;ditu[8][11]=2;ditu[8][12]=2;ditu[8][13]=2;ditu[8][14]=2;ditu[8][15]=2;ditu[8][16]=2;ditu[8][17]=2;ditu[8][18]=2;ditu[8][19]=2;ditu[8][20]=2;
ditu[9][1]=2;ditu[9][2]=2;ditu[9][3]=0;ditu[9][4]=0;ditu[9][5]=2;ditu[9][6]=0;ditu[9][7]=2;ditu[9][8]=2;ditu[9][9]=2;ditu[9][10]=2;ditu[9][11]=2;ditu[9][12]=2;ditu[9][13]=2;ditu[9][14]=2;ditu[9][15]=2;ditu[9][16]=2;ditu[9][17]=2;ditu[9][18]=2;ditu[9][19]=2;ditu[9][20]=2;
ditu[10][1]=2;ditu[10][2]=2;ditu[10][3]=0;ditu[10][4]=0;ditu[10][5]=2;ditu[10][6]=0;ditu[10][7]=2;ditu[10][8]=2;ditu[10][9]=2;ditu[10][10]=2;ditu[10][11]=2;ditu[10][12]=2;ditu[10][13]=2;ditu[10][14]=2;ditu[10][15]=2;ditu[10][16]=2;ditu[10][17]=2;ditu[10][18]=2;ditu[10][19]=2;ditu[10][20]=2;
ditu[11][1]=2;ditu[11][2]=2;ditu[11][3]=3;ditu[11][4]=2;ditu[11][5]=0;ditu[11][6]=0;ditu[1][7]=2;ditu[11][8]=2;ditu[11][9]=2;ditu[11][10]=2;ditu[11][11]=2;ditu[11][12]=2;ditu[11][13]=2;ditu[11][14]=2;ditu[11][15]=2;ditu[11][16]=2;ditu[11][17]=2;ditu[11][18]=2;ditu[11][19]=2;ditu[11][20]=2;
ditu[12][1]=2;ditu[12][2]=0;ditu[12][3]=2;ditu[12][4]=2;ditu[12][5]=0;ditu[12][6]=2;ditu[12][7]=2;ditu[12][8]=2;ditu[12][9]=2;ditu[12][10]=2;ditu[12][11]=2;ditu[12][12]=2;ditu[12][13]=2;ditu[12][14]=2;ditu[12][15]=2;ditu[12][16]=2;ditu[12][17]=2;ditu[12][18]=2;ditu[1][19]=2;ditu[12][20]=2;
ditu[13][1]=2;ditu[13][2]=0;ditu[13][3]=3;ditu[13][4]=0;ditu[13][5]=0;ditu[13][6]=2;ditu[13][7]=2;ditu[13][8]=2;ditu[13][9]=2;ditu[13][10]=2;ditu[13][11]=2;ditu[13][12]=2;ditu[13][13]=2;ditu[13][14]=2;ditu[13][15]=2;ditu[13][16]=2;ditu[13][17]=2;ditu[13][18]=2;ditu[13][19]=2;ditu[13][20]=2;
ditu[14][1]=2;ditu[14][2]=0;ditu[14][3]=0;ditu[14][4]=0;ditu[14][5]=2;ditu[14][6]=2;ditu[14][7]=2;ditu[14][8]=2;ditu[14][9]=2;ditu[14][10]=2;ditu[14][11]=2;ditu[14][12]=2;ditu[14][13]=2;ditu[14][14]=2;ditu[14][15]=2;ditu[14][16]=2;ditu[14][17]=2;ditu[14][18]=2;ditu[14][19]=2;ditu[14][20]=2;
ditu[15][1]=2;ditu[15][2]=2;ditu[15][3]=2;ditu[15][4]=2;ditu[15][5]=2;ditu[15][6]=2;ditu[15][7]=2;ditu[15][8]=2;ditu[15][9]=2;ditu[15][10]=2;ditu[15][11]=2;ditu[15][12]=2;ditu[15][13]=2;ditu[15][14]=2;ditu[15][15]=2;ditu[15][16]=2;ditu[15][17]=2;ditu[15][18]=2;ditu[15][19]=2;ditu[15][20]=2;
ditu[16][1]=2;ditu[16][2]=2;ditu[16][3]=2;ditu[16][4]=2;ditu[16][5]=2;ditu[16][6]=2;ditu[16][7]=2;ditu[16][8]=2;ditu[16][9]=2;ditu[16][10]=2;ditu[16][11]=2;ditu[16][12]=2;ditu[16][13]=2;ditu[16][14]=2;ditu[16][15]=2;ditu[16][16]=2;ditu[16][17]=2;ditu[16][18]=2;ditu[16][19]=2;ditu[16][20]=2;
ditu[17][1]=2;ditu[17][2]=2;ditu[17][3]=2;ditu[17][4]=2;ditu[17][5]=2;ditu[17][6]=2;ditu[17][7]=2;ditu[17][8]=2;ditu[17][9]=2;ditu[17][10]=2;ditu[17][11]=2;ditu[17][12]=2;ditu[17][13]=2;ditu[17][14]=2;ditu[17][15]=2;ditu[17][16]=2;ditu[17][17]=2;ditu[17][18]=2;ditu[17][19]=2;ditu[17][20]=2;
ditu[18][1]=2;ditu[18][2]=2;ditu[18][3]=2;ditu[18][4]=2;ditu[18][5]=2;ditu[18][6]=2;ditu[18][7]=2;ditu[18][8]=2;ditu[18][9]=2;ditu[18][10]=2;ditu[18][11]=2;ditu[18][12]=2;ditu[18][13]=2;ditu[18][14]=2;ditu[18][15]=2;ditu[18][16]=2;ditu[18][17]=2;ditu[18][18]=2;ditu[18][19]=2;ditu[18][20]=2;
ditu[19][1]=2;ditu[19][2]=2;ditu[19][3]=2;ditu[19][4]=2;ditu[19][5]=2;ditu[19][6]=2;ditu[19][7]=2;ditu[19][8]=2;ditu[19][9]=2;ditu[19][10]=2;ditu[19][11]=2;ditu[19][12]=2;ditu[19][13]=2;ditu[19][14]=2;ditu[19][15]=2;ditu[19][16]=2;ditu[19][17]=2;ditu[19][18]=2;ditu[19][19]=2;ditu[19][20]=2;
ditu[20][1]=2;ditu[20][2]=2;ditu[20][3]=2;ditu[20][4]=2;ditu[20][5]=2;ditu[20][6]=2;ditu[20][7]=2;ditu[20][8]=2;ditu[20][9]=2;ditu[20][10]=2;ditu[20][11]=2;ditu[20][12]=2;ditu[20][13]=2;ditu[20][14]=2;ditu[20][15]=2;ditu[20][16]=2;ditu[20][17]=2;ditu[20][18]=2;ditu[20][19]=2;ditu[20][20]=2;
ditusc();*/
cout<<"未开通";
}
if(xz==0){system("cls");break;}
}
}
void pengren(){
while(1){
system("cls");
cout<<"------(我是分割线~~)----------------------\n";
cout<<"1.提瓦特煎蛋\n0退出\n";
int xz;
cin>>xz;
if(xz==1){
cout<<"需:\n1.鸡蛋X1\n是<Y>否<N>制作?\n";
char xz2;
cin>>xz2;
if(xz2=='Y'){
if(jidan>0){
cout<<"制作中";
cout<<'.';Sleep(700);
cout<<'.';Sleep(700);
cout<<'.';Sleep(700);
cout<<'.';Sleep(700);
cout<<'.';Sleep(700);
cout<<'.';Sleep(700);
cout<<"\n提瓦特煎蛋+1\n鸡蛋-1\n";
jidan--;
Sleep(1000);
tiwatejiandan++;
}
else{
cout<<"鸡蛋不够了";
Sleep(1000);
}
}
else{
system("cls");
}
}
if(xz==0){
system("cls");
break;
}
system("cls");
}
}
void XingXi(){
if(jjss<0) jueseshiyong();
while(1){
system("cls");
cout<<"使用角色:";
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱莉希雅";
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟离";
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温迪";
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈";
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪卢克";
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提纳里";
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴";
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云堇";
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班尼特";
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行秋";
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久岐忍";
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香菱";
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜流";
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"克拉拉";
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流萤";
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿藿";
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
cout<<'\n'<<"等级:"<<juese[jjss].dengji<<'\n'<<"血量:"<<juese[jjss].xue<<'/'<<juese[jjss].yxue<<'\n'<<"蓝量:"<<juese[jjss].lan<<'/'<<juese[jjss].ylan<<'\n'<<"经验:"<<juese[jjss].jingyan<<'/'<<juese[jjss].dengji*10<<'\n'<<"暴击概率:"<<juese[jjss].baojigailv<<"\n暴击倍率:"<<juese[jjss].baojibeilv;
cout<<"\n攻击力(A):"<<juese[jjss].Agong<<"+"<<upwq[(juese[jjss].wupi)-1][1];
cout<<"\n攻击力(E):"<<juese[jjss].Egong<<"+"<<upwq[(juese[jjss].wupi)-1][1];
cout<<"\n攻击力(Q):"<<juese[jjss].Qgong<<"+"<<upwq[(juese[jjss].wupi)-1][1];
cout<<"\n命座:"<<juese[jjss].mingzuo;
cout<<"\n1.武器\n2.经验\n3.切换角色\n4.加点\n5.武器升级\n0退出\n你选择:";
int xz;
cin>>xz;
if(xz==0){
system("cls");
break;
}
else if(xz==1) wuqi();
else if(xz==2) JYshengji();
else if(xz==3) jueseshiyong();
else if(xz==4) Yshi();
else if(xz==5) SJwuqi();
}
}
void wuqi(){
system("cls");
cout<<"武器:\n";
int y=0;
y++;cout<<y<<'.';sc("真我之境:无暇回归");
y++;cout<<y<<'.';sc("终末嗟叹之诗");
y++;cout<<y<<'.';sc("和璞鸢");
y++;cout<<y<<'.';sc("狼的末路");
y++;cout<<y<<'.';sc("祭礼剑");
y++;cout<<y<<'.';sc("笛剑");
y++;cout<<y<<'.';sc("贯虹之槊");
cout<<"你要用哪个?\n";
int xz;
cin>>xz;
if(xz==1){
if(upwq[0][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=upwq[0][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=1;
}
}
if(xz==2){
if(upwq[1][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=upwq[1][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=2;
}
}
if(xz==3){
if(upwq[2][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=upwq[2][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=3;
}
}
if(xz==4){
if(swq[0][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=swq[0][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=4;
}
}
if(xz==5){
if(swq[1][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=swq[1][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=5;
}
}
if(xz==6){
if(upwq[3][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=swq[3][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=6;
}
}
if(xz==7){
if(upwq[4][0]==0) cout<<"未获得",Sleep(1000);
else{
wgong=swq[4][1];cout<<"已装备",Sleep(1000);
juese[jjss].wupi=7;
}
}
}
void JYshengji(){
system("cls");
cout<<"你有经验书:\n";
cout<<"1.流浪者的经验X"<<JingYanShu.LLZdjy;
cout<<"本\n2.冒险家的经验X"<<JingYanShu.MXJdjy;
cout<<"本\n3.大英雄的经验X"<<JingYanShu.DYXdjy<<"本\n";
cout<<"你要用哪本?\n";
int xz;
cin>>xz;
cout<<"你要用几本?\n";
int jib;
cin>>jib;
if(xz==1){
if(JingYanShu.LLZdjy<jib){
cout<<"不够了!!";
Sleep(800);
}
else{
juese[jjss].jingyan+=jib;
cout<<"你的经验增长了"<<jib<<"点";
JingYanShu.LLZdjy-=jib;
}
}
if(xz==2){
if(JingYanShu.MXJdjy<jib){
cout<<"不够了!!";
Sleep(800);
}
else{
juese[jjss].jingyan+=10*jib;
cout<<"你的经验增长了"<<10*jib<<"点";
JingYanShu.MXJdjy-=jib;
}
}
if(xz==3){
if(JingYanShu.DYXdjy<jib){
cout<<"不够了!!";
Sleep(800);
}
else{
juese[jjss].jingyan+=100*jib;
cout<<"你的经验增长了"<<100*jib<<"点";
JingYanShu.DYXdjy-=jib;
}
}
while(juese[jjss].jingyan>=juese[jjss].dengji*10){
shengji();
}
system("cls");
}
void shangdian(){
system("cls");
cout<<"==============================------=====\n";
cout<<" 你要买什么? | |\n";
cout<<" 1.VIP ■■■■\n";
cout<<" 2.经验\n";
cout<<" 3.兑换\n";
int xz;
cin>>xz;
if(xz==1){
if(yuanshi<4000){
cout<<"没原石来买什么?!";
Sleep(999);
}
else if(VIP){
cout<<"你已经有了呢";
Sleep(1000);
}
else
{
yuanshi-=4000;
cout<<"开通了";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
VIP=1;
cout<<"VIP!!!";
cout<<"\n权限:\n";
cout<<"1.返回1600原石!!\n";
yuanshi+=1600;
cout<<"2.商店打7折!!!\n";
cout<<"3.获得特效:金色传说\n";
cout<<"4.获得专属武器:原剑";
Sleep(1000);
}
}
else if(xz==2){
system("cls");
cout<<"1.流浪者的经验(100摩拉)\n2.冒险家的经验(990摩拉)\n3.大英雄的经验(9980摩拉)\n你要买哪本?\n";
int xxz;
cin>>xxz;
if(xxz==1){
if(MoLa<100){
cout<<"没钱了";
Sleep(1000);
}
else{
cout<<"谢谢惠顾!!";
JingYanShu.LLZdjy++;
Sleep(909);
}
}
if(xxz==2){
if(MoLa<990){
cout<<"没钱了";
Sleep(1000);
}
else{
cout<<"谢谢惠顾!!";
JingYanShu.MXJdjy++;
Sleep(909);
}
}
if(xxz==3){
if(MoLa<9980){
cout<<"没钱了";
Sleep(1000);
}
else{
cout<<"谢谢惠顾!!";
JingYanShu.DYXdjy++;
Sleep(909);
}
}
}
else if(xz==3){
system("cls");
cout<<"这有\n";
cout<<"1.暴击概率石(10辉)\n";
cout<<"2.爆伤石(10辉)\n";
cout<<"3.增蓝石(10辉)\n";
cout<<"4.生命石(10辉)\n";
cout<<"5.伤害石(10辉)\n";
cout<<"6.充能石(10辉)\n";
cout<<"7.原石X160(30辉)\n";
cout<<"现有:"<<hui<<"辉\n";
cout<<"你选择:";
int xxz;
cin>>xxz;
if(xxz==1){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.BJGLshi+=xxz2;
}
}
else if(xxz==2){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.BJSHshi+=xxz2;
}
}
else if(xxz==3){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.Lshi+=xxz2;
}
}
else if(xxz==4){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.SMshi+=xxz2;
}
}
else if(xxz==5){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.SHshi+=xxz2;
}
}
else if(xxz==6){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*10){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*10;
shi.CNshi+=xxz2;
}
}
else if(xxz==7){
int xxz2;
cout<<"要买几个?\n";
cin>>xxz2;
if(hui<xxz2*30){
cout<<"不够\n";
Sleep(500);
}
else{
hui-=xxz2*30;
yuanshi+=xxz2*160;
}
}
}
system("cls");
}
void ditusc()
{
while(1){
for(int i=1;i<=dt2;i++)
{
for(int j=1;j<=dt1;j++)
{
if(ditu[i][j]==0) cout<<" ";
else if(ditu[i][j]==1) cout<<"你";
else if(ditu[i][j]==2) cout<<"■";
else{
if(ditu[i][j]==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"水",SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
}
}
cout<<"\n";
}
if((GetAsyncKeyState(VK_UP)&0x8000)&&ditu[wx-1][wy]!=2){SetPos(wx,wy);cout<<" ";ditu[wx][wy]=0;wx--;SetPos(wx,wy);cout<<"你";ditu[wx][wy]=1;}
if((GetAsyncKeyState(VK_LEFT)&0x8000)&&ditu[wx][wy-1]!=2){SetPos(wx,wy);cout<<" ";ditu[wx][wy]=0;wy--;SetPos(wx,wy);cout<<"你";ditu[wx][wy]=1;}
if((GetAsyncKeyState(VK_DOWN)&0x8000)&&ditu[wx+1][wy]!=2){SetPos(wx,wy);cout<<" ";ditu[wx][wy]=0;wx++;SetPos(wx,wy);cout<<"你";ditu[wx][wy]=1;}
if((GetAsyncKeyState(VK_RIGHT)&0x8000)&&ditu[wx][wy+1]!=2){SetPos(wx,wy);cout<<" ";ditu[wx][wy]=0;wy++;SetPos(wx,wy);cout<<"你";ditu[wx][wy]=1;}
if(kbhit()){
char aj=_getch();
if(aj==' ') break;
}
if(ditu[wx][wy]==3){
ZD_shuishilaimu();
}
system("cls");
}
}
void GK_xz(){
system("cls");
jueseshiyong();
DW[1]=jjss;
jueseshiyong();
DW[2]=jjss;
jueseshiyong();
DW[3]=jjss;
jueseshiyong();
DW[4]=jjss;
int f;
while(1){
system("cls");
printf(
"1.史莱姆?\n"
"2.神像\n"
"3.风魔龙\n"
"4.璃月\n"
"0.退出\n"
"你选择:"
);
cin>>f;
if(f==0) break;
else if(f==1){
system("cls");
bool zhang1_1=ZD_shuishilaimu();
if(zhang1_1==true){
system("cls");
cout<<"通关了\n";
cout<<"获得:";
cout<<"1.原石*160";
yuanshi+=160;
cout<<"2.大英雄的经验书*10";
JingYanShu.DYXdjy=JingYanShu.DYXdjy+10;
system("cls");
GK[1]=1;
}
}
else if(f==2){
if(GK[1]==true){
system("cls");
sc("你把手放到了七天神像上");
cout<<endl;
sc("七天神像:$#&@%#$%#^#%@%#^......");
cout<<endl;
sc("你获得了温迪");
if(uppf[2]==false){
uppf[2]=1;
juese[2].Agong=8;
juese[2].baojibeilv=120;
juese[2].baojigailv=11;
juese[2].Egong=15;
juese[2].lan=32;
juese[2].Qgong=75;
juese[2].xue=110;
juese[2].ylan=100;
juese[2].yxue=110;
}
cout<<endl;
Sleep(1000);
GK[2]=1;
}
else{
cout<<"未通过前置关卡";
Sleep(1000);
system("cls");
}
}
else if(f==3){
if(GK[2]==1){
bool zhang1=ZD_fengmolong();
if(zhang1==1){
cout<<"你击败了风魔龙。\n";
cout<<"获得:\n";
cout<<"1.冒险家的经验书*100";
JingYanShu.MXJdjy+=100;
GK[3]=1;
}
else{
cout<<"下次再来吧";
Sleep(600);
}
}
else{
cout<<"未通过前置关卡";
Sleep(1000);
system("cls");
}
}
else if(f==4){
if(GK[3]==1){
cout<<"你来到了璃月。\n";
system("pause");
cout<<"......(过璃月剧情)\n";
system("pause");
cout<<"(后续)\n";
system("pause");
cout<<"摩拉克斯:来吧,让我试试你的真正实力\n";
system("pause");
cout<<"摩拉克斯:我知道...你不是祂。就用隔壁的方式来击败你吧\n";
system("pause");
bool zhang1=ZD_molakesi_1jd();
if(zhang1==1){
system("cls");
cout<<"摩拉克斯:你...\n";
system("pause");
cout<<"???:去吧,击败他,你不用再次轮回!!!\n";
system("pause");
bool zhang2=ZD_molakesi_2jd();
if(zhang2==1){
cout<<"你击败了yanshen。\n";
cout<<"获得:\n";
cout<<"1.冒险家的经验书*1000";
JingYanShu.MXJdjy+=1000;
system("cls");
cout<<"钟离:...\n";
system("pause");
cout<<"钟离:你怎么一身伤?\n";
sc("(祂好像忘记刚才的所作所为...)");
system("pause");
cout<<endl;
GK[4]=1;
}
}
else{
cout<<"下次再来吧";
Sleep(600);
}
}
else{
cout<<"未通过前置关卡";
Sleep(1000);
system("cls");
}
}
}
}
void zudui(){
system("cls");
jueseshiyong();
DW[1]=jjss;
jueseshiyong();
DW[2]=jjss;
jueseshiyong();
DW[3]=jjss;
jueseshiyong();
DW[4]=jjss;
}
bool ZD_fengmolong(){
ZJD=3;
int gxue=5000*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=80;
buff_di.ruodian[4]=true;
buff_di.ruodian[6]=true;
buff_di.ruodian[9]=true;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:风魔龙 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| / |\n"
"| (__/ |\n"
"| ( * |\n"
"| * ** (*** |\n"
"| ******** **** |\n"
"| | | | ****** |\n"
"| | | ******** |\n"
"|1.技能 4.切换 ******** **** |\n"
"| ****** **** |\n"
"|2.逃跑 ** **** **** |\n"
"| * **** |\n"
"|3.背包 **** |\n"
"|战技点: **** |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"风魔龙受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"风魔龙受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"风魔龙死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(100,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*110;
}
ggf=1;
}
else{
gg=pow(50,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
cout<<"风魔龙受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+1);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+1);
juese[DW[3]].xue-=(gg/2+1);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+1);
juese[DW[4]].xue-=(gg/2+1);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+1);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[DW[1]].xue-=gg;
juese[DW[2]].xue-=gg;
juese[DW[3]].xue-=gg;
juese[DW[4]].xue-=gg;
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
if(jjss==13){
cout<<"风魔龙受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
}
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}
void youxiang(){
while(1){
system("cls");
cout<<"1.???\n";
cout<<"2.公测福利\n";
cout<<"3.一键领取\n";
cout<<"4.行破2000\n";
cout<<"0.退出\n";
int xz;
cin>>xz;
if(xz==0) break;
if(xz==3&&lq==false){
cout<<"获得:\n";
cout<<"1.大英雄的经验书*100\n";
cout<<"2.原石*6480\n";
cout<<"3.流浪者的经验书*100000\n";
cout<<"4.1000辉\n";
yuanshi+=6480;
JingYanShu.DYXdjy+=100;
JingYanShu.LLZdjy+=100000;
hui+=1000;
Sleep(1001);
lq=true;
}
}
}
void techou1(){
bool f=true;
while(1){
system("cls");
printf(
" ________\n"
"|流萤特抽|\n"
"==============================\n"
"流萤概率(已出金):15% 出金率:2%\n"
"陪跑:克拉拉\n"
"s十连 a一抽 0退出 b背包 q清空\n"
"抽卡历史\n"
"90抽保底 180抽大保底\n"
"==============================\n"
"\n"
);
char tchou;
tchou=_getch();
if(tchou=='q'){
ts=0;
tup=0;
}
if(tchou=='0') break;
if(tchou=='h') f=!f;
else if(tchou=='s'){
if(yuanshi<1600){
cout<<"原石不够";
Sleep(600);
}
else{
if(f)
for(int i=1;i<=10;i++){
tack1();
}
else
for(int i=1;i<=10;i++){
twack();
}
cout<<"五星:"<<ts<<"UP:"<<tup<<"距保底剩"<<180-tbd<<"抽\n";
system("pause");
}
yuanshi-=1600;
}
else if(tchou=='a'){
if(yuanshi<160){
cout<<"原石不够";
Sleep(600);
}
else{
if(f)
tack1();
else
twack();
cout<<"五星:"<<ts<<"UP:"<<tup<<"距保底剩"<<180-tbd<<"抽\n";
system("pause");
}
}
else if(tchou=='b'){
bb();
}
}
}
void tack1(){
int x=rand()%100;
if(x==72||x==45||tbd>=90){
int xj=rand()%100;
if(xj>=20&&xj<=25 || xj>=50&&xj<=60||tbd>=180){
cout<<"获得——流萤!!!\n";
if(uppf[5]==true){
if(juese[14].mingzuo<6)
juese[14].mingzuo++;
else{
hui+=100;
}
}
if(uppf[5]==false){
uppf[5]=true;
juese[14].Agong=30;
juese[14].Egong=90;
juese[14].Qgong=200;
juese[14].ylan=100;
juese[14].lan=100;
juese[14].yxue=300;
juese[14].xue=300;
juese[14].baojibeilv=300;
juese[14].baojigailv=60;
juese[14].xueren=40;
juese[14].shuxing=5;
}
hui+=50;
tup++;
tbd=0;
}
else{
cout<<"获得——克拉拉!!\n";
if(wpf[3]==true){
if(juese[13].mingzuo<6)
juese[13].mingzuo++;
else{
hui+=100;
}
}
if(wpf[3]==false){
wpf[3]=true;
juese[13].Agong=20;
juese[13].Egong=30;
juese[13].Qgong=30;
juese[13].ylan=90;
juese[13].lan=90;
juese[13].yxue=110;
juese[13].xue=110;
juese[13].baojibeilv=150;
juese[13].baojigailv=30;
juese[14].xueren=20;
juese[14].shuxing=5;
}
hui+=40;
ts++;
tbd++;
}
}
else{
cout<<"一堆摩拉\n";
MoLa+=10000;
tbd++;
}
}
void techou2(){
bool f=true;
while(1){
system("cls");
printf(
" ________\n"
"|藿藿特抽|\n"
"==============================\n"
"藿藿概率(已出金):15% 出金率:2%\n"
"陪跑:克拉拉\n"
"s十连 a一抽 0退出 b背包 q清空\n"
"抽卡历史\n"
"90抽保底 180抽大保底\n"
"==============================\n"
"\n"
);
char tchou;
tchou=_getch();
if(tchou=='q'){
ts=0;
tup=0;
}
if(tchou=='0') break;
if(tchou=='h') f=!f;
else if(tchou=='s'){
if(yuanshi<1600){
cout<<"原石不够";
Sleep(600);
}
else{
if(f)
for(int i=1;i<=10;i++){
tack2();
}
else
for(int i=1;i<=10;i++){
twack();
}
cout<<"五星:"<<ts<<"UP:"<<tup<<"距保底剩"<<180-tbd<<"抽\n";
system("pause");
}
yuanshi-=1600;
}
else if(tchou=='a'){
if(yuanshi<160){
cout<<"原石不够";
Sleep(600);
}
else{
if(f)
tack2();
else
twack();
cout<<"五星:"<<ts<<"UP:"<<tup<<"距保底剩"<<180-tbd<<"抽\n";
system("pause");
}
}
else if(tchou=='b'){
bb();
}
}
}
void tack2(){
int x=rand()%100;
if(x==72||x==45||tbd>=90){
int xj=rand()%100;
if(xj>=20&&xj<=25 || xj>=50&&xj<=60||tbd>=180){
cout<<"获得——藿藿!!!\n";
if(uppf[6]==true){
if(juese[15].mingzuo<6)
juese[15].mingzuo++;
else{
hui+=100;
}
}
if(uppf[6]==false){
uppf[6]=true;
juese[15].Agong=10;
juese[15].Egong=90;
juese[15].Qgong=400;
juese[15].ylan=90;
juese[15].lan=100;
juese[15].yxue=600;
juese[15].xue=600;
juese[15].baojibeilv=120;
juese[15].baojigailv=40;
juese[15].xueren=20;
juese[15].shuxing=0;
}
hui+=50;
tup++;
tbd=0;
}
else{
cout<<"获得——克拉拉!!\n";
if(wpf[3]==true){
if(juese[13].mingzuo<6)
juese[13].mingzuo++;
else{
hui+=100;
}
}
if(wpf[3]==false){
wpf[3]=true;
juese[13].Agong=20;
juese[13].Egong=30;
juese[13].Qgong=30;
juese[13].ylan=90;
juese[13].lan=90;
juese[13].yxue=110;
juese[13].xue=110;
juese[13].baojibeilv=150;
juese[13].baojigailv=30;
juese[14].xueren=20;
juese[14].shuxing=5;
}
hui+=40;
ts++;
tbd++;
}
}
else{
cout<<"一堆摩拉\n";
MoLa+=10000;
tbd++;
}
}
void Yshi(){
system("cls");
cout<<"你有\n";
cout<<"1.暴击概率石X"<<shi.BJGLshi<<"个\n";
cout<<"2.暴伤石X"<<shi.BJSHshi<<"个\n";
cout<<"3.伤害石X"<<shi.SHshi<<"个\n";
cout<<"4.生命石X"<<shi.SMshi<<"个\n";
cout<<"5.增蓝石X"<<shi.Lshi<<"个(负)\n";
cout<<"6.充能石X"<<shi.CNshi<<"个\n";
cout<<"你要用哪个:";
int xz1;
cin>>xz1;
cout<<"你要用几个:";
int xz2;
cin>>xz2;
if(xz1==1){
if(shi.BJGLshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].baojigailv+=5*xz2;
shi.BJGLshi-=xz2;
}
}
if(xz1==2){
if(shi.BJSHshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].baojibeilv+=5*xz2;
shi.BJSHshi-=xz2;
}
}
if(xz1==3){
if(shi.SHshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].Agong+=2*xz2;
juese[jjss].Egong+=6*xz2;
juese[jjss].Qgong+=12*xz2;
shi.SHshi-=xz2;
}
}
if(xz1==4){
if(shi.SMshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].yxue+=5*xz2;
shi.SMshi-=xz2;
}
}
if(xz1==5){
if(shi.Lshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].ylan+=5*xz2;
}
}
if(xz1==6){
if(shi.CNshi<xz2){
cout<<"不够";
Sleep(600);
}
else{
juese[jjss].chongneng+=5*xz2;
shi.CNshi-=xz2;
}
}
}
bool ZD_fengmolong_YS(){
ZJD=3;
int gxue=10000000*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=200;
buff_di.ruodian[2]=true;
buff_di.ruodian[5]=true;
buff_di.ruodian[6]=true;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:风魔龙 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| / |\n"
"| (__/ |\n"
"| ( * |\n"
"| * ** (*** |\n"
"| ******** **** |\n"
"| | | | ****** |\n"
"| | | ******** |\n"
"|1.技能 4.切换 ******** **** |\n"
"| ****** **** |\n"
"|2.逃跑 ** **** **** |\n"
"| * **** |\n"
"|3.背包 **** |\n"
"|战技点: **** |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"风魔龙受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"风魔龙受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"风魔龙死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(300,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*110;
}
ggf=1;
}
else{
gg=pow(300,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"风魔龙受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+1);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+1);
juese[DW[3]].xue-=(gg/2+1);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+1);
juese[DW[4]].xue-=(gg/2+1);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+1);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[DW[1]].xue-=gg;
juese[DW[2]].xue-=gg;
juese[DW[3]].xue-=gg;
juese[DW[4]].xue-=gg;
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
if(jjss==13){
cout<<"风魔龙受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
}
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}
void YCGK(){
jueseshiyong();
DW[1]=jjss;
jueseshiyong();
DW[2]=jjss;
jueseshiyong();
DW[3]=jjss;
jueseshiyong();
DW[4]=jjss;
while(1){
system("cls");
cout<<"1.风魔龙(错误)\n";
cout<<"2.摩拉克斯(错误)\n";
cout<<"3.木桩\n";
cout<<"你要:";
int xz;
cin>>xz;
if(xz==1){
bool jg=ZD_fengmolong_YS();
if(jg==1){
JingYanShu.DYXdjy+=50;
}
}
if(xz==2){
bool jg1=ZD_molakesi_1jd_YS();
if(jg1){
bool jg2=ZD_molakesi_2jd_YS();
if(jg2){
JingYanShu.DYXdjy+=1000;
MoLa+=10000;
hui+=10;
}
}
}
if(xz==3){
int n;
cout<<"输入怪物血量:";
cin>>n;
ZD_MuZhuang(n);
}
if(xz==0){
break;
}
}
}
bool ZD_molakesi_2jd(){
ZJD=3;
int gxue=99999*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=100;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:岩神 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"|1.技能 4.切换 岩神 |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"岩神死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(1000,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*400;
}
ggf=1;
}
else{
gg=pow(800,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+10);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+10);
juese[DW[3]].xue-=(gg/2+10);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+10);
juese[DW[4]].xue-=(gg/2+10);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+10);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[DW[1]].xue-=gg;
juese[DW[2]].xue-=gg;
juese[DW[3]].xue-=gg;
juese[DW[4]].xue-=gg;
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
if(jjss==13){
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
}
glan+=70;
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}bool ZD_molakesi_1jd(){
ZJD=3;
int gxue=10000*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=20;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:岩神 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| 岩神 |\n"
"| 武神 |\n"
"| 武神 |\n"
"| 岩神 |\n"
"|1.技能 4.切换 岩神 |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"岩神死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(10,(shijie+2));
if(y>=0&&y<=45){
gg=gg*1.0/100*400;
}
ggf=1;
}
else{
gg=pow(70,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+10);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+10);
juese[DW[3]].xue-=(gg/2+10);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+10);
juese[DW[4]].xue-=(gg/2+10);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+10);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<0<<"点伤害\n";
cout<<"岩神回复了"<<gg<<"点血\n";
gxue+=gg;
Sleep(600);
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
glan+=80;
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}bool ZD_molakesi_2jd_YS(){
ZJD=3;
int gxue=10000000*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=20;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:岩神 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"|1.技能 4.切换 岩神 |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"岩神死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(1000,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*400;
}
ggf=1;
}
else{
gg=pow(800,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+10);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+10);
juese[DW[3]].xue-=(gg/2+10);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+10);
juese[DW[4]].xue-=(gg/2+10);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+10);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[DW[1]].xue-=gg;
juese[DW[2]].xue-=gg;
juese[DW[3]].xue-=gg;
juese[DW[4]].xue-=gg;
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
if(jjss==13){
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
int fjg=juese[13].Egong;
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
}
glan+=70;
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}bool ZD_molakesi_1jd_YS(){
ZJD=3;
int gxue=100000*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=20;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:岩神 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"| 岩神 |\n"
"|1.技能 4.切换 岩神 |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"岩神受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"岩神死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(100,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*400;
}
ggf=1;
}
else{
gg=pow(70,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"岩神受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+1000);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+1000);
juese[DW[3]].xue-=(gg/2+1000);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+1000);
juese[DW[4]].xue-=(gg/2+1000);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+10);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<0<<"点伤害\n";
cout<<"岩神回复了"<<gg<<"点血\n";
gxue+=gg;
Sleep(600);
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
glan+=80;
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}
void twack(){
int x=rand()%100;
if(x==72||x==45||tbd>=90||tbd>=1&&tbd<=30){
int xj=rand()%100;
if(xj>=20&&xj<=40 || xj>=50&&xj<=60||tbd>=180){
cout<<"获得——真我之境:无暇回归!!!\n";
if(upwq[0][0]==false){
upwq[0][0]=true;
upwq[0][1]=90;
}
else{
shengshi+=10;
hui+=150;
}
hui+=50;
tup++;
tbd=0;
}
else{
cout<<"获得——原石*480!!\n";
yuanshi+=480;
hui+=40;
ts++;
tbd++;
}
}
else{
cout<<"一堆摩拉\n";
MoLa+=50000;
tbd++;
}
}
void SJwuqi(){
system("cls");
char xz;
cout<<"为你用的武器升级\n";
cout<<"升级需圣石*1\n";
if(shengshi==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12);else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10);
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
cout<<"升级(Y)";cout<<"/取消(N)";
cin>>xz;
if(xz=='Y'&&shengshi>0){
cout<<"\n用几个?\n";
int n;
cin>>n;
if(shengshi<n){
cout<<"不够了\n";
system("pause");
}
else{
cout<<"武器升了"<<n<<"级!!\n";
cout<<"攻击力+"<<n*100<<endl;
if(juese[jjss].wupi==1){
upwq[0][1]+=n*100;
}
if(juese[jjss].wupi==2){
upwq[1][1]+=n*100;
}
if(juese[jjss].wupi==3){
upwq[2][1]+=n*100;
}
if(juese[jjss].wupi==4){
swq[0][1]+=n*100;
}
if(juese[jjss].wupi==5){
swq[1][1]+=n*100;
}
if(juese[jjss].wupi==6){
upwq[3][1]+=n*100;
}
if(juese[jjss].wupi==7){
upwq[4][1]+=n*100;
}
}
}
}
bool ZD_MuZhuang(int n){
ZJD=3;
int gxue=n*(shijie+1);
int gyxue=gxue;
int glan=gxue;
int gylan=glan;
int gong=75*(shijie+1);
int huihe=0;
buff_di.rendu=990;
buff_di.ruodian[4]=true;
buff_di.ruodian[5]=true;
if(DW[1]==14||DW[2]==14||DW[3]==14||DW[4]==14) buff_di.ruodian[5]=true;
while(1){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:木桩 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| ****** |\n"
"| ****** |\n"
"| ****** |\n"
"| ** |\n"
"| ** ** ** |\n"
"| ** ** ** |\n"
"|1.技能 4.切换 ** |\n"
"| ** ** |\n"
"|2.逃跑 ** ** |\n"
"| ** ** |\n"
"|3.背包 ** ** |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"木桩受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"木桩受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
Sleep(600);
if(gxue<=0){
system("cls");
cout<<"木桩死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+10000\n";
cout<<"3.原石+"<<n/100<<endl;
yuanshi+=n/100;
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=10000;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
if(jjss==14&&tsg[14]%2==0){
huihe++;
system("cls");
printf(
"=======================================================================================================================\n"
"| 敌方:水史莱姆 血: 蓝: |\n"
"| 我方: 血: 蓝: |\n"
"| |\n"
"| |\n"
"| |\n"
"| |\n"
"| ********** |\n"
"| ************** |\n"
"| *** ***** **** |\n"
"| *** ***** **** |\n"
"| **************** |\n"
"|1.技能 4.切换 ************** |\n"
"| |\n"
"|2.逃跑 |\n"
"| |\n"
"|3.背包 |\n"
"|战技点: |\n"
"=======================================================================================================================\n"
"韧性:%d\n"
,buff_di.rendu);
SetPos(19,10);
for(int i=0;i<11;i++){
if(buff_di.ruodian[i])
if(i==0) cout<<"";
else if(i==1) cout<<"风";
else if(i==2) cout<<"岩";
else if(i==3) cout<<"雷";
else if(i==4) cout<<"草";
else if(i==5) cout<<"水";
else if(i==6) cout<<"火";
else if(i==7) cout<<"冰";
else if(i==8) cout<<"量子";
else if(i==9) cout<<"虚数";
else if(i==10) cout<<"异能";
}
SetPos(0,5),cout<<"第"<<huihe<<"回合";
SetPos(17,5),cout<<ZJD;
SetPos(8,15);
if(jjss==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),13),cout<<"爱",SetPos(2,5),cout<<"爱莉希雅",SetPos(2,13),cout<<" "<<juese[0].xue<<"/"<<juese[0].yxue,SetPos(2,24),cout<<juese[0].lan<<"/"<<juese[0].ylan;
else if(jjss==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"钟",SetPos(2,5),cout<<"钟离",SetPos(2,13),cout<<" "<<juese[1].xue<<"/"<<juese[1].yxue,SetPos(2,24),cout<<juese[1].lan<<"/"<<juese[1].ylan;
else if(jjss==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"温",SetPos(2,5),cout<<"温迪",SetPos(2,13),cout<<" "<<juese[2].xue<<"/"<<juese[2].yxue,SetPos(2,24),cout<<juese[2].lan<<"/"<<juese[2].ylan;
else if(jjss==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"魈",SetPos(2,5),cout<<"魈",SetPos(2,13),cout<<" "<<juese[3].xue<<"/"<<juese[3].yxue,SetPos(2,24),cout<<juese[3].lan<<"/"<<juese[3].ylan;
else if(jjss==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"迪",SetPos(2,5),cout<<"迪卢克",SetPos(2,13),cout<<" "<<juese[4].xue<<"/"<<juese[4].yxue,SetPos(2,24),cout<<juese[4].lan<<"/"<<juese[4].ylan;
else if(jjss==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"提",SetPos(2,5),cout<<"提纳里",SetPos(2,13),cout<<" "<<juese[5].xue<<"/"<<juese[5].yxue,SetPos(2,24),cout<<juese[5].lan<<"/"<<juese[5].ylan;
else if(jjss==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"琴",SetPos(2,5),cout<<"琴",SetPos(2,13),cout<<" "<<juese[6].xue<<"/"<<juese[6].yxue,SetPos(2,24),cout<<juese[6].lan<<"/"<<juese[6].ylan;
else if(jjss==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN),cout<<"云",SetPos(2,5),cout<<"云堇",SetPos(2,13),cout<<" "<<juese[7].xue<<"/"<<juese[7].yxue,SetPos(2,24),cout<<juese[7].lan<<"/"<<juese[7].ylan;
else if(jjss==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"班",SetPos(2,5),cout<<"班尼特",SetPos(2,13),cout<<" "<<juese[8].xue<<"/"<<juese[8].yxue,SetPos(2,24),cout<<juese[8].lan<<"/"<<juese[8].ylan;
else if(jjss==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"行",SetPos(2,5),cout<<"行秋",SetPos(2,13),cout<<" "<<juese[9].xue<<"/"<<juese[9].yxue,SetPos(2,24),cout<<juese[9].lan<<"/"<<juese[9].ylan;
else if(jjss==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),10),cout<<"久",SetPos(2,5),cout<<"久岐忍",SetPos(2,13),cout<<" "<<juese[10].xue<<"/"<<juese[10].yxue,SetPos(2,24),cout<<juese[10].lan<<"/"<<juese[10].ylan;
else if(jjss==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"香",SetPos(2,5),cout<<"香菱",SetPos(2,13),cout<<" "<<juese[11].xue<<"/"<<juese[11].yxue,SetPos(2,24),cout<<juese[11].lan<<"/"<<juese[11].ylan;
else if(jjss==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),9),cout<<"镜",SetPos(2,5),cout<<"镜流",SetPos(2,13),cout<<" "<<juese[12].xue<<"/"<<juese[12].yxue,SetPos(2,24),cout<<juese[12].lan<<"/"<<juese[12].ylan;
else if(jjss==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0),cout<<"克",SetPos(2,5),cout<<"克拉拉",SetPos(2,13),cout<<" "<<juese[13].xue<<"/"<<juese[13].yxue,SetPos(2,24),cout<<juese[13].lan<<"/"<<juese[13].ylan;
else if(jjss==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),12),cout<<"流",SetPos(2,5),cout<<"流萤",SetPos(2,13),cout<<" "<<juese[14].xue<<"/"<<juese[14].yxue,SetPos(2,24),cout<<juese[14].lan<<"/"<<juese[14].ylan;
else if(jjss==15) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),2),cout<<"藿",SetPos(2,5),cout<<"藿藿",SetPos(2,13),cout<<" "<<juese[15].xue<<"/"<<juese[15].yxue,SetPos(2,24),cout<<juese[15].lan<<"/"<<juese[15].ylan;
if(VIP||TX) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),14);
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),15);
SetPos(1,13),cout<<" "<<gxue<<"/"<<gyxue;
SetPos(1,24),cout<<glan<<"/"<<gylan;
long long jg=0,gg=0,xz;
SetPos(21,0);
cin>>xz;
if(xz==1){system("cls");jg=juesej();}
if(xz==2){system("cls");break;}
if(xz==3){BeiBao();continue;}
if(xz==4){system("cls");int xz1;cout<<"你选择切换角色几?\n";cin>>xz1;jjss=DW[xz1];continue;}
jg+=wgong;
if(jjss==1){
if(jg==juese[jjss].xue/2+juese[jjss].Egong){
juese[DW[1]].xue+=jg;
juese[DW[2]].xue+=jg;
juese[DW[3]].xue+=jg;
juese[DW[4]].xue+=jg;
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
}
else{
cout<<"水史莱姆受到了"<<jg<<"点伤害\n";
jg=jg*1.0/100*baoji();
gxue-=jg;
cout<<"总伤害:"<<jg<<endl;
Sleep(600);
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(gxue<=0){
system("cls");
cout<<"水史莱姆死亡,获得:\n";
cout<<"1.角色/冒险等级经验+5\n2.摩拉+500\n";
tsg[DW[1]]=0;
tsg[DW[2]]=0;
tsg[DW[3]]=0;
tsg[DW[4]]=0;
juese[jjss].jingyan+=5;
MX+=5;
MoLa+=500;
int x=rand()%3;
if(x==0){
cout<<"血量+20(自动溢出)";
juese[jjss].xue+=20;
if(juese[jjss].xue>juese[jjss].yxue) juese[jjss].xue=juese[jjss].yxue;
}
Sleep(1400);
if(MX>=MXDengJi*5) MXshengji();
if(juese[jjss].jingyan>=juese[jjss].dengji*10) shengji();
if(MX%10==0) MXshengji();
Sleep(600);
return true;
break;
}
}
if(buff_di.ruodian[juese[jjss].shuxing]==true){
buff_di.rendu-=juese[jjss].xueren;
}
if(buff_di.rendu<=0&&buff_di.jipo!=true){
buff_di.rendu=0;
buff_di.jipo=true;
buff_di.jianxue=juese[jjss].Agong*0.75;
if(juese[jjss].shuxing!=9)
buff_di.jinggu=1;
else
buff_di.jinggu=2;
}
if(buff_di.jinggu>0){
gxue-=buff_di.jianxue;
buff_di.jinggu--;
continue;
}
if(tsg[14]>0)
tsg[14]--;
int ggf;
if(glan>=100){
glan-=100;
int y=rand()%100+1;
gg=pow(n,(shijie+1));
if(y>=0&&y<=45){
gg=gg*1.0/100*400;
}
ggf=1;
}
else{
gg=pow(n/2+100,(shijie+1));
int y=rand()%100+1;
if(y>=10&&y<=30) gg=gg*10/2;
glan+=20;
ggf=2;
}
if(ggf==2){
cout<<"你受到了"<<gg<<"点伤害\n";
Sleep(600);
juese[jjss].xue-=gg;
if(jjss==13){
int fjg=juese[13].Egong;
cout<<"木桩受到了克拉拉的反击\n血量-"<<juese[13].Egong;
if(juese[13].mingzuo>3){
cout<<"\n额外叠加"<<juese[13].Qgong<<"攻击\n";
fjg+=juese[13].Qgong;
}
if(tsg[13]>0){
tsg[13]--;
fjg+=juese[13].Qgong;
}
gxue-=fjg;
}
if(DW[1]==jjss){
juese[DW[2]].xue-=(gg/2+1000);
}
else if(DW[2]==jjss){
juese[DW[1]].xue-=(gg/2+1000);
juese[DW[3]].xue-=(gg/2+1000);
}
else if(DW[3]==jjss){
juese[DW[2]].xue-=(gg/2+1000);
juese[DW[4]].xue-=(gg/2+1000);
}
else if(DW[4]==jjss){
juese[DW[3]].xue-=(gg/2+10);
}
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
else if(ggf==1){
cout<<"你受到了"<<0<<"点伤害\n";
cout<<"木桩回复了"<<gg<<"点血\n";
gxue+=gg;
Sleep(600);
if(juese[jjss].xue<=0){
juese[jjss].xue=0;
if(juese[DW[1]].xue!=0&&juese[DW[2]].xue!=0&&juese[DW[3]].xue!=0&&juese[DW[4]].xue!=0)
{
if(DW[1]!=0)
jjss=DW[1];
else if(DW[2]!=0)
jjss=DW[2];
else if(DW[3]!=0)
jjss=DW[3];
else if(DW[4]!=0)
jjss=DW[4];
}
else{
juese[jjss].xue=0;
cout<<"你输了\n";
Sleep(500);
cout<<"你减少了1/2的摩拉";
MoLa=MoLa*1.0/2;
Sleep(1000);
return false;
}
}
}
glan+=80;
Sleep(600);
juese[jjss].lan+=juese[jjss].chongneng;
system("cls");
}
}
void techou(){
while(1){
system("cls");
printf(
"你要前往卡池几?\n"
"1.流萤\n"
"2.藿藿\n"
"0.退出\n"
);
int xz;
cin>>xz;
if(xz==0) break;
else if(xz==1) techou1();
else if(xz==2) techou2();
else{
cout<<"你按错了!!!\n";
system("pause");
}
}
}