提交 abd8386c 编写于 作者: struct_cym's avatar struct_cym

Update game.cpp

上级 3710f740
......@@ -1304,112 +1304,118 @@ void huo()
double temf=1;
cout<<name<<"开始释放技能";
for(int i=1; i<=5; i++)
{
if(jineng[i]&&i==1)
{
cout<<"火神术--"<<endl;
cout<<"焚毁!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
if(jineng[i]&&i==1)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
cout<<"火神术--"<<endl;
cout<<"焚毁!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
}
if(jineng[i]&&i==2){
cout<<"木神术--"<<endl;
cout<<"千手顶上化佛!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
else
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
if(jineng[i]&&i==3){
cout<<"水神术--"<<endl;
cout<<"水乱波!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
}
if(jineng[i]&&i==2){
cout<<"木神术--"<<endl;
cout<<"千手顶上化佛!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==4){
cout<<"土神术--"<<endl;
cout<<"土淹!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==3){
cout<<"水神术--"<<endl;
cout<<"水乱波!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
if(jineng[i]&&i==5){
cout<<"金神术--"<<endl;
cout<<"金光剑!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
}
if(jineng[i]&&i==4){
cout<<"土神术--"<<endl;
cout<<"土淹!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==5){
cout<<"金神术--"<<endl;
cout<<"金光剑!"<<endl;
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
}
}
while(true)
......@@ -1439,20 +1445,21 @@ void huo()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==2){
cout<<"木神术--"<<endl;
......@@ -1460,20 +1467,21 @@ void huo()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==3){
cout<<"水神术--"<<endl;
......@@ -1481,20 +1489,21 @@ void huo()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==4){
cout<<"土神术--"<<endl;
......@@ -1502,20 +1511,21 @@ void huo()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==5){
cout<<"金神术--"<<endl;
......@@ -1523,20 +1533,21 @@ void huo()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
}
else
{
cout<<",你获得了熔岩宝石";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
}
cout<<name<<"打出了"<<y2<<"点伤害"<<endl;
......@@ -1728,20 +1739,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==2){
cout<<"木神术--"<<endl;
......@@ -1749,20 +1752,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==3){
cout<<"水神术--"<<endl;
......@@ -1770,20 +1765,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==4){
cout<<"土神术--"<<endl;
......@@ -1791,20 +1778,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==5){
cout<<"金神术--"<<endl;
......@@ -1812,20 +1791,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
}
int sum=0;
......@@ -1853,20 +1824,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==2){
cout<<"木神术--"<<endl;
......@@ -1874,20 +1837,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==3){
cout<<"水神术--"<<endl;
......@@ -1895,20 +1850,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==4){
cout<<"土神术--"<<endl;
......@@ -1916,20 +1863,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
if(jineng[i]&&i==5){
cout<<"金神术--"<<endl;
......@@ -1937,20 +1876,12 @@ void shu()
temb-=5*10+attack[grade];
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
jinyan+=(double)experience[(int)x]/10;
return;
}
{
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
}
}
int y2=shanghai((int)attack[grade]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册