中级天翼
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
int main(){
string c61,c62,c63,c64,c65,c66,c67;
bool zc1=false,zc2=false,zc3=false,zc4=false,zc5=false,zc6=false,zc7=false;
bool c1=false,c2=false,c3=false,c4=false,c5=false,c6=false,c7=false,b1=false,b2=false,b3=false,b4=false;
bool xcc=1,xcc1=1,xcc2=1,xcc3=1;
int jinbi=1000,maxn=14,minn=1,ans,kg=2,wx=70,ans2,minn1=1,maxn1=3,kg1=2,kg2=2,kg3=2;
char tianqixuanze,tianqixuanze1,tianqixuanze2,tianqixuanze3;
int guaixue,gxs;
char a,b,c,d,e,yidong,yidong1,yidong2,yidong3;
printf("剧情一直按c");
while(1){
a=getch();
if(a=='c'){
cout<<"\n你是一个冒险家,在海上航行时,不小心进入了四界传送门。";
b=getch();
if(b=='c'){
printf("\n那里有着四个世界,你必须将四界里所有的宝藏都拿到,才能回到家。");
c=getch();
if(c=='c'){
cout<<"\n每个世界都有秘密,秘密就是宝藏。(按F拿秘密)";
d=getch();
if(d=='c'){
cout<<"\n到最后面,就是一个boss";Sleep(1000);
cout<<"\n现在,开始你的四界之旅吧!";Sleep(2000);
break;
}
}
}
}
}
system("cls");
cout<<"游戏说明:\n 1.这个游戏需要用英文输入,因为用英文就可以不打回车\n 2.在武器抽奖里如果抽到了两边有空格的武器,那就说明是稀有武器";
Sleep(5000);
bool qjcs=true;
while(qjcs){
system("cls");
char bbj;
system("COLOR 0F");
cout<<"A.冒险 B.武器(随机抽奖)";
bbj=getch();
if(bbj=='A'){
system("cls");
char dtxz;
cout<<"A.苦力怕森林 B.湿润沼泽 C.红石矿山 D.高墩大厅 E.回家";
dtxz=getch();
system("cls");
if(b1==false||b2==false||b3==false||b4==false){
cout<<"a键向后移动,d键向前移动,f打开秘密,s打开背包( z第几个 装备),w打boss\n";
system("pause");
}
if(dtxz=='A'){
cout<<"A.天启Ⅰ B.天启Ⅱ C.天启Ⅲ D.天启Ⅳ";
tianqixuanze=getch();
if(tianqixuanze=='A'){
guaixue=70;
gxs=70;
wx=70;
}
else if(tianqixuanze=='B'){
guaixue=80;
gxs=80;
wx=70;
}
else if(tianqixuanze=='C'){
guaixue=90;
gxs=90;
wx=70;
}
else{
guaixue=110;
gxs=110;
wx=70;
}
while(1){
system("COLOR a0");
system("cls");
if(kg+2+1>=73){
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg;i++){
cout<<" ";
}
cout<<"你 ";
if(xcc==1){
cout<<"秘密";
}
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg-=1;
}
else if(yidong=='d'){
kg+=1;
}
else if(yidong=='f'){
cout<<"秘密打开成功!";
xcc=0;
Sleep(1000);
}
else{
string zhuangbei;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zc6=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixue<=0){
cout<<"\n你赢了!";
jinbi+=60;
b1=true;
Sleep(1000);
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg+7;i++){
cout<<" ";
}
cout<<"你"<<" "<<"疯狂苦力怕("<<guaixue<<"/"<<gxs<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
if(zc1==true){
guaixue-=15;
wx-=2;
}
else if(zc2==true){
guaixue-=12;
wx-=3;
}
else if(zc3==true){
guaixue-=8;
wx-=5;
}
else if(zc4==true){
guaixue-=12;
wx-=3;
}
else if(zc5==true){
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixue-=14;
wx-=2;
}
else{
guaixue-=17;
wx-=2;
}
}
else if(zc6==true){
guaixue-=16;
wx-=2;
}
else if(zc7==true){
guaixue-=7;
wx-=5;
}
}
else if(dklpslboss=='s'){
string zhuangbei;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
}
else if(dtxz=='B'){
cout<<"A.天启Ⅰ B.天启Ⅱ C.天启Ⅲ D.天启Ⅳ";
tianqixuanze1=getch();
if(tianqixuanze1=='A'){
guaixue=80;
gxs=80;
wx=70;
}
else if(tianqixuanze1=='B'){
guaixue=90;
gxs=90;
wx=70;
}
else if(tianqixuanze1=='C'){
guaixue=100;
gxs=100;
wx=70;
}
else{
guaixue=120;
gxs=120;
wx=70;
}
while(1){
system("COLOR a0");
system("cls");
if(kg1+2+1>=73){
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg1;i++){
cout<<" ";
}
cout<<"你 ";
if(xcc1==1){
cout<<"秘密";
}
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong1=getch();
if(yidong1=='a'){
kg1-=1;
}
else if(yidong1=='d'){
kg1+=1;
}
else if(yidong1=='f'){
cout<<"秘密打开成功!";
xcc1=0;
Sleep(1000);
}
else{
string zhuangbei1;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei1;
if(zhuangbei1=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
int dklpslboss1;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixue<=0){
cout<<"\n你赢了!";
b2=true;
jinbi+=70;
Sleep(1000);
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg1+7;i++){
cout<<" ";
}
cout<<"你"<<" "<<"沼泽巨兽("<<guaixue<<"/"<<gxs<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss1=getch();
if(dklpslboss1=='w'){
if(zc1==true){
guaixue-=15;
wx-=2;
}
else if(zc2==true){
guaixue-=8;
wx-=4;
}
else if(zc3==true){
guaixue-=8;
wx-=5;
}
else if(zc4==true){
guaixue-=8;
wx-=4;
}
else if(zc5==true){
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixue-=14;
wx-=3;
}
else{
guaixue-=17;
wx-=2;
}
}
else if(zc6==true){
guaixue-=14;
wx-=1;
}
else if(zc7==true){
guaixue-=7;
wx-=5;
}
}
else if(dklpslboss1=='s'){
string zhuangbei1;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei1;
if(zhuangbei1=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei1=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
}
if(dtxz=='C'){
cout<<"A.天启Ⅰ B.天启Ⅱ C.天启Ⅲ D.天启Ⅳ";
tianqixuanze2=getch();
if(tianqixuanze2=='A'){
guaixue=80;
gxs=80;
wx=70;
}
else if(tianqixuanze2=='B'){
guaixue=90;
gxs=90;
wx=70;
}
else if(tianqixuanze2=='C'){
guaixue=100;
gxs=100;
wx=70;
}
else{
guaixue=120;
gxs=120;
wx=70;
}
while(1){
system("COLOR 34");
system("cls");
if(kg2+2+1>=73){
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg2;i++){
cout<<" ";
}
cout<<"你 ";
if(xcc2==1){
cout<<"秘密";
}
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong2=getch();
if(yidong2=='a'){
kg2-=1;
}
else if(yidong2=='d'){
kg2+=1;
}
else if(yidong2=='f'){
cout<<"秘密打开成功!";
xcc2=0;
Sleep(1000);
}
else{
string zhuangbei2;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei2;
if(zhuangbei2=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei2=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei2=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zc6=false;
Sleep(1000);
}
else if(zhuangbei2=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei2=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei2=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei2=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
int dklpslboss2;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixue<=0){
cout<<"\n你赢了!";
jinbi+=60;
b3=true;
Sleep(1000);
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg2+7;i++){
cout<<" ";
}
cout<<"你"<<" "<<"红石傀儡("<<guaixue<<"/"<<gxs<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss2=getch();
if(dklpslboss2=='w'){
if(zc1==true){
guaixue-=15;
wx-=2;
}
else if(zc2==true){
guaixue-=4;
wx-=6;
}
else if(zc3==true){
guaixue-=8;
wx-=5;
}
else if(zc4==true){
guaixue-=8;
wx-=7;
}
else if(zc5==true){
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixue-=14;
wx-=2;
}
else{
guaixue-=16;
wx-=2;
}
}
else if(zc6==true){
guaixue-=7;
wx-=6;
}
else if(zc7==true){
guaixue-=5;
wx-=8;
}
}
else if(dklpslboss2=='s'){
string zhuangbei;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
}
if(dtxz=='D'){
cout<<"A.天启Ⅰ B.天启Ⅱ C.天启Ⅲ D.天启Ⅳ";
tianqixuanze3=getch();
if(tianqixuanze3=='A'){
guaixue=90;
gxs=90;
wx=70;
}
else if(tianqixuanze3=='B'){
guaixue=100;
gxs=100;
wx=70;
}
else if(tianqixuanze3=='C'){
guaixue=120;
gxs=120;
wx=70;
}
else{
guaixue=150;
gxs=150;
wx=70;
}
while(1){
system("COLOR 03");
system("cls");
if(kg3+2+1>=73){
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg3;i++){
cout<<" ";
}
cout<<"你 ";
if(xcc3==1){
cout<<"秘密";
}
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong3=getch();
if(yidong3=='a'){
kg3-=1;
}
else if(yidong3=='d'){
kg3+=1;
}
else if(yidong3=='f'){
cout<<"秘密打开成功!";
xcc3=0;
Sleep(1000);
}
else{
string zhuangbei3;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei3;
if(zhuangbei3=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zc6=false;
Sleep(1000);
}
else if(zhuangbei3=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
int dklpslboss3;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixue<=0){
cout<<"\n你赢了!";
jinbi+=60;
b4=true;
Sleep(1000);
break;
}
for(int i=1;i<=wx;i++){
cout<<"★";
}
for(int i=1;i<=19;i++){
cout<<endl;
}
for(int i=1;i<=kg3+7;i++){
cout<<" ";
}
cout<<"你"<<" "<<"无名者("<<guaixue<<"/"<<gxs<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss3=getch();
if(dklpslboss3=='w'){
if(zc1==true){
guaixue-=15;
wx-=2;
}
else if(zc2==true){
guaixue-=4;
wx-=6;
}
else if(zc3==true){
guaixue-=8;
wx-=5;
}
else if(zc4==true){
guaixue-=8;
wx-=7;
}
else if(zc5==true){
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixue-=6;
wx-=5;
}
else{
guaixue-=7;
wx-=6;
}
}
else if(zc6==true){
guaixue-=7;
wx-=6;
}
else if(zc7==true){
guaixue-=5;
wx-=8;
}
}
else if(dklpslboss3=='s'){
string zhuangbei3;
if(c1==true){
cout<<c61<<" ";
}
if(c2==true){
cout<<c62<<" ";
}
if(c3==true){
cout<<c63<<" ";
}
if(c4==true){
cout<<c64<<" ";
}
if(c5==true){
cout<<c65<<" ";
}
if(c6==true){
cout<<c66<<" ";
}
if(c7==true){
cout<<c67<<" ";
}
cin>>zhuangbei3;
if(zhuangbei3=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=true;
zc5=false;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=true;
zc6=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=true;
zc7=false;
Sleep(1000);
}
else if(zhuangbei3=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=true;
Sleep(1000);
}
}
}
}
else if(dtxz=='E'){
if(b1==true&&b2==true&&b3==true&&b4==true){
system("cls");
string djj="你拿到了四个世界的宝藏,可是你出来时,这个世界已经被Nsh污染了……";
for(int i=0;i<=djj.size()-1;i++){
cout<<djj[i];
Sleep(100);
}
Sleep(1000);
cout<<"\n敬请期待下一章--拯救被污染的世界!!";
Sleep(2000);
system("COLOR F0");
return 0;
}
else{
cout<<"你还没有拿到四个世界的宝藏哦!";
Sleep(1500);
}
}
}
else{
while(1){
system("cls");
printf("20金币一次\n");
printf("你有");
cout<<jinbi;
char choujiang;
printf("个金币\n\n按H抽奖");
choujiang=getch();
if(choujiang=='H'){
if(jinbi>=20){
system("cls");
srand((int)time(NULL));
ans=minn+rand()%(maxn-minn+1);
if(ans==1){
cout<<"你抽到了 笑到最后 ";
c61="A.笑到最后";
c1=true;
Sleep(2000);
jinbi-=20;
break;
}
else if(ans>=2&&ans<=3){
cout<<"你抽到了阔剑";
c62="B.阔剑";
c2=true;
Sleep(2000);
jinbi-=20;
break;
}
else if(ans>=6&&ans<=8){
cout<<"你抽到了雷霆之锤";
c63="C.雷霆之锤";
c3=true;
Sleep(2000);
jinbi-=20;
break;
}
else if(ans==4||ans==5){
cout<<"你抽到了龙爪";
c64="D.龙爪";
c4=true;
Sleep(2000);
jinbi-=20;
break;
}
else if(ans==9){
cout<<"你抽到了 月神匕首 ";
c65="E.月神匕首";
c5=true;
Sleep(2000);
jinbi-=20;
break;
}
else if(ans==10){
cout<<"你抽到了 寒霜獠牙 ";
c66="F.寒霜獠牙";
c6=true;
Sleep(2000);
jinbi-=20;
break;
}
else{
cout<<"你抽到了镐";
c67="G.镐";
c7=true;
Sleep(2000);
jinbi-=20;
break;
}
}
else{
cout<<"金币不足!";
Sleep(1000);
break;
}
}
}
}
}
return 0;
}