//创作人Allen
//代码如下
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
int rushu,choose1,choose2,choose3;
int doint1 ;
struct people{
int atk,ddf,hp,iq,su;
string name;
int zhan,go;
int now_hp,zd;
bool used,dead;
int defen;
int score;
bool atk_used,ddf_used;
int BOSs;
int Tour_Skill,ma_bi;
}a[1001];
void voids(void);
bool panduan(void);
void pugong(int,int); //普通攻击
void xiaolifeidao(int,int); //技能:小李飞刀
void huoqiushu(int,int); //技能:实力秒杀!!
void kuangbao(int); //技能:狂暴术
void leijishu(int,int); //技能:雷击术
void tiebishu(int); //技能:铁壁术
void bingdongshu(int,int); //技能:冰封万里
void color(string); //颜色系统-----
void zhandui(int); //战队系统----- (一)战队&名字绑定
void zhandui_xun(int); //战队系统----- (二)战队&战队名字&战队加成
void zhandui_xun2(int,int); //同上
void zhandui_skill(int); //战队系统----- (三)战队&战队技能
void wuqi_main(int); //武器系统主函数
void changqiongzhan(int,int); //技能:苍穹斩
void huifushu(int); //技能:恢复术
void shixueyiji(int,int); //技能:嗜血一击
void beici(int,int); //技能:背刺
void Slowsay(string); //输出优化
void moshi1(void); //玩家对战模式
bool check(int);
bool comp1(people,people);
bool comp2(people,people);
void moshi2_boss();
void BOSS(int);
bool check2();
void peoples();
void BOSS_skill7(int); //雷神Tour 专属技能
void dead();
void BOSS_skill8(int); //圣骑剑圣 专属技能
void write1 () ;
int main () ;
void write1 () {
system("cls");
Slowsay ("最近一次更新:2018/9/10\n");
Slowsay ("更新主要内容:\n(1) 新增BOSS 雷神Tour \n(2) 新增BOSS 圣骑剑圣");
Sleep (2500);
main ();
}
void BOSS_skill8(int j){
Sleep(500);
if(a[rushu+1].Tour_Skill==3){
color("Y");cout<<"--千锤万载成剑心--"<<endl;Sleep(500);color("W");
cout<<a[rushu+1].name<<"使用了---神技---";color("R");cout<<"圣剑之禁·灭世的光芒";color("W");cout<<"-----"<<endl;
for(int l=1;l<=5;l++){Sleep(800);int shanghai=rand()%100+100;
if(check2()==true) break;
if(l==1){color("B");cout<<"第一式---圣剑之刃";}
else if(l==2){color("R");cout<<"第二式---圣剑之光";}
else if(l==3){color("G");cout<<"第三式---圣剑之威";}
else if(l==4){color("Y");cout<<"第四式---圣剑之锋";}
else if(l==5){color("C");cout<<"第五式---圣剑之灭";}
int ffff=rand()%rushu+1;
while(true){
ffff=rand()%rushu+1;if(a[ffff].now_hp>0) break;
}a[ffff].now_hp-=shanghai;voids();
cout<<endl;color("W");cout<<"玩家"<<a[ffff].name<<"受到了"<<shanghai<<" 点伤害,目前剩余血量:";color("Y");cout<<a[ffff].now_hp;color("W");cout<<"/";color("C");cout<<a[ffff].hp<<endl;color("W");
}
a[rushu+1].Tour_Skill=0;
}
else{
int fff;
while (true){
fff = rand ();
if (fff % 3 != 2) break;
else if (fff % 3 == 2 && doint1 == 0) break;
}
if (fff % 3 == 0){
cout<<a[rushu+1].name<<"使用了-----";color("C");cout<<"神圣斩击";color("W");cout<<"-----(S级技能)!"<<endl;
int shanghai=a[rushu+1].atk-a[j].ddf+rand()%50;
a[rushu+1].Tour_Skill++;
a[j].now_hp-=shanghai;voids();
cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害,目前剩余血量:";cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W");
}
else if (fff % 3 == 1){
a [rushu+1].Tour_Skill ++;
cout << a [rushu + 1].name << "使用了-----"; color ("Y"); cout << "剑刃风暴"; color ("W"); cout << "-----(S级技能)!" << endl;
int aaa = 13 + (fff % 5);
for (int i = 1;i <= aaa;i ++){
Sleep (150);
int shanghai = 20 + rand ()% 10;
while (true){
j = rand () % rushu + 1; if (a [j].now_hp > 0) break;
}
cout << "玩家" << a [j].name << "受到了 " ; color ("R"); cout << shanghai ; color ("W"); cout << " 点伤害!" ;
a [j].now_hp -= shanghai ; voids ();
cout << " 目前剩余血量:" ; color ("Y"); cout << a [j].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a[j].now_hp; color ("W"); cout << endl;
}
}
else if (fff % 3 == 2){
a [rushu+1].Tour_Skill ++;
cout << a [rushu + 1].name << "使用了-----"; color ("B"); cout << "神圣剑阵" ; color ("W"); cout << "-----(S级技能)!" << endl ;
cout << "生命值每回合回复 8%,持续3回合!" <<endl;
Sleep (500);
doint1 = 3;
}
}
}
void dead(){
for(int i=1;i<=rushu;i++){
if(a[i].dead==false&&a[i].now_hp<=0)
cout<<endl<<"玩家 "<<a[i].name<<" 阵亡!!!"<<endl;
a[i].dead=true;
}
}
void BOSS_skill7(int j){
Sleep(500);
if(a[rushu+1].Tour_Skill==4){
cout<<a[rushu+1].name<<" 已经汲取了足够的雷神精华,使用神技了!!"<<endl;Sleep(500);
for(j=1;j<=rushu;j++){
if(a[j].now_hp<=0) continue;
int shanghai=max(128,a[j].now_hp/2);a[j].now_hp-=shanghai;voids();
cout<<a[j].name<<"受到了"<<shanghai<<"点伤害,目前剩余血量:"; color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;
}
a[rushu+1].Tour_Skill=0;
}
else{
int fff=rand()%10000;
while(true){
if(fff%5==0&&a[rushu+1].now_hp==a[rushu+1].hp) fff=rand()%10000;
else break;
}
if(fff%5==0){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆汲取";color("W");cout<<"-----(S级技能)!"<<endl;int get=min(500,(a[rushu+1].hp-a[rushu+1].now_hp)*3/10);
cout<<a[rushu+1].name<<"恢复了已损失生命值的30%---(最多500)---";color("G");cout<<"---"<<get; color("W");cout<<" !!!"<<endl;Sleep(1200);
cout<<"目前"<<a[rushu+1].name<<"剩余生命值为:";color("Y");cout<<" "<<a[rushu+1].now_hp;color("W");cout<<"/";color("R");cout<<a[rushu+1].hp<<endl;color("W");
a[rushu+1].Tour_Skill++;Sleep(500);color("C");
cout<<endl<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W");
}
else if(fff%5==1||fff%5==2){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆一斩";color("W");cout<<"-----(S级技能)!"<<endl;
int shanghai=a[rushu+1].atk/2+a[rushu+1].iq*3/4-a[j].ddf*3/2+rand()%30;
cout<<a[j].name<<"受到了";
color("R");cout