1.修仙传
功能较为完善
#include <bits/stdc++.h>
#include <windows.h>
#include <algorithm>
#include <limits.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include <stdio.h>
#include <iomanip>
#include <conio.h>
#include <ctype.h>
#include <cstdio>
#include <vector>
#include <time.h>
#include <stack>
#include <cmath>
#include <ctime>
#include <queue>
#define LEN 36 // int 一维最大 536870911,二维 [x][y] 的 x y 相乘不可大于此数。
#include <set>
#define add +
#define is =
using namespace std;
struct jies {
__int64 sheng;
__int64 gong;
__int64 fang;
__int64 qian;
};
string kuang[1001] = { "小型灵石矿", "中型灵石矿", "大型灵石矿", "微型元石矿", "小型元石矿", "中型元石矿", "大型元石矿", "微型元玉矿", "小型元玉矿", "中型元玉矿", "大型元玉矿", "微型灵石矿" };
string ququququ =
"你的意识陷入黑暗当中 \n你神识湮灭了 \n你的残魂游荡在天地中 \n999...999天后你重生了(liao)";
__int64 sheng = 30, gong = 10, fang = 10, b = 1, shengm = 30, yao = 1;
__int64 dalie, guaisheng, guaigong, guaifang, cai;
string jingjie, gfsh, name;
__int64 qian = 50, c, b_2;
__int64 kuangchan, shu;
bool lingtai = 0;
__int64 wakuang;
jies chushi;
float jiaz;
void prints( string s ) {
for ( int i = 0; i < s.length(); i++ ) {
cout << s[i];
Sleep(50);
}
}
void decide2( string linge ) {
if ( linge == "废灵根" ) {
cout << "无法修炼!" << endl;
shu = 0;
} else if ( linge == "黄品初阶" ) {
cout << "缓慢" << endl;
shu = 1;
} else if ( linge == "黄品中阶" ) {
cout << "缓慢" << endl;
shu = 2;
} else if ( linge == "黄品高阶" || linge == "玄品初阶" ) {
cout << "普通" << endl;
shu = 4;
if ( linge == "玄品初阶" ) {
shu = 5;
}
} else if ( linge == "玄品中阶" || linge == "玄品高阶" ) {
cout << "良好" << endl;
shu = 7;
if ( linge == "玄品高阶" ) {
shu = 8;
}
} else if ( linge == "地品中阶" || linge == "地品初阶" ||
linge == "地品高阶" ) {
cout << "卓越" << endl;
shu = 10;
if ( linge == "地品中阶" ) {
shu = 11;
}
if ( linge == "地品高阶" ) {
shu = 12;
}
} else if ( linge == "天品初阶" || linge == "天品中阶" ||
linge == "天品高阶" ) {
cout << "优秀" << endl;
shu = 16;
if ( linge == "天品中阶" ) {
shu = 17;
}
if ( linge == "天品高阶" ) {
shu = 18;
}
} else if ( linge == "王品初阶" || linge == "王品中阶" ||
linge == "王品高阶" ) {
cout << "快速" << endl;
shu = 20;
if ( linge == "王品中阶" ) {
shu = 21;
}
if ( linge == "王品高阶" ) {
shu = 22;
}
} else if ( linge == "皇品初阶" || linge == "皇品中阶" ||
linge == "皇品高阶" ) {
cout << "超速" << endl;
shu = 24;
if ( linge == "皇品中阶" ) {
shu = 25;
}
if ( linge == "皇品高阶" ) {
shu = 26;
}
} else if ( linge == "帝品初阶" || linge == "帝品中阶" ||
linge == "帝品高阶" ) {
cout << "极速" << endl;
shu = 28;
if ( linge == "帝品中阶" ) {
shu = 29;
}
if ( linge == "帝品高阶" ) {
shu = 30;
}
} else if ( linge == "圣品初阶" || linge == "圣品中阶" ||
linge == "圣品高阶" ) {
cout << "史诗" << endl;
shu = 36;
if ( linge == "圣品中阶" ) {
shu = 38;
}
if ( linge == "圣品高阶" ) {
shu = 40;
}
} else if ( linge == "神品初阶" || linge == "神品中阶" ||
linge == "神品高阶" ) {
cout << "传说" << endl;
shu = 45;
if ( linge == "神品中阶" ) {
shu = 48;
}
if ( linge == "神品高阶" ) {
shu = 51;
}
} else if ( linge == "仙品初阶" || linge == "仙品中阶" ||
linge == "仙品高阶" ) {
cout << "封神" << endl;
shu = 60;
if ( linge == "仙品中阶" ) {
shu = 65;
}
if ( linge == "仙品高阶" ) {
shu = 72;
}
} else if ( linge == "至尊" ) {
cout << "一秒 0.999 级" << endl;
shu = 80;
}
}
void dicide( __int64 t ) { // 定义 “资质判定 ”函数
if ( t <= 10 ) {
cout << "废材" << endl;
} else if ( t <= 50 ) {
cout << "废人" << endl;
} else if ( t <= 100 ) {
cout << "普通人" << endl;
} else if ( t <= 200 ) {
cout << "E级天才" << endl;
} else if ( t <= 400 ) {
cout << "D级天才" << endl;
} else if ( t <= 700 ) {
cout << "C级天才" << endl;
} else if ( t <= 1000 ) {
cout << "B级天才" << endl;
} else if ( t <= 1500 ) {
cout << "A级天才" << endl;
} else if ( t <= 2400 ) {
cout << "S级天才" << endl;
} else if ( t <= 3600 ) {
cout << "SS级天才" << endl;
} else if ( t <= 5000 ) {
cout << "SSS级天才" << endl;
} else if ( t <= 6800 ) {
cout << "D级天骄" << endl;
} else if ( t <= 9000 ) {
cout << "C级天骄" << endl;
} else if ( t <= 12000 ) {
cout << "B级天骄" << endl;
} else if ( t <= 15000 ) {
cout << "A级天骄" << endl;
} else if ( t <= 20000 ) {
cout << "S级天骄" << endl;
} else if ( t <= 30000 ) {
cout << "SS级天骄" << endl;
} else if ( t <= 42000 ) {
cout << "SSS级天骄" << endl;
} else if ( t <= 60000 ) {
cout << "绝世天骄" << endl;
} else if ( t <= 80000 ) {
cout << "绝代天骄" << endl;
} else if ( t <= 120000 ) {
cout << "神级天骄" << endl;
} else if ( t <= 200000 ) {
cout << "妖孽" << endl;
} else if ( t <= 300000 ) {
cout << "天选之子" << endl;
} else if ( t <= 500000 ) {
cout << "天命之子" << endl;
} else if ( t <= 1000000 ) {
cout << "气运之子" << endl;
}
}
void init1(void) { // 定义 “加载 ”函数
srand((int)time(0));
jiaz = rand() % 200 + 201;
float p;
float progLen;
float i, j;
progLen = jiaz;
for ( i = 1; i <= progLen; i = i + 0.45 ) {
system("cls");
p = (i / progLen) * LEN;
for (j = 1; j <= (int)(p + 0.5); j++)
printf ("■");
for (j = 1; j <= LEN - (int)(p + 0.5); j++)
printf ("□");
printf (" %0.1f%%", (i / progLen) * 100);
cout << "\n 加载中..." << endl;
srand((int)time(0));
Sleep(20);
}
putchar('\n');
system("cls");
cout << " 加载完成!" << endl;
Sleep(1000);
}
void init2(void) { // 定义 “进入登陆页面 ”函数
system("cls");
srand((int)time (0));
jiaz = rand() % 5 + 3;
for ( int i = 1; i <= jiaz; i++ ) {
cout << " 正在进入登陆页面";
for ( int j = 1; j <= 5; j++ ) {
Sleep(200);
cout << ".";
}
system("cls");
}
}
void init3() {
string linge;
system( "cls" );
cout << "-----------------------------------登陆-----------------------------------"
<< endl;
cout << "▲不可超过 1000000!" << endl;
cout << "你的初始生命为:";
cin >> chushi.sheng;
cout << "你的初始攻击为:";
cin >> chushi.gong;
cout << "你的初始防御为:";
cin >> chushi.fang;
cout << "你的灵根等级是:";
cin >> linge;
cout << "你的初始金币为:";
cin >> chushi.qian;
cout << "你的角色ID为:";
cin >> name;
if ( chushi.sheng > 500000 || chushi.gong > 500000 || chushi.fang > 500000 ) {
lingtai = 1;
}
if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 > 1000001 ) {
cout << "输入错误!" << endl;
Sleep(2500);
system( "cls" );
init3();
} else {
cout << "初始属性判定:";
dicide( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 );
cout << endl << "修炼速度:";
decide2( linge );
Sleep(3000);
system("cls");
}
}
int investigate() { // 定义 “排查隐患 ”函数
system( "cls" );
srand((int)time (0));
jiaz = rand() % 10 + 5;
for (int i = 1; i <= jiaz; i++) {
cout << " 正在排查游戏隐患";
for ( int j = 1; j <= 3; j++ ) {
Sleep(200);
cout << ".";
}
system("cls");
}
if ( jiaz == 9 ) {
MessageBox( NULL, "错误!", "J:\游戏(能玩能看)\小游戏.exe",
MB_OK );
MessageBox( NULL, "请重启游戏!",
"J:\游戏(能玩能看)\小游戏.exe", MB_OK );
return 0;
} else {
return 1;
}
}
void init4() { // 定义 “进入游戏 ”函数
system( "cls" );
srand((int)time (0));
jiaz = rand() % 9 + 5;
for ( int i = 1; i <= jiaz; i++ ) {
cout << " 正在进入游戏";
for ( int j = 1; j <= 3; j++ ) {
Sleep(300);
cout << ".";
}
system("cls");
}
}
__int64 asceticism( __int64 second, __int64 gfs,
__int64 num ) { // 定义 “修炼 ”函数
if ( gfs == 3 ) {
return ( second * num / 10 * 3 / 64 ) + 1;
} else {
return ( second * num / 10 * 3 / 106 ) + 1;
}
}
int main() {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
// MessageBox( NULL, "这是一个修仙世界,强者可排山倒海,无所不能。\n修炼等级为:武徒-武者-武师-武宗...\n每个人出生会觉醒灵根,等级为:废-黄品-玄品-地品-天品-王品-皇品-帝品-圣品-神品-仙品,以及最高的至尊,黄品至仙品每品又分初阶,中阶,高阶。\n废品灵根不能修炼,只能在商城购买丹药后提升属性...", "J:\游戏(能玩能看)\小游戏.exe", MB_OK );
// MessageBox( NULL, "----------游戏开始----------", "J:\游戏(能玩能看)\小游戏.exe", MB_OK );
//
if ( investigate() == 0 ) {
return 0;
} else {
cout << " 排查完毕!" << endl;
Sleep(2000);
}
// init2();
// init3();
// init1();
// init4();
gong = chushi.gong;
fang = chushi.fang;
shengm = chushi.sheng;
qian = chushi.qian;
sheng = shengm;
Sleep(1000);
while ( b != 0 ) {
if ( sheng < 0 ) {
sheng = 0;
}
if ( ( gong >= 500000 || fang >= 500000 || shengm >= 500000 ) &&
lingtai != 1 ) {
if ( gong >= 500000 ) {
gong = 499999;
}
if ( fang >= 500000 ) {
fang = 499999;
}
if ( shengm >= 500000 ) {
shengm = 499999;
sheng = shengm;
}
}
if ( lingtai == 1 && gong >= 450001 && gong <= 499999 ) {
gong = 500000;
}
if ( lingtai == 1 && fang >= 450001 && fang <= 499999 ) {
fang = 500000;
}
if ( lingtai == 1 && shengm >= 450001 && shengm <= 499999 ) {
shengm = 500000;
sheng = shengm;
}
chushi.sheng = shengm;
chushi.gong = gong;
chushi.fang = fang;
system("cls");
cout << "角色ID:" << name << endl;
cout << "你现在的境界是:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_GREEN);
if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 4000000000000000 ) {
cout << "天帝" << endl;
jingjie = "天帝";
system("cls");
Sleep(2000);
for ( int i = 1; i <= 20; i++ ) {
system( "color 0A" );
Sleep(200);
system( "color 0C" );
Sleep(200);
}
string s = "您已达到世界修为顶峰,飞升太古仙域。";
prints(s);
Sleep(500);
s = "太古仙域篇未开启...";
prints(s);
system("cls");
return 0;
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
2000000000000000 ) {
cout << "准天帝" << endl;
jingjie = "准天帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1500000000000000 ) {
cout << "半步天帝" << endl;
jingjie = "半步天帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1200000000000000 ) {
cout << "大帝巅峰" << endl;
jingjie = "大帝巅峰";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1000000000000000 ) {
cout << "大帝九重天" << endl;
jingjie = "大帝九重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
900000000000000 ) {
cout << "大帝八重天" << endl;
jingjie = "大帝八重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
800000000000000 ) {
cout << "大帝七重天" << endl;
jingjie = "大帝七重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
700000000000000 ) {
cout << "大帝六重天" << endl;
jingjie = "大帝六重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
600000000000000 ) {
cout << "大帝五重天" << endl;
jingjie = "大帝五重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
500000000000000 ) {
cout << "大帝四重天" << endl;
jingjie = "大帝四重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
400000000000000 ) {
cout << "大帝三重天" << endl;
jingjie = "大帝三重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
300000000000000 ) {
cout << "大帝二重天" << endl;
jingjie = "大帝二重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
200000000000000 ) {
cout << "大帝一重天" << endl;
jingjie = "大帝一重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
100000000000000 ) {
cout << "伪帝-凝帝血" << endl;
jingjie = "伪帝-凝帝血";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
70000000000000 ) {
cout << "伪帝-凝帝躯" << endl;
jingjie = "伪帝-凝帝躯";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
40000000000000 ) {
cout << "伪帝-凝帝魂" << endl;
jingjie = "伪帝-凝帝魂";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
20000000000000 ) {
cout << "伪帝圆满" << endl;
jingjie = "伪帝圆满";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
16000000000000 ) {
cout << "伪帝半步圆满" << endl;
jingjie = "伪帝半步圆满";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
14000000000000 ) {
cout << "伪帝 9 重天" << endl;
jingjie = "伪帝 9 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
13000000000000 ) {
cout << "伪帝 8 重天" << endl;
jingjie = "伪帝 8 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
12000000000000 ) {
cout << "伪帝 7 重天" << endl;
jingjie = "伪帝 7 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
11000000000000 ) {
cout << "伪帝 6 重天" << endl;
jingjie = "伪帝 6 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
10000000000000 ) { //
cout << "伪帝 5 重天" << endl;
jingjie = "伪帝 5 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
9000000000000 ) {
cout << "伪帝 4 重天" << endl;
jingjie = "伪帝 4 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
8000000000000 ) {
cout << "伪帝 3 重天" << endl;
jingjie = "伪帝 3 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
7000000000000 ) {
cout << "伪帝 2 重天" << endl;
jingjie = "伪帝 2 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
6000000000000 ) {
cout << "伪帝 1 重天" << endl;
jingjie = "伪帝 1 重天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
5000000000000 ) {
cout << "仙帝大圆满" << endl;
jingjie = "仙帝大圆满";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
4000000000000 ) {
cout << "仙帝巅峰" << endl;
jingjie = "仙帝巅峰";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
3200000000000 ) {
cout << "仙帝末期" << endl;
jingjie = "仙帝末期";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
2700000000000 ) {
cout << "仙帝后期" << endl;
jingjie = "仙帝后期";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
2400000000000 ) {
cout << "仙帝中期" << endl;
jingjie = "仙帝中期";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
2100000000000 ) {
cout << "仙帝初期" << endl;
jingjie = "仙帝初期";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1800000000000 ) {
cout << "半步仙帝" << endl;
jingjie = "半步仙帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1500000000000 ) {
cout << "仙王巅峰" << endl;
jingjie = "仙王巅峰";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1200000000000 ) {
cout << "仙王大圆满" << endl;
jingjie = "仙王大圆满";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >=
1000000000000 ) {
cout << "仙王半步大圆满" << endl;
jingjie = "仙王半步大圆满";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 800000000000 ) {
cout << "仙王末阶" << endl;
jingjie = "仙王末阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 600000000000 ) {
cout << "仙王中阶" << endl;
jingjie = "仙王中阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 500000000000 ) {
cout << "仙王初阶" << endl;
jingjie = "仙王初阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 400000000000 ) {
cout << "半步仙王" << endl;
jingjie = "半步仙王";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 300000000000 ) {
cout << "“神”" << endl;
jingjie = "“神”";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 250000000000 ) {
cout << "化劲巅峰" << endl;
jingjie = "化劲巅峰";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 230000000000 ) {
cout << "9 星化劲" << endl;
jingjie = "9 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 218000000000 ) {
cout << "8 星化劲" << endl;
jingjie = "8 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 200000000000 ) {
cout << "7 星化劲" << endl;
jingjie = "7 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 185000000000 ) {
cout << "6 星化劲" << endl;
jingjie = "6 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 172000000000 ) {
cout << "5 星化劲" << endl;
jingjie = "5 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 160000000000 ) {
cout << "4 星化劲" << endl;
jingjie = "4 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 150000000000 ) {
cout << "3 星化劲" << endl;
jingjie = "3 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 136000000000 ) {
cout << "2 星化劲" << endl;
jingjie = "2 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 120000000000 ) {
cout << "2 星化劲" << endl;
jingjie = "2 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 108000000000 ) {
cout << "1 星化劲" << endl;
jingjie = "1 星化劲";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 100000000000 ) {
cout << "踏碎虚空巅峰" << endl;
jingjie = "踏碎虚空巅峰";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 92000000000 ) {
cout << "踏碎虚空 9 阶" << endl;
jingjie = "踏碎虚空 9 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 88000000000 ) {
cout << "踏碎虚空 8 阶" << endl;
jingjie = "踏碎虚空 8 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 84000000000 ) {
cout << "踏碎虚空 7 阶" << endl;
jingjie = "踏碎虚空 7 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 80000000000 ) {
cout << "踏碎虚空 6 阶" << endl;
jingjie = "踏碎虚空 6 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 76000000000 ) {
cout << "踏碎虚空 5 阶" << endl;
jingjie = "踏碎虚空 5 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 72000000000 ) {
cout << "踏碎虚空 4 阶" << endl;
jingjie = "踏碎虚空 4 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 68000000000 ) {
cout << "踏碎虚空 3 阶" << endl;
jingjie = "踏碎虚空 3 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 64000000000 ) {
cout << "踏碎虚空 2 阶" << endl;
jingjie = "踏碎虚空 2 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 60000000000 ) {
cout << "踏碎虚空 1 阶" << endl;
jingjie = "踏碎虚空 1 阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 50000000000 ) {
cout << "炼体" << endl;
jingjie = "炼体";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 40000000000 ) {
cout << "炼神" << endl;
jingjie = "炼神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 32000000000 ) {
cout << "“圣”" << endl;
jingjie = "“圣”";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 25000000000 ) {
cout << "圣人巅峰-脱凡" << endl;
jingjie = "圣人巅峰-脱凡";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 20000000000 ) {
cout << "圣人巅峰-入世" << endl;
jingjie = "圣人巅峰-入世";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 15000000000 ) {
cout << "圣人巅峰-封道" << endl;
jingjie = "圣人巅峰-封道";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 13000000000 ) {
cout << "圣人高阶" << endl;
jingjie = "圣人高阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 12000000000 ) {
cout << "圣人中阶" << endl;
jingjie = "圣人中阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 11000000000 ) {
cout << "圣人初阶" << endl;
jingjie = "圣人初阶";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 10000000000 ) {
cout << "三花聚顶-金仙" << endl;
jingjie = "三花聚顶-金仙";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 8500000000 ) {
cout << "三花聚顶-三花化道" << endl;
jingjie = "三花聚顶-三花化道";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 7500000000 ) {
cout << "三花聚顶-三花融道" << endl;
jingjie = "三花聚顶-三花融道";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 6500000000 ) {
cout << "三花聚顶-三花入微" << endl;
jingjie = "三花聚顶-三花入微";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 5500000000 ) {
cout << "三花聚顶-三花凝神" << endl;
jingjie = "三花聚顶-三花凝神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 4500000000 ) {
cout << "三花聚顶-三花九洞天" << endl;
jingjie = "三花聚顶-三花九洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 4000000000 ) {
cout << "三花聚顶-二花八洞天" << endl;
jingjie = "三花聚顶-二花八洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 3500000000 ) {
cout << "三花聚顶-二花七洞天" << endl;
jingjie = "三花聚顶-二花七洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 3000000000 ) {
cout << "三花聚顶-二花六洞天" << endl;
jingjie = "三花聚顶-二花六洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2600000000 ) {
cout << "三花聚顶-二花五洞天" << endl;
jingjie = "三花聚顶-二花五洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2400000000 ) {
cout << "三花聚顶-一花四洞天" << endl;
jingjie = "三花聚顶-一花四洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2200000000 ) {
cout << "三花聚顶-一花三洞天" << endl;
jingjie = "三花聚顶-一花三洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2000000000 ) {
cout << "三花聚顶-一花两洞天" << endl;
jingjie = "三花聚顶-一花两洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1800000000 ) {
cout << "三花聚顶-一花一洞天" << endl;
jingjie = "三花聚顶-一花一洞天";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1650000000 ) {
cout << "巅峰上位天神" << endl;
jingjie = "巅峰上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1600000000 ) {
cout << "九阶上位天神" << endl;
jingjie = "九阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1550000000 ) {
cout << "八阶上位天神" << endl;
jingjie = "八阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1500000000 ) {
cout << "七阶上位天神" << endl;
jingjie = "七阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1450000000 ) {
cout << "六阶上位天神" << endl;
jingjie = "六阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1400000000 ) {
cout << "五阶上位天神" << endl;
jingjie = "五阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1350000000 ) {
cout << "四阶上位天神" << endl;
jingjie = "四阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1300000000 ) {
cout << "三阶上位天神" << endl;
jingjie = "三阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1250000000 ) {
cout << "二阶上位天神" << endl;
jingjie = "二阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1200000000 ) {
cout << "一阶上位天神" << endl;
jingjie = "一阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1650000000 ) {
cout << "巅峰上位天神" << endl;
jingjie = "巅峰上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1600000000 ) {
cout << "九阶上位天神" << endl;
jingjie = "九阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1550000000 ) {
cout << "八阶上位天神" << endl;
jingjie = "八阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1500000000 ) {
cout << "七阶上位天神" << endl;
jingjie = "七阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1450000000 ) {
cout << "六阶上位天神" << endl;
jingjie = "六阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1400000000 ) {
cout << "五阶上位天神" << endl;
jingjie = "五阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1350000000 ) {
cout << "四阶上位天神" << endl;
jingjie = "四阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1300000000 ) {
cout << "三阶上位天神" << endl;
jingjie = "三阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1250000000 ) {
cout << "二阶上位天神" << endl;
jingjie = "二阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1200000000 ) {
cout << "一阶上位天神" << endl;
jingjie = "一阶上位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1080000000 ) {
cout << "巅峰中位天神" << endl;
jingjie = "巅峰中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1040000000 ) {
cout << "九阶中位天神" << endl;
jingjie = "九阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1000000000 ) {
cout << "八阶中位天神" << endl;
jingjie = "八阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 960000000 ) {
cout << "七阶中位天神" << endl;
jingjie = "七阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 920000000 ) {
cout << "六阶中位天神" << endl;
jingjie = "六阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 880000000 ) {
cout << "五阶中位天神" << endl;
jingjie = "五阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 840000000 ) {
cout << "四阶中位天神" << endl;
jingjie = "四阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 800000000 ) {
cout << "三阶中位天神" << endl;
jingjie = "三阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 760000000 ) {
cout << "二阶中位天神" << endl;
jingjie = "二阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 720000000 ) {
cout << "一阶中位天神" << endl;
jingjie = "一阶中位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 670000000 ) {
cout << "巅峰下位天神" << endl;
jingjie = "巅峰下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 640000000 ) {
cout << "九阶下位天神" << endl;
jingjie = "九阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 610000000 ) {
cout << "八阶下位天神" << endl;
jingjie = "八阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 580000000 ) {
cout << "七阶下位天神" << endl;
jingjie = "七阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 550000000 ) {
cout << "六阶下位天神" << endl;
jingjie = "六阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 400000000 ) {
cout << "五阶下位天神" << endl;
jingjie = "五阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 490000000 ) {
cout << "四阶下位天神" << endl;
jingjie = "四阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 460000000 ) {
cout << "三阶下位天神" << endl;
jingjie = "三阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 430000000 ) {
cout << "二阶下位天神" << endl;
jingjie = "二阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 400000000 ) {
cout << "一阶下位天神" << endl;
jingjie = "一阶下位天神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 360000000 ) {
cout << "巅峰神帝" << endl;
jingjie = "巅峰神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 330000000 ) {
cout << "九星神帝" << endl;
jingjie = "九星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 310000000 ) {
cout << "八星神帝" << endl;
jingjie = "八星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 290000000 ) {
cout << "七星神帝" << endl;
jingjie = "七星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 270000000 ) {
cout << "六星神帝" << endl;
jingjie = "六星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 230000000 ) {
cout << "五星神帝" << endl;
jingjie = "五星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 210000000 ) {
cout << "四星神帝" << endl;
jingjie = "四星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 190000000 ) {
cout << "三星神帝" << endl;
jingjie = "三星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 170000000 ) {
cout << "二星神帝" << endl;
jingjie = "二星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 150000000 ) {
cout << "一星神帝" << endl;
jingjie = "一星神帝";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 125000000 ) {
cout << "巅峰神皇" << endl;
jingjie = "巅峰神皇";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 110000000 ) {
cout << "高阶神皇" << endl;
jingjie = "高阶神皇";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 95000000 ) {
cout << "中阶神皇" << endl;
jingjie = "中阶神皇";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 80000000 ) {
cout << "低阶神皇" << endl;
jingjie = "低阶神皇";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 56000000 ) {
cout << "巅峰神王" << endl;
jingjie = "巅峰神王";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 44000000 ) {
cout << "高阶神王" << endl;
jingjie = "高阶神王";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 32000000 ) {
cout << "中阶神王" << endl;
jingjie = "中阶神王";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 20000000 ) {
cout << "低阶神王" << endl;
jingjie = "低阶神王";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 16000000 ) {
cout << "高阶神尊" << endl;
jingjie = "高阶神尊";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 12000000 ) {
cout << "中阶神尊" << endl;
jingjie = "中阶神尊";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 8000000 ) {
cout << "低阶神尊" << endl;
jingjie = "低阶神尊";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 5400000 ) {
cout << "高阶灵神" << endl;
jingjie = "高阶阶灵神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 4200000 ) {
cout << "中阶灵神" << endl;
jingjie = "中阶灵神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 3000000 ) {
cout << "低阶灵神" << endl;
jingjie = "低阶灵神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2200000 ) {
cout << "高阶半神" << endl;
jingjie = "高阶半神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1600000 ) {
cout << "中阶半神" << endl;
jingjie = "中阶半神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1000000 ) {
cout << "低阶半神" << endl;
jingjie = "低阶半神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 800000 ) {
cout << "高阶巅峰战神" << endl;
jingjie = "高阶巅峰战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 650000 ) {
cout << "中阶巅峰战神" << endl;
jingjie = "中阶巅峰战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 500000 ) {
cout << "低阶巅峰战神" << endl;
jingjie = "低阶巅峰战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 360000 ) {
cout << "高阶战神" << endl;
jingjie = "高阶战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 230000 ) {
cout << "中阶战神" << endl;
jingjie = "中阶战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 100000 ) {
cout << "低阶战神" << endl;
jingjie = "低阶战神";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 80000 ) {
cout << "高阶洞府王候" << endl;
jingjie = "高阶洞府王候";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 65000 ) {
cout << "中阶洞府王候" << endl;
jingjie = "中阶洞府王候";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 50000 ) {
cout << "低阶洞府王候" << endl;
jingjie = "低阶洞府王候";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 36000 ) {
cout << "高阶四方镇将" << endl;
jingjie = "高阶四方镇将";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 23000 ) {
cout << "中阶四方镇将" << endl;
jingjie = "中阶四方镇将";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 10000 ) {
cout << "低阶四方镇将" << endl;
jingjie = "低阶四方镇将";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 8000 ) {
cout << "高阶武宗" << endl;
jingjie = "高阶武宗";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 6500 ) {
cout << "中阶武宗" << endl;
jingjie = "中阶武宗";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 5000 ) {
cout << "低阶武宗" << endl;
jingjie = "低阶武宗";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 4000 ) {
cout << "高阶武师" << endl;
jingjie = "高阶武师";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 3000 ) {
cout << "中阶武师" << endl;
jingjie = "中阶武师";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 2000 ) {
cout << "低阶武师" << endl;
jingjie = "低阶武师";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1600 ) {
cout << "高阶武者" << endl;
jingjie = "高阶武者";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 1200 ) {
cout << "中阶武者" << endl;
jingjie = "中阶武者";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 800 ) {
cout << "低阶武者" << endl;
jingjie = "低阶武者";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 600 ) {
cout << "高阶武徒" << endl;
jingjie = "高阶武徒";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 400 ) {
cout << "中阶武徒" << endl;
jingjie = "中阶武徒";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 200 ) {
cout << "低阶武徒" << endl;
jingjie = "低阶武徒";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 50 ) {
cout << "普通人" << endl;
jingjie = "普通人";
} else if ( ( chushi.sheng + chushi.gong + chushi.fang ) / 3 >= 25 ) {
cout << "废人" << endl;
jingjie = "废人";
} else {
cout << "废材" << endl;
jingjie = "废材";
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( gong == 499999 || fang == 499999 || sheng == 499999 && lingtai == false ) {
cout << "提示:突破巅峰战神需购买武器—灵台!" << endl;
}
cout << "你现在要做什么?" << endl;
cout << "1.勇士商店" << endl;
cout << "2.打怪降妖" << endl;
cout << "3.打工" << endl;
cout << "4.角色资料" << endl;
cout << "5.自废武功" << endl;
cout << "6.撒钱" << endl;
cout << "7.金币涅槃" << endl;
cout << "8.买彩票" << endl;
cout << "9.冥想入定" << endl;
cout << "10.小提示" << endl;
cout << "【0】自杀" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( sheng == 0 ) {
sheng = 1;
}
if ( b == 1 ) {
while ( b != 333 ) {
cout << "请";
cout << "稍";
cout << "等";
Sleep(500);
cout << ".";
Sleep(500);
cout << ".";
Sleep(500);
cout << ".";
Sleep(500);
cout << endl;
system("cls");
cout << endl << "欢迎来到勇士商店" << endl;
cout << endl << "1.装备" << endl;
cout << "2.药品" << endl;
cout << "输入333退出" << endl;
cout << "请选择:";
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
while ( b != 9999 ) {
Sleep(2000);
system("cls");
cout << endl << "1.武器" << endl;
cout << "2.盾牌" << endl;
cout << "3.盔甲/机甲" << endl;
cout << "输入9999退出" << endl;
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
while ( b != 666 ) {
Sleep(2000);
system("cls");
cout << qian << endl;
cout << "1.狼牙棒(攻击+10) 价值:20" << endl;
cout << "2.钻石剑(攻击+45) 价值:60" << endl;
cout << "3.烈焰啸天锤(攻击+60) 价值:100" << endl;
cout << "4.阴阳阵(攻击+100) 价值:120" << endl;
cout << "5.混沌剑(攻击+150) 价值:180" << endl;
cout << "6.七宝玻璃塔(一环) 【全属性+10%】价值:1300000" <<
endl;
cout << "7.七宝玻璃塔(二环) 【全属性+20%】价值:1500000" <<
endl;
cout << "8.七宝玻璃塔(三环) 【全属性+30%】价值:1800000" <<
endl;
cout << "9.七宝玻璃塔(五环) 【全属性+50%】价值:1999000" <<
endl;
cout << "10.七宝玻璃塔(七环) 【全属性+70%】价值:9929900" <<
endl;
cout << "11.九宝玻璃塔(九环) 【全属性+90%】价值:19899000" <<
endl;
cout << "12.九宝玻璃塔(99级) 【全属性+150%】价值:39199000" <<
endl;
cout << "13.九宝玻璃塔(神级) 【全属性+300%】价值:99199000"
<< endl;
cout << "14.末世虚空剑(攻击+9090) 价值:10800" << endl;
cout << "15. 灵台(突破巅峰战神)价值:50000000" << endl;
cout << "可同时装配无数个装备" << endl;
cout << "输入666退出" << endl;
cout << "请选择:";
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 && qian >= 20 ) {
gong = gong + 10;
qian = qian - 20;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 2 && qian >= 60 ) {
gong = gong + 45;
qian = qian - 60;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 3 && qian >= 100 ) {
gong = gong + 60;
qian = qian - 100;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 4 && qian >= 120 ) {
gong = gong + 100;
qian = qian - 120;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 5 && qian >= 180 ) {
gong = gong + 150;
qian = qian - 180;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 6 && qian >= 1300000 ) {
gong = gong * 1.1 + 0.9;
fang = fang * 1.1 + 0.9;
qian = qian - 1300000;
shengm = shengm * 1.1 + 0.9;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 7 && qian >= 1500000 ) {
gong = gong * 1.2 + 0.8;
fang = fang * 1.2 + 0.8;
qian = qian - 1500000;
shengm = shengm * 1.2 + 0.8;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 8 && qian >= 1800000 ) {
gong = gong * 1.3 + 0.79;
fang = fang * 1.3 + 0.79;
qian = qian - 1800000;
shengm = shengm * 1.3 + 0.79;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 9 && qian >= 1999000 ) {
gong = gong * 1.5 + 0.79;
fang = fang * 1.5 + 0.79;
qian = qian - 1999000;
shengm = shengm * 1.5 + 0.79;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 10 && qian >= 9929900 ) {
gong = gong * 1.7 + 0.79;
fang = fang * 1.7 + 0.79;
qian = qian - 9929900;
shengm = shengm * 1.7 + 0.79;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 11 && qian >= 19899000 ) {
gong = gong * 1.9 + 0.2;
fang = fang * 1.9 + 0.2;
qian = qian - 19899000;
shengm = shengm * 1.9 + 0.2;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 12 && qian >= 39199000 ) {
gong = gong * 2.5 + 0.8;
fang = fang * 2.5 + 0.8;
qian = qian - 39199000;
shengm = shengm * 2.5 + 0.8;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 13 && qian >= 199199000 ) {
gong = gong * 4 + 0.8;
fang = fang * 4 + 0.8;
qian = qian - 199199000;
shengm = shengm * 4 + 0.8;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 14 && qian >= 10800 ) {
gong = gong + 9090;
qian = qian - 10800;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 15 && qian >= 50000000 ) {
qian = qian - 50000000;
lingtai = true;
cout << "灵台已进账!" << endl;
}
cout << endl;
cout << endl;
}
}
if ( b == 2 ) {
while ( b != 666 ) {
Sleep(2000);
system("cls");
cout << qian << endl;
cout << "1.木盾(防御+20) 价值:40" << endl;
cout << "2.钻石盾(防御+45) 价值:75" << endl;
cout << "3.骷髅血盾(防御+60) 价值:100" << endl;
cout << "4.基岩盾(防御+100) 价值:150" << endl;
cout << "5.天空屏障(防御+120) 价值:210" << endl;
cout << "6.边界(防御+180) 价值:300" << endl;
cout << "7.九宝玻璃盾(防御+5000) 价值:9000" << endl;
cout << "8.冥盾(防御+40000) 价值:100000" << endl;
cout << "9.鬼盾(防御+600000) 价值:1000000" << endl;
cout << "10.玄黄盾(防御+8800000) 价值:20000000" << endl;
cout << "可同时装配无数个装备" << endl;
cout << "输入666退出" << endl;
cout << "请选择:";
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 && qian >= 40 ) {
fang = fang + 20;
qian = qian - 40;
cout << "自身防御力:" << fang << endl;
} else if ( b == 2 && qian >= 75 ) {
fang = fang + 45;
qian = qian - 75;
cout << "自身防御力:" << fang << endl;
} else if ( b == 3 && qian >= 100 ) {
fang = fang + 60;
qian = qian - 100;
cout << "自身防御力:" << fang << endl;
} else if ( b == 4 && qian >= 150 ) {
fang = fang + 100;
qian = qian - 150;
cout << "自身防御力:" << fang << endl;
} else if ( b == 5 && qian >= 210 ) {
fang = fang + 120;
qian = qian - 210;
cout << "自身防御力:" << fang << endl;
} else if ( b == 6 && qian >= 300 ) {
fang = fang + 180;
qian = qian - 300;
cout << "自身防御力:" << fang << endl;
} else if ( b == 7 && qian >= 9000 ) {
fang = fang + 5000;
qian = qian - 9000;
cout << "自身防御力:" << fang << endl;
} else if ( b == 8 && qian >= 100000 ) {
fang = fang + 40000;
qian = qian - 100000;
cout << "自身防御力:" << fang << endl;
} else if ( b == 9 && qian >= 1000000 ) {
fang = fang + 600000;
qian = qian - 1000000;
cout << "自身防御力:" << fang << endl;
} else if ( b == 10 && qian >= 20000000 ) {
fang = fang + 8800000;
qian = qian - 20000000;
cout << "自身防御力:" << fang << endl;
}
cout << endl;
}
}
if ( b == 3 ) {
while ( b != 666 ) {
Sleep(2000);
system("cls");
cout << qian << endl;
cout << "1.烈焰盔(生命+20,攻击+20) 价值:60" << endl;
cout << "2.钻石甲(生命+20,防御+50) 价值:100" << endl;
cout << "3.死亡之甲(生命+50,攻击+40) 价值:150" << endl;
cout << "4.合金机甲(生命+60,防御+60,攻击+60) 价值:200" <<
endl;
cout << "5.流浪者(生命+80,防御+80,攻击+100) 价值:400" <<
endl;
cout << "6.钢铁侠(生命+120,防御+120,攻击+180) 价值:750" <<
endl;
cout << "7.虚空战甲(生命+200,防御+350,攻击+320) 价值:2000"
<< endl;
cout << "8.末日战甲(生命+300,防御+500,攻击+450) 价值:3499"
<< endl;
cout << "9.玄武战甲(生命+5000,防御+10000,攻击+3000) 价值:19999"
<< endl;
cout << "10.魔王之甲(生命+99999,防御+99999,攻击+99999) 价值:1999999"
<< endl;
cout << "11.生命之神形態魔王之甲(生命+1000000) 价值:10999999"
<< endl;
cout << "12.殺神形態魔王之甲(攻击+1000000) 价值:10999999" <<
endl;
cout << "13.終极形態魔王之甲(生命+999999,防御+999999,攻击+999999) 价值:35999999"
<< endl;
cout << "可同时装配无数个装备" << endl;
cout << "输入666退出" << endl;
cout << "请选择:";
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 && qian >= 60 ) {
shengm = shengm + 20;
sheng = shengm;
gong = gong + 20;
qian = qian - 60;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 2 && qian >= 100 ) {
shengm = shengm + 20;
sheng = shengm;
fang = fang + 50;
qian = qian - 100;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
} else if ( b == 3 && qian >= 150 ) {
shengm = shengm + 50;
sheng = shengm;
gong = gong + 40 ;
qian = qian - 150;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 5 && qian >= 400 ) {
shengm = shengm + 80;
sheng = shengm;
gong = gong + 100;
fang = fang + 80;
qian = qian - 400;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 4 && qian >= 200 ) {
gong = gong + 60;
fang = fang + 60;
qian = qian - 200;
shengm = shengm + 60;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 6 && qian >= 750 ) {
gong = gong + 180;
fang = fang + 120;
qian = qian - 750;
shengm = shengm + 120;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 7 && qian >= 2000 ) {
gong = gong + 320;
fang = fang + 350;
qian = qian - 2000;
shengm = shengm + 200;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 8 && qian >= 3499 ) {
gong = gong + 450;
fang = fang + 500;
qian = qian - 3499;
shengm = shengm + 300;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 9 && qian >= 19999 ) {
gong = gong + 3000;
fang = fang + 10000;
qian = qian - 19999;
shengm = shengm + 5000;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 10 && qian >= 1999999 ) {
gong = gong + 99999;
fang = fang + 99999;
qian = qian - 1999999;
shengm = shengm + 99999;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 11 && qian >= 10999999 ) {
qian = qian - 10999999;
shengm = shengm + 1000000;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
} else if ( b == 12 && qian >= 10999999 ) {
qian = qian - 10999999;
gong = gong + 1000000;
sheng = shengm;
cout << "自身攻击力:" << gong << endl;
} else if ( b == 13 && qian >= 35999999 ) {
gong = gong + 999999;
fang = fang + 999999;
qian = qian - 35999999;
shengm = shengm + 999999;
sheng = shengm;
cout << "自身生命值上限:" << shengm << endl;
cout << "自身防御力:" << fang << endl;
cout << "自身攻击力:" << gong << endl;
}
cout << endl;
}
cout << endl;
}
cout << endl;
}
cout << endl;
}
else if ( b == 2 ) {
while ( b != 888 ) {
Sleep(2000);
system("cls");
cout << "你目前的金币为:" << qian << endl;
cout << "1.天使祝福(快速回复)花费:25" << endl;
cout << "2.恢复丹丸*5 花费:100" << endl;
cout << "3.恢复丹丸*15 花费:280" << endl;
cout << "4.下品生命丸*1(血量+40) 花费:30" << endl;
cout << "5.上品生命丸*1(血量+80) 花费:60" << endl;
cout << "6.极品生命丸*1(血量+150) 花费:100" << endl;
cout << "7.下品攻击丸*1(攻击+20) 花费:25" << endl;
cout << "8.上品攻击丸*1(攻击+40) 花费:50" << endl;
cout << "9.极品攻击丸*1(攻击+75) 花费:80" << endl;
cout << "10.下品防御丸*1(防御+20) 花费:25" << endl;
cout << "11.上品防御丸*1(防御+40) 花费:50" << endl;
cout << "12.极品防御丸*1(防御+75) 花费:80" << endl;
cout << "13.普通油饼(全属性随机增加) 花费:100" << endl;
cout << "输入888退出" << endl;
cout << "请选择:";
cout << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 && qian >= 25 ) {
sheng = shengm;
qian = qian - 25;
cout << "" << sheng << endl;
}
if ( b == 2 && qian >= 100 ) {
yao = yao + 5;
qian = qian - 100;
cout << "丹药数量:" << yao << endl;
}
if ( b == 3 && qian >= 280 ) {
yao = yao + 15;
qian = qian - 280;
cout << "丹药数量:" << yao << endl;
}
if ( b == 4 && qian >= 30 ) {
shengm = shengm + 40;
sheng = shengm;
qian = qian - 30;
cout << "生命值上限为:" << shengm << endl;
}
if ( b == 5 && qian >= 60 ) {
shengm = shengm + 80;
sheng = shengm;
qian = qian - 60;
cout << "生命值上限为:" << shengm << endl;
}
if ( b == 6 && qian >= 100 ) {
shengm = shengm + 150;
sheng = shengm;
qian = qian - 100;
cout << "生命值上限为:" << shengm << endl;
}
if ( b == 7 && qian >= 25 ) {
gong = gong + 20;
qian = qian - 25;
cout << "攻击力为:" << gong << endl;
}
if ( b == 8 && qian >= 50 ) {
gong = gong + 40;
qian = qian - 50;
cout << "攻击力为:" << gong << endl;
}
if ( b == 9 && qian >= 80 ) {
gong = gong + 75;
qian = qian - 80;
cout << "攻击力为:" << gong << endl;
}
if ( b == 10 && qian >= 25 ) {
fang = fang + 20;
qian = qian - 25;
cout << "防御力为:" << fang << endl;
}
if ( b == 11 && qian >= 50 ) {
fang = fang + 40;
qian = qian - 50;
cout << "防御力为:" << fang << endl;
}
if ( b == 12 && qian >= 80 ) {
fang = fang + 75;
qian = qian - 80;
cout << "防御力为:" << fang << endl;
}
if ( b == 13 && qian >= 100 ) {
srand((int)time(0));
int t = rand() % 5;
if ( t <= 2 ) {
srand((int)time(0));
int a1 = rand() % 10;
Sleep(200);
srand((int)time(0));
int a2 = rand() % 10;
Sleep(200);
srand((int)time(0));
int a3 = rand() % 20;
gong = gong + a1;
fang = fang + a2;
shengm = shengm + a3;
sheng = shengm;
cout << "攻击增加了 " << a1 << " 点" << endl;
cout << "防御增加了 " << a2 << " 点" << endl;
cout << "生命增加了 " << a3 << " 点" << endl;
} else {
srand((int)time(0));
int a1 = rand() % 100 + 10;
Sleep(200);
srand((int)time(0));
int a2 = rand() % 100 + 10;
Sleep(200);
srand((int)time(0));
int a3 = rand() % 200 + 20;
gong = gong + a1;
fang = fang + a2;
shengm = shengm + a3;
sheng = shengm;
cout << "攻击增加了 " << a1 << " 点" << endl;
cout << "防御增加了 " << a2 << " 点" << endl;
cout << "生命增加了 " << a3 << " 点" << endl;
}
}
cout << endl;
}
cout << endl;
}
cout << endl;
}
cout << endl << endl;
} else if ( b == 2 ) {
system("cls");
cout << "赶往妖怪";
cout << "森林";
cout << "中";
Sleep(500);
cout << ".";
Sleep(500);
cout << ".";
Sleep(500);
cout << ".";
Sleep(500);
cout << endl;
while ( b != 222 ) {
Sleep(1000);
system("cls");
cout << endl << endl << "普通位面:" << endl;
cout << " 1.杂役小怪" << endl;
if ( gong >= 100 ) {
cout << " 2.妖将" << endl;
}
if ( gong >= 500 ) {
cout << " 3.妖王" << endl;
}
if ( gong >= 1000 ) {
cout << " 4.妖皇" << endl;
}
if ( gong >= 3000 ) {
cout << "高级位面:" << endl;
cout << " 5.妖尊" << endl;
}
if ( gong >= 6000 ) {
cout << " 6.妖帝" << endl;
}
if ( gong >= 10000 ) {
cout << "灵界外围:" << endl;
cout << " 7.不朽" << endl;
}
if ( gong >= 20000 ) {
cout << " 8.涅槃" << endl;
}
if ( gong >= 50000 ) {
cout << "灵界中部:" << endl;
cout << " 9.悟道" << endl;
}
if ( gong >= 90000 ) {
cout << " 10.法则" << endl;
}
if ( gong >= 150000 ) {
cout << "神界:" << endl;
cout << " 11.成圣" << endl;
}
if ( gong >= 300000 ) {
cout << " 12.封神" << endl;
}
if ( gong >= 500000 ) {
cout << " 13.化仙" << endl;
}
if ( gong >= 1000000 ) {
cout << "仙界:" << endl;
cout << " 14.伪仙" << endl;
}
if ( gong >= 5000000 ) {
cout << " 15.地仙" << endl;
}
if ( gong >= 50000000 ) {
cout << " 16.天仙" << endl;
}
if ( gong >= 100000000 ) {
cout << " 17.金仙" << endl;
}
if ( gong >= 200000000 ) {
cout << " 18.太乙" << endl;
}
if ( gong >= 500000000 ) {
cout << " 19.真仙" << endl;
}
// if( gong >= 1000000000 )
// {
// cout << "传说:" << endl;
// cout << " 20.后土" << endl;
// }
// if( gong >= 5000000000 )
// {
// cout << " 21.天地" << endl;
// }
// if( gong >= 10000000000 )
// {
// cout << " 22.辉月" << endl;
// }
// if( gong >= 50000000000 )
// {
// cout << " 23.曜日" << endl;
// }
// if( gong >= 100000000000 )
// {
// cout << " 24.星辰" << endl;
// }
// if( gong >= 500000000000 )
// {
// cout << " 25.虚空" << endl;
// }
// if( gong >= 1000000000000 )
// {
// cout << "界外" << endl;
// cout << " 26.混沌" << endl;
// }
// if( gong >= 2000000000000 )
// {
// cout << " 27.至高" << endl;
// }
// if( gong >= 5000000000000 )
// {
// cout << " 28.创世" << endl;
// }
// if( gong >= 10000000000000 )
// {
// cout << " 29.玄黄" << endl;
// }
// if( gong >= 60000000000000 )
// {
// cout << " 30.反虚归真" << endl;
// }
// if( gong >= 100000000000000 )
// {
// cout << "妖域" << endl;
// cout << " 31.下位妖祖" << endl;
// }
// if( gong >= 200000000000000 )
// {
// cout << " 32.中位妖祖" << endl;
// }
// if( gong >= 500000000000000 )
// {
// cout << " 33.上位妖祖" << endl;
// }
// if( gong >= 1000000000000000 )
// {
// cout << " 33.妖圣" << endl;
// }
// if( gong >= 2000000000000000 )
// {
// cout << " 33.准妖神" << endl;
// }
cout << "222退出" << endl << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
guaisheng = 180;
guaigong = 50;
guaifang = 0;
cout << "你遇到了杂役小怪幽冥狼" << endl;
cout << "对方血量 180 点,攻击 50 点,防御 0 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了妖将金身蛤蟆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了杂役小怪幽冥狼。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了杂役小怪幽冥狼。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了杂役小怪幽冥狼。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
} else if ( b == 2 ) {
guaisheng = 500;
guaigong = 50;
guaifang = 199;
cout << "你遇到了妖将中阶金身蛤蟆" << endl;
cout << "对方血量 500 点,攻击 50 点,防御 199 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了妖将金身蛤蟆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了妖将金身蛤蟆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了妖将金身蛤蟆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 60 + 31;
qian = qian + dalie;
cout << "你成功降服了妖将金身蛤蟆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
}
} else if ( b == 3 ) {
guaisheng = 1200;
guaigong = 600;
guaifang = 540;
cout << "你遇到了妖王巅峰赤瞳狮王" << endl;
cout << "对方血量 1200 点,攻击 600 点,防御 540 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100 + 61;
qian = qian + dalie;
cout << "你成功降服了妖王赤瞳狮王。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100 + 61;
qian = qian + dalie;
cout << "你成功降服了妖王赤瞳狮王。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100 + 61;
qian = qian + dalie;
cout << "你成功降服了妖王赤瞳狮王。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100 + 61;
qian = qian + dalie;
cout << "你成功降服了妖王赤瞳狮王。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
}
} else if ( b == 4 ) {
guaisheng = 5000;
guaigong = 1860;
guaifang = 1260;
cout << "你遇到了妖皇二重天暗金恐爪熊" << endl;
cout << "对方血量 5000 点,攻击 1860 点,防御 1260 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 150 + 101;
qian = qian + dalie;
cout << "你成功降服了妖皇暗金恐爪熊。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 150 + 101;
qian = qian + dalie;
cout << "你成功降服了妖皇暗金恐爪熊。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 150 + 101;
qian = qian + dalie;
cout << "你成功降服了妖皇暗金恐爪熊。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 150 + 101;
qian = qian + dalie;
cout << "你成功降服了妖皇暗金恐爪熊。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
}
} else if ( b == 5 ) {
guaisheng = 8000;
guaigong = 5000;
guaifang = 3600;
cout << "你遇到了妖尊六重天冰火雷灵" << endl;
cout << "对方血量 8000 点,攻击 5000 点,防御 3600 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 200 + 151;
qian = qian + dalie;
cout << "你成功降服了妖尊冰火雷灵。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 200 + 151;
qian = qian + dalie;
cout << "你成功降服了妖尊冰火雷灵。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 200 + 151;
qian = qian + dalie;
cout << "你成功降服了妖尊冰火雷灵。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 200 + 151;
qian = qian + dalie;
cout << "你成功降服了妖尊冰火雷灵。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
}
} else if ( b == 6 ) {
guaisheng = 20000;
guaigong = 9999;
guaifang = 9999;
cout << "你遇到了妖帝九重天双头腾蛇" << endl;
cout << "对方血量 20000 点,攻击 9999 点,防御 9999 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 250 + 201;
qian = qian + dalie;
cout << "你成功降服了妖帝双头腾蛇。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 250 + 201;
qian = qian + dalie;
cout << "你成功降服了妖帝双头腾蛇。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 250 + 201;
qian = qian + dalie;
cout << "你成功降服了妖帝双头腾蛇。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 250 + 201;
qian = qian + dalie;
cout << "你成功降服了妖帝双头腾蛇。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
} else if ( b == 7 ) {
guaisheng = 20000;
guaigong = 12000;
guaifang = 12000;
cout << "你遇到了不朽境二重天阴阳史莱姆" << endl;
cout << "对方血量 20000 点,攻击 12000 点,防御 12000 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了不朽境阴阳史莱姆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了不朽境阴阳史莱姆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了不朽境阴阳史莱姆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了不朽境阴阳史莱姆。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
} else if ( b == 8 ) {
guaisheng = 100000;
guaigong = 50000;
guaifang = 30000;
cout << "你遇到了涅槃境九重烈焰火凤凰" << endl;
cout << "对方血量 100000 点,攻击 50000 点,防御 30000 点" << endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了涅槃境九重烈焰火凤凰。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了涅槃境九重烈焰火凤凰。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 300 + 251;
qian = qian + dalie;
cout << "你成功降服了涅槃境九重烈焰火凤凰。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand((int)time (0));
dalie = rand() % 400 + 301;
qian = qian + dalie;
cout << "你成功降服了涅槃境九重烈焰火凤凰。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 9 ) {
guaisheng = 200000;
guaigong = 80000;
guaifang = 120000;
cout << "你遇到了悟道境七重玄水王八(玄水大道)" << endl;
cout << "对方血量 200000 点,攻击 80000 点,防御 120000 点" <<
endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 600 + 401;
qian = qian + dalie;
cout << "你成功降服了悟道境七重玄水王八。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 600 + 401;
qian = qian + dalie;
cout << "你成功降服了悟道境七重玄水王八。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 600 + 401;
qian = qian + dalie;
cout << "你成功降服了悟道境七重玄水王八。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 600 + 401;
qian = qian + dalie;
cout << "你成功降服了悟道境七重玄水王八。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 10 ) {
guaisheng = 500000;
guaigong = 160000;
guaifang = 100000;
cout << "你遇到了法则境四重鬼火冥鳄王(幽冥法则)" << endl;
cout << "对方血量 500000 点,攻击 140000(+20000灼烧)点,防御 100000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 800 + 601;
qian = qian + dalie;
cout << "你成功降服了法则境四重鬼火冥鳄王 。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 800 + 601;
qian = qian + dalie;
cout << "你成功降服了法则境四重鬼火冥鳄王 。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 800 + 601;
qian = qian + dalie;
cout << "你成功降服了法则境四重鬼火冥鳄王 。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 800 + 601;
qian = qian + dalie;
cout << "你成功降服了法则境四重鬼火冥鳄王 。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 11 ) {
guaisheng = 840000;
guaigong = 300000;
guaifang = 188000;
cout << "你遇到了成圣境暗魔基多拉" << endl;
cout << "对方血量 840000 点,攻击 300000 点,防御 188000 点" <<
endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1200 + 801;
qian = qian + dalie;
cout << "你成功降服了成圣境暗魔基多拉。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1200 + 801;
qian = qian + dalie;
cout << "你成功降服了成圣境暗魔基多拉。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1200 + 801;
qian = qian + dalie;
cout << "你成功降服了成圣境暗魔基多拉。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1200 + 801;
qian = qian + dalie;
cout << "你成功降服了成圣境暗魔基多拉。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 12 ) {
guaisheng = 1000000;
guaigong = 400000;
guaifang = 400000;
cout << "你遇到了封神境碧鳞寒霜龙" << endl;
cout << "对方血量 1000000 点,攻击 400000 点,防御 400000 点" <<
endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1500 + 1201;
qian = qian + dalie;
cout << "你成功降服了封神境碧鳞寒霜龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1500 + 1201;
qian = qian + dalie;
cout << "你成功降服了封神境碧鳞寒霜龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1500 + 1201;
qian = qian + dalie;
cout << "你成功降服了封神境碧鳞寒霜龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 1500 + 1201;
qian = qian + dalie;
cout << "你成功降服了封神境碧鳞寒霜龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 13 ) {
guaisheng = 1260000;
guaigong = 688800;
guaifang = 699999;
cout << "你遇到了化仙境烈焰拉顿" << endl;
cout << "对方血量 1260000 点,攻击 688800 点,防御 699999 点" <<
endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 2000 + 1501;
qian = qian + dalie;
cout << "你成功降服了化仙境烈焰拉顿。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 2000 + 1501;
qian = qian + dalie;
cout << "你成功降服了化仙境烈焰拉顿。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 2000 + 1501;
qian = qian + dalie;
cout << "你成功降服了化仙境烈焰拉顿。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 2000 + 1501;
qian = qian + dalie;
cout << "你成功降服了化仙境烈焰拉顿。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 14 ) {
guaisheng = 10000000;
guaigong = 10000;
guaifang = 10000000;
cout << "你遇到了伪仙境圣裁(现阶段绝对防御){攻击无视防御}"
<< endl;
cout << "对方血量 10000000 点,攻击 10000 点,防御 10000000 点" <<
endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( guaifang >= gong ) {
sheng = sheng - 10000;
guaisheng = guaisheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 5000 + 2001;
qian = qian + dalie;
cout << "你成功降服了伪仙境圣裁。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 10000 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
sheng = sheng - 1000;
guaisheng = guaisheng - ( gong - guaifang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 5000 + 2001;
qian = qian + dalie;
cout << "你成功降服了伪仙境圣裁。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 1000 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 15 ) {
guaisheng = 18000000;
guaigong = 9200000;
guaifang = 10800000;
cout << "你遇到了地仙境金翅大鹏鸟" << endl;
cout << "对方血量 18000000 点,攻击 9200000 点,防御 10800000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 7000 + 3001;
qian = qian + dalie;
cout << "你成功降服了地仙境金翅大鹏鸟。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 7000 + 3001;
qian = qian + dalie;
cout << "你成功降服了地仙境金翅大鹏鸟。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 7000 + 3001;
qian = qian + dalie;
cout << "你成功降服了地仙境金翅大鹏鸟。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 7000 + 3001;
qian = qian + dalie;
cout << "你成功降服了地仙境金翅大鹏鸟。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 16 ) {
guaisheng = 100000000;
guaigong = 80000000;
guaifang = 60000000;
cout << "你遇到了天仙境尸鲲" << endl;
cout << "对方血量 100000000 点,攻击 80000000 点,防御 60000000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 12000 + 7001;
qian = qian + dalie;
cout << "你成功降服了天仙境尸鲲。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 12000 + 7001;
qian = qian + dalie;
cout << "你成功降服了天仙境尸鲲。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 12000 + 7001;
qian = qian + dalie;
cout << "你成功降服了天仙境尸鲲。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 12000 + 7001;
qian = qian + dalie;
cout << "你成功降服了天仙境尸鲲。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 17 ) {
guaisheng = 600000000;
guaigong = 150000000;
guaifang = 120000000;
cout << "你遇到了金仙境青龙" << endl;
cout << "对方血量 600000000 点,攻击 150000000 点,防御 120000000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100000 + 10001;
qian = qian + dalie;
cout << "你成功降服了金仙境青龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100000 + 10001;
qian = qian + dalie;
cout << "你成功降服了金仙境青龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100000 + 10001;
qian = qian + dalie;
cout << "你成功降服了金仙境青龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 100000 + 10001;
qian = qian + dalie;
cout << "你成功降服了金仙境青龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 18 ) {
guaisheng = 1000000000;
guaigong = 300000000;
guaifang = 240000000;
cout << "你遇到了太乙境虚无白虎" << endl;
cout << "对方血量 1000000000 点,攻击 300000000 点,防御 240000000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了太乙境虚无白虎。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了太乙境虚无白虎。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了太乙境虚无白虎。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了太乙境虚无白虎。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
if ( b == 19 ) {
guaisheng = 3000000000;
guaigong = 800000000;
guaifang = 800000000;
cout << "你遇到了真仙境五爪金龙" << endl;
cout << "对方血量 3000000000 点,攻击 800000000 点,防御 800000000 点"
<< endl;
while ( guaisheng > 0 && sheng > 0 ) {
cout << "1.攻击" << endl;
cout << "2.恢复" << endl;
cout << "3.逃跑" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
if ( gong - guaifang <= 0 && guaigong - fang > 0 ) {
guaisheng = guaisheng;
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了真仙境五爪金龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang > 0 ) {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了真仙境五爪金龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else if ( guaigong - fang <= 0 && gong - guaifang <= 0 ) {
guaisheng = guaisheng;
sheng = sheng;
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了真仙境五爪金龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 0 点伤害" << endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 0 点伤害" << endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
} else {
guaisheng = guaisheng - ( gong - guaifang );
sheng = sheng - ( guaigong - fang );
if ( sheng <= 0 ) {
cout << "你死了" << endl << endl << endl;
b = 222;
}
if ( guaisheng <= 0 ) {
srand ((int)time (0));
dalie = rand() % 500000 + 100001;
qian = qian + dalie;
cout << "你成功降服了真仙境五爪金龙。" << endl;
cout << "金币增加 " << dalie << " 个" << endl << endl;
}
cout << "你攻击了对方,造成了 " << gong - guaifang << " 点伤害" <<
endl;
cout << "对方还余 " << guaisheng << " 点血量" << endl << endl;
cout << "对方攻击了你,造成了 " << guaigong - fang << " 点伤害" <<
endl;
cout << "你还余 " << sheng << " 点血量" << endl << endl << endl;
}
}
if ( b == 2 ) {
if ( yao > 0 ) {
cout << "嗑药中";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
sheng = shengm;
cout << "恢复完成!" << endl;
yao = yao - 1;
cout << "你现在还有 " << yao << " 颗回复丹" << endl;
cout << "你现在的血量为 " << sheng << endl << endl;
} else {
cout << "药不够!" << endl << endl;
}
}
if ( b == 3 ) {
cout << "逃跑中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
guaisheng = 0;
b = 222;
cout << "逃脱成功" << endl << endl << endl << endl;
}
cout << endl;
}
cout << endl;
}
cout << endl;
}
cout << endl;
} else if ( b == 3 ) {
while ( b != 999 ) {
system("cls");
cout << endl << "1.挖矿(看攻击力和运气)" << endl;
cout << "2.打猎,售卖猎物(看运气)" << endl;
cout << "999退出" << endl << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
system("cls");
cout << "赶往矿井中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
cout << "几小时:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << "挖矿中";
Sleep(b * 300 / 4);
cout << ".";
Sleep(b * 300 / 4);
cout << ".";
Sleep(b * 300 / 4);
cout << "." << endl;
Sleep(b * 300 / 4);
srand ((int)time (0));
kuangchan = rand() % 1000 + 1;
if ( kuangchan % 47 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 48;
dalie = 10;
} else if ( kuangchan % 43 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 32;
dalie = 9;
} else if ( kuangchan % 41 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 20;
dalie = 8;
} else if ( kuangchan % 37 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 12;
dalie = 7;
} else if ( kuangchan % 29 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 8;
dalie = 6;
} else if ( kuangchan % 23 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 5;
dalie = 5;
} else if ( kuangchan % 21 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 3;
dalie = 4;
} else if ( kuangchan % 19 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 1.6;
dalie = 3;
} else if ( kuangchan % 17 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 0.8;
dalie = 2;
} else if ( kuangchan % 13 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 0.5 + 0.9;
dalie = 1;
} else if ( kuangchan % 11 == 0 ) {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 0.3 + 0.5;
dalie = 0;
} else {
wakuang = ( b * ( ( gong / 8 + 0.99 ) ) / 2 + 0.99 ) * 0.2 + 0.7;
dalie = 11;
}
qian = qian + wakuang;
cout << "挖矿完成" << endl;
cout << "你挖到了" << kuang[dalie] << endl;
cout << "金币增加了:" << wakuang << endl;
cout << "目前金币数量为:" << qian << endl << endl;
Sleep(3000);
} else if ( b == 2 ) {
system("cls");
srand ((int)time (0));
dalie = rand() % 1000 + 241;
cout << "赶往森林中";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << ".";
Sleep(200);
cout << endl;
cout << "打猎中";
Sleep(dalie * 60 / 7);
cout << ".";
Sleep(dalie * 50 / 7);
cout << ".";
Sleep(dalie * 50 / 7);
cout << ".";
Sleep(dalie * 50 / 7);
cout << ".";
Sleep(dalie * 50 / 7);
cout << ".";
Sleep(dalie * 50 / 7);
cout << "." << endl;
Sleep(dalie * 50 / 7);
qian = qian + dalie / 12 + 1;
cout << "打猎完成,金币:" << qian << endl;
}
cout << endl;
}
cout << endl;
} else if ( b == 4 ) {
system("cls");
cout << "请稍后";
for ( int i = 0; i < 6; i++ ) {
cout << ".";
Sleep(450);
}
cout << endl;
system( "cls" );
printf("\n自身资料:\n");
cout << "Start" << endl;
cout << " 境界: " << jingjie << endl;
cout << " 生命: " << sheng << endl;
cout << " 攻击: " << gong << endl;
cout << " 防御: " << fang << endl;
cout << " 生命上限: " << shengm << endl;
cout << " 金币: " << qian << endl;
cout << " 回复药:" << yao << endl;
cout << "End" << endl;
cout << endl << endl << endl;
Sleep(5000);
} else if ( b == 5 ) {
while ( b != 444 ) {
system("cls");
cout << "1.攻击力" << endl;
cout << "2.生命值" << endl;
cout << "3.防御力" << endl;
cout << "444退出" << endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
system("cls");
cout << "废多少:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << "请稍等";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
gong = gong - b;
cout << "攻击已作废" << endl;
cout << "攻击目前为:" << gong << endl << endl;
Sleep(2000);
} else if ( b == 2 ) {
system("cls");
cout << "废多少:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << "请稍等";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
shengm = shengm - b;
sheng = shengm;
cout << "生命已作废" << endl;
cout << "生命目前为:" << shengm << endl << endl;
Sleep(2000);
} else if ( b == 3 ) {
system("cls");
cout << "废多少:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << "请稍等";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << ".";
Sleep(400);
cout << endl;
fang = fang - b;
cout << "防御已作废" << endl;
cout << "防御目前为:" << fang << endl << endl;
Sleep(2000);
}
}
cout << endl;
cout << endl;
cout << endl;
} else if ( b == 6 ) {
system("cls");
cout << "撒多少:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b ) {
qian = qian - b;
cout << "撒钱完成" << endl;
cout << "你还余 " << qian << " 元" << endl;
Sleep(2000);
} else if ( qian < b ) {
cout << "钱不够!!!" << endl;
}
cout << endl;
cout << endl;
cout << endl;
Sleep(2000);
} else if ( b == 7 ) {
system("cls");
cout << endl << endl << "哪一种涅槃:" << qian << endl;
cout << "1.青铜级涅槃(一次 40 元,每升一级全属性 +10 )" <<
endl;
cout << "2.白银级涅槃(一次 100 元,每升一级全属性 +25 )" <<
endl;
cout << "3.黄金级涅槃(一次 200 元,每升一级全属性 +60 )" <<
endl;
cout << "4.钻石级涅槃(一次 500 元,每升一级全属性 +200 )" <<
endl;
cout << "5.铂金级涅槃(一次 1000 元,每升一级全属性 +500 )"
<< endl;
cout << "6.超脱级涅槃(一次 2000 元,每升一级全属性 +1500 )"
<< endl;
cout << "7.史诗级涅槃(一次 5000 元,每升一级全属性 +4000 )"
<< endl;
cout << "8.传说级涅槃(一次 10000 元,每升一级全属性 +8500 )"
<< endl;
cout << "9.神级涅槃(一次 20000 元,每升一级全属性 +20000 )"
<< endl;
cout << "请选择:";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( b == 1 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 40 ) {
qian = qian - b * 40;
gong = gong + b * 10;
fang = fang + b * 10;
shengm = shengm + b * 10;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 2 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 100 ) {
qian = qian - b * 100;
gong = gong + b * 25;
fang = fang + b * 25;
shengm = shengm + b * 25;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 3 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 200 ) {
qian = qian - b * 200;
gong = gong + b * 60;
fang = fang + b * 60;
shengm = shengm + b * 60;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 4 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 500 ) {
qian = qian - b * 500;
gong = gong + b * 200;
fang = fang + b * 200;
shengm = shengm + b * 200;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 5 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 1000 ) {
qian = qian - b * 1000;
gong = gong + b * 500;
fang = fang + b * 500;
shengm = shengm + b * 500;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 6 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 2000 ) {
qian = qian - b * 2000;
gong = gong + b * 1500;
fang = fang + b * 1500;
shengm = shengm + b * 1500;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(5000);
system( "cls" );
} else if ( b == 7 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 5000 ) {
qian = qian - b * 5000;
gong = gong + b * 4000;
fang = fang + b * 4000;
shengm = shengm + b * 4000;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(2000);
system( "cls" );
} else if ( b == 8 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 10000 ) {
qian = qian - b * 10000;
gong = gong + b * 8500;
fang = fang + b * 8500;
shengm = shengm + b * 8500;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(2000);
system( "cls" );
} else if ( b == 9 ) {
cout << "涅槃几次:" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
if ( qian >= b * 20000 ) {
qian = qian - b * 20000;
gong = gong + b * 20000;
fang = fang + b * 20000;
shengm = shengm + b * 20000;
sheng = shengm;
cout << "攻击目前为:" << gong << endl;
cout << "防御目前为:" << fang << endl;
cout << "生命目前为:" << sheng << endl;
cout << "金币数量目前为:" << qian << endl;
} else {
cout << "不够钱!" << endl;
}
Sleep(2000);
system( "cls" );
}
} else if ( b == 8 ) {
system("cls");
cout << "金币:" << qian << endl;
cout << "几倍(一倍10元):" << endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
srand ((int)time (0));
dalie = rand() % 1000 + 1;
Sleep(1000);
if ( qian >= b * 10 ) {
qian = qian - 10 * b;
cout << "金币:" << qian << endl;
system("cls");
if ( dalie % 2 == 0 ) {
cout << "十五等奖!" << endl;
qian = qian + 3 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 5 == 0 ) {
cout << "十四等奖!" << endl;
qian = qian + 5 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 7 == 0 ) {
cout << "十三等奖!" << endl;
qian = qian + 8 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 11 == 0 ) {
cout << "十二等奖!" << endl;
qian = qian + 10 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 13 == 0 ) {
cout << "十一等奖!" << endl;
qian = qian + 25 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 17 == 0 ) {
cout << "十等奖!" << endl;
qian = qian + 40 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 23 == 0 ) {
cout << "九等奖!" << endl;
qian = qian + 60 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 27 == 0 ) {
cout << "八等奖!" << endl;
qian = qian + 99 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 3 == 0 ) {
cout << "七等奖!" << endl;
qian = qian + 5 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 29 == 0 ) {
cout << "六等奖!" << endl;
qian = qian + 120 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 31 == 0 ) {
cout << "五等奖!" << endl;
qian = qian + 150 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 37 == 0 ) {
cout << "四等奖!" << endl;
qian = qian + 180 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 41 == 0 ) {
cout << "三等奖!" << endl;
qian = qian + 200 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 53 == 0 ) {
cout << "二等奖!" << endl;
qian = qian + 500 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 61 == 0 ) {
cout << "一等奖!" << endl;
qian = qian + 1000 * b;
cout << "金币:" << qian << endl;
} else if ( dalie % 67 == 0 ) {
cout << "特等奖!" << endl;
qian = qian + 2000 * b;
cout << "金币:" << qian << endl;
} else {
cout << "恭喜你,没中奖!!!" << endl;
}
} else {
cout << "钱不够!!!" << endl;
}
} else if ( b == 0 ) {
} else if ( b == 9 ) {
system( "cls" );
cout << "多久(second):";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> b;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << "修哪一方面(攻击,防御,生命[不是生命上限]): ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED | FOREGROUND_GREEN);
cin >> gfsh;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |
FOREGROUND_RED);
cout << endl << endl;
if ( gfsh == "攻击" || gfsh == "1" ) {
Sleep(b * 1000);
cout << "攻击修炼完成!" << endl;
cout << "增加了 " << ( asceticism( b, 1,
gong ) ) * shu << " 点攻击" << endl;
gong = gong + ( asceticism( b, 1, gong ) ) * shu;
cout << "攻击目前为:" << gong;
} else if ( gfsh == "防御" || gfsh == "2" ) {
Sleep(b * 1000);
cout << "防御修炼完成!" << endl;
cout << "增加了 " << ( asceticism( b, 2,
fang ) ) * shu << " 点防御" << endl;
fang = fang + ( asceticism( b, 2, fang ) ) * shu;
cout << "防御目前为:" << fang;
} else if ( gfsh == "生命" || gfsh == "3" ) {
Sleep(b * 1000);
cout << "生命修炼完成!" << endl;
cout << "增加了 " << ( asceticism( b, 3,
sheng ) ) * shu << " 点生命" << endl;
sheng = sheng + ( asceticism( b, 3, sheng ) ) * shu;
cout << "生命目前为:" << sheng;
if ( sheng > shengm ) {
shengm = sheng;
}
} else {
cout << "输入错误!" << endl;
}
Sleep(1000);
} else if ( b == 10 ) {
system("cls");
cout << "一开局有能力先刷怪,不行的话冥想,每次1秒" << endl;
cout << "赚金币一开始多刷怪,后期打工挖矿" << endl;
cout << "金币涅槃前期别干,先买装备,后期涅槃提升才快,终期冥想"
<< endl;
cout << "买彩票超难中奖,别想了" << endl;
cout << "装备方面其实丹药前期比较划算,后期提升太慢了" <<
endl;
cout << "BUG: 自废武功和撒钱你写负数可以增加!" << endl;
Sleep(1500);
} else {
Sleep(1000);
MessageBox( NULL, "叮咚!", "J:\游戏(能玩能看)\小游戏.exe",
MB_OK );
MessageBox( NULL, "错误!", "J:\游戏(能玩能看)\小游戏.exe",
MB_OK );
system( "cls" );
main();
}
Sleep(3000);
}
for ( int i = 0; i < ququququ.length(); i++ ) {
cout << ququququ[i];
Sleep(100);
}
cout << endl << endl << endl << endl;
system("cls");
cout << "你重生了" << endl;
main();
return 0;
}