case 11:    
                cout<<"你遇见了一只末影人!"<<endl;
                cout<<"0,离开  1,注视"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("末影人",40,6,30,-10,9999,5,3,300,3);
                    drop("末影人"); 
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch();
                }
            break;
        }
    }
    if(place=="森林"){
        int find=rand()%100;
        if(find==0){
            cout<<"你发现了一个废弃的地狱传送门!"<<endl;
            getch();
            int obsidian=2+rand()%2,gold=2+rand()%3; 
            cout<<"你打开箱子,获得了 "<<obsidian<<" 个黑曜石和 "<<gold<<" 个金锭!"<<endl;
            bag[65]+=obsidian;
            bag[32]+=gold;
            getch();
            return;
        }
        switch(1+rand()%9){
            case 1:
                cout<<"你遇见了一头牛!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("牛",20,2,100,0,3,10,1,50,0);
                }else return;
            break;
            case 2:
                cout<<"你遇见了一只羊!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("羊",20,2,100,0,3,10,1,50,0);
                }else return;
            break;
            case 3:
                cout<<"你什么也没遇见..."<<endl;
                getch();
            break;  
            case 4: 
                cout<<"你遇见了一只僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸",20,3,25,0,3,5,2,100,1);
                    drop("僵尸");  
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("僵尸",20,3,25,0,3,5,2,100,1);
                        drop("僵尸"); 
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 5:
                cout<<"你遇见了流浪商人!"<<endl;
                getch();
                cout<<"0,离开  1,交易"<<endl; 
                cin>>choose;
                if(choose==1) shop("流浪商人");
                else return;
            break;
            case 6: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 7: 
                cout<<"你遇见了一只强壮的僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    enemyskill[2]=1;
                    fight("强壮僵尸",25,4,30,5,3,5,2,250,3);
                    enemyskill[2]=0;
                    drop("强壮僵尸");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        enemyskill[2]=1;
                        fight("强壮僵尸",25,4,30,5,3,5,2,250,3);
                        enemyskill[2]=0;
                        drop("强壮僵尸");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 8:
                cout<<"你发现了一颗苹果!"<<endl;
                bag[36]++;
                getch();
            break;  
            case 9: 
                cout<<"你遇见了一只末影人!"<<endl;
                cout<<"0,离开  1,注视"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("末影人",40,6,30,-10,9999,5,3,300,3);
                    drop("末影人"); 
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch();
                }
            break;
        }
    }
    if(place=="洞穴"){
        int add;
        switch(1+rand()%8){
            case 1:
                cout<<"你什么也没遇见..."<<endl;
                getch();
            break;  
            case 2: 
                cout<<"你遇见了一只僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸",20,3,25,0,3,5,2,100,1);
                    drop("僵尸"); 
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("僵尸",20,3,25,0,3,5,2,100,1);
                        drop("僵尸"); 
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 3: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 4://发现铁矿 
                add=2+rand()%4;
                cout<<"你发现了 "<<add<<" 块铁矿石!"<<endl;
                Sleep(1000);
                cout<<"0,离开  1,挖掘"<<endl;
                cin>>choose;
                if(choose==1){
                    system("cls");
                    if(tool2<2||tool2==3){
                        cout<<"当前稿子无法挖掘此矿石!"<<endl;
                        Sleep(2000);
                        return;
                    } 
                    destroy(100000*add,tool2speed[tool2]);
                    cout<<"挖掘完毕!获得 "<<itemname[20]<<" "<<add<<" 个!"<<endl;
                    bag[20]+=add;
                    cout<<"当前有 "<<itemname[20]<<" "<<bag[20]<<" 个!"<<endl;
                    getch();
                }else return;
            break;
            case 5://发现金矿 
                add=2+rand()%2;
                cout<<"你发现了 "<<add<<" 块金矿石!"<<endl;
                Sleep(1000);
                cout<<"0,离开  1,挖掘"<<endl;
                cin>>choose;
                if(choose==1){
                    system("cls");
                    if(tool2<4){
                        cout<<"当前稿子无法挖掘此矿石!"<<endl;
                        Sleep(2000);
                        return;
                    } 
                    destroy(120000*add,tool2speed[tool2]);
                    cout<<"挖掘完毕!获得 "<<itemname[31]<<" "<<add<<" 个!"<<endl;
                    bag[31]+=add;
                    cout<<"当前有 "<<itemname[31]<<" "<<bag[31]<<" 个!"<<endl;
                    getch();
                }else return;
            break;
            case 6://发现青金石矿 
                add=3+rand()%4;
                cout<<"你发现了 "<<add<<" 块青金石!"<<endl;
                Sleep(1000);
                cout<<"0,离开  1,挖掘"<<endl;
                cin>>choose;
                if(choose==1){
                    system("cls");
                    if(tool2<2||tool2==3){
                        cout<<"当前稿子无法挖掘此矿石!"<<endl;
                        Sleep(2000);
                        return;
                    } 
                    destroy(90000*add,tool2speed[tool2]);
                    cout<<"挖掘完毕!获得 "<<itemname[43]<<" "<<add<<" 个!"<<endl;
                    bag[43]+=add;
                    experience+=add*15;
                    cout<<"当前有 "<<itemname[43]<<" "<<bag[43]<<" 个!"<<endl;
                    getch();
                }else return;
            break;
            case 7://发现钻石矿 
                add=1+rand()%3;
                cout<<"你发现了 "<<add<<" 块钻石!"<<endl;
                Sleep(1000);
                cout<<"0,离开  1,挖掘"<<endl;
                cin>>choose;
                if(choose==1){
                    system("cls");
                    if(tool2<4){
                        cout<<"当前稿子无法挖掘此矿石!"<<endl;
                        Sleep(2000);
                        return;
                    } 
                    destroy(160000*add,tool2speed[tool2]);
                    cout<<"挖掘完毕!获得 "<<itemname[44]<<" "<<add<<" 个!"<<endl;
                    bag[44]+=add;
                    experience+=add*30;
                    cout<<"当前有 "<<itemname[44]<<" "<<bag[44]<<" 个!"<<endl;
                    getch();
                }else return;
            break;
            case 8: 
                cout<<"你遇见了一只末影人!"<<endl;
                cout<<"0,离开  1,注视"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("末影人",40,6,30,-10,9999,5,3,300,3);
                    drop("末影人"); 
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch();
                }
            break;
        }
    }
    if(place=="沙漠"){
        int find=rand()%100;
        if(find==0){
            cout<<"你发现了一个废弃的地狱传送门!"<<endl;
            getch();
            int obsidian=2+rand()%2,gold=2+rand()%3; 
            cout<<"你打开箱子,获得了 "<<obsidian<<" 个黑曜石和 "<<gold<<" 个金锭!"<<endl;
            bag[65]+=obsidian;
            bag[32]+=gold;
            getch();
            return;
        }
        find=rand()%100; 
        if(find<=10&&desert_temple==false){//5%
            cout<<"你正冒险时,突然发现了什么..."<<endl;
            Sleep(1000);
            getch();
            cout<<"你仔细一看,自己的前方是一座神殿!"<<endl;
            getch();
            cout<<"尘封的沙漠神殿,已被黄沙覆盖,埋藏的宝藏等待着冒险者的发现..."<<endl;
            Sleep(1000);
            getch();
            cout<<"解锁副本:沙漠神殿!"<<endl;
            getch();
            desert_temple=true;
            return;
        }
        switch(1+rand()%6){
            case 1:
                cout<<"你什么也没遇见..."<<endl;
                getch();
            break;  
            case 2: 
                cout<<"你遇见了一只僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸",20,3,25,0,3,5,2,100,1);
                    drop("僵尸"); 
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("僵尸",20,3,25,0,3,5,2,100,1);
                        drop("僵尸"); 
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 3:
                cout<<"你遇见了流浪商人!"<<endl;
                getch();
                cout<<"0,离开  1,交易"<<endl; 
                cin>>choose;
                if(choose==1) shop("流浪商人");
                else return;
            break;
            case 4: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 5: 
                cout<<"你遇见了一只尸壳!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("尸壳",24,4,30,5,3,5,2,150,2);
                    drop("尸壳");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,尸壳发现了你并向你冲来!"<<endl;
                        getch();
                        fight("尸壳",24,4,30,5,3,5,2,150,2);
                        drop("尸壳");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;  
            case 6: 
                cout<<"你遇见了一只浑身是沙的骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("沙骷",20,3,20,0,3,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("沙髅",20,3,20,0,3,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
        }
    }
    if(place=="丛林"){
        int find=rand()%100;
        if(find==0){
            cout<<"你发现了一个废弃的地狱传送门!"<<endl;
            getch();
            int obsidian=2+rand()%2,gold=2+rand()%3; 
            cout<<"你打开箱子,获得了 "<<obsidian<<" 个黑曜石和 "<<gold<<" 个金锭!"<<endl;
            bag[65]+=obsidian;
            bag[32]+=gold;
            getch();
            return;
        }
        find=rand()%100;
        if(find<=10&&jungle_temple==false){//10%
            cout<<"你正冒险时,突然发现了什么..."<<endl;
            Sleep(1000);
            getch();
            cout<<"你仔细一看,自己的前方是一座神庙!"<<endl;
            getch();
            cout<<"远古的丛林神庙,四周遍布青苔,沉睡的怪物是否将会苏醒..."<<endl;
            Sleep(1000);
            getch();
            cout<<"解锁副本:丛林神庙!"<<endl;
            getch();
            jungle_temple=true;
            return;
        }
        switch(1+rand()%9){
            case 1:
                cout<<"你遇见了一头牛!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("牛",20,2,100,-10,3,10,1,50,0);
                }else return;
            break;
            case 2:
                cout<<"你遇见了一只羊!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("羊",20,2,100,-10,3,10,1,50,0);
                }else return;
            break;
            case 3:
                cout<<"你什么也没遇见..."<<endl;
                getch();
            break;  
            case 4: 
                cout<<"你遇见了一只僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸",20,3,25,0,3,5,2,100,1);
                    drop("僵尸"); 
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("僵尸",20,3,25,0,3,5,2,100,1);
                        drop("僵尸"); 
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 5:
                cout<<"你遇见了流浪商人!"<<endl;
                getch();
                cout<<"0,离开  1,交易"<<endl; 
                cin>>choose;
                if(choose==1) shop("流浪商人");
                else return;
            break;
            case 6: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,3);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,3);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 7: 
                cout<<"你遇见了一只强壮的僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    enemyskill[2]=1;
                    fight("强壮僵尸",25,4,30,5,3,5,2,250,3);
                    enemyskill[2]=0;
                    drop("强壮僵尸");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        enemyskill[2]=1;
                        fight("强壮僵尸",25,4,30,5,3,5,2,250,3);
                        enemyskill[2]=0;
                        drop("强壮僵尸");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 8:
                cout<<"你发现了一颗苹果!"<<endl;
                bag[36]++;
                getch();
            break;  
            case 9:
                cout<<"你遇见了一只蜘蛛!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("蜘蛛",20,7,25,-10,4,8+rand()%4,2,300,3);
                    drop("蜘蛛"); 
                }else return;
            break;
        }
    }
    if(place=="雪地"){
    	int find=rand()%50;
    	if(find==0){
    		cout<<"你正在行走时,忽然发现了一个洞穴..."<<endl;
    		Sleep(1000);
            getch();
            cout<<"你仔细一看,洞穴四处被厚厚的积雪覆盖,上方还有几根尖锐的冰刺。"<<endl;
            Sleep(1000);
            getch();
            cout<<"直觉告诉你,这里面可能会有宝藏..."<<endl;
            getch();
            cout<<"要进去吗?"<<endl;
            cin>>choose;
            cout<<"0,不进  1,进"<<endl;
            if(choose==0){
                cout<<"你无视了洞穴..."<<endl;
                getch(); 
                return;
            }else{
                cout<<endl<<"你走进洞窟之中..."<<endl;
                getch();
                dungeon("寒冰洞窟");
            } 
            return;
		} 
        if(badguy>=3){
            if(badguy>=4){
                if(badguy==5){
                    cout<<"“你准备好了吗?”"<<endl;
                    cout<<"0,还没有  1,好了"<<endl;
                    cin>>choose;
                    if(choose==0){
                        cout<<"“好吧。那你可以在雪地冒险...”"<<endl;
                        getch(); 
                        system("cls");
                    }else{
                        system("cls");
                        cout<<"“准备好了?”"<<endl;
                        getch();
                        help=true;
                        dungeon("寒冰洞窟");
						help=false; 
						return;
                    } 
                }else{
                    cout<<"准备好了吗?!"<<endl;
                    getch();
                    cout<<"开始吧!"<<endl;
                    getch();
                    system("cls");
                    cout<<"一名挑战者用鄙视的眼光看向你,向你冲了过来!"<<endl;
                    getch();
                    fight("挑战者",20,4,0,3,3,5,2,200,3);
                    if(!dead){
                        cout<<"你被赶下台去,狼狈逃走了"<<endl;
                        getch();
                        cout<<"你决定重整旗鼓,以后再继续来挑战!"<<endl;
                        return;
                    }
                    cout<<"另一名身穿重甲的挑战者向你走来,对你发起挑战!"<<endl;
                    getch();
                    fight("重甲挑战者",20,4,0,16,3,5,2,300,4);
                    if(!dead){
                        cout<<"你被赶下台去,狼狈逃走了"<<endl;
                        getch();
                        cout<<"你决定重整旗鼓,以后再继续来挑战!"<<endl;
                        return;
                    }
                    cout<<"场上仅剩你与最后一名挑战者。"<<endl;
                    getch();
                    cout<<"对方冷笑一声,便拔出一把长弓向你射出一箭!"<<endl;
                    getch();
                    cout<<"你受到了 ";
                    sc(4);
					cout<<"5 点伤害!"<<endl;
					sc(7);
                    Sleep(1000);
                    health-=5;
                    cout<<"你还剩 ";
                    sc(4);
					cout<<health<<" 点生命!"<<endl;
					sc(7);
                    if(health<=0){
                        cout<<"你毫无防备,倒在了地上..."<<endl;
                        getch();
                        cout<<"你愤愤不平,发誓之后定要一雪前耻!"<<endl;
                        health=2;
                        getch();
                        place="村庄";
                        return;
                    }
                    getch();
                    cout<<"你恼羞成怒,向那人冲去!"<<endl;
                    getch();
                    enemyskill[4]=1;
                    fight("长弓挑战者",20,5,0,-5,2,8,6,500,8);
                    enemyskill[4]=0;
                    if(!dead){
                        cout<<"你被赶下台去,狼狈逃走了"<<endl;
                        getch();
                        cout<<"你决定重整旗鼓,以后再继续来挑战!"<<endl;
                            return;
                    }
                    system("cls");
                    credit+=5;
                    cout<<"那名偷袭的挑战者自知不敌,连忙逃走了。"<<endl;
                    getch();
                    cout<<"你通过了选拔!你将会获得寻找宝藏的资格!"<<endl;
                    getch();
                    cout<<"此时,一名男人向你缓缓走来。"<<endl;
                    Sleep(1000);
                    cout<<"“不愧是恶霸村民推荐过的勇者...能在这么多挑战者中胜利,确实有些本事。”"<<endl;
                    Sleep(1000);
                    badguy=5;//探险 开始! 
                    say("现在你可以去为这次探险做准备了...我们会在这等着你。\n",20);
                    getch();
                    cout<<"“对了,这是一些绿宝石,收下吧,好好准备,这次探险很危险...”"<<endl;
                    Sleep(500);
                    money+=10;
                    cout<<"获得了 10 颗绿宝石!"<<endl;
                    getch();
                    system("cls");
                    return; 
                }
            }else{
                cout<<"你来到雪地,看到了一个公告牌和几个村民。"<<endl;
                getch();
                cout<<"“我要选出一个足够勇敢的勇士,前往雪地深处找到宝藏!”"<<endl; 
                getch();
                cout<<"你毫不犹豫报了名..."<<endl; 
                badguy=4;
                getch();
                system("cls");
                Sleep(1000);
                cout<<"你将要面对其他的挑战者,与他们战斗后才能得到资格去寻找宝藏!"<<endl;
                Sleep(500);
                cout<<"现在,你可以去为这次选拔进行准备!"<<endl;
                Sleep(500);
                cout<<"准备完后,只需回到雪地便可参加选拔..."<<endl;
                getch(); 
                return;
            }
        }
        switch(1+rand()%8){
            case 1:
                cout<<"你遇见了一只僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸",20,3,25,0,3,5,2,100,1);
                    drop("僵尸"); 
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("僵尸",20,3,25,0,3,5,2,100,1);
                        drop("僵尸"); 
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }   
            break;  
            case 2: 
                cout<<"你遇见了一只流浪者!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    enemyskill[41]=1; 
                    fight("流浪者",20,3,20,0,1,6+rand()%4,8,300,3);
                    enemyskill[41]=0;
                    drop("流浪者");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,流浪者已经对你瞄准了!"<<endl;
                        getch();
                        enemyskill[41]=1;
                        fight("流浪者",20,3,20,0,1,6+rand()%4,8,300,3);
                        enemyskill[41]=0;
                        drop("流浪者");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 3:
                cout<<"你遇见了一只巨型雪怪!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    enemyskill[2]=2; 
                    fight("雪怪",36,8,25,20,3,9,3,500,5);
                    enemyskill[2]=0;
                    drop("雪怪"); 
                }else return; 
            break;
            case 4: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 5:
                cout<<"你遇见了一只浑身是雪的僵尸!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("雪人",24,4,25,8,3,5,2,250,3);
                    drop("寒冰僵尸");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,僵尸发现了你并向你冲来!"<<endl;
                        getch();
                        fight("雪人",24,4,25,8,3,5,2,250,3);
                        drop("寒冰僵尸");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }   
            break;
            case 6:
                cout<<"你遇见了流浪商人!"<<endl;
                getch();
                cout<<"0,离开  1,交易"<<endl; 
                cin>>choose;
                if(choose==1) shop("流浪商人");
                else return;
            break;  
            case 7:
                cout<<"你什么都没遇见..."<<endl;
                getch();
            break;
            case 8: 
                cout<<"你遇见了一只末影人!"<<endl;
                cout<<"0,离开  1,注视"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("末影人",40,6,30,-10,9999,5,3,300,3);
                    drop("末影人"); 
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch();
                }
            break;  
        }
    }
    if(place=="地狱"){
    	int find=rand()%100;
        if(find==0){
            cout<<"你发现了一个废弃的地狱传送门!"<<endl;
            getch();
            int obsidian=2+rand()%2,gold=2+rand()%3; 
            cout<<"你打开箱子,获得了 "<<obsidian<<" 个黑曜石和 "<<gold<<" 个金锭!"<<endl;
            bag[65]+=obsidian;
            bag[32]+=gold;
            getch();
            return;
        }
        find=rand()%100;
        if(find<=10&&nether_fortress==false){//5%
            cout<<"你正冒险时,突然发现了什么..."<<endl;
            Sleep(1000);
            getch();
            cout<<"你仔细一看,自己的前方是一座下界砖铸成的巨大要塞!"<<endl;
            getch();
            cout<<"解锁新区域:下界要塞!"<<endl;
            getch();
            nether_fortress=true;
            return;
        }
        switch(1+rand()%6){
            case 1:
                cout<<"你遇见了一只僵尸猪人!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("僵尸猪人",20,5,0,0,3,6+rand()%3,2,200,2);
                    drop("僵尸猪人");
                    system("cls");
                    if(dead){
                        cout<<"你正想离开时,引来了一群僵尸猪人!"<<endl;
                        getch(); 
                        fight("僵尸猪人",20,5,0,0,3,6+rand()%3,2,200,2);
                        drop("僵尸猪人");
                        if(dead){
                            cout<<"你杀死了两只僵尸猪人后,连忙逃走了..."<<endl;
                            getch();
                        }
                    }
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch(); 
                }   
            break;
            case 2: 
                cout<<"你遇见了一只末影人!"<<endl;
                cout<<"0,离开  1,注视"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("末影人",40,6,30,-10,9999,5,3,300,3);
                    drop("末影人"); 
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch();
                }
            break;  
            case 3:
                cout<<"你遇见了一头疣猪兽!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("疣猪兽",40,8,50,-5,3,10,4,250,3);
                }else{
                    cout<<"你趁着它扭头的瞬间,悄悄走开了。"<<endl; 
                    getch();
                }
            break;
            case 4:
                cout<<"你什么都没遇见..."<<endl;
                getch();
            break; 
            case 5: 
                cout<<"你遇见了一只骷髅!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                    fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                    drop("骷髅");
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,骷髅发现了你!"<<endl;
                        getch();
                        fight("骷髅",20,3,20,0,1,6+rand()%4,8,250,2);
                        drop("骷髅");
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
            case 6: 
                cout<<"你遇见了一只猪灵!"<<endl;
                cout<<"0,离开  1,靠近"<<endl;
                cin>>choose;
                if(choose==1){
                	if(armor1!=3&&armor2!=3&&armor3!=3&&armor4!=3){
                		cout<<"猪灵愤怒的看向你,手持金剑向你攻击!"<<endl;
                		getch();
                   	 	fight("猪灵",16,8,20,5,3,4+rand()%4,2,200,2);
                   	 	drop("猪灵");
                   	 }else{
                   	 	cout<<"你要?"<<endl;
                   	 	cout<<"0,交易  1,攻击"<<endl;
                   	 	cin>>choose;
                   	 	if(choose==1){
                   	 		fight("猪灵",16,8,20,5,3,4+rand()%4,2,200,2);
                            drop("猪灵");
						}else{
							while(1){
								system("cls");
								cout<<"当前你有 "<<bag[32]<<" 个金锭。"<<endl;
								cout<<"0,离开  1,交易"<<endl;
								cin>>choose;
								if(choose==0) break;
								else{
									if(bag[32]<1){
										cout<<"猪灵呆呆的看着你,突然好像明白了什么,愤怒的走开了。"<<endl;
										getch();
										break; 
									}else{
										cout<<"你把一块金锭交给猪灵。"<<endl;
										bag[32]--;
										getch();
										cout<<"猪灵捡起金锭,仔细的端详着..."<<endl;
										Sleep(5000+rand()%3000);
										getch();
										int i,add;
										switch(1+rand()%11){
											case 1:
												i=121,add=1+rand()%3;
											break;
											case 2:
											case 3:
												i=14,add=4+rand()%5;
											break;
											case 4:
											case 5:
												i=126,add=3+rand()%3;
											break;
											case 6:
												i=1001+rand()%2,add=1;
											break;
											case 7:
												i=4,add=5+rand()%3;
											break;	
											case 8:
												i=117+rand()%4,add=1;
											break;
											case 9:
												i=125,add=6+rand()%6;
											break;
											case 10:
												i=132,add=1+rand()%2;
											break;
											case 11:
												i=65,add=1+rand()%3;												
											break;	 
										} 
										cout<<"获得 "<<item[i].itemname<<" "<<add<<" 个!"<<endl;
										bag[i]+=add;
										getch();
									}
								}
							}
						}
					}
                }else{
                    choose=rand()%2;
                    if(choose==1){
                        cout<<"你正欲离开时,猪灵发现了你!"<<endl;
                        getch();
                        if(armor1!=3&&armor2!=3&&armor3!=3&&armor4!=3){
                            cout<<"猪灵愤怒的看向你,手持金剑向你攻击!"<<endl;
                            getch();
                            fight("猪灵",16,8,20,5,3,4+rand()%4,2,200,2);
                            drop("猪灵");
                        }else{
                        	cout<<"猪灵从你面前经过,没有理会你。"<<endl;
                        	getch();
						}   
                    }else{
                        cout<<"你悄悄走开了。"<<endl;
                        getch();
                    } 
                }
            break;
        }
    }
    if(place=="下界要塞"){
        switch(1+rand()%4){
            case 1:
                cout<<"你遇见了一只烈焰人!"<<endl;
                cout<<"0,离开  1,击杀"<<endl;
                cin>>choose;
                if(choose==1){
                	enemyskill[44]=1; 
                    fight("烈焰人",20,5,0,0,2,6+rand()%3,6,350,3);
                    enemyskill[44]=0;
                    drop("烈焰人");
                }else{
                    cout<<"你悄悄走开了。"<<endl;
                    getch(); 
                }   
            break;