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

Upload New File

上级 670399bb
#include <Windows.h>
#include <iostream>
#include<conio.h>
#include "Prepare.h"
#define W Sleep(1000);//延时一秒
using namespace std;
void Battle::Pingfengerqi() //英灵之力凭风而起
{
if (feng2 < 3)
{
cout << "使用了凭风而起;" << endl;
feng1 = true;
feng2++;
}
else
cout << "无法再使用凭风而起"<<endl;
}
void Battle::Zhiyuzhili()//英灵之力治愈之力
{
cout <<endl<< "英灵之力——治愈之力发动" << endl; W
cout << "恢复了一半的血量" << endl; W
life = LifeValue/2;
zhi1 = false;
}
void Battle::Leishenzhinu()//英灵之力雷神之怒
{
if (lei2 < 2)
{
cout << "使用了雷神之怒;" << endl;W
if (2 * Attack - (g_hudun) >= 0)
{
g_hudun = 0;
g_life -= 2 * Attack - g_hudun;
cout << endl << "造成了" << 2 * Attack - (g_hudun) << "的伤害" << endl;
if(process==4)
cout << "“盖侬”还剩" << g_life << "点生命" << endl;
else
cout << "“炙岩”还剩" << g_life << "点生命" << endl;
}
else
{
cout << "伤害被护盾阻挡" << endl;
g_hudun -= 2 * Attack;
}
lei1 = true;
lei2++;
}
else
cout << "无法再使用雷神之怒"<< endl;
}
void Battle::Lieyanbiyou()//英灵之力烈焰庇佑
{
Shield = LifeValue / 2;
cout << "坚硬的护盾在你身旁形成" << endl;
}
\ No newline at end of file
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册