#include<bits/stdc++.h>
#include<unistd.h>
#include<ctime>
using namespace std;
int jb,zs;
int p;
string me;
int a,b,c;
string l;
string xi;
int xm;
int sd;
string id1="诺亚";
int a1=100,b1=58,c1=300;
string jn1="光刃";
string id2="陈炫任";
int a2=55,b2=90,c2=500;
string jn2="AC之力";
string id3="海特";
int a3=80,b3=88,c3=423;
string jn3="盾墙" ;
string id4="原始人";
int a4=30,b4=90,c4=429;
string jn4="血脉觉醒";
string id5="卢禹潭";
int a5=40,b5=69,c5=450;
string jn5="恒温了";
string id6="袁泽雨";
int a6=99,b6=30,c6=480;
string jn6="袁子弹";
string id7="陈伊俊";
int a7=77,b7=77,c7=490;
string jn7="阿米诺斯";
int main(){
srand(time(0));
int sjs=rand();
cout << "欢迎体验《末日求生记》1.0.0"<<endl;
sleep(1);
cout << "末日求求生记"<<endl;
cout << "Y启动/N卸载/A关于"<<endl;
char y;
cin>>y;
if(y=='A'){
cout <<"本游戏为《末日求生记》1.0.0版本,作者郝子豪,严禁抄袭!"<<endl;
sleep(1);
cout <<"本游戏提取多人建议创造而成......"<<endl;
cin >> y;
}
if(y=='N') cout <<"游戏卸载成功!";
if(y=='Y'){
cout << "加载中......"<<endl ;
sleep(1);
cout << "故事开始于第三次世界大战:"<<endl;
sleep(1);
cout << "日本使用核武器过多而导致生物变异"<<endl;
sleep(1);
cout <<"人类为了生存开始了冒险!"<<endl;
sleep(1);
cout <<"请输入你的姓名:";
string n1;
cin >>n1;
cout << "请选择你的角色:"<<endl;
cout <<"1.诺亚" << endl;
cout <<"2.陈炫任" << endl;
cout <<"3.海特" << endl;
cout <<"4.原始人" <<endl;
cout <<"5.卢禹潭" <<endl;
cout <<"6.袁泽雨" <<endl;
cout <<"7.陈伊俊" <<endl;
cin >> p;
if(p==1){
me=id1;
a=a1,b=b1,c=c1;
l=jn1;
}
else if(p==2){
me=id2;
a=a2,b=b2,c=c2;
l=jn2;
}
else if(p==3){
me=id3;
a=a3,b=b3,c=c3;
l=jn3;
}
else if(p==4){
me=id4;
a=a4,b=b4,c=c4;
l=jn4;
}
else if(p==5){
me=id5;
a=a5,b=b5,c=c5;
l=jn5;
}
else if(p==6){
me=id6;
a=a6,b=b6,c=c6;
l=jn6;
}
else if(p==7){
me=id7;
a=a7,b=b7,c=c7;
l=jn7;
}
cout <<"-------第一章 我为什么会在这里?-------"<<endl;
sleep(1);
cout <<me<<":TM的,这是什么地方~"<<endl;
sleep(1);
cout <<"未知:你是谁?"<<endl;
sleep(1);
cout <<me<<":我是"<<me<<"你呢?" <<endl;
sleep(1);
cout <<"未知:我?我叫格尔,你为什么在这?"<<endl;
sleep(1);
cout <<me<<":我不知道!"<<endl;
sleep(1);
cout <<"格尔:小心!有坏人!"<<endl;
sleep(1);
cout <<"几个火球飞了过来-----------------------------"<<endl;
sleep(1);
cout <<"你是谁?"<<endl;
int w1=150,w2=600;
cout <<"敌人血量:"<<w2<<endl;
cout <<"敌人攻击力:"<<w1<<endl;
int cnt=0;
int cut=0;
int cct=0;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (w2<=200){
cout << "敌人生气了!"<<endl;
cout <<"你的血量-"<<w1<<endl;
c=c+b-w1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
w2=w2-a;
cout <<"敌人血量-"<<a<<endl;
cout <<"敌人血量:"<<w2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
w2=w2-a-a/3;
cout <<"敌人血量-"<<a+a/3<<endl;
cout <<"敌人血量:"<<w2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"敌人血量:"<<w2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(w2<=0){
cout << "敌人死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
sleep(1);
cout << me << ":你是谁?"<<endl;
sleep(1);
cout << "敌人:我乃小霸王!"<<endl;
sleep(1);
cout << me << ":我看你是小王八!"<<endl;
sleep(1);
cout << "小霸王:卧槽!你有点勇哦!"<<endl;
sleep(1);
cout <<"格尔:吓死我了......"<<endl;
sleep(1);
cout <<me<<":你为什么袭击我们?"<<endl;
sleep(1);
cout <<"小霸王:这里好多年没人来了!"<<endl;
sleep(1);
cout <<"小霸王:我以为你们是坏人(尴尬)。"<<endl;
sleep(1);
cout <<"小霸王:为了表示欠意,我可以帮你升级"<<endl;
sleep(1);
cout << "1.升级 2.不升级"<<endl;
int g;
cin >> g;
if (g==1){
cout <<"攻击力"<<a+100<<endl;
cout <<"防御力"<<b+80<<endl;
cout <<"生命值"<<c+500<<endl;
a=a+100;
b=b+80;
c=c+500;
}
else{
cout <<"攻击力"<<a<<endl;
cout <<"防御力"<<b<<endl;
cout <<"生命值"<<c<<endl;
}
cout << "小霸王:听说星斗森林有奇怪的怪兽" <<endl;
sleep(1);
cout << "小霸王:那对我们威胁很大!" <<endl;
sleep(1);
cout << "小霸王:我认为还是去去好。" <<endl;
sleep(1);
cout << "----------到了森林----------" <<endl;
sleep(1);
cout <<"格尔:好恐怖啊!"<<endl;
sleep(1);
cout <<"嗷呜......"<<endl;
sleep(1);
cout << "不好,是战狼!" <<endl;
int f1=250,f2=650;
cnt=0;
cut=0;
cout <<"战狼血量:"<<f2<<endl;
cout <<"战狼攻击力:"<<f1<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (f2<=300){
cout << "战狼生气了!"<<endl;
cout <<"你的血量-"<<f1<<endl;
c=c+b-f1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
f2=f2-a;
cout <<"战狼血量-"<<a<<endl;
cout <<"战狼血量:"<<f2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
f2=f2-a-a/3;
cout <<"战狼血量-"<<a+a/3<<endl;
cout <<"战狼血量:"<<f2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"战狼血量:"<<f2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(f2<=0){
cout << "战狼死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
sleep(1);
cout <<"格尔:终于死了!"<<endl;
sleep(1);
cout <<"小霸王:唉,那战狼手中咋有一把剑?"<<endl;
sleep(1);
cout <<"1.捡起那把剑 2.不捡起那把剑"<<endl;
int f9;
cin >> f9;
if (f9==1){
cout <<"攻击力:"<<a+100<<endl;
a=a+100;
}
else{
cout << me <<":这东西没用!"<<endl;
sleep(1);
}
cout <<"格尔:这真是一个意外的掉落。" <<endl;
sleep(1);
cout <<me <<":那我们再深入一点,说不定有什么好东西!"<<endl;
sleep(1);
cout <<"--------走到了一片湖边--------"<<endl;
sleep(1);
cout <<"小霸王:不好,晚上了。"<<endl;
sleep(1);
cout <<me <<":怎么了?"<<endl;
sleep(1);
cout <<"小霸王:晚上会有狼人出没。"<<endl;
sleep(1);
cout <<"嗷呜,嗷呜,嗷呜..." <<endl;
sleep(1);
cout <<"格尔:呃..." <<endl;
int f3=300,f4=800;
cnt=0;
cut=0;
cout <<"狼人血量:"<<f4<<endl;
cout <<"狼人攻击力:"<<f3<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (f4<=600){
cout << "狼人生气了!"<<endl;
cout <<"你的血量-"<<f3<<endl;
c=c+b-f3;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
f4=f4-a;
cout <<"狼人血量-"<<a<<endl;
cout <<"狼人血量:"<<f4<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
f4=f4-a-a/3;
cout <<"狼人血量-"<<a+a/3<<endl;
cout <<"狼人血量:"<<f4<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"狼人血量:"<<f4<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(f4<=0){
cout << "狼人死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
sleep(1);
cout << "小霸王:牛逼啊!" <<endl;
sleep(1);
cout << "小霸王:你继承了狼人的血脉,获得了新的技能。" <<endl;
sleep(1);
cout <<"格尔:听,有敌人来了!" <<endl;
int k1=500,k2=1500;
xi="咆哮";
xm=800;
cnt=0;
cut=0;
cct=0;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cout <<"暗黑魔爪熊攻击力:"<<k1<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (k2<=600){
cout << "暗黑魔爪熊生气了!"<<endl;
cout <<"你的血量-"<<k1<<endl;
c=c+b-k1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
k2=k2-a;
cout <<"暗黑魔爪熊血量-"<<a<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
k2=k2-a-a/3;
cout <<"暗黑魔爪熊血量-"<<a+a/3<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
k2=k2-xm;
cout <<"暗黑魔爪熊血量-"<<xm<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(k2<=0){
cout << "暗黑魔爪熊死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
sleep(1);
cout <<"小霸王:我们现在干嘛?"<<endl;
sleep(1);
cout <<me<<": 1.我们继续走吧! 2.我们再休息一下!"<<endl;
int ggb;
cin >> ggb;
if(ggb==1){
cout << "小霸王:那走吧!"<<endl;
sleep(1);
}
if(ggb==2){
cout << "小霸王:那是什么?"<<endl;
sleep(1);
cout << "格尔:是生命之石!"<<endl;
sleep(1);
cout << "你的生命值+3000"<<endl;
sleep(1);
c=c+3000;
cout <<"目前血量:"<<c<<endl;
}
cout << "格尔:我们继续!" <<endl;
sleep(1);
cout << me <<":走!"<<endl;
sleep(1);
cout <<"--------森林深处--------"<<endl;
sleep(1);
cout <<"小霸王:这么久都没遇到怪物。"<<endl;
sleep(1);
cout << "格尔:别松懈!" <<endl;
sleep(1);
cout <<"轰......"<<endl;
sleep(1);
cout <<"小霸王:完了,是金龙王,我们必死无疑了!";
int k3=10000,k4=10000;
cnt=0;
cut=0;
cct=0;
cout <<"金龙王血量:"<<k4<<endl;
cout <<"金龙王攻击力:"<<k3<<endl;
for(int i=1;;i++){
if(c<=0) {
sd++;
break;
}
if (k4<=9999){
cout << "金龙王生气了!"<<endl;
cout <<"你的血量-"<<k3<<endl;
c=c+b-k3;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
k4=k4-a;
cout <<"金龙王血量-"<<a<<endl;
cout <<"金龙王血量:"<<k4<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
k4=k4-a-a/3;
cout <<"金龙王血量-"<<a+a/3<<endl;
cout <<"金龙王血量:"<<k4<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"金龙王血量:"<<k4<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
k4=k4-xm;
cout <<"金龙王血量-"<<xm<<endl;
cout <<"金龙王量:"<<k4<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(k4<=0){
cout << "你通关了!"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd!=0){
cout<<"你输了!"<<endl;
cout <<"---------------------------"<<endl;
sleep(1);
cout<<"小霸王:快不行了!"<<endl;
sleep(1);
cout<<"小霸王:只能这样了......"<<endl;
sleep(1);
cout<<"小霸王:拼了!"<<endl;
sleep(1);
cout<<"小霸王冲了上去"<<endl;
sleep(1);
cout<<"砰"<<endl;
sleep(1);
cout<<"格尔:不!"<<endl;
sleep(1);
cout<<"小霸王:我死以后,不要......"<<endl;
sleep(1);
cout<<me<<":不!"<<endl;
sleep(2);
cout<<"-------第二章 龙王血脉--------"<<endl;
sleep(1);
cout<<"一股金黄的能量向你涌来。"<<endl;
cout<<"1.接收 2.不接收"<<endl;
int p6;
cin >> p6;
if(p6==1){
xi="金色传说";
xm=8000;
cout <<"攻击力"<<a+1000<<endl;
cout <<"防御力"<<b+800<<endl;
cout <<"生命值"<<c+50000<<endl;
a=a+1000;
b=b+800;
c=c+50000;
}
else cout<<me<<":什么东西!"<<endl;
sleep(1);
cout<<me<<":小霸王,不要!!!"<<endl;
sleep(1);
cout<<"格尔:我们努力,一定可以帮他复活!"<<endl;
sleep(1);
cout<<me<<":复活?"<<endl;
sleep(1);
cout<<"格尔:是啊,听说有个神界,可以复活!"<<endl;
sleep(1);
cout<<me<<":那我们努力!"<<endl;
sleep(1);
cout<<"--------森林中央--------"<<endl;
sleep(1);
cout<<"格尔:不好!"<<endl;
sleep(1);
cout<<me<<":不是!怎么这里还有龙王啊?"<<endl;
int g1=7000,g2=8000;
cnt=0;
cut=0;
cct=0;
cout <<"龙王血量:"<<g2<<endl;
cout <<"龙王攻击力:"<<g1<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (g2<=5000){
cout << "龙王生气了!"<<endl;
cout <<"你的血量-"<<g1<<endl;
c=c+b-g1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
g2=g2-a;
cout <<"龙王血量-"<<a<<endl;
cout <<"龙王血量:"<<g2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
g2=g2-a-a/3;
cout <<"龙王血量-"<<a+a/3<<endl;
cout <<"龙王血量:"<<g2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"龙王血量:"<<g2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
g2=g2-xm;
cout <<"龙王血量-"<<xm<<endl;
cout <<"龙王血量:"<<g2<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(g2<=0){
cout << "龙王死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd!=0){
cout <<"---------------------------"<<endl;
sleep(1);
cout<<me<<":怎么血脉之力更新了?"<<endl;
sleep(1);
cout<<"格尔:太好了!"<<endl;
sleep(1);
cout<<"格尔:我们出森林吧!" <<endl;
sleep(1);
cout<<"--------幸存者中心--------"<<endl;
sleep(1);
cout<<me<<":这里好大啊!"<<endl;
sleep(1);
cout<<me<<":那你带我来这干什么?"<<endl;
sleep(1);
cout<<"格尔:当然是过来抽物资的!"<<endl;
sleep(1);
cout<<"营业员:欢迎来到幸运转盘。"<<endl;
sleep(1);
cout<<"营业员:中奖概率如下......"<<endl;
sleep(1);
cout<<"品名:生命之石 概率:10.5"<<endl;
sleep(0.5);
cout<<"品名:铁剑 概率:40.7"<<endl;
sleep(0.5);
cout<<"品名:4000金币 概率:5.2"<<endl;
sleep(0.5);
cout<<"品名:龙甲 概率:6.2"<<endl;
sleep(0.5);
cout<<"品名:100钻石 概率:15.3"<<endl;
sleep(0.5);
cout<<"品名:成神丹 概率:4.6"<<endl;
sleep(1);
cout<<"输入1抽奖"<<endl;
int sf;
cin >> sf;
if(sf==1){
if(sjs%239==0){
cout<<"你抽中了成神丹!"<<endl;
sleep(1);
cout <<"攻击力:"<<a+10000<<endl;
cout <<"防御力:"<<b+8000<<endl;
cout <<"生命值:"<<c+<<endl;
a=a+10000;
b=b+80000;
c=c+;
}
else if(sjs%3==0){
cout<<"你抽生命之石!"<<endl;
sleep(1);
cout <<"生命值:"<<c+3000<<endl;
c=c+3000;
}
else if(sjs%2==0){
cout<<"你抽中了4000金币!"<<endl;
sleep(1);
cout <<"金币:"<<jb+4000<<endl;
jb=jb+4000;
}
else if(sjs%10==0){
cout<<"你抽中了100钻石!"<<endl;
sleep(1);
cout <<"钻石:"<<zs+100<<endl;
zs=zs+3000;
}
else if(sjs%33==0){
cout<<"你抽中了龙甲!"<<endl;
sleep(1);
cout <<"防御力:"<<b+8000<<endl;
b=b+3000;
}
else{
cout<<"你抽中了铁剑!"<<endl;
sleep(1);
cout <<"攻击力:"<<a+300<<endl;
a=a+300;
}
cout<<me<<"这次费用怎么办?"<<endl;
sleep(1);
cout<<"格尔:我请你!"<<endl;
sleep(1);
cout<<"格尔:以后你抽一次要5000金币!"<<endl;
sleep(1);
cout<<me<<":谢谢!"<<endl;
sleep(1);
cout<<"格尔:没事的话我先走了!"<<endl;
sleep(1);
cout<<me<<":好的!"<<endl;
sleep(1);
cout<<"------达芬军火库------"<<endl;
sleep(1);
cout<<me<<":老板,我想买点武器!"<<endl;
sleep(1);
cout<<"老板:哦,这里最少也要5000钻石,不过最近这有个活动,只要你打赢我,我就送你一件武器!"<<endl;
sleep(1);
cout<<me<<":好!"<<endl;
sleep(1);
int g3=7000,g4=12000;
cnt=0;
cut=0;
cct=0;
cout <<"老板血量:"<<g4<<endl;
cout <<"老板攻击力:"<<g3<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (g4<=10000){
cout << "老板生气了!"<<endl;
cout <<"你的血量-"<<g3<<endl;
c=c+b-g3;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
g4=g4-a;
cout <<"老板血量-"<<a<<endl;
cout <<"老板血量:"<<g4<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
g4=g4-a-a/3;
cout <<"老板血量-"<<a+a/3<<endl;
cout <<"老板血量:"<<g4<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"老板血量:"<<g4<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
g4=g4-xm;
cout <<"老板血量-"<<xm<<endl;
cout <<"老板血量:"<<g2<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(g4<=0){
cout << "老板死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd!=0){
cout <<"---------------------------"<<endl;
sleep(1);
cout<<"老板:我输了!给你个锁甲吧!"<<endl;
sleep(1);
cout<<"你获得了锁甲!"<<endl;
sleep(1);
cout<<"防御力+4000"<<endl;
sleep(1);
cout<<"目前防御力:"<<b+4000<<endl;
b=b+4000;
cout<<"第二章已结束"<<endl;
cout<<"尽情期待!"<<endl;
}
}
}
}
}
}
}
}
}
return 0;
}
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ji-chu/78617.html