#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int gw(int a){
cout << "输入你的血量" << endl;
int health;
cin >> health;
cout << "输入你的攻击力" << endl;
int attack;
cin >> attack;
cout << "输入你挑战老尸等级" << endl;
int level;
cin >> level;
int guai_health = level * 10000;
int guai_attack = level * level;
int i=1;
do{
cout << "第" << i << "回合" << endl;
guai_health -= attack;
cout << "对老尸造成了" << attack << "点伤害" << endl;
health += int(attack * 0.3);
cout << "恢复了" << int(attack * 0.3) << "点血量" << endl;
attack += attack;
cout << "攻击力提升了" << "提升为" << attack << "点" << endl;
if (health < 1000)
continue;
if (guai_health <= 0){
cout << "老尸挂了" << " 累计用时" << i << "回合" << endl;
return 0;
}
health -= guai_attack;
cout << "老尸对你造成了" << guai_attack << "点伤害" << endl;
if (health <= 0){
cout << "你挂了" << " 累计用时" << i << "回合" << endl;
return 0;
}
i+=1;
cout << "玩家剩余血量" << health << endl;
cout << "老尸剩余血量" << guai_health << endl;
Sleep(500);
}while(attack <= 1000000);
cout << "系统反作弊启动!检测到攻击力超过 1000000,封号!";
}
int main() {
int xz,xz2,lbz,mc,fnp,dz,lyb,lcr,jg,dg;
cout<<"欢迎来到《班级大战》"<<endl;
cout<<"你准备好了吗???"<<endl;
cout<<"请选择你的英雄:"<<endl;
cout<<"1.劳大 2.old yellow class long 3.马超 4.狄总 5.TREE bro 6.蓝博"<<endl;
cin>>xz;
if(xz!=114514) {
gw(xz);
}
return 0;
}