0
已解决
朱优扬
中级天翼
中级天翼
呵呵,这次代码……
#include <iostream>
#include <windows.h>
#include <fstream>
#include <conio.h>
#include <time.h>
using namespace std;
const int MAX=42;
char num;
long long dj2;
string cz;
long long nkkg;
long long hyd_sds,d_j;
bool hyd_sd=false,zhyd_sd=false,mf,bh;
long long hf_j_sp,hczg_sp,ysyh_sp,xnc;
bool mdqr_cnhk,zmdqr_cnhk;
long long mdqr_cnhk_sp,nyc,yhc;
int yzcnt,ytcnt,ywcnt;
bool cj1=false,cj2=false,cj3=false,cj4=false,cj5=false,hf_j,hczg,ysyh,zhf_j,zhczg,zysyh;
bool cj12,cj13,cj22,cj23,cj32,cj33,cj42,cj43,cj52,cj53;
bool zzzj=false,zzzzj=false;
long long sdk,dhq,x_ans,bh_dq,dj,syg,bp,nyf,xys,yh;
int cntjm,cntjt,cntjj,cntjz,cntjl,cntwjzj,cntch,cntchb;
int cnt,wzjdlcnt,znqcnt,cntj,cntcnt,cnt1,guaixuet,gxts,guaixue,gxs;
int cntqq,cntmt,cnttk,cntjk,cntzs,cntlb;
int yingcang,yingcang1;
int maxnz=1,minnz=9,maxn=14,minn=1,minn1=1,maxn1=3,minnyc=1,maxnyc=10;
int ans,ans2,ansycdt,ansjy;
bool xw=false,xm=false,yx=false,yt=false,hs=false,hw=false;
bool c1p1=false,c1p2=false,c5p1=false,c5p2=false,c6p1=false,c6p2=false;
string c61,c62,c63,c64,c65,c66,c67;
string zuihouyigestring;
string mmppcc;
bool mw_znq=false,zmw_znq=false;
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;
bool b1=false,b2=false,b3=false,b4=false;
bool xcc=1,xcc1=1,xcc2=1,xcc3=1;
int wx=70;
int kg=2,kg1=2,kg2=2,kg3=2;
char yidong,yidong1,yidong2,yidong3;
long long jinbi=200;
char a,b;
bool bluebananaz=false;
bool lhz=false,hxt=false,bst=false,lhx=false;
bool zlhz=false,zhxt=false,zbst=false,zlhx=false;
string fq;
char rt;
void mnb(){
freopen("(zsdj)旧存档.txt","w",stdout);
cout<<jinbi<<" "<<dj<<" "<<sdk<<" "<<dhq<<" "<<hyd_sds<<" "<<x_ans<<" "<<bh_dq<<" "<<syg<<" "<<bp<<" "<<nyf<<" "<<xys<<" "<<yh<<" "<<hf_j_sp<<" "<<hczg_sp<<" "<<ysyh_sp<<" "<<xnc<<" "<<nyc<<" "<<yhc<<" "<<mdqr_cnhk_sp<<endl;
if(c1==true)
cout<<c61<<" ";
else
cout<<"n ";
if(c2==true)
cout<<c62<<" ";
else if(c2==false)
cout<<"n ";
if(c3==true)
cout<<c63<<" ";
else if(c3==false)
cout<<"n ";
if(c4==true)
cout<<c64<<" ";
else if(c4==false)
cout<<"n ";
if(c5==true)
cout<<c65<<" ";
else if(c5==false)
cout<<"n ";
if(c6==true)
cout<<c66<<" ";
else if(c6==false)
cout<<"n ";
if(c7==true)
cout<<c67<<" ";
else if(c7==false)
cout<<"n ";
if(zzzj==true)
cout<<"H.最终之剑"<<" ";
else if(zzzj==false)
cout<<"n ";
if(ysyh==true)
cout<<"I.玉树银花"<<" ";
else if(ysyh==false)
cout<<"n ";
if(hf_j==true)
cout<<"J.寒风「极」"<<" ";
else if(hf_j==false)
cout<<"n ";
if(hczg==true)
cout<<"K.回春之光"<<" ";
else if(hczg==false)
cout<<"n ";
if(mdqr_cnhk==true)
cout<<"L.魔刀千刃-春暖花开"<<" ";
else if(mdqr_cnhk==false)
cout<<"n ";
cout<<endl;
if(lhz==true)
cout<<"灵魂治疗器 ";
else if(lhz!=true)
cout<<"n ";
if(hxt==true)
cout<<"回血图腾 ";
else if(hxt!=true)
cout<<"n ";
if(lhx==true)
cout<<"灵魂回血器 ";
else if(lhx==false)
cout<<"n ";
if(bst==true)
cout<<"不死图腾 ";
else if(bst!=true)
cout<<"n ";
cout<<endl;
if(c1p1==true)
cout<<"Y ";
else if(c1p1!=true)
cout<<"N ";
if(c1p2==true)
cout<<"Y ";
else if(c1p2!=true)
cout<<"N ";
if(c5p1==true)
cout<<"Y ";
else if(c5p1==false)
cout<<"N ";
if(c5p2==true)
cout<<"Y ";
else if(c5p2==false)
cout<<"N ";
if(c6p1==true)
cout<<"Y ";
else if(c6p1!=true)
cout<<"N ";
if(c6p2==true)
cout<<"Y";
else if(c6p2==false)
cout<<"N";
cout<<endl;
cout<<cnt<<" "<<cnt1<<" "<<wzjdlcnt<<" "<<znqcnt<<" "<<cntjm<<" "<<cntjt<<" "<<cntjj<<" "<<cntjz<<" "<<cntjl<<" "<<cntwjzj<<" "<<cntch<<" "<<cntchb<<" "<<yzcnt<<" "<<ytcnt<<" "<<ywcnt;
fclose(stdout);
}
void mnb1(){
string scd;
ifstream fin("(zsdj)旧存档.txt");
fin>>jinbi;
fin>>dj;
fin>>sdk;
fin>>dhq;
fin>>hyd_sds;
fin>>x_ans>>bh_dq>>syg>>bp>>nyf>>xys>>yh>>hf_j_sp>>hczg_sp>>ysyh_sp>>xnc>>nyc>>yhc>>mdqr_cnhk_sp;
for(int i=1;i<=9;i++){//ysyh hf_j hczg mdqr_cnhk
fin>>scd;
if(scd=="n"||scd==""){
switch(i){
case 12:mdqr_cnhk=false;break;
case 11:hczg=false;break;
case 10:hf_j=false;break;
case 9:ysyh=false;break;
case 8:zzzj=false;break;
case 7:c7=false;break;
case 6:c6=false;break;
case 5:c5=false;break;
case 4:c4=false;break;
case 3:c3=false;break;
case 2:c2=false;break;
case 1:c1=false;break;
}
}
else{
switch(i){
case 12:mdqr_cnhk=true;break;
case 11:hczg=true;break;
case 10:hf_j=true;break;
case 9:ysyh=true;break;
case 8:zzzj=true;break;
case 7:c7=true;c67="G.镐";break;
case 6:c6=true;c66="F.寒霜獠牙";break;
case 5:c5=true;c65="E.月神匕首";break;
case 4:c4=true;c64="D.龙爪";break;
case 3:c3=true;c63="C.雷霆之锤";break;
case 2:c2=true;c62="B.阔剑";break;
case 1:c1=true;c61="A.笑到最后";break;
}
}
}
for(int i=1;i<=4;i++){
fin>>scd;
if(scd=="n"||scd==""){
switch(i){
case 4:bst=false;break;
case 3:lhx=false;break;
case 2:hxt=false;break;
case 1:lhz=false;break;
}
}
else{
switch(i){
case 4:bst=true;break;
case 3:lhx=true;break;
case 2:hxt=true;break;
case 1:lhz=true;break;
}
}
}
for(int i=1;i<=7;i++){
fin>>scd;
if(scd=="N"||scd==""){
switch(i-1){
case 6:c6p2=false;break;
case 5:c6p1=false;break;
case 4:c5p2=false;break;
case 3:c5p1=false;break;
case 2:c1p2=false;break;
case 1:c1p1=false;break;
}
}
else{
switch(i-1){
case 6:c6p2=true;break;
case 5:c6p1=true;break;
case 4:c5p2=true;break;
case 3:c5p1=true;break;
case 2:c1p2=true;break;
case 1:c1p1=true;break;
}
}
}
fin>>cnt>>cnt1>>wzjdlcnt>>znqcnt;
fin>>cntjm>>cntjt>>cntjj>>cntjz>>cntjl>>cntwjzj>>cntch>>cntchb>>yzcnt>>ytcnt>>ywcnt;
fin.close();
}
void maoxian(){
system("cls");
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
cnt++;
nkkg=10;
cntcnt=0;
guaixue=(cnt-1)*10+30;
gxs=(cnt-1)*10+30;
kg=2;
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<<"你";
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=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
yzcnt++;
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"战神("<<guaixue<<"/"<<gxs<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixue-=30;
wx-=2;
}
else if(xm==true){
guaixue-=50;
wx-=2;
}
else{
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){
if(yx==true){
guaixue-=30;
wx-=2;
}
else if(yt==true){
guaixue-=47;
wx-=2;
}
else{
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){
if(hs==true){
guaixue-=39;
wx-=2;
}
else if(hw==true){
guaixue-=28;
wx-=2;
}
else{
guaixue-=16;
wx-=2;
}
}
else if(zc7==true){
guaixue-=7;
wx-=5;
}
else if(zzzzj==true){
guaixue-=6666666;
wx-=1;
}
else if(zysyh==true){
guaixue-=guaixue;
wx-=2;
}
else if(zhf_j==true){
guaixue-=guaixue;
wx-=2;
}
else if(zhczg==true){
guaixue-=guaixue;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixue-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true)
wx+=20;
else if(zhxt==true)
wx+=18;
else if(zlhx==true)
wx+=24;
else if(bst==true)
wx+=35;
}
}
return;
}
void out(string x){
cout<<x;
return;
}
int main(){
system("title 战神对决");
int fqans;
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t\t极风游戏";
Sleep(6000);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t\t极风工作室";
cout<<"\n\n\n\n\n\n\t\t\t\t\t\t\t\t\t健康游戏忠告\n\t\t\t\t\t\t\t\t抵制不良游戏,拒绝盗版游戏。\n\t\t\t\t\t\t\t\t注意自我保护,谨防受骗上当。\n\t\t\t\t\t\t\t\t适度游戏益脑,沉迷游戏伤身。\n\t\t\t\t\t\t\t\t合理安排时间,享受健康生活。";
Sleep(5000);
system("cls");
for(int i=1;i<=9;i++)
cout<<"\t";
cout<<"游戏加载中\n";
for(int i=1;i<=MAX;i++){
cout<<"----";
Sleep(100);
}
Sleep(500);
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t 战神对决·欢庆新年\n\t\t\t\t\t\t\t\tMars versus Mars ·To celebrate the New Year";
Sleep(2000);
Sleep(2000);
system("cls");
cout<<"版本说明:\n";
cout<<" 1.可以花费点券购买精英手册,精英手册满级后,可到商城兑换魔刀千刃 - 春暖花开\n";
cout<<" 2.版本更新后,有了新年限时活动,一共增加了3把武器\n";
cout<<" 3.优化了游戏初始界面\n";
cout<<" 4.游戏内增加了氪金功能\n";
cout<<" 5.凡是氪金武器伤害都为 无限 (除魔刀千刃 - 春暖花开外,这把刀伤害为 123456 )\n";
cout<<" 6.新赛季开始,全新精英手册春暖花开\n";
cout<<" ";
system("pause");
system("cls");
cout<<"A.存档 B.创建世界";
rt=getch();
if(rt=='A')
mnb1();
while(1){
system("cls");
system("COLOR 07");
cout<<"A.冒险模式 B.武器抽奖 C.法器抽奖 D.商店 E.仓库 F.休闲模式";
cout<<" G.工作台 H.新年限时 I.精英手册 J.保存并退出";
a=getch();
if(a=='A')
maoxian();
else if(a=='B'){
while(1){
system("cls");
cerr<<"20金币一次\n";
cerr<<"你有";
cerr<<jinbi;
char choujiang;
cerr<<"个金币\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{
system("cls");
cout<<"金币不足!";
Sleep(1000);
break;
}
}
}
}
else if(a=='C'){
while(1){
char fqc;
system("cls");
cout<<"50金币一次\n";
cout<<"按H进行法器抽奖";
srand((int)time(NULL));
fqans=1+rand()%4;
fqc=getch();
if(jinbi>=30){
if(fqans==1){
system("cls");
cout<<"你抽到了 灵魂治疗器 ";
Sleep(1000);
jinbi-=30;
lhz=true;
break;
}
else if(fqans==2){
system("cls");
cout<<"你抽到了 回血图腾 ";
Sleep(1000);
jinbi-=30;
hxt=true;
break;
}
else if(fqans==3){
system("cls");
cout<<"你抽到了 灵魂回血器 ";
Sleep(1000);
lhx=true;
jinbi-=30;
break;
}
else{
system("cls");
cout<<"你抽到了 不死图腾 ";
Sleep(1000);
jinbi-=30;
bst=true;
break;
}
}
else{
system("cls");
cout<<"金币不足!";
Sleep(1000);
break;
}
}
}
else if(a=='D'){
system("cls");
char pifu;
while(1){
cout<<"A.笑到最后--五爪金龙(150金币) B.笑到最后--梦幻火箭(160金币) C.月神匕首--生命誓言(80金币) D.月神匕首--特工banana(110金币) \nE.寒霜獠牙--时之沙漏(120金币) F.寒霜獠牙--百万伏特(90金币) ";
cout<<"G.附魔金苹果(40金币) H.煤炭块(1金币) I.铁块(2金币) \nJ.金块(3金币) K.钻石块(4金币) L.绿宝石块(5金币) M.魔刀千刃-春暖花开 N.退出";
pifu=getch();
if(pifu=='A'){
if(jinbi>=150&&c1==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=150;
c1p1=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='B'){
if(jinbi>=160&&c1==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=160;
c1p2=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='C'){
if(jinbi>=80&&c5==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=80;
c5p1=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='D'){
if(jinbi>=110&&c5==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=110;
c5p2=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='E'){
if(jinbi>=120&&c6==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=120;
c6p1=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='F'){
if(jinbi>=90&&c6==true){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=90;
c6p2=true;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='G'){
if(jinbi>=50){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=50;
cntj++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='H'){
if(jinbi>=1){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=1;
cntmt++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='I'){
if(jinbi>=2){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=2;
cnttk++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='J'){
if(jinbi>=3){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=3;
cntjk++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='K'){
if(jinbi>=4){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=4;
cntzs++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='L'){
if(jinbi>=5){
system("cls");
cout<<"购买成功!";
Sleep(1000);
jinbi-=5;
cntlb++;
break;
}
else{
system("cls");
cout<<"购买失败!";
Sleep(1000);
break;
}
}
else if(pifu=='M'){
if(mdqr_cnhk_sp>=100){
system("cls");
cout<<"购买成功!";
Sleep(1000);
mdqr_cnhk_sp-=100;
mdqr_cnhk=true;
break;
}
else{
system("cls");
cout<<"购买失败!碎片少了";
Sleep(1000);
break;
}
}
else
break;
}
}
else if(a=='E'){
while(1){
system("cls");
if(c1p1==true){
cout<<"A.笑到最后--五爪金龙 ";
}
if(c1p2==true){
cout<<"B.笑到最后--梦幻火箭 ";
}
if(c5p1==true){
cout<<"C.月神匕首--生命誓言 ";
}
if(c5p2==true){
cout<<"D.月神匕首--特工banana ";
}
if(c6p1==true){
cout<<"E.寒霜獠牙--时之沙漏 ";
}
if(c6p2==true){
cout<<"F.寒霜獠牙--百万伏特 ";
}
zuihouyigestring=getch();
if(zuihouyigestring=="A"){
if(c1p1==true){
cout<<"已装备";
Sleep(1000);
xw=true;
xm=false;
yx=false;
yt=false;
hs=false;
hw=false;
break;
}
else{
cout<<"你没有这把武器";
Sleep(1000);
break;
}
}
else if(zuihouyigestring=="B"){
if(c1p2==true){
cout<<"已装备";
Sleep(1000);
xw=false;
xm=true;
yx=false;
yt=false;
hs=false;
hw=false;
break;
}
else{
cout<<"你没有这把武器";
Sleep(1000);
break;
}
}
else if(zuihouyigestring=="C"){
if(c5p1==true){
cout<<"已装备";
Sleep(1000);
xw=false;
xm=false;
yx=true;
yt=false;
hs=false;
hw=false;
break;
}
else{
cout<<"你没有这把武器";
Sleep(1000);
break;
}
}
else if(zuihouyigestring=="D"){
if(c5p2==true){
cout<<"已装备";
Sleep(1000);
xw=false;
xm=false;
yx=false;
yt=true;
hs=false;
hw=false;
break;
}
else{
cout<<"你没有这把武器";
Sleep(1000);
break;
}
}
else if(zuihouyigestring=="E"){
if(c6p1==true){
cout<<"已装备";
Sleep(1000);
xw=false;
xm=false;
yx=false;
yt=false;
hs=true;
hw=false;
break;
}
else{
cout<<"你没有这把武器";
Sleep(1000);
break;
}
}
else if(zuihouyigestring=="F"){
if(c6p2==true){
cout<<"已装备";
Sleep(1000);
xw=false;
xm=false;
yx=false;
yt=false;
hs=false;
hw=true;
break;
}
else{
cerr<<"你没有这把武器";
Sleep(1000);
break;
}
}
else
break;
}
}
else if(a=='F'){
while(true){
system("COLOR 07");
system("cls");
cout<<"A.泰坦(挑战) B.谁是小偷 C.王者基多拉(挑战) D.怪物大乱斗(挑战) E.SDE?′▓▍μm▉HX?DWJの??A(挑战) F.退出";
b=getch();
if(b=='A'){
system("cls");
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
cnt1++;
cntcnt=0;
nkkg=10;
guaixuet=(cnt1-1)*5+100;
gxts=(cnt1-1)*5+100;
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
ytcnt++;
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
cout<<"\n你赢了!";
cntj+=5;
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<=kg2+7;i++){
cout<<" ";
}
cout<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"泰坦("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=30;
wx-=2;
}
else if(xm==true){
guaixuet-=50;
wx-=2;
}
else{
guaixuet-=15;
wx-=2;
}
}
else if(zc2==true){
guaixuet-=12;
wx-=3;
}
else if(zc3==true){
guaixuet-=8;
wx-=5;
}
else if(zc4==true){
guaixuet-=12;
wx-=3;
}
else if(zc5==true){
if(yx==true){
guaixuet-=30;
wx-=2;
}
else if(yt==true){
guaixuet-=47;
wx-=2;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=14;
wx-=2;
}
else{
guaixuet-=17;
wx-=2;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=39;
wx-=2;
}
else if(hw==true){
guaixuet-=28;
wx-=2;
}
else{
guaixuet-=16;
wx-=2;
}
}
else if(zc7==true){
guaixuet-=7;
wx-=5;
}
else if(zzzzj==true){
guaixuet-=666666;
wx-=1;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true)
wx+=20;
else if(zhxt==true)
wx+=18;
else if(zlhx==true)
wx+=24;
else if(bst==true)
wx+=35;
}
}
}
else if(b=='B'){
system("cls");
int ansh,ansl;
srand((int)time(NULL));
ansh=1+rand()%(7);
srand((int)time(NULL));
ansl=1+rand()%(38);
cout<<" \t\t\t\t\t\t1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38\n";
for(int i=1;i<=7;i++){
cout<<i;
cout<<"\t\t\t\t\t\t";
for(int j=1;j<=38;j++){
if(ansh==i&&ansl==j){
cout<<'y'<<" ";
continue;
}
cout<<"x"<<" ";
}
cout<<endl;
}
int th,tl;
cout<<"请输入小偷的横列:";
cin>>th>>tl;
if(th==ansh&&tl==ansl){
cout<<"找对了!";
Sleep(1000);
cntj+=5;
}
else{
cout<<"找错了!";
Sleep(1000);
}
}
else if(b=='C'){
system("cls");
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
nkkg=10;
wzjdlcnt++;
srand((int)time(NULL));
ansjy=1+rand()%10;
if(ansjy==1){
guaixuet=30000+(wzjdlcnt-1)*50;
gxts=30000+(wzjdlcnt-1)*50;
}
else{
guaixuet=9000+(wzjdlcnt-1)*99;
gxts=9000+(wzjdlcnt-1)*99;
}
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
ywcnt++;
cout<<"\n你赢了,金币增加1q,金苹果增加1b";
cntj+=500;
jinbi+=1000;
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<=kg2+7;i++){
cout<<" ";
}
cout<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"王者基多拉("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=5000;
wx-=2;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
}
else if(b=='D'){
system("cls");
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
nkkg=10;
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
guaixuet=5500;
gxts=5500;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"恐惧魔王("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=3000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=7000;
gxts=7000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"NULL("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=3000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=9000;
gxts=9000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"死灵骑士("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=2500;
wx-=12;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=10000;
gxts=10000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"303("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=10000;
gxts=10000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"溺尸王Ⅰ("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=30000;
gxts=30000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"溺尸王Ⅱ("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
guaixuet=80000;
gxts=80000;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
cout<<"\n你赢了!";
jinbi+=1000000;
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<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"Him("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000;
wx-=10;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
}
else if(b=='E'){
system("cls");
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
nkkg=10;
guaixuet=53774;
gxts=53774;
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
cout<<"\n你赢了,金币增加1w,金苹果增加1q";
cntj+=1000;
jinbi+=10000;
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<=kg2+7;i++){
cout<<" ";
}
cout<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"SDE?′▓▍μm▉HX?DWJの??A("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=10;
wx-=10;
}
else if(xm==true){
guaixuet-=15;
wx-=14;
}
else{
guaixuet-=7;
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4;
wx-=20;
}
else if(zc3==true){
guaixuet-=5;
wx-=20;
}
else if(zc4==true){
guaixuet-=4;
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10;
wx-=15;
}
else if(yt==true){
guaixuet-=15;
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5;
wx-=18;
}
else{
guaixuet-=5;
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10;
wx-=10;
}
else if(hw==true){
guaixuet-=12;
wx-=12;
}
else{
guaixuet-=4;
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4;
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=5000;
wx-=2;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
if(guaixuet<=gxts){
if(guaixuet+5>gxts)
guaixuet=gxts;
else
guaixuet+=5;
}
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true){
wx+=20;
if((guaixuet+20/2+20/4)>gxts)
guaixuet=gxts;
else
guaixuet+=20/2+20/4;
}
else if(zhxt==true){
wx+=18;
if((guaixuet+18/2+4)>gxts){
guaixuet=gxts;
}
else
guaixuet+=18/2+4;
}
else if(zlhx==true){
wx+=24;
if((guaixuet+24/2+24/4)>gxts)
guaixuet==gxts;
else
guaixuet+=24/2+24/4;
}
else if(bst==true){
wx+=34;
if((guaixuet+34/2+8)>gxts)
guaixuet=gxts;
else
guaixuet+=34/2+8;
}
}
}
}
else{
break;
}
}
}
else if(a=='G'){
string cdcf;
char ssss;
system("cls");
cout<<"|---------------------------------|\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"|---------------------------------| |-----------|\n";
cout<<"| | | | | |\n";
cout<<"| | | | ===== | |\n";
cout<<"| | | | | |\n";
cout<<"| | | | | |\n";
cout<<"|---------------------------------| |-----------|\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"| | | |\n";
cout<<"|---------------------------------|\n";
cout<<"你要做什么? A.开始做 B.查询合成表";
ssss=getch();
if(ssss=='A'){
cin>>cdcf;
if(cdcf=="奇点-煤"){
if(cntmt>=1000){
cntmt-=1000;
system("cls");
cout<<"成功";
Sleep(1000);
cntjm++;
}
else{
system("cls");
cout<<"煤炭块少了";
Sleep(1000);
}
}
else if(cdcf=="奇点-铁"){
if(cnttk>=1000){
cnttk-=1000;
system("cls");
cout<<"成功";
Sleep(1000);
cntjt++;
}
else{
system("cls");
cout<<"铁块少了";
Sleep(1000);
}
}
else if(cdcf=="奇点-金"){
if(cntjk>=1000){
cntjk-=1000;
system("cls");
cout<<"成功";
Sleep(1000);
cntjj++;
}
else{
system("cls");
cout<<"金块少了";
Sleep(1000);
}
}
else if(cdcf=="奇点-钻石"){
if(cntzs>=1000){
cntzs-=1000;
system("cls");
cout<<"成功";
Sleep(1000);
cntjz++;
}
else{
system("cls");
cout<<"钻石块少了";
Sleep(1000);
}
}
else if(cdcf=="奇点-绿宝石"){
if(cntlb>=1000){
cntlb-=1000;
system("cls");
cout<<"成功";
Sleep(1000);
cntjl++;
}
else{
system("cls");
cout<<"绿宝石块少了";
Sleep(1000);
}
}
else if(cdcf=="无尽催化剂"){
if(cntjm>=1&&cntjt>=1&&cntjj>=1&&cntjz>=1&&cntjl>=1){
cntjm-=1;
cntjt-=1;
cntjj-=1;
cntjz-=1;
cntjl-=1;
cntch++;
cout<<"成功!";
Sleep(1000);
}
else{
cout<<"奇点少了!";
Sleep(1000);
}
}
else if(cdcf=="无尽催化剂棒"){
if(cntch>=2){
cntch-=2;
cntchb++;
cout<<"成功";
Sleep(1000);
}
else{
cout<<"无尽催化剂少了";
Sleep(1000);
}
}
else if(cdcf=="寰宇碎片"){
if(cntch>=2&&cntchb>=1){
cntwjzj++;
cntch-=2;
cntchb-=1;
cout<<"成功";
Sleep(2000);
}
else{
cout<<"物资少了";
Sleep(1000);
}
}
else if(cdcf=="最终之剑"){
if(cntwjzj>=5){
cntwjzj-=5;
zzzj=true;
cout<<"成功";
Sleep(2000);
}
else{
cout<<"寰宇碎片少了";
Sleep(1000);
}
}
else{
continue;
}
}
else{
char why;
system("cls");
cout<<"A.奇点 B.无尽催化剂 C.无尽催化剂棒 D.寰宇碎片 E.最终之剑";
why=getch();
if(why=='A'){
system("cls");
cout<<"不同奇点需要不同矿物块1000块合成";
system("pause");
}
else if(why=='B'){
system("cls");
cout<<"无尽催化剂需要所有奇点各一个进行合成";
system("pause");
}
else if(why=='C'){
system("cls");
cout<<"无尽催化剂棒需要两个无尽催化剂合成";
system("pause");
}
else if(why=='D'){
system("cls");
cout<<"寰宇碎片需要无尽催化剂棒*1+无尽催化剂*2";
system("pause");
}
else if(why=='E'){
system("cls");
cout<<"最终之剑需要寰宇碎片*5";
system("pause");
}
}
}
else if(a=='H'){
while(1){
system("cls");
char xnx;
cout<<"A.新年模式 B.冰雪模式 C.新年抽奖 D.新年广场 E.年夜饭 F.放烟花 G.兑换商城 H.退出";
xnx=getch();
system("cls");
if(xnx=='A'){
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
cnt1++;
cntcnt=0;
nkkg=10;
guaixuet=(cnt1-1)*50+250;
gxts=(cnt1-1)*20+250;
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
ytcnt++;
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
cout<<"\n你赢了!获得了 玉树银花 - 碎片*10";
cntj+=5;
ysyh_sp+=10;
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<=kg2+7;i++){
cout<<" ";
}
cout<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"年兽("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=30;
wx-=2;
}
else if(xm==true){
guaixuet-=50;
wx-=2;
}
else{
guaixuet-=15;
wx-=2;
}
}
else if(zc2==true){
guaixuet-=12;
wx-=3;
}
else if(zc3==true){
guaixuet-=8;
wx-=5;
}
else if(zc4==true){
guaixuet-=12;
wx-=3;
}
else if(zc5==true){
if(yx==true){
guaixuet-=30;
wx-=2;
}
else if(yt==true){
guaixuet-=47;
wx-=2;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=14;
wx-=2;
}
else{
guaixuet-=17;
wx-=2;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=39;
wx-=2;
}
else if(hw==true){
guaixuet-=28;
wx-=2;
}
else{
guaixuet-=16;
wx-=2;
}
}
else if(zc7==true){
guaixuet-=7;
wx-=5;
}
else if(zzzzj==true){
guaixuet-=666;
wx-=1;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true)
wx+=20;
else if(zhxt==true)
wx+=18;
else if(zlhx==true)
wx+=24;
else if(bst==true)
wx+=35;
}
}
}
else if(xnx=='B'){
cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
system("pause");
wx=70;
kg2=2;
cnt1++;
cntcnt=0;
nkkg=10;
guaixuet=(cnt1-1)*50+250;
gxts=(cnt1-1)*20+250;
while(1){
system("COLOR a0");
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<<"你";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
yidong=getch();
if(yidong=='a'){
kg2-=1;
}
else if(yidong=='d'){
kg2+=1;
}
else if(yidong=='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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(yidong=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
}
int dklpslboss;
while(1){
system("cls");
if(wx<=0){
ytcnt++;
cout<<"\n你输了!";
Sleep(1000);
break;
}
else if(guaixuet<=0){
cout<<"\n你赢了!获得了 玉树银花 - 碎片*10";
cntj+=5;
ysyh_sp+=10;
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<=kg2+7;i++){
cout<<" ";
}
cout<<"你";
for(int i=1;i<=nkkg;i++){
cout<<" ";
}
cout<<"Lord of the snow("<<guaixuet<<"/"<<gxts<<")";
cout<<endl;
for(int i=1;i<=168;i++){
cout<<"▉";
}
dklpslboss=getch();
if(dklpslboss=='w'){
cntcnt++;
if(zc1==true){
if(xw==true){
guaixuet-=30;
wx-=2;
}
else if(xm==true){
guaixuet-=50;
wx-=2;
}
else{
guaixuet-=15;
wx-=2;
}
}
else if(zc2==true){
guaixuet-=12;
wx-=3;
}
else if(zc3==true){
guaixuet-=8;
wx-=5;
}
else if(zc4==true){
guaixuet-=12;
wx-=3;
}
else if(zc5==true){
if(yx==true){
guaixuet-=30;
wx-=2;
}
else if(yt==true){
guaixuet-=47;
wx-=2;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=14;
wx-=2;
}
else{
guaixuet-=17;
wx-=2;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=39;
wx-=2;
}
else if(hw==true){
guaixuet-=28;
wx-=2;
}
else{
guaixuet-=16;
wx-=2;
}
}
else if(zc7==true){
guaixuet-=7;
wx-=5;
}
else if(zzzzj==true){
guaixuet-=666;
wx-=1;
}
else if(zysyh==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhf_j==true){
guaixuet-=guaixuet;
wx-=2;
}
else if(zhczg==true){
guaixuet-=guaixuet;
wx-=1;
}
else if(zmdqr_cnhk==true){
guaixuet-=123456;
wx-=3;
}
}
else if(dklpslboss=='a'){
kg--;
nkkg++;
if(nkkg<4){
wx-=2;
}
}
else if(dklpslboss=='d'){
kg++;
nkkg--;
if(nkkg<=1){
nkkg=2;
}
}
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<<" ";
}
if(zzzj==true){
cout<<"H.最终之剑"<<" ";
}
if(ysyh==true){
cout<<"I.玉树银花"<<" ";
}
if(hf_j==true){
cout<<"J.寒风「极」"<<" ";
}
if(hczg==true){
cout<<"K.回春之光"<<" ";
}
if(mdqr_cnhk==true){
cout<<"L.魔刀千刃-春暖花开"<<" ";
}
cin>>zhuangbei;
if(zhuangbei=="z1"&&c1==true){
cout<<"已装备";
zc1=true;
zc2=false;
zc3=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z2"&&c2==true){
cout<<"已装备";
zc1=false;
zmdqr_cnhk=false;
zc2=true;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
zhyd_sd=false;
}
else if(zhuangbei=="z3"&&c3==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=true;
zc4=false;
zc5=false;
zc7=false;
zmdqr_cnhk=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc6=false;
zzzzj=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z4"&&c4==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc4=true;
zmdqr_cnhk=false;
zc5=false;
zc6=false;
zc7=false;
zhyd_sd=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z5"&&c5==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc5=true;
zc6=false;
zzzzj=false;
zmdqr_cnhk=false;
zhyd_sd=false;
zc7=false;
Sleep(1000);
}
else if(zhuangbei=="z6"&&c6==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zysyh=false;
zhf_j=false;
zmdqr_cnhk=false;
zhczg=false;
zzzzj=false;
zc6=true;
zc7=false;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z7"&&c7==true){
cout<<"已装备";
zc1=false;
zc2=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zmdqr_cnhk=false;
zc3=false;
zc4=false;
zc5=false;
zzzzj=false;
zc6=false;
zc7=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z8"&&zzzj==true){
cout<<"已装备";
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zysyh=false;
zmdqr_cnhk=false;
zhf_j=false;
zhczg=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=true;
zhyd_sd=false;
Sleep(1000);
}
else if(zhuangbei=="z9"&&ysyh==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=true;
zhf_j=false;
zhczg=false;
zc1=false;
zmdqr_cnhk=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
Sleep(1000);
}
else if(zhuangbei=="z10"&&hf_j==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=true;
zhczg=false;
zmdqr_cnhk=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z11"&&hczg==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=true;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=false;
zc7=false;
zzzzj=false;
}
else if(zhuangbei=="z12"&&mdqr_cnhk==true){
cout<<"已装备";
zhyd_sd=false;
zysyh=false;
zhf_j=false;
zhczg=false;
zc1=false;
zc2=false;
zc3=false;
zc4=false;
zc5=false;
zc6=false;
zmdqr_cnhk=true;
zc7=false;
zzzzj=false;
}
}
else if(dklpslboss=='e'){
if(cntj!=0){
wx+=25;
cntj--;
cout<<"已吃";
Sleep(1000);
}
else{
cout<<"附魔金苹果吃完了";
Sleep(1000);
}
}
else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
if(lhz==true)
cout<<"A.灵魂治疗器 ";
if(hxt==true)
cout<<"B.回血图腾 ";
if(lhx==true)
cout<<"C.灵魂回血器 ";
if(bst==true)
cout<<"D.不死图腾";
cin>>fq;
if(fq=="z1"&&lhz==true){
cout<<"已装备";
Sleep(1000);
zlhz=true;
zhxt=false;
zlhx=false;
zbst=false;
}
else if(fq=="z2"&&hxt==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=true;
zlhx=false;
zbst=false;
}
else if(fq=="z3"&&lhx==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=true;
zbst=false;
}
else if(fq=="z4"&&bst==true){
cout<<"已装备";
Sleep(1000);
zlhz=false;
zhxt=false;
zlhx=false;
zbst=true;
}
}
else{
if(zlhz==true)
wx+=20;
else if(zhxt==true)
wx+=18;
else if(zlhx==true)
wx+=24;
else if(bst==true)
wx+=35;
}
}
}
else if(xnx=='C'){
mf=bh=false;
bh_dq=0;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<"\n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | \n";
cout<<"| | | | | | | | | \n";
cout<<"|_|_| | |__|| |___| \n";
cout<<" A.抽奖 B.退出\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
num=getch();
bool lspd_xn=false;
int sxs=0;
if(num=='A'){
if(dj>=60){
dj-=60;
int xs=0;
d_j=10;
system("cls");
if(x_ans==1){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | \n";
cout<<"| | | | | | | |---| \n";
cout<<"|_|_| | |__|| |___| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
syg=1;
}
else if(x_ans==2){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |_| | \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
syg=2;
}
else if(x_ans==3){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | || | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |__|| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
syg=3;
}
else{
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | || \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| ||__| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
syg=4;
}
while(1){
if(dj>=d_j){
num=getch();
if(xs<=2&&xs!=sxs)
d_j*=2;
else if(xs<=5&&xs!=sxs)
d_j*=4;
else if(xs!=sxs)
d_j*=2;
sxs=xs;
//10 20 80 320 8120 16240
if(num=='A'){
mf=true;
bh=false;
}
else if(num=='B'){
mf=false;
bh=true;
}
dj-=d_j;
if(xs>=4&&mf==true){
cout<<"追加失败";
Sleep(2000);
break;
}
srand((int)time(NULL));
if(xs<=3) x_ans=1+rand()%4;
else if(xs==5) x_ans=1+rand()%5;
else if(xs==6) x_ans=1+rand()%10;
system("cls");
if(x_ans==1){
if(mf==true&&syg==1){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | \n";
cout<<"| | | | | | | |---| \n";
cout<<"|_|_| | |__|| |___| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(mf==true&&syg!=1){
cout<<"追加失败";
Sleep(2000);
break;
}
if(bh==true&&syg==1){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | \n";
cout<<"| | | | | | | |---| \n";
cout<<"|_|_| | |__|| |___| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(bh==true&&syg!=1){
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | \n";
cout<<"| | | | | | | |---| \n";
cout<<"|_|_| | |__|| |___| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
cout<<"追加失败";
}
syg=1;
}
else if(x_ans==2){
if(mf==true&&syg==2){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |_|_| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(mf==true&&syg!=2){
cout<<"追加失败";
Sleep(2000);
break;
}
if(bh==true&&syg==2){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |_|_| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(bh==true&&syg!=2){
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | | | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |_| | \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
cout<<"追加失败";
}
syg=2;
}
else if(x_ans==3){
if(mf==true&&syg==3){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | || | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |_ || \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(mf==true&&syg!=4){
cout<<"追加失败";
Sleep(2000);
break;
}
if(bh==true&&syg==3){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | || | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |__|| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(bh==true&&syg!=3){
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | || | \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| |__|| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
cout<<"追加失败";
}
syg=3;
}
else{
if(mf==true&&syg==4){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | || \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| ||__| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(mf==true&&syg!=4){
cout<<"追加失败";
Sleep(2000);
break;
}
if(bh==true&&syg==4){
xs++;
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | || \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| ||__| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
}
else if(bh==true&&syg!=4){
cout<<" _____ \n";
cout<<" | | \n";
cout<<" |---| \n";
cout<<" |___| \n";
cout<<" ("<<xs<<") \n";
cout<<"_____ _____ _____ \n";
cout<<"| | | | || | | || \n";
cout<<"| | | | | | | | | | \n";
cout<<"|_|_| | |__|| ||__| \n";
cout<<" A.免费追加 B.保护追加 C.领取奖励\n";
cout<<" _____\n";
cout<<" | ||\n";
cout<<" | | |\n";
cout<<" ||__|\n";
cout<<"追加失败";
}
syg=4;
}
if(xs==7){
system("cls");
cout<<"等级已满\n";
Sleep(500);
cout<<"已获得 "<<"寒风「极」"<<" ";
hf_j=true;
Sleep(1000);
break;
}
else if(num=='C'){
if(xs==1){
cout<<"你领取了 金币*600000";
jinbi+=600000;
}
else if(xs==2){
cout<<"你领取了 新年广场鞭炮*1";
bp++;
}
else if(xs==3){
cout<<"你领取了 吃年夜饭机会*1";
nyf++;
}
else if(xs==4){
cout<<"你领取了 许愿树许愿机会*1";
xys++;
}
else if(xs==5){
cout<<"你领取了 放烟花机会*1";
yh++;
}
else if(xs==6){
cout<<"你领取了 寒风「极」 — 碎片*5";
hf_j_sp++;
}
Sleep(2000);
break;
}
}
else{
system("cls");
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
char zqsk=getch();
system("cls");
if(zqsk=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
else
break;
}
}
}
else{
system("cls");
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
char zqsk=getch();
system("cls");
if(zqsk=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
else if(xnx=='D'){
cout<<"A.点亮 B.购买鞭炮";
num=getch();
system("cls");
if(num=='A'){
if(bp>0){
bp--;
xnc++;
cout<<"点亮成功 获得 回春之光 - 碎片*2";
hczg_sp+=2;
Sleep(1000);
if(xnc==100){
cout<<"\n全部点亮啦 获得 回春之光 - 碎片*20";
hczg_sp+=20;
Sleep(1000);
}
}
}
else{
system("cls");
cout<<"100点券=1鞭炮 A.购买 B.退出";
num=getch();
if(num=='A'){
if(dj>=100){
dj-=100;
bp++;
cout<<"购买成功";
Sleep(1000);
}
else{
system("cls");
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
system("cls");
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
}
else if(xnx=='E'){
system("cls");
cout<<"A.吃年夜饭 B.购买机会";
num=getch();
system("cls");
if(num=='A'){
if(nyf>0){
nyf--;
nyc++;
system("cls");
cout<<"吃饭成功 获得 回春之光 - 碎片*2";
jinbi+=300;
hczg_sp+=2;
Sleep(1000);
if(nyc==10){
cout<<"\n您已吃过 10 次年夜饭啦 获得 回春之光 - 碎片*4";
hczg_sp+=4;
jinbi+=600;
Sleep(1000);
}
else if(nyc==40){
cout<<"\n您已吃过 40 次年夜饭啦 获得 回春之光 - 碎片*10";
hczg_sp+=10;
jinbi+=1500;
Sleep(1000);
}
else if(nyc==160){
cout<<"\n您已吃过 160 次年夜饭啦 获得 回春之光 - 碎片*50";
hczg_sp+=50;
jinbi+=7500;
Sleep(1000);
}
else if(nyc==320){
cout<<"\n您已吃过 320 次年夜饭啦 获得 点券*10000";
dj+=10000;
jinbi+=18000;
Sleep(1000);
}
}
}
else{
cout<<"100点券=1次机会 A.购买 B.退出";
num=getch();
if(num=='A'){
if(dj>=100){
dj-=100;
nyf++;
cout<<"购买成功";
Sleep(1000);
}
else{
system("cls");
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
system("cls");
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
}
else if(xnx=='F'){
cout<<"A.放烟花 B.购买机会";
num=getch();
system("cls");
if(num=='A'){
if(yh>0){
yh--;
system("cls");
yhc++;
cout<<"放烟花成功 获得 玉树银花 - 碎片*2";
jinbi+=300;
ysyh_sp+=2;
Sleep(1000);
if(yhc==10){
cout<<"\n您已放过 10 次烟花啦 获得 玉树银花 - 碎片*4";
ysyh_sp+=4;
jinbi+=600;
Sleep(1000);
}
else if(yhc==40){
cout<<"\n您已放过 40 次烟花啦 获得 玉树银花 - 碎片*10";
ysyh_sp+=10;
jinbi+=1500;
Sleep(1000);
}
else if(yhc==160){
cout<<"\n您已放过 160 次烟花啦 获得 玉树银花 - 碎片*50";
ysyh_sp+=50;
jinbi+=7500;
Sleep(1000);
}
else if(yhc==320){
cout<<"\n您已放过 320 次烟花啦 获得 点券*10000";
dj+=10000;
jinbi+=18000;
Sleep(1000);
}
}
else{
cout<<"100点券=1次机会 A.购买 B.退出";
num=getch();
if(num=='A'){
if(dj>=100){
dj-=100;
yh++;
cout<<"购买成功";
Sleep(1000);
}
else{
system("cls");
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
system("cls");
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
}
else{
cout<<"100点券=1次机会 A.购买 B.退出";
num=getch();
if(num=='A'){
if(dj>=100){
dj-=100;
yh++;
cout<<"购买成功";
Sleep(1000);
}
else{
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
system("cls");
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
}
else if(xnx=='G'){
system("cls");
cout<<"A.玉树银花 - 碎片*350 = 玉树银花 B.回春之光 - 碎片*350 = 回春之光 C.寒风「极」 - 碎片*350 = 寒风「极」";
num=getch();
system("cls");
if(num=='A'){
if(ysyh_sp>=350){
ysyh_sp-=350;
ysyh=true;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"玉树银花 - 碎片少了";
Sleep(1000);
}
}
else if(num=='B'){
if(hczg_sp>=350){
hczg_sp-=350;
hczg=true;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"回春之光 - 碎片少了";
Sleep(1000);
}
}
else if(num=='C'){
if(hf_j_sp>=350){
hf_j_sp-=350;
hf_j=true;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"寒风「极」 - 碎片少了";
Sleep(1000);
}
}
}
if(xnx=='H')
break;
}
}
else if(a=='I'){
system("cls");
if(dj2>=100){
cout<<"精英手册等级已满";
Sleep(1000);
continue;
}
cout<<"A.购买精英手册 B.退出\n";
cout<<"\n您有"<<dj<<"张点券";
num=getch();
system("cls");
if(num=='A'){
cout<<"A.2500点券(购买25级) B.[原价5000点券]4999点券(购买50级) C.[原价10000点券]9990点券(购买100级)";
num=getch();
system("cls");
if(num=='A'){
if(dj>=2500){
dj-=2500;
dj2+=25;
cout<<"购买成功";
jinbi+=10000;
dj+=25;
mdqr_cnhk_sp+=25;
Sleep(1000);
}
else{
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
else if(num=='B'){
if(dj>=4999){
dj-=4999;
dj2+=50;
cout<<"购买成功";
jinbi+=20000;
dj+=50;
mdqr_cnhk_sp+=50;
Sleep(1000);
}
else{
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
else if(num=='C'){
if(dj>=9990){
dj-=9990;
dj2+=100;
cout<<"购买成功";
jinbi+=40000;
dj+=200;
mdqr_cnhk_sp+=100;
Sleep(1000);
}
else{
cout<<"点券不足";
Sleep(250);
cout<<"\n是否前往充值 A.前往 B.取消";
num=getch();
system("cls");
if(num=='A'){
cout<<"注意:每只次充值1元";
Sleep(1000);
system("start https://wenda.codingtang.com/questions/11773/");
Sleep(60000);
cout<<"充值成功";
dj+=10000;
Sleep(500);
}
}
}
}
}
else if(a=='J'){
system("cls");
cout<<"游戏结束";
mnb();
return 0;
}
}
return 0;
}
朱优扬在2021-02-15 16:34:03追加了内容
ding