//技能大乱斗v1.4.1壮志凌云
#include
#include
#include
using namespace std;
long long q,p,m,ji[10001]={0},dji[10001]={0},hp=1000,dhp=1000,pg=100,dpg=100,pw,dpw,c=1,b=0,a=0,s=0,ss=0,dc=0,db=0,da=0,ds=0,dss=0,u=3,o,r=1,l,www=0,god=0,lv=1,sa=1,d=1,win=0,lose=0,jie,e=0,du=0,GFS,dGFS,tz=1,atk=0,wake=1,need=1,have=0,story=1,zl=500,cause=0,zneed=300;
long long firecircle=0,ironline=0,mindctrl=0,cawnoodles=0,angry=0,oldman=0,cheater=0,electricity=0,ghost=0,zombie=0,sea=0,fruitice=0,Greatwall=0,seller=0,reliver=0,ghosttomb=0,roundcut=0,useless=0;
long long dfirecircle=0,dironline=0,dmindctrl=0,dcawnoodles=0,dangry=0,doldman=0,dcheater=0,delectricity=0,dghost=0,dzombie=0,dsea=0,dfruitice=0,dGreatwall=0,dseller=0,dreliver=0,dghosttomb=0,droundcut=0,duseless=0;
long long x_maxrecharge=0,x_change=0,x_angry=0,x_destorylight_c=0,x_sea=0,x_fruitice=0,x_destorylight_b=0,x_destorylight_a=0,x_turtlesoup=0,x_singer=0,x_gzkill=0;
long long dx_maxrecharge=0,dx_change=0,dx_angry=0,dx_destorylight_c=0,dx_sea=0,dx_fruitice=0,dx_destorylight_b=0,dx_destorylight_a=0,dx_turtlesoup=0,dx_singer=0,dx_gzkill=0;
void save()
{
ifstream fin("技能大乱斗存档.txt");
while(fin>>sa)
{
story=sa%100;
wake=(sa%1000-story)/100;
GFS=(sa%10000-wake*100-story)/1000;
dGFS=(sa%100000-GFS*1000-wake*100-story)/10000;
c=(sa%10000000000-dGFS*10000-GFS*1000-wake*100-story)/100000;
lv=(sa-c*100000-dGFS*10000-GFS*1000-wake*100-story)/10000000000;
}
if(c>=2)
{
p=c%2;
c-=p;
c/=2;
b+=c;
c=p;
}
if(b>=2)
{
p=b%2;
b-=p;
b/=2;
a+=b;
b=p;
}
if(a>=2)
{
p=a%2;
a-=p;
a/=2;
s+=a;
a=p;
}
if(s>=2)
{
p=s%2;
s-=p;
s/=2;
ss+=s;
s=p;
}
}
int main()
{
cout<>q;
if(q<=0||q>=4)goto CGFS;
if(q>=1&&q<=3)
{
GFS=q;
l=rand()%3+1;
dGFS=l;
cout<<"敌人选择了";
if(dGFS==1)cout<<"水系,";
if(dGFS==2)cout<<"火系,";
if(dGFS==3)cout<<"木系,";
if(GFS==dGFS)cout<<"跟你一样!"<=22)cout<<"超神"<>q;
if(q==1)
{
mod:system("cls");
cout<<"1.人机模式"<>q;
if(q==1)
{
system("cls");
m=1;
cout<<"1.段位模式"<>q;
if(q==1)d=1;
else d=0;
bet:system("cls");
cout<<"是否下注?(1下2不下)"<>q;
if(q==1)
{
e=1;
bett:system("cls");
cout<<"押多少?(换算成初级券,0取消)"<>q;
if(q>c+2*b+4*a+8*s+16*ss)
{
cout<<"券不够!"<>q;
if(q==1)tz=1;
else tz=2;
goto fight;
}
if(q==3)
{
system("cls");
m=3;
goto fight;
}
else
{
system("cls");
goto play;
}
}
if(q==2)
{
skill:system("cls");
cout<<"1.查看技能"<>q;
if(q==1)
{
system("cls");
cout<<"已学技能:"<>q;
if(q>=3&&q<=33)goto learn;
goto skill;
}
if(q==3)
{
system("cls");
if(GFS==1)cout<<"水漫金山";
if(GFS==2)cout<<"星火燎原";
if(GFS==3)cout<<"荆棘之触";
if(wake==1)
{
cout<<"当前C级,";
need=1;
}
if(wake==2)
{
cout<<"当前B级,";
need=2;
}
if(wake==3)
{
cout<<"当前A级,";
need=4;
}
if(wake==4)
{
cout<<"当前S级,";
need=8;
}
if(wake==5)
{
cout<<"当前SS级,已满级"<>q;
if(q==1)
{
have-=need;
c=have;
wake++;
cout<<"升级成功!"<=2)
{
p=c%2;
c-=p;
c/=2;
b+=c;
c=p;
}
if(b>=2)
{
p=b%2;
b-=p;
b/=2;
a+=b;
b=p;
}
if(a>=2)
{
p=a%2;
a-=p;
a/=2;
s+=a;
a=p;
}
if(s>=2)
{
p=s%2;
s-=p;
s/=2;
ss+=s;
s=p;
}
if(dc>=2)
{
p=dc%2;
dc-=p;
dc/=2;
db+=dc;
dc=p;
}
if(db>=2)
{
p=db%2;
db-=p;
db/=2;
da+=db;
db=p;
}
if(da>=2)
{
p=da%2;
da-=p;
da/=2;
ds+=da;
da=p;
}
if(ds>=2)
{
p=ds%2;
ds-=p;
ds/=2;
dss+=ds;
ds=p;
}
}
if(q==4)
{
sa=story;
sa+=wake*100;
sa+=GFS*1000;
sa+=dGFS*10000;
sa+=100000*c+200000*b+400000*a+800000*s+1600000*ss;
for(int i=4;i<=33;i++)
{
if(4<=i<=6&&ji[i]==1)sa+=100000;
if(7<=i<=14&&ji[i]==1)sa+=200000;
if(15<=i<=22&&ji[i]==1)sa+=400000;
if(23<=i<=26&&ji[i]==1)sa+=800000;
if(27<=i<=33&&ji[i]==1)sa+=1600000;
}
sa+=lv*10000000000;
ofstream out("技能大乱斗存档.txt");
out<=1||b>=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||b>=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||b>=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<>q;
www=6;
goto buy;
}
if(q==7&&ji[7]==0)
{
cout<<"附身需1中级券"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||a>=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||s>=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1||ss>=1)cout<<"确认学习?(1确认2取消,可能需要分解更高级的技能券,高一级技能券可分解为2张低一级技能券)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<=1)cout<<"确认学习?(1确认2取消)"<>q;
o=rand()%3+1;
if(mindctrl==1)
{
mindctrl=0;
goto win;
}
if(dmindctrl==1)
{
dmindctrl=0;
goto lose;
}
if(q==1&&o==1||q==2&&o==2||q==3&&o==3)
{
cout<<"平!"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1||dseller>=1)
{
cout<<"你从"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1)
{
Greatwall--;
goto AImod;
}
if(fruitice>=1)
{
fruitice--;
goto AImod;
}
if(electricity==1)
{
electricity=0;
goto AImod;
}
if(cawnoodles==1)
{
cawnoodles=0;
goto AImod;
}
if(useless>=1)
{
useless--;
goto AImod;
}
Sleep(1000);
cout<<"选择一个已学习的技能来释放:"<>q;
if(ji[q]==1||q==34)goto pow;
goto winn;
pow:if(q==1)//普攻
{
if(angry==1)pg*=2;
if(oldman==1)pg/=2;
if(cheater==1)pg/=2;
oldman=0;
cheater=0;
dhp-=pg;
cout<<"你打了敌人一拳造成了"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1||dseller>=1)
{
cout<<"你从"<=1)
{
cout<<"敌人被"<=1)
{
cout<<"你被"<=1)
{
Greatwall--;
goto AImod;
}
if(dfruitice>=1)
{
dfruitice--;
goto AImod;
}
if(delectricity==1)
{
delectricity=0;
goto AImod;
}
if(dcawnoodles==1)
{
dcawnoodles=0;
goto AImod;
}
if(duseless>=1)
{
duseless--;
goto AImod;
}
cout<<"敌人正在思考......"<=10&&tz==1||hp<=0&&tz==2)goto over;
cout<<"第"<>q;
if(ji[q]==1||q==34)goto poww;
goto winnn;
poww:if(q==1)//普攻
{
if(angry==1)pg*=2;
if(oldman==1)pg/=2;
if(cheater==1)pg/=2;
oldman=0;
cheater=0;
dhp-=pg;
atk+=pg;
cout<<"你打了敌人一拳造成了"<=2)
{
lv--;
cout<<"段位下降!"<=2)
{
p=c%2;
c-=p;
c/=2;
b+=c;
c=p;
}
if(b>=2)
{
p=b%2;
b-=p;
b/=2;
a+=b;
b=p;
}
if(a>=2)
{
p=a%2;
a-=p;
a/=2;
s+=a;
a=p;
}
if(s>=2)
{
p=s%2;
s-=p;
s/=2;
ss+=s;
s=p;
}
}
lose++;
cout<<"这是你"<=4&&i<=5&&c>=1)
{
dc--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=6&&i<=13&&b>=1)
{
db--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=14&&i<=21&&a>=1)
{
da--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=22&&i<=24&&s>=1)
{
ds--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=25&&i<=30&&ss>=1)
{
dss--;
dji[i]=1;
u++;
system("pause");
goto play;
}
}
}
system("pause");
goto play;
live:system("cls");
cout<<"赢了!"<=2)
{
p=c%2;
c-=p;
c/=2;
b+=c;
c=p;
}
if(b>=2)
{
p=b%2;
b-=p;
b/=2;
a+=b;
b=p;
}
if(a>=2)
{
p=a%2;
a-=p;
a/=2;
s+=a;
a=p;
}
if(s>=2)
{
p=s%2;
s-=p;
s/=2;
ss+=s;
s=p;
}
}
win++;
cout<<"这是你第"<=22)cout<<"愿我们的友谊都能长存"<=4&&i<=5&&c>=1)
{
dc--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=6&&i<=13&&b>=1)
{
db--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=14&&i<=21&&a>=1)
{
da--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=22&&i<=24&&s>=1)
{
ds--;
dji[i]=1;
u++;
system("pause");
goto play;
}
if(i>=25&&i<=30&&ss>=1)
{
dss--;
dji[i]=1;
u++;
system("pause");
goto play;
}
}
}
system("pause");
goto play;
buy:cin>>q;
if(q==1)
{
if(c>=1&&www>=4&&www<=6)
{
c--;
ji[www]=1;
goto play;
}
if(b>=1&&www>=4&&www<=14)
{
b--;
if(www>=3&&www<=5)c++;
ji[www]=1;
goto play;
}
if(a>=1&&www>=3&&www<=22)
{
a--;
if(www>=3&&www<=13)b++;
if(www>=3&&www<=5)c++;
ji[www]=1;
goto play;
}
if(s>=1&&www>=3&&www<=26)
{
s--;
if(www>=3&&www<=21)a++;
if(www>=3&&www<=13)b++;
if(www>=3&&www<=5)c++;
ji[www]=1;
goto play;
}
if(ss>=1&&www>=3&&www<=33)
{
ss--;
if(www>=3&&www<=24)s++;
if(www>=3&&www<=21)a++;
if(www>=3&&www<=13)b++;
if(www>=3&&www<=5)c++;
ji[www]=1;
goto play;
}
}
goto skill;
make:if(c>=2)
{
p=c%2;
c-=p;
c/=2;
b+=c;
c=p;
}
if(b>=2)
{
p=b%2;
b-=p;
b/=2;
a+=b;
b=p;
}
if(a>=2)
{
p=a%2;
a-=p;
a/=2;
s+=a;
a=p;
}
if(s>=2)
{
p=s%2;
s-=p;
s/=2;
ss+=s;
s=p;
}
if(dc>=2)
{
p=dc%2;
dc-=p;
dc/=2;
db+=dc;
dc=p;
}
if(db>=2)
{
p=db%2;
db-=p;
db/=2;
da+=db;
db=p;
}
if(da>=2)
{
p=da%2;
da-=p;
da/=2;
ds+=da;
da=p;
}
if(ds>=2)
{
p=ds%2;
ds-=p;
ds/=2;
dss+=ds;
ds=p;
}
goto play;
}
/*
自带:普攻,治愈术,解印术
初级:火圈,铁索连环,火球术
中级:附身,毁灭飞弹,极限治愈术,反转术,牛犇面,狂暴,老头胡拉茬,当老千
高级:初等毁灭之光,封雷斩,死灵之术,生化危机,海纳百川,火锅诱惑,果冻之海,伟大的墙
特级:中等毁灭之光,战争商贩,机关长枪,无效化
神级:完全毁灭之光,逆天十全王八大补汤,歌者入侵,秽土转生,尸鬼封尽,圣灵墓地,轮回斩
*/