提交 1b016993 编辑于 作者: 哲昊 周's avatar 哲昊 周
浏览文件

Upload New File

上级 fb13c834
#include <Windows.h>
#include <iostream>
#include<conio.h>
#include "Prepare.h"
#define W Sleep(1000);//延时一秒
using namespace std;
void Battle::Longjuan()//龙卷
{
cout << "“狂风”发动龙卷" << endl;W
int kill;
if (feng1)
{
cout << "英灵之力——凭风而起发动,躲避了这次攻击" << endl;
feng1 = false;
return;
}
if (fengkang == 1)
{
cout << "劲风斗篷使你不会受到击飞效果" << endl;
W
}
else
{
longjuan = 1;
cout << "你下回合将被击飞" << endl;W
}
if (process == 4)
kill = 130;
else
kill = 30;
life -= (kill - Defense);//攻击剩余生命
cout << "“狂风”打掉了你" << kill - Defense << "点生命" << endl;
cout << "你还剩" << life << "点生命" << endl;
}
void Battle::Xuanwo()//漩涡
{
int kill;
cout << "“洪流”发动了漩涡"<<endl;W
if (feng1)
{
cout << "英灵之力——凭风而起发动,躲避了这次攻击" << endl;
feng1 = false;
return;
}
if (process == 4)
kill = 280;
else
kill = 185;
life -= (kill - Defense);//攻击剩余生命
cout << "“洪流”打掉了你" << kill - Defense << "点生命" << endl;
cout << "你还剩" << life << "点生命" << endl;
}
void Battle::Leibao()//唤雷
{
int kill;
cout << "“沙暴”使用了唤雷,一道闪电从天而降" << endl;W
if (feng1)
{
cout << "英灵之力——凭风而起发动,躲避了这次攻击" << endl;
feng1 = false;
return;
}
if (leikang)
{
cout << "雷沙之冠帮你免疫了雷属性的伤害" << endl;
return;
}
if (process == 4)
kill = 280;
else
kill = 180;
life -= kill - Defense;//攻击剩余生命
cout << "“沙暴”打掉了你" << kill - Defense << "点生命" << endl;
cout << "你还剩" << life << "点生命" << endl;
}
void Battle::Hudun()
{
cout << "“炙岩”使用了熔岩壁垒"<< endl;W
if (lei1)
{
cout << "护盾在形成时与雷元素发生了超载反应,破碎了" << endl;
lei1 = false;
}
else
{
if (process == 4)
{
cout << "“盖侬”获得了350点护盾,你感到大事不妙" << endl;
g_hudun += 350;
}
else
{
cout << "“炙岩”获得了150点护盾,你感到大事不妙" << endl;
g_hudun += 150;
}
}
}
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册