1
已解决
朱优扬
中级天翼
中级天翼
#include <iostream>
#include <windows.h>
#include <fstream>
#include <conio.h>
#include <time.h>
using namespace std;
const int MAX=42,lxd=39;
long long nmjt;
long long us,d,e;
char num;
long long dj2;
string cz;
long long nkkg;
long long hyd_sds,d_j;
bool wgg_tk=false,wgg_xj=false,wgg_tj=false;
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;
long long 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;
long long cntjm,cntjt,cntjj,cntjz,cntjl,cntwjzj,cntch,cntchb;
long long cnt,wzjdlcnt,znqcnt,cntj,cntcnt,cnt1,guaixuet,gxts,guaixue,gxs;
long long cntqq,cntmt,cnttk,cntjk,cntzs,cntlb;
long long yingcang,yingcang1;
long long maxnz=1,minnz=9,maxn=14,minn=1,minn1=1,maxn1=3,minnyc=1,maxnyc=10;
long long 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;
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;
long long wx=70;
long long kg=2,kg1=2,kg2=2,kg3=2;
char yidong,yidong1,yidong2,yidong3;
long long jinbi=200;
char a,b;
bool lhz=false,hxt=false,bst=false,lhx=false;
bool zlhz=false,zhxt=false,zbst=false,zlhx=false;
string fq;
char rt;
int wgg_pd(bool x){
if(x==true) return 2;
else return 1;
}
void qp(){
system("cls");
return;
}
int lens(int x,int y){
return x<y;
}
string GX_P_RQ(){
time_t timep;
time (&timep);
char tmp[64];
strftime(tmp, sizeof(tmp), "%Y%m%d",localtime(&timep) );
return tmp;
}
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<<" "<<d<<" "<<e<<" "<<dj2<<" "<<nmjt<<endl;
cout<<wgg_tk<<" "<<wgg_xj<<" "<<wgg_tj<<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(mdqr_cnhk==true)
cout<<"J.阎魔刀-兔子白白"<<" ";
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>>d>>e>>dj2>>nmjt>>wgg_tk>>wgg_xj>>wgg_tj;
for(int i=1;i<=9;i++){
fin>>scd;
if(scd=="n"||scd==""){
switch(i){
case 10:mdqr_cnhk=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 10:mdqr_cnhk=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使用法器,按l打开外骨骼背包((头盔自动使用)按s使用胸甲技能,按d使用腿甲技能(按下d后选择a或d(d向前移动,a向后移动))(a和s只能在打怪是使用)),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=='l'){
num=getch();
if(num=='d'&&wgg_tj){
num=getch();
if(num=='d'){
for(int i=1;i<=26;i++){
qp();
kg++;
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<<"▉";
}
}
}
else if(num=='a'){
for(int i=1;i<=26;i++){
qp();
kg--;
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<<"▉";
}
}
}
}
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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{
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;
nmjt+=500;
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*wgg_pd(wgg_tk);
wx-=2;
}
else if(xm==true){
guaixue-=50*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixue-=15*wgg_pd(wgg_tk);
wx-=2;
}
}
else if(zc2==true){
guaixue-=12*wgg_pd(wgg_tk);
wx-=3;
}
else if(zc3==true){
guaixue-=8*wgg_pd(wgg_tk);
wx-=5;
}
else if(zc4==true){
guaixue-=12*wgg_pd(wgg_tk);
wx-=3;
}
else if(zc5==true){
if(yx==true){
guaixue-=30*wgg_pd(wgg_tk);
wx-=2;
}
else if(yt==true){
guaixue-=47*wgg_pd(wgg_tk);
wx-=2;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixue-=14*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixue-=17*wgg_pd(wgg_tk);
wx-=2;
}
}
}
else if(zc6==true){
if(hs==true){
guaixue-=39*wgg_pd(wgg_tk);
wx-=2;
}
else if(hw==true){
guaixue-=28*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixue-=16*wgg_pd(wgg_tk);
wx-=2;
}
}
else if(zc7==true){
guaixue-=7*wgg_pd(wgg_tk);
wx-=5;
}
else if(zzzzj==true){
guaixue-=6666666*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixue-=lxd;
guaixue-=lxd;
}
else
guaixue-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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";
cout<<" 1.可以花费点券购买精英手册,精英手册满级后,可到商城兑换阎魔刀 - 兔子白白\n";
cout<<" 2.版本更新后,一共增加了2把武器\n";
cout<<" 5.凡是氪金武器伤害都为 无限 (除阎魔刀 - 兔子白白外,这把刀伤害为 123456 )\n";
cout<<" 6.新赛季开始,全新精英手册兔子白白\n";
cout<<" 7.更新纳米科技,打血量不同的怪会掉落不同的纳米晶体,也可通过点券购买,可在“纳米商店”中进行交易\n";
cout<<" 8.外骨骼头盔会让攻击伤害翻倍,外骨骼胸甲可以发射龙息弹,外骨骼腿甲可以快速移动\n";
cout<<" 9.更改了游戏初始界面\n";
cout<<" ";
system("pause");
system("cls");
string lycsstriyng="20210422";
if(GX_P_RQ()>=lycsstriyng){
cout<<"游戏已更新,此版本无法游玩";
Sleep(1000);
return lens(0,1);
}
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.纳米商店 K.保存并退出";
a=getch();
if(a=='A')
maoxian();
else if(a=='B'){
while(1){
system("cls");
cout<<"20金币一次\n";
cout<<"你有";
cout<<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使用法器,按l打开外骨骼背包(按a使用头盔技能,按s使用胸甲技能,按d使用腿甲技能(按下d后选择a或d(d向前移动,a向后移动))(a和s只能在打怪是使用)),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=='l'){
num=getch();
if(num=='d'&&wgg_tj){
num=getch();
if(num=='d'){
for(int i=1;i<=26;i++){
qp();
kg2++;
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<<"▉";
}
}
}
else if(num=='a'){
for(int i=1;i<=26;i++){
qp();
kg2--;
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<<"▉";
}
}
}
}
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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{
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;
nmjt+=750;
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*wgg_pd(wgg_tk);
wx-=2;
}
else if(xm==true){
guaixuet-=50*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixuet-=15*wgg_pd(wgg_tk);
wx-=2;
}
}
else if(zc2==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=3;
}
else if(zc3==true){
guaixuet-=8*wgg_pd(wgg_tk);
wx-=5;
}
else if(zc4==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=3;
}
else if(zc5==true){
if(yx==true){
guaixuet-=30*wgg_pd(wgg_tk);
wx-=2;
}
else if(yt==true){
guaixuet-=47*wgg_pd(wgg_tk);
wx-=2;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=14*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixuet-=17*wgg_pd(wgg_tk);
wx-=2;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=39*wgg_pd(wgg_tk);
wx-=2;
}
else if(hw==true){
guaixuet-=28*wgg_pd(wgg_tk);
wx-=2;
}
else{
guaixuet-=16*wgg_pd(wgg_tk);
wx-=2;
}
}
else if(zc7==true){
guaixuet-=7*wgg_pd(wgg_tk);
wx-=5;
}
else if(zzzzj==true){
guaixuet-=666666*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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;
}
}
}
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使用法器,按l打开外骨骼背包(按a使用头盔技能,按s使用胸甲技能,按d使用腿甲技能(按下d后选择a或d(d向前移动,a向后移动))(a和s只能在打怪是使用)),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=='l'){
num=getch();
if(num=='d'&&wgg_tj){
num=getch();
if(num=='d'){
for(int i=1;i<=26;i++){
qp();
kg2++;
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<<"▉";
}
}
}
else if(num=='a'){
for(int i=1;i<=26;i++){
qp();
kg2--;
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<<"▉";
}
}
}
}
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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{
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;
nmjt+=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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=5000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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使用法器,按l打开外骨骼背包(按a使用头盔技能,按s使用胸甲技能,按d使用腿甲技能(按下d后选择a或d(d向前移动,a向后移动))(a和s只能在打怪是使用)),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=='l'){
num=getch();
if(num=='d'&&wgg_tj){
num=getch();
if(num=='d'){
for(int i=1;i<=26;i++){
qp();
kg2++;
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<<"▉";
}
}
}
else if(num=='a'){
for(int i=1;i<=26;i++){
qp();
kg2--;
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<<"▉";
}
}
}
}
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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{
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){
nmjt+=950;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=3000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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){
nmjt+=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<<"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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=3000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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){
nmjt+=1500;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=2500*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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){
nmjt+=1350;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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){
dj+=1350;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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){
dj+=3000;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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;
nmjt+=4399;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=1000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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使用法器,按l打开外骨骼背包(按a使用头盔技能,按s使用胸甲技能,按d使用腿甲技能(按下d后选择a或d(d向前移动,a向后移动))(a和s只能在打怪是使用)),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=='l'){
num=getch();
if(num=='d'&&wgg_tj){
num=getch();
if(num=='d'){
for(int i=1;i<=26;i++){
qp();
kg2++;
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<<"▉";
}
}
}
else if(num=='a'){
for(int i=1;i<=26;i++){
qp();
kg2--;
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<<"▉";
}
}
}
}
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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{
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;
nmjt+=3199;
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*wgg_pd(wgg_tk);
wx-=10;
}
else if(xm==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
guaixuet-=7*wgg_pd(wgg_tk);
wx-=13;
}
}
else if(zc2==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc3==true){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc4==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=20;
}
else if(zc5==true){
if(yx==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=15;
}
else if(yt==true){
guaixuet-=15*wgg_pd(wgg_tk);
wx-=14;
}
else{
srand((int)time(NULL));
ans2=minn+rand()%(maxn1-minn1+1);
if(ans2==1||ans2==2){
guaixuet-=5*wgg_pd(wgg_tk);
wx-=18;
}
else{
guaixuet-=5*wgg_pd(wgg_tk);
wx-=20;
}
}
}
else if(zc6==true){
if(hs==true){
guaixuet-=10*wgg_pd(wgg_tk);
wx-=10;
}
else if(hw==true){
guaixuet-=12*wgg_pd(wgg_tk);
wx-=12;
}
else{
guaixuet-=4*wgg_pd(wgg_tk);
wx-=19;
}
}
else if(zc7==true){
guaixuet-=4*wgg_pd(wgg_tk);
wx-=10000;
}
else if(zzzzj==true){
guaixuet-=5000*wgg_pd(wgg_tk);
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*wgg_pd(wgg_tk);
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=='l'){
num=getch();
if(num=='s'&&wgg_xj)
if(wgg_tk==true){
guaixuet-=lxd;
guaixuet-=lxd;
}
else
guaixuet-=lxd;
}
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<<"J.阎魔刀-兔子白白"<<" ";
}
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=="z100"&&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=="z110"&&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=="z10"&&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'){
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=='I'){
system("cls");
cout<<"_______________________________________\n";
cout<<"|兑换券|兑换券|碎片|碎片|兑换券|兑换券|\n";
cout<<"|兑换券|兑换券|碎片|碎片|兑换券|兑换券|\n";
cout<<"|兑换券|兑换券|碎片|碎片|兑换券|兑换券|\n";
cout<<"|兑换券|兑换券|碎片|碎片|兑换券|兑换券|\n";
cout<<"|兑换券|兑换券|碎片|碎片|兑换券|兑换券|\n";
cout<<"_______________________________________\n";
cout<<"A.抽奖(250点券) B.兑换商城 C.退出";
num=getch();
qp();
if(num=='A'){
if(dj>=250){
dj-=250;
srand((int)time(NULL));
us=1+rand()%30;
if(us>=1&&us<=20){
int sand;
srand((int)time(NULL));
sand=5+rand()%45;
cout<<"你抽到了兑换券*"<<sand;
Sleep(1000);
e=e+sand;
}
else{
int sand;
srand((int)time(NULL));
sand=2+rand()%13;
cout<<"你抽到了碎片*"<<sand;
Sleep(1000);
d=d+sand;
}
}
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(num=='B'){
cout<<"A.牛气冲天「魔」(50碎片) B.碎片(5兑换券) C.碎片*50(240兑换券) D.退出";
num=getch();
qp();
if(num=='A'){
if(d>=50){
d-=50;
ysyh=true;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"碎片少了";
Sleep(1000);
}
}
else if(num=='B'){
if(e>=5){
e-=5;
d++;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"兑换券少了";
Sleep(1000);
}
}
else if(num=='C'){
if(e>=240){
e-=240;
d+=50;
cout<<"兑换成功";
Sleep(1000);
}
else{
cout<<"兑换券少了";
Sleep(1000);
}
}
}
}
else if(a=='J'){
qp();
cout<<"A.纳米晶体*1000(100点券) B.外骨骼头盔(1000纳米晶体) C.外骨骼胸甲(1000纳米晶体) D.外骨骼腿甲(1000纳米晶体)";
num=getch();
qp();
if(num=='A'){
if(dj>=100){
dj-=100;
nmjt+=1000;
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(num=='B'){
if(nmjt>=1000){
nmjt-=1000;
wgg_tk=true;
cout<<"购买成功";
Sleep(1000);
}
else{
cout<<"纳米晶体不足";
Sleep(1000);
}
}
else if(num=='C'){
if(nmjt>=1000){
nmjt-=1000;
wgg_xj=true;
cout<<"购买成功";
Sleep(1000);
}
else{
cout<<"纳米晶体不足";
Sleep(1000);
}
}
else if(num=='D'){
if(nmjt>=1000){
nmjt-=1000;
wgg_tj=true;
cout<<"购买成功";
Sleep(1000);
}
else{
cout<<"纳米晶体不足";
Sleep(1000);
}
}
}
else if(a=='K'){
system("cls");
cout<<"游戏结束";
mnb();
exit(0);
}
}
return 0;
}
我回来了……
朱优扬在2021-03-20 16:32:30追加了内容
顶!!!
朱优扬在2021-03-26 17:31:49追加了内容
ding