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

Update game.cpp

上级 3710f740
......@@ -1313,15 +1313,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1334,15 +1335,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1355,15 +1357,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1376,15 +1379,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1397,21 +1401,23 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
}
}
}
}
while(true)
{
int sum=0;
......@@ -1440,15 +1446,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1461,15 +1468,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1482,15 +1490,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1503,15 +1512,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1524,15 +1534,16 @@ void huo()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
cout<<"你赢了"<<endl;
int n=rand()%10+1;
if(n==1)
{
cout<<",你获得了熔岩地龙一只";
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}
else
{
cout<<",你获得了熔岩宝石";
cout<<",你获得了 熔炎宝石"<<endl;
}
jinyan+=(double)experience[(int)x]/10;
return;
......@@ -1729,16 +1740,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1750,16 +1753,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1771,16 +1766,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1792,16 +1779,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1813,16 +1792,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1854,16 +1825,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1875,16 +1838,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1896,16 +1851,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1917,16 +1864,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......@@ -1938,16 +1877,8 @@ void shu()
cout<<name<<"打出了"<<5*10+attack[grade]<<"点伤害"<<endl;
if(temb<=0)
{
cout<<"你赢了";
int n=rand()%20+1;
if(n==1)
{
cout<<",你获得了树魔一只";
}
else
{
cout<<",你获得了树心";
}
cout<<"你赢了"<<endl;
cout<<"你获得了 树魔心";
jinyan+=(double)experience[(int)x]/10;
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册