#include<bits/stdc++.h>
#include<windows.h>
void wuqidian();//武器店
void yaopindian();//药品店
// {
void maoxian();//冒险
void daguai();//大怪
void xiaoguai();//小怪
void BOOS(); //boos
void ziliao();
// }
void zhuangtai();//状态
//}
int shengming=1000,shanghai=50,fangyu=10,jinbi=200,jijiubao=0,jingyan=100;//主角资料
int xhp,xsh,xjb,xdj,xfy;//小怪
int dhp,dsh,djb,ddj,dfy;//大怪
int boosHP,boosSH,boosfy;//BOOS
using namespace std;
int main()
{
system("cls");
system("color fc");
int i=0,n=0,l=1;
while (l)
{
cout<<" [修仙]\n";
cout<<"-------------------------------------------------------------------------------\n" ;
cout<<"输入 1 冒险"<<endl;
cout<<"输入 2 武器店"<<endl;
cout<<"输入 3 药品店"<<endl;
cout<<"输入 4 自己状态"<<endl;
cout<<"输入 5 查看游戏资料"<<endl;
cout<<"输入 0 结束游戏"<<endl;
cin>>l;
switch(l)
{
case 1:
cout<<"-------------------------------------------------------------------------------\n" ;
maoxian();
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 2:
cout<<"-------------------------------------------------------------------------------\n" ;
wuqidian();
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 3:
cout<<"-------------------------------------------------------------------------------\n" ;
yaopindian();
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 4:
cout<<"-------------------------------------------------------------------------------\n" ;
zhuangtai();
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 5:
cout<<"-------------------------------------------------------------------------------\n" ;
ziliao();
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 0:
break;
default:
cout<<"不要乱输入"<<endl;
}
}
}
void maoxian()
{
int i=0,n=0,l=1;
while(l)
{
cout<<"输入 1 打普通怪物(1~5级)"<<endl;
cout<<"输入 2 打大怪(5~10级)"<<endl;
cout<<"输入 3 打BOOS(15级)"<<endl;
cout<<"输入 0 返回宗门"<<endl;
cin>>l;
switch(l)
{
case 1:
cout<<"-------------------------------------------------------------------------------\n" ;
xiaoguai();
if(shengming<=0)
{
break;
}
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 2:
cout<<"-------------------------------------------------------------------------------\n" ;
if(jingyan/100<5)
{
cout<<"等级过低"<<endl;
cout<<"-------------------------------------------------------------------------------\n" ;
break;
}
daguai();
if(shengming<=0)
{
break;
}
cout<<"-------------------------------------------------------------------------------\n" ;
break;
case 3:
cout<<"-------------------------------------------------------------------------------\n" ;
if(jingyan/100<10)
{
cout<