#include<bits/stdc++.h>
#include<Windows.h>
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include<conio.h>
using namespace std;
int jb=0;
int guaiwuxieliang=0,guaiwugongji=0;//怪物血量、攻击
int jinqian=0;//金钱
int dengji=1,jingyan=0;//等级、经验
int hp=100;//血量
int qianbi=0;//铅笔数量
int fy=5,gj=10;//防御及攻击
int bishou=0;//定义匕首数量
int pijia=0,tiejia=0,duanjian=0;//定义皮甲、铁甲、短剑的数量
int wushidao=0,dadao=0;//武士刀、大刀的数量
int wujinjia=0,dajian=0,dabaojian=0;//定义钨金甲、大剑、大宝剑数量
int yunnanbaiyao=0,fuxidan=0;//云南白药、复息丹数量
int qiangtidan=0,fanshengdan;//强体丹、返生丹
int lingshi1=0,lingshi2=0,lingshi3=0,lingshi4=0,lingshiji;//一品灵石、二品灵石、三品灵石、四品灵石、极品灵石数量
int baozhajuanzhou=0,leidianjuanzhou=0,huozhuojuanzhou=0,huimiejuanzhou=0;//爆炸卷轴、雷电卷轴、火灼卷轴、毁灭卷轴数量
int shoutoushiyuanzidan=0,shoulei=0,jiatelin=0;//手投式原子弹、手雷、加特林数量
string as;int shuru=0;
string sywuqi="无", csfangjv="无";
int sj;
int rw=0;
void out(string sty, bool huanhang)
{
for(int i=0; i<sty.size(); i++)
{
_sleep(50);
cout<<sty[i];
}
if(huanhang==1)
cout<<endl;
}
void zuozheshangdian()
{
for(int i=1;i>0;i++)
{
system("cls");
cout<<"你已进入作者的商店"<<endl;
cout<<" ███████████"<<endl;
cout<<" █ ____ █"<<endl;
cout<<" █ (作者) █"<<endl;
cout<<" █ ◣◢ █"<<endl;
cout<<" █ / ▏▏\ █"<<endl;
cout<<" ███████████"<<endl;
cout<<" ███████████"<<endl;
cout<<"1.手投式原子弹 伤害50000 55000元"<<endl;
cout<<"2.加特林 伤害3000 11000元"<<endl;
cout<<"3.手雷 伤害100 800元"<<endl;
cout<<"4.作者的铅笔 伤害+50 5000元"<<endl;
cout<<"5.敬请期待"<<endl;
cout<<"6.退出商店"<<endl;
cin>>shuru;
if(shuru==1)
{
if(jinqian >=11000)
{
if(rw==3)
rw++;
cout<<"购买成功 金钱-55000 手投式原子弹+1"<<endl;
jinqian-=55000;
shoutoushiyuanzidan+=1;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==2)
{
if(jinqian >=9000)
{
if(rw==3)
rw++;
cout<<"购买成功 金钱-11000 加特林+1"<<endl;
jinqian-=11000;
jiatelin+=1;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==3)
{
if(jinqian >=11000)
{
if(rw==3)
rw++;
cout<<"购买成功 金钱-800 手雷+1"<<endl;
jinqian-=800;
shoulei+=1;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==4)
{
if(jinqian >=5000)
{
if(rw==3)
rw++;
cout<<"购买成功 金钱-1000 铅笔+1"<<endl;
jinqian-=1000;
qianbi+=1;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==6)
break;
}
}
void shuaiguai()
{
system("cls");
out("你来到了刷怪区",1);
system("pause");
for(;;)
{
srand(time(NULL));
system("cls");
sj=rand()%56;
if(sj==0)
{
system("cls");
cout<<"你遇到了一个一品青纹蟒"<<endl;
guaiwugongji=4;
guaiwuxieliang=90;
jb=20;
}
if(sj==1)
{
system("cls");
cout<<"你遇到了一个二品青纹蟒"<<endl;
guaiwugongji=8;
guaiwuxieliang=100;
jb=40;
}
if(sj==2)
{
system("cls");
cout<<"你遇到了一个三品青纹蟒"<<endl;
guaiwugongji=13;
guaiwuxieliang=100;
jb=50;
}
if(sj==3)
{
system("cls");
cout<<"你遇到了一个四品青纹蟒"<<endl;
guaiwugongji=20;
guaiwuxieliang=150;
jb=130;
}
if(sj==4)
{
system("cls");
cout<<"你遇到了一个五品青纹蟒"<<endl;
guaiwugongji=30;
guaiwuxieliang=230;
jb=300;
}
if(sj==5)
{
system("cls");
cout<<"你遇到了一个七品青纹蟒"<<endl;
guaiwugongji=52;
guaiwuxieliang=760;
jb=550;
}
if(sj==6)
{
system("cls");
cout<<"你遇到了一个青纹蟒兽将"<<endl;
guaiwugongji=100;
guaiwuxieliang=1122;
jb=1122;
}
if(sj==7)
{
system("cls");
cout<<"你遇到了一个一品烈焰狮"<<endl;
guaiwugongji=5;
guaiwuxieliang=92;
jb=26;
}
if(sj==8)
{
system("cls");
cout<<"你遇到了一个二品烈焰狮"<<endl;
guaiwugongji=8;
guaiwuxieliang=110;
jb=36;
}
if(sj==9)
{
system("cls");
cout<<"你遇到了一个三品烈焰狮"<<endl;
guaiwugongji=13;
guaiwuxieliang=120;
jb=48;
}
if(sj==10)
{
system("cls");
cout<<"你遇到了一个四品烈焰狮"<<endl;
guaiwugongji=20;
guaiwuxieliang=150;
jb=105;
}
if(sj==11)
{
system("cls");
cout<<"你遇到了一个五品烈焰狮"<<endl;
guaiwugongji=40;
guaiwuxieliang=280;
jb=600;
}
if(sj==12)
{
system("cls");
cout<<"你遇到了一个七品烈焰狮"<<endl;
guaiwugongji=60;
guaiwuxieliang=760;
jb=800;
}
if(sj==13)
{
system("cls");
cout<<"你遇到了一个烈焰狮兽将"<<endl;
guaiwugongji=70;
guaiwuxieliang=2233;
jb=2233;
}
if(sj==14)
{
system("cls");
cout<<"你遇到了一个一品狂暴石巨人"<<endl;
guaiwugongji=5;
guaiwuxieliang=100;
jb=30;
}
if(sj==15)
{
system("cls");
cout<<"你遇到了一个二品狂暴石巨人"<<endl;
guaiwugongji=8;
guaiwuxieliang=130;
jb=20;
}
if(sj==16)
{
system("cls");
cout<<"你遇到了一个三品狂暴石巨人"<<endl;
guaiwugongji=10;
guaiwuxieliang=150;
jb=80;
}
if(sj==17)
{
system("cls");
cout<<"你遇到了一个四品狂暴石巨人"<<endl;
guaiwugongji=13;
guaiwuxieliang=190;
jb=150;
}
if(sj==18)
{
system("cls");
cout<<"你遇到了一个五品狂暴石巨人"<<endl;
guaiwugongji=38;
guaiwuxieliang=300;
jb=210;
}
if(sj==19)
{
system("cls");
cout<<"你遇到了一个七品狂暴石巨人"<<endl;
guaiwugongji=50;
guaiwuxieliang=820;
jb=850;
}
if(sj==20)
{
system("cls");
cout<<"你遇到了一个狂暴石巨人兽将"<<endl;
guaiwugongji=70;
guaiwuxieliang=2500;
jb=2550;
}
if(sj==21)
{
system("cls");
cout<<"你遇到了一个一品金纹蟒"<<endl;
guaiwugongji=10;
guaiwuxieliang=70;
jb=50;
}
if(sj==22)
{
system("cls");
cout<<"你遇到了一个二品金纹蟒"<<endl;
guaiwugongji=10;
guaiwuxieliang=80;
jb=50;
}
if(sj==23)
{
system("cls");
cout<<"你遇到了一个三品金纹蟒"<<endl;
guaiwugongji=10;
guaiwuxieliang=90;
jb=90;
}
if(sj==24)
{
system("cls");
cout<<"你遇到了一个四品金纹蟒"<<endl;
guaiwugongji=20;
guaiwuxieliang=150;
jb=95;
}
if(sj==25)
{
system("cls");
cout<<"你遇到了一个五品金纹蟒"<<endl;
guaiwugongji=40;
guaiwuxieliang=280;
jb=260;
}
if(sj==26)
{
system("cls");
cout<<"你遇到了一个七品金纹蟒"<<endl;
guaiwugongji=60;
guaiwuxieliang=780;
jb=900;
}
if(sj==27)
{
system("cls");
cout<<"你遇到了一个金纹蟒兽将"<<endl;
guaiwugongji=80;
guaiwuxieliang=2200;
jb=5333;
}
if(sj==28)
{
system("cls");
cout<<"你遇到了一个一品剑狮"<<endl;
guaiwugongji=10;
guaiwuxieliang=90;
jb=100;
}
if(sj==29)
{
system("cls");
cout<<"你遇到了一个二品剑狮"<<endl;
guaiwugongji=12;
guaiwuxieliang=100;
jb=240;
}
if(sj==30)
{
system("cls");
cout<<"你遇到了一个三品剑狮"<<endl;
guaiwugongji=16;
guaiwuxieliang=100;
jb=50;
}
if(sj==30)
{
system("cls");
cout<<"你遇到了一个四品剑狮"<<endl;
guaiwugongji=28;
guaiwuxieliang=150;
jb=130;
}
if(sj==32)
{
system("cls");
cout<<"你遇到了一个五品剑狮"<<endl;
guaiwugongji=40;
guaiwuxieliang=230;
jb=300;
}
if(sj==33)
{
system("cls");
cout<<"你遇到了一个七品剑狮"<<endl;
guaiwugongji=60;
guaiwuxieliang=760;
jb=550;
}
if(sj==34)
{
system("cls");
cout<<"你遇到了一个剑狮兽将"<<endl;
guaiwugongji=150;
guaiwuxieliang=1122;
jb=1122;
}
if(sj==35)
{
system("cls");
cout<<"你遇到了一个一品寒冰蟒"<<endl;
guaiwugongji=10;
guaiwuxieliang=90;
jb=50;
}
if(sj==36)
{
system("cls");
cout<<"你遇到了一个二品寒冰蟒"<<endl;
guaiwugongji=12;
guaiwuxieliang=100;
jb=150;
}
if(sj==37)
{
system("cls");
cout<<"你遇到了一个三品寒冰蟒"<<endl;
guaiwugongji=16;
guaiwuxieliang=100;
jb=200;
}
if(sj==38)
{
system("cls");
cout<<"你遇到了一个四品寒冰蟒"<<endl;
guaiwugongji=28;
guaiwuxieliang=150;
jb=5555;
}
if(sj==39)
{
system("cls");
cout<<"你遇到了一个五品寒冰蟒"<<endl;
guaiwugongji=40;
guaiwuxieliang=230;
jb=650;
}
if(sj==40)
{
system("cls");
cout<<"你遇到了一个七品寒冰蟒"<<endl;
guaiwugongji=60;
guaiwuxieliang=760;
jb=1000;
}
if(sj==41)
{
system("cls");
cout<<"你遇到了一个寒冰蟒兽将"<<endl;
guaiwugongji=150;
guaiwuxieliang=1122;
jb=2800;
}
if(sj==42)
{
system("cls");
cout<<"你遇到了一个一品草木怪"<<endl;
guaiwugongji=10;
guaiwuxieliang=90;
jb=20;
}
if(sj==43)
{
system("cls");
cout<<"你遇到了一个二品草木怪"<<endl;
guaiwugongji=10;
guaiwuxieliang=100;
jb=50;
}
if(sj==44)
{
system("cls");
cout<<"你遇到了一个三品草木怪"<<endl;
guaiwugongji=16;
guaiwuxieliang=100;
jb=80;
}
if(sj==45)
{
system("cls");
cout<<"你遇到了一个四品草木怪"<<endl;
guaiwugongji=30;
guaiwuxieliang=180;
jb=100;
}
if(sj==46)
{
system("cls");
cout<<"你遇到了一个五品草木怪"<<endl;
guaiwugongji=50;
guaiwuxieliang=280;
jb=350;
}
if(sj==47)
{
system("cls");
cout<<"你遇到了一个七品草木怪"<<endl;
guaiwugongji=60;
guaiwuxieliang=780;
jb=620;
}
if(sj==48)
{
system("cls");
cout<<"你遇到了一个草木怪兽将"<<endl;
guaiwugongji=150;
guaiwuxieliang=1234;
jb=2800;
}
if(sj==49)
{
system("cls");
cout<<"你遇到了一个一品牛甲虫"<<endl;
guaiwugongji=5;
guaiwuxieliang=80;
jb=20;
}
if(sj==50)
{
system("cls");
cout<<"你遇到了一个二品牛甲虫"<<endl;
guaiwugongji=10;
guaiwuxieliang=90;
jb=30;
}
if(sj==51)
{
system("cls");
cout<<"你遇到了一个三品牛甲虫"<<endl;
guaiwugongji=10;
guaiwuxieliang=100;
jb=60;
}
if(sj==52)
{
system("cls");
cout<<"你遇到了一个四品牛甲虫"<<endl;
guaiwugongji=20;
guaiwuxieliang=180;
jb=80;
}
if(sj==53)
{
system("cls");
cout<<"你遇到了一个五品牛甲虫"<<endl;
guaiwugongji=40;
guaiwuxieliang=280;
jb=280;
}
if(sj==54)
{
system("cls");
cout<<"你遇到了一个七品牛甲虫"<<endl;
guaiwugongji=50;
guaiwuxieliang=750;
jb=580;
}
if(sj==55)
{
system("cls");
cout<<"你遇到了一个牛甲虫兽将"<<endl;
guaiwugongji=130;
guaiwuxieliang=1111;
jb=1100;
}
for(int e=1;e>0;e++){
cout<<"1.使用普通攻击 攻击力+"<<gj<<endl;
if(baozhajuanzhou!=0)
{
cout<<"2.使用爆炸卷轴 攻击力+40"<<endl;
}
if(leidianjuanzhou!=0)
{
cout<<"3.使用雷电卷轴 攻击力+60"<<endl;
}
if(huozhuojuanzhou!=0)
{
cout<<"4.使用火灼卷轴 攻击力+30"<<endl;
}
if(huimiejuanzhou!=0)
{
cout<<"5.使用毁灭卷轴 攻击力+1000"<<endl;
}
if(shoutoushiyuanzidan!=0)
{
cout<<"6.使用手投式原子弹 攻击力+50000"<<endl;
}
if(jiatelin!=0)
{
cout<<"7.使用加特林 攻击力+8000"<<endl;
}
if(shoulei!=0)
{
cout<<"8.使用手雷 攻击力+800"<<endl;
}
if(yunnanbaiyao!=0)
{
cout<<"9.使用云南白药 血量+500"<<endl;
}
if(fuxidan!=0)
{
cout<<"10.使用复息丹 血量+100"<<endl;
}
if(fanshengdan!=0)
{
cout<<"11.使用返生丹 血量+600"<<endl;
}
cout<<"12.逃跑"<<endl;
cin>>shuru;
if(shuru==12){
cout<<"逃跑成功"<<endl;
system("pause");
break;
}
if(shuru==1)
{
system("cls");
cout<<"你使出全力一击,打掉了怪物"<<gj<<"滴血"<<endl;
guaiwuxieliang-=gj;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
if(shuru==2)
{
if(baozhajuanzhou!=0)
{
system("cls");
cout<<"你扔出一个爆炸卷轴,炸了它40滴血"<<endl;
guaiwuxieliang-=40;
baozhajuanzhou-=1;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==3)
{
if(leidianjuanzhou!=0)
{
system("cls");
cout<<"你扔出一个雷电卷轴,打了它60滴血"<<endl;
guaiwuxieliang-=60;
leidianjuanzhou-=1;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==4)
{
if(huozhuojuanzhou!=0)
{
huozhuojuanzhou-=1;
system("cls");
cout<<"你扔出一个火灼卷轴,打了它30滴血"<<endl;
guaiwuxieliang-=30;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==5)
{
if(huimiejuanzhou!=0)
{
system("cls");
huimiejuanzhou-=1;
cout<<"你扔出一个毁灭卷轴卷轴,灭了它1000滴血"<<endl;
guaiwuxieliang-=2000;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==6)
{
if(shoutoushiyuanzidan!=0)
{
system("cls");
shoutoushiyuanzidan-=1;
cout<<"你扔出一个手投式原子弹,轰了它50000滴血"<<endl;
guaiwuxieliang-=50000;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==7)
{
if(jiatelin!=0)
{
system("cls");
cout<<"你掏出82年的加特林,对着它一顿突突突,干了它8000滴血"<<endl;
guaiwuxieliang-=3000;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==8)
{
if(jiatelin!=0)
{
system("cls");
jiatelin-=1;
cout<<"你扔出82年的手雷,干了它100滴血"<<endl;
guaiwuxieliang-=100;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
cout<<"金币+"<<jb;
jinqian+=jb;
_sleep(2000);
system("cls");
break;
}
}
}
if(shuru==9)
{
system("cls");
cout<<"你使用了云南白药 血量+500"<<endl;
hp+=500;
yunnanbaiyao-=1;
system("pause");
}
if(shuru==10)
{
system("cls");
cout<<"你使用了复息丹 血量+100"<<endl;
hp+=100;
fuxidan-=1;
system("pause");
}
if(shuru==11)
{
system("cls");
cout<<"你使用了返生丹 血量+600"<<endl;
hp+=600;
fanshengdan-=1;
system("pause");
}
_sleep(1000);
system("cls");
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
if(hp<=guaiwugongji+5&&fy>=guaiwugongji)
{
cout<<"你快没有血了,确定还要打吗"<<endl;
cout<<" 是 否"<<endl;
cin>>as;
if(as=="是")
{
cout<<"可以,但是你在被打一两下就隔了"<<endl;
system("pause");
}
if(as=="否")
{
cout<<"逃跑成功"<<endl;
break;
}
}
cout<<"它冲过来狠狠的攻击了你"<<endl;
sj=rand()%4;
if(sj==0)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==1)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==2)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==3)
{
cout<<"你躲开了一击"<<endl;
}
}
system("cls");
out("你是否要继续刷怪",1);
cout<<" 1.是 2.否"<<endl;
cin>>shuru;
if(shuru==2)
break;
}
}
void dagong()
{
_sleep(1000);
system("cls");
for(int h=0;h<50;h++)
{ system("cls");
cout<<"打工中..."<<endl;
cout<<"请稍等"<<endl<<endl<<endl;
cout<<" ○"<<endl;
cout<<" <|乚■"<<endl;
cout<<" √』"<<endl;
system("cls");
cout<<"打工中..."<<endl;
cout<<"请稍等"<<endl<<endl<<endl;
cout<<" ○ ■"<<endl;
cout<<" 『|√ "<<endl;
cout<<" √>"<<endl;
_sleep(10);
system("cls");
cout<<"打工中..."<<endl;
cout<<"请稍等"<<endl<<endl;
cout<<" ■"<<endl;
cout<<" ○/ "<<endl;
cout<<" 『| "<<endl;
cout<<" √>"<<endl;
_sleep(10);
system("cls");
cout<<"打工中..."<<endl;
cout<<"请稍等"<<endl;
cout<<" ■"<<endl<<endl;
cout<<" ○/ "<<endl;
cout<<" 『| "<<endl;
cout<<" √>"<<endl;
_sleep(10);
}
system("cls");
out("经过一段时间的打工赚钱,你变得更强壮了,还赚了100元",1);
out("经验+30 金钱+100",1);
jingyan+=30;
jinqian+=100;
rw++;
system("pause");
cout<<endl;
}
void zhuxianrenwu()
{
system("cls");
if(rw==0)
{
cout<<"主线任务进度20/"<<rw<<endl;
cout<<"为了提高战斗力,你需要一把匕首。" <<endl;
_sleep(200);
cout<<" ____________________"<<endl;
_sleep(100);
cout<<" | 武器店 |"<<endl;
_sleep(100);
cout<<" |--------------------|"<<endl;
_sleep(100);
cout<<" | ( )哈喽! |"<<endl;
_sleep(100);
cout<<" | /|\ |"<<endl;
_sleep(100);
cout<<" ███████████"<<endl;
cout<<"是否前往武器店?(填 是 或 否)"<<endl;
cin>>as;
if(as=="是")
{
cout<<"购买成功!金钱-0 匕首+1"<<endl;
bishou++;rw++;
_sleep(1000);
system("cls");
}
if(as=="否")
{
out("你刚要离开武器店,武器店店主却叹一口气",1);
_sleep(300);
out("武器店店主:这把匕首送你了吧,我看出了你的不一般。",1);
cout<<"匕首+1";
bishou++;rw++;
_sleep(1000);
system("cls");
}
if(as!="否"&&as!="是")
{
cout<<"已退出主线任务"<<endl;
system("cls");
}
}
if(rw==1)
{
cout<<"主线任务进度20/"<<rw<<endl;
_sleep(1000);
system("cls");
cout<<"你现在需要一些钱"<<endl;
cout<<"1.打怪赚钱 2.打工赚钱"<<endl;
cout<<"3.退出主线任务"<<endl;
cin>>shuru;
if(shuru==1)
{
system("cls");
cout<<"你来到了刷怪区";
cout<<endl;
sj=rand()%3;
if(sj==0)
{
cout<<"你遇到了一个一品青纹蟒 "<<endl;
cout<<"你很有胜算,要不要干它?"<<endl;
cout<<" 要 不要 "<<endl;
cin>>as;
if(as=="要")
{
cout<<"你轻松的干掉了它"<<endl;
cout<<"你卖掉它的妖核赚了100金钱 金钱+100 经验+50"<<endl;
jingyan+=50;
jinqian+=100;
rw++;
_sleep(1000);
system("cls");
}
if(as=="不要")
{
cout<<"你赶紧跑开了"<<endl;
}
}
if(sj==1)
{
cout<<"你遇到了一个三品青纹蟒 "<<endl;
cout<<"你要不要干它?"<<endl;
cout<<" 要 不要 "<<endl;
cin>>as;
if(as=="要")
{
cout<<"你干掉了它,但扣了20滴血 血量-20"<<endl;
hp-=20;
cout<<"你卖掉它的妖核赚了200金钱 金钱+200 经验+120"<<endl;
jingyan+=120;
jinqian+=200;
rw++;
_sleep(1000);
system("cls");
}
if(as=="不要")
{
cout<<"你赶紧跑开了"<<endl;
}
}
if(sj==2)
{
cout<<"你遇到了一个五品狂暴石巨人 "<<endl;
cout<<"你要不要干它?"<<endl;
cout<<" 要 不要 "<<endl;
cin>>as;
if(as=="要")
{
if(dengji<5)
{
cout<<"你等级不太够,只有五成胜算"<<endl;
cout<<" 1.继续 按其他的逃跑"<<endl;
cin>>shuru;
if(shuru==1)
{
sj=rand()%2;
if(sj==0)
{
cout<<"你没干过它,嘎了"<<endl;
_sleep(1000);
system("cls");
}
if(sj==1)
{
cout<<"你干掉了它,搞到了700元,经验加100"<<endl;
jinqian+=700;
jingyan+=100;
rw++;
}
}
else{
cout<<"你成功逃跑"<<endl;
}
}
if(dengji>=5)
{
cout<<"你干掉了它,搞到了700元,经验加100"<<endl;
jinqian+=700;
jingyan+=100;
rw++;
}
}
}
}
if(shuru==2)
{
dagong();
}
if(shuru!=1&&shuru!=2)
{
cout<<"已退出主线任务";
_sleep(800);
system("cls");
}
}
if(rw==2)
{
system("cls");
cout<<"主线任务进度20/"<<rw<<endl;
_sleep(2000);
system("cls");
cout<<"任务:打败一个七品妖兽"<<endl;
_sleep(2000);
system("cls");
cout<<"程序猿帮你找了一个七品灵猿"<<endl;
_sleep(1000);
system("cls");
guaiwugongji=70;
guaiwuxieliang=850;
if(dengji>=7)
{
for(int e=1;e>0;e++){
cout<<"1.使用普通攻击 攻击力+"<<gj<<endl;
if(baozhajuanzhou!=0)
{
cout<<"2.使用爆炸卷轴 攻击力+40"<<endl;
}
if(leidianjuanzhou!=0)
{
cout<<"3.使用雷电卷轴 攻击力+60"<<endl;
}
if(huozhuojuanzhou!=0)
{
cout<<"4.使用火灼卷轴 攻击力+30"<<endl;
}
if(huimiejuanzhou!=0)
{
cout<<"5.使用毁灭卷轴 攻击力+1000"<<endl;
}
cin>>shuru;
if(shuru==1)
{
system("cls");
cout<<"你使出全力一击,打掉了怪物"<<gj<<"滴血"<<endl;
guaiwuxieliang-=gj;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
rw++;
_sleep(1000);
system("cls");
break;
}
}
if(shuru==2)
{
if(baozhajuanzhou!=0)
{
system("cls");
cout<<"你扔出一个爆炸卷轴,炸了它40滴血"<<endl;
guaiwuxieliang-=40;
baozhajuanzhou-=1;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
rw++;
_sleep(1000);
system("cls");
break;
}
}
}
if(shuru==3)
{
if(leidianjuanzhou!=0)
{
system("cls");
cout<<"你扔出一个雷电卷轴,打了它60滴血"<<endl;
guaiwuxieliang-=60;
leidianjuanzhou-=1;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
rw++;
_sleep(1000);
system("cls");
break;
}
}
}
if(shuru==4)
{
if(huozhuojuanzhou!=0)
{
huozhuojuanzhou-=1;
system("cls");
cout<<"你扔出一个火灼卷轴,打了它30滴血"<<endl;
guaiwuxieliang-=30;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
rw++;
_sleep(1000);
system("cls");
break;
}
}
}
if(shuru==5)
{
if(huimiejuanzhou!=0)
{
system("cls");
huimiejuanzhou-=1;
cout<<"你扔出一个毁灭卷轴卷轴,灭了它1000滴血"<<endl;
guaiwuxieliang-=1000;
if(guaiwuxieliang>=1)
{
cout<<"它还有"<<guaiwuxieliang<<"滴血"<<endl;
}
else{
cout<<"它大叫一声倒下了"<<endl;
rw++;
_sleep(1000);
system("cls");
break;
}
}
}
_sleep(1000);
system("cls");
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
if(hp<=75)
{
cout<<"你快没有滴血了,确定还要打吗"<<endl;
cout<<" 是 否"<<endl;
cin>>as;
if(as=="是")
{
cout<<"可以,但是你在被打一两下就隔了"<<endl;
system("pause");
}
if(as=="否")
{
cout<<"逃跑成功"<<endl;
break;
}
}
cout<<"它冲过来狠狠的攻击了你"<<endl;
sj=rand()%4;
if(sj==0)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==1)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==2)
{
if(fy>=guaiwugongji)
cout<<"你被它打掉了0滴血"<<endl;
else{
cout<<"你被它打掉了"<<guaiwugongji<<"滴血"<<endl;
}
hp-=guaiwugongji;
if(hp<=0)
{
cout<<"你隔了"<<endl;
_sleep(1000);
break;
}
}
if(sj==3)
{
cout<<"你躲开了一击"<<endl;
}
}
}
if(dengji<7)
{
cout<<"你等级太低了,升到7级再打吧"<<endl;
_sleep(2000);
system("cls");
}
}
}
void zishenshuxin()
{
system("cls");
cout<<"生命:"<<hp<<endl;
cout<<"杀伤:"<<gj<<endl;
cout<<"防御:"<<fy<<endl;
cout<<"等级:"<<dengji<<endl;
cout<<"经验:"<<jingyan<<endl;
cout<<"金钱:"<<jinqian<<endl;
system("pause");
}
void shangdian()
{
for(;;)
{
system("cls");
cout<<" __________ " <<"金钱:"<<jinqian<<endl;
cout<<"[ 商店 ]"<<endl;
cout<<"|==========|"<<endl;
cout<<"| (-)/ |"<<endl;
cout<<"| /| |"<<endl;
cout<<"[##########]"<<endl;
cout<<"1.匕首 50元 伤害+5 "<<endl;
cout<<"2.皮甲 120元 防御+3 "<<endl;
cout<<"3.铁甲 260元 防御+6 "<<endl;
cout<<"4.短剑 100元 伤害+8 "<<endl;
cout<<"5.武士刀 180元 伤害+12 "<<endl;
cout<<"6.大剑 220元 伤害+18 "<<endl;
cout<<"7.大宝剑 350元 伤害+24 "<<endl;
cout<<"8.钨金甲 1800元 防御+30 "<<endl;
cout<<"9.云南白药 1000元 血量+500"<<endl;
cout<<"10.复息丹 200元 血量+100"<<endl;
cout<<"11.返生丹 1200元 血量+600"<<endl;
cout<<"12.强体丹 890元 防御+15 "<<endl;
cout<<"13.一品灵石 100元 经验+30 "<<endl;
cout<<"14.二品灵石 125元 经验+40 "<<endl;
cout<<"15.三品灵石 230元 经验+70 "<<endl;
cout<<"16.四品灵石1000元 经验+310 "<<endl;
cout<<"17.极品灵石5000元 经验+550 "<<endl;
cout<<"18.退出商店"<<endl;
cin>>shuru;
if(shuru==18)
{
break;
}
if(shuru==1)
{
if(jinqian>=50)
{
system("cls");
cout<<"购买成功! 匕首+1"<<endl;
bishou+=1;
jinqian-=50;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==2)
{
if(jinqian>=120)
{
system("cls");
cout<<"购买成功! 皮甲+1"<<endl;
cout<<endl;
pijia+=1;
jinqian-=120;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==3)
{
system("pause");
if(jinqian>=260)
{
system("cls");
cout<<"购买成功! 铁甲+1"<<endl;
cout<<endl;
tiejia+=1;
jinqian-=260;
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==4)
{
if(jinqian>=100)
{
system("cls");
cout<<"购买成功! 短剑+1"<<endl;
cout<<endl;
duanjian+=1;
jinqian-=100;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==5)
{
if(jinqian>=180)
{
system("cls");
cout<<"购买成功! 武士刀+1"<<endl;
cout<<endl;
wushidao+=1;
jinqian-=180;
system("pause");
system("cls");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==6)
{
if(jinqian>=220)
{
system("cls");
cout<<"购买成功! 大剑+1"<<endl;
cout<<endl;
dajian+=1;
jinqian-=220;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==7)
{
if(jinqian>=350)
{
system("cls");
cout<<"购买成功! 大宝剑+1"<<endl;
cout<<endl;
dabaojian+=1;
jinqian-=350;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==9)
{
if(jinqian>=1000)
{
system("cls");
cout<<"购买成功! 云南白药+1"<<endl;
cout<<endl;
yunnanbaiyao+=1;
jinqian-=1000;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==8)
{
if(jinqian>=1800)
{
system("cls");
cout<<"购买成功! 钨金甲+1"<<endl;
cout<<endl;
wujinjia+=1;
jinqian-=1800;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==10)
{
if(jinqian>=200)
{
system("cls");
cout<<"购买成功! 复息丹+1"<<endl;
cout<<endl;
fuxidan+=1;
jinqian-=200;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==11)
{
if(jinqian>=1200)
{
system("cls");
cout<<"购买成功! 返生丹+1"<<endl;
cout<<endl;
fanshengdan+=1;
jinqian-=1200;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==12)
{
if(jinqian>=890)
{
system("cls");
cout<<"购买成功! 强体丹+1"<<endl;
cout<<endl;
qiangtidan+=1;
jinqian-=890;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==13)
{
if(jinqian>=100)
{
system("cls");
cout<<"购买成功! 一品灵石+1"<<endl;
cout<<endl;
lingshi1+=1;
jinqian-=100;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==14)
{
if(jinqian>=125)
{
system("cls");
cout<<"购买成功! 二品灵石+1"<<endl;
cout<<endl;
lingshi2+=1;
jinqian-=125;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==15)
{
if(jinqian>=230)
{
system("cls");
cout<<"购买成功! 三品灵石+1"<<endl;
cout<<endl;
lingshi3+=1;
jinqian-=230;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==16)
{
if(jinqian>=1000)
{
system("cls");
cout<<"购买成功! 四品灵石+1"<<endl;
cout<<endl;
lingshi4+=1;
jinqian-=1000;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
if(shuru==17)
{
if(jinqian>=5000)
{
system("cls");
cout<<"购买成功! 极品灵石+1"<<endl;
cout<<endl;
lingshiji+=1;
jinqian-=5000;
system("pause");
}
else{
cout<<"金钱不足"<<endl;
system("pause");
}
}
}
}
void chakanzhuangbei()
{
for(;;){
system("cls");
cout<<"正在使用的武器:";
cout<<sywuqi<<endl;
cout<<"正在使用的防具:";
cout<<csfangjv<<endl;
cout<<"背包:"<<endl;
cout<<"金钱:"<<jinqian<<endl;
if(bishou != 0)
cout<<bishou<<"个匕首"<<endl;
if(duanjian != 0)
cout<<duanjian<<"个短剑"<<endl;
if(wushidao != 0)
cout<<wushidao<<"个武士刀"<<endl;
if(dajian != 0)
cout<<dajian<<"个大剑"<<endl;
if(dabaojian != 0)
cout<<dabaojian<<"个大宝剑"<<endl;
if(pijia != 0)
cout<<pijia<<"个皮甲"<<endl;
if(tiejia != 0)
cout<<tiejia<<"个铁甲"<<endl;
if(wujinjia != 0)
cout<<wujinjia<<"个钨金甲"<<endl;
if(shoutoushiyuanzidan != 0)
cout<<shoutoushiyuanzidan<<"个手投式原子弹"<<endl;
if(shoulei != 0)
cout<<shoulei<<"个手雷"<<endl;
if(yunnanbaiyao != 0)
cout<<yunnanbaiyao<<"个云南白药"<<endl;
if(fuxidan != 0)
cout<<fuxidan<<"个复息丹"<<endl;
if(fanshengdan != 0)
cout<<fanshengdan<<"个返生丹"<<endl;
if(qiangtidan != 0)
cout<<qiangtidan<<"个强体丹"<<endl;
if(lingshi1 != 0)
cout<<lingshi1<<"个一品灵石"<<endl;
if(lingshi2 != 0)
cout<<lingshi2<<"个二品灵石"<<endl;
if(lingshi3 != 0)
cout<<lingshi3<<"个三品灵石"<<endl;
if(lingshi4 != 0)
cout<<lingshi4<<"个四品灵石"<<endl;
if(lingshiji != 0)
cout<<lingshiji<<"个极品灵石"<<endl;
if(leidianjuanzhou != 0)
cout<<leidianjuanzhou<<"个雷电卷轴"<<endl;
if(baozhajuanzhou != 0)
cout<<baozhajuanzhou<<"个爆炸卷轴"<<endl;
if(huozhuojuanzhou != 0)
cout<<huozhuojuanzhou<<"个火灼卷轴"<<endl;
if(huimiejuanzhou != 0)
cout<<huimiejuanzhou<<"个毁灭卷轴"<<endl;
cout<<"如果需要使用物品,请说物品名称"<<endl;
cout<<"否则输入退出"<<endl;
cin>>as;
system("cls");
if(as=="退出")
break;
bool aaa=false, ccc=false;
if(as=="匕首" && bishou!=0){
cout<<"使用"<<as<<"成功"<<endl;
gj += 5;
aaa=true;
bishou--;
}
else if(as=="短剑" && duanjian!=0){
cout<<"使用"<<as<<"成功"<<endl;
aaa=true;
gj += 8;
duanjian--;
}
else if(as=="武士刀" && wushidao!=0){
cout<<"使用"<<as<<"成功"<<endl;
aaa=true;
gj += 12;
wushidao--;
}
else if(as=="大剑" && dajian!=0){
cout<<"使用"<<as<<"成功"<<endl;
aaa=true;
gj += 18;
dajian--;
}
else if(as=="大宝剑" && dabaojian!=0){
cout<<"使用"<<as<<"成功"<<endl;
aaa=true;
gj += 24;
dabaojian--;
}
else if(as=="皮甲" && pijia!=0){
cout<<"使用"<<as<<"成功"<<endl;
ccc=true;
fy += 3;
pijia--;
}
else if(as=="铁甲" && tiejia!=0){
cout<<"使用"<<as<<"成功"<<endl;
ccc=true;
fy += 6;
tiejia--;
}
else if(as=="钨金甲" && wujinjia!=0){
cout<<"使用"<<as<<"成功"<<endl;
ccc=true;
fy += 30;
wujinjia--;
}
else if(as=="一品灵石" && lingshi1!=0){
cout<<"使用"<<as<<"成功"<<endl;
jingyan += 30;
lingshi1--;
}
else if(as=="二品灵石" && lingshi2!=0){
cout<<"使用"<<as<<"成功"<<endl;
jingyan += 40;
lingshi2--;
}
else if(as=="三品灵石" && lingshi3!=0){
cout<<"使用"<<as<<"成功"<<endl;
jingyan += 70;
lingshi3--;
}
else if(as=="四品灵石" && lingshi4!=0){
cout<<"使用"<<as<<"成功"<<endl;
jingyan += 310;
lingshi4--;
}
else if(as=="极品灵石" && lingshiji!=0){
cout<<"使用"<<as<<"成功"<<endl;
jingyan += 550;
lingshiji--;
}
else if(as=="复息丹" && fuxidan!=0){
cout<<"使用"<<as<<"成功"<<endl;
hp += 100;
fuxidan--;
}
else if(as=="强体丹" && qiangtidan!=0){
cout<<"使用"<<as<<"成功"<<endl;
fy += 3;
qiangtidan--;
}
else if(as=="云南白药" && yunnanbaiyao!=0){
cout<<"使用"<<as<<"成功"<<endl;
hp += 500;
yunnanbaiyao--;
}
else if(as=="返生丹" && fanshengdan!=0){
cout<<"使用"<<as<<"成功"<<endl;
hp += 600;
fanshengdan--;
}
else
cout<<"使用失败"<<endl;
if(aaa)
sywuqi = as;
if(ccc)
csfangjv = as;
system("pause");
}
}
int main(){
cout<<" ███ ███ ███ █ "<<endl;
_sleep(500);
cout<<" █ █ █ █ █ █ ██ "<<endl;
_sleep(500);
cout<<" █ █ █ █ █ █ █ █ "<<endl;
_sleep(500);
cout<<" ███ ████ ███ █ █ "<<endl;
_sleep(500);
cout<<" █ █ █ █ ██████"<<endl;
_sleep(500);
cout<<" █ █ █ █ █ █ "<<endl;
_sleep(500);
cout<<" ███ █ ███ █ "<<endl;
_sleep(500);
cout<<" 8984号工作室"<<endl;
system("pause");
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" ○ █"<<endl;
system("cls");
cout<<" 修○█"<<endl;
system("cls");
cout<<" 修仙○█"<<endl;
system("cls");
cout<<" 修仙之○█"<<endl;
system("cls");
cout<<" 修仙之路○█"<<endl;
system("cls");
cout<<" █○修仙之路○█"<<endl;
_sleep(600);
system("cls");
for(int i=0;i<39;i++)
{
cout<<"加载中..."<<endl;
for(int j=0;j<i;j++)
{
cout<<"●";
}
cout<<"冲啊!"<<endl;
system("cls");
}
system("pause");
for(;;){
if(dengji==1)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 防御+2 攻击+5",2);
dengji++;
fy+=2;
gj+=5;
jingyan=0;
system("pause");
system("cls");
}
}
if(dengji==2)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 防御+1 攻击+2",2);
dengji++;
fy+=1;
jingyan=0;
gj+=2;
system("pause");
system("cls");
}
}
if(dengji==3)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 攻击+5",2);
dengji++;
jingyan=0;
gj+=5;
system("pause");
system("cls");
}
}
if(dengji==4)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 金钱+100 攻击+5",2);
dengji++;
jingyan=0;
gj+=5;
jinqian+=100;
system("pause");
system("cls");
}
}
if(dengji==5)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 攻击+5",2);
dengji++;
gj+=5;
jingyan=0;
system("pause");
system("cls");
}
}
if(dengji==6)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 攻击+6",2);
jingyan=0;
dengji++;
gj+=6;
system("pause");
system("cls");
}
}
if(dengji==7)
{
if(jingyan>=1000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 攻击+10",2);
jingyan=0;
dengji++;
gj+=10;
system("pause");
system("cls");
}
}
if(dengji==8)
{
if(jingyan>=2000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 攻击+8",2);
dengji++;
gj+=8;
system("pause");
jingyan=0;
system("cls");
}
}
if(dengji==9)
{
if(jingyan>=10000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 防御+8 攻击+20",2);
jingyan=0;
dengji++;
fy+=8;
gj+=20;
system("pause");
system("cls");
}
}
if(dengji==10)
{
if(jingyan>=10000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 防御+5 攻击+15",2);
jingyan=0;
dengji++;
fy+=5;
gj+=15;
system("pause");
system("cls");
}
}
if(dengji>10)
{
if(jingyan>=10000)
{
system("cls");
out("经过一段时间的努力,你的等级提升了一级",3);
cout<<endl;
out("等级+1 防御+2 攻击+2",2);
dengji++;
fy+=2;
gj+=2;
jingyan=0;
system("pause");
system("cls");
}
}
if(hp<=0)
{
break;
}
system("cls");
cout<<"1.主线任务"<<endl;
cout<<"2.查看装备"<<endl;
cout<<"3.查看自身属性"<<endl;
cout<<"4.进入刷怪区"<<endl;
cout<<"5.出去探索//待更新"<<endl;
cout<<"6.去商店"<<endl;
cout<<"7.去作者的商店"<<endl;
cout<<"8.打工"<<endl;
cin>>shuru;
if(shuru==123456789)
{
system("cls");
cout<<"密码正确,开挂成功"<<endl;
hp=10000000;
fy=10000000;
gj=10000000;
jinqian=10000000;
lingshi4=100000000;
baozhajuanzhou=1000;
leidianjuanzhou=600;
huozhuojuanzhou=1000;
huimiejuanzhou=400;
qiangtidan=1000;
dengji=10;
system("pause");
}
if(shuru==1)
{
if(hp<=0)
break;
zhuxianrenwu();
}
else if(shuru==2)
chakanzhuangbei();
else if(shuru==3)
zishenshuxin();
else if(shuru==4)
shuaiguai();
else if(shuru==6)
shangdian();
else if(shuru==7)
zuozheshangdian();
else if(shuru==8)
dagong();
srand(time(NULL));
}
return 0;
}
c++游戏修仙之路
于 2023-03-19 19:49:48 首次发布