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

Update game.cpp

上级 1900e406
......@@ -28,7 +28,6 @@ void start();
void board();
void maps();
void bag();//bug 可以先看一下,不知道出了什么问题
void box();
void equips();//装备 未完成
void skill_board();//技能板 未完成
void lingdong();
......@@ -52,6 +51,15 @@ void fourteen();
void fifteen();
const int N=1e3+10;
int zhuangbei[N];
/*
最高级 神的庇护
第二级:
荆棘护甲 熔岩拳套
*/
struct op{
string name;
string lei;
......@@ -155,7 +163,7 @@ void board(){
cout<<"攻击:"<<attack[grade]<<endl;
cout<<"防御:"<<defense[grade]<<endl;
Sleep(1000);
cout<<"1.地图 "<<"2.背包 "<<"3.精灵箱 "<<"4.装备 "<<"5.技能板 "<<endl;
cout<<"1.地图 "<<"2.背包 "<<"3.精灵箱(已删除) "<<"4.合成台 "<<"5.技能板 "<<endl;
}
void maps(){
......@@ -479,26 +487,7 @@ void lingdong(){
}
void equips(){
cout<<"暂时为空";
// cout<<"头部:"<<head<<endl;
// cout<<"胸甲:"<<body<<endl;
// cout<<"裤子:"<<trousers<<endl;
// cout<<"鞋子:"<<shoes<<endl;
// cout<<"武器:"<<
// cout<<endl;
// cout<<"请问是否要调整装备"<<endl;
// cout<< "1.要 2.不要";
// cin>>option;
// if(option==1){
// bag2();
// cout<<"请输入要替换的装备的名称"<<endl;
// string a;
// cin>>a;
// for(int i=0;i<100;i++){
// if()
// }
//
// }
cout<<"请问你要合成以下哪些装备呢?"<<endl;
}
void equip_bag(){
......@@ -645,7 +634,6 @@ void huo(){
int n=rand()%10+1;
if(n==1){
cout<<",你获得了 地龙之心 "<<endl;
//加坐骑的属性
}else{
cout<<",你获得了 熔炎宝石"<<endl;
}
......@@ -724,7 +712,47 @@ void jin(){
}
void shu(){
cout<<"暂时为空";
cout<<"恶魔树林"<<endl;
cout<<"这里是恶魔居住的地方"<<endl;
cout<<"1.撸树 2.闲逛(与恶魔干架)";
cin>>option;
int exits1=0;
if(option==1){
while(!exits1){
cout<<"撸树中..."<<endl;
Sleep(3000);
int y=rand()%5+1;
if(y==1){
cout<<"恭喜你获得了 藤条"<<endl;
}
y=rand()%10+1;
if(y==5){
cout<<"恭喜你惹怒了 树神 "<<endl;
grade++;
cout<<"但是树神早已被这里隐藏的恶魔折磨的虚弱不堪"<<endl;
Sleep(1000);
cout<<"他想让你干掉恶魔"<<endl;
Sleep(1000);
cout<<"他需要你"<<endl;
Sleep(1000);
if(attribute==2){
cout<<"因为你是木系"<<endl;
Sleep(1000);
cout << "所以你获得了树神的传承 千手顶上化佛"<<endl;
Sleep(1000);
jineng[2]=1;
}
}
cout<<"恭喜你获得了 木头 "<<endl;
cout<<"1.继续 2.离开"<<endl;
cin>>option;
if(option==2){
exits1=1;
}
}
}
}
void lu(){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册