C++ 打怪类小游戏 2

2.第四天灾2.0

代码较为简洁(短)

#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#define keydown(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) 

using namespace std;

struct node
{
	string name = "无";
	int att;
	int def;
	int hp;
	int a, b, c;
} equip[7];

string c1[201] = { "天", "地", "草", "鬼", "金", "木", "冰", "火", "雷", "光", "时", "空", "暗", "虚", "赤", "寒" };
string c2[201] = { "灵", "神", "仙", "魔", "元", "明" };
string c3[201] = { "兽", "龙", "凤", "凰", "猿", "蟒", "龟", "树", "花", "狼", "鹰" };
string c4[201] = { "混沌之", "空间之", "时间之", "时空之", "鸿蒙之", "维度之", "洪荒之", "虚空之", "暗影之", "因果之", "命运之", "生命之", "毁灭之" };
string c5[201] = { "龙", "凤", "凰", "蛟", "龟", "树", "猿" };
string c6[201] = { "龙", "凤", "龟", "猿" };
string c7[201] = { "哮天犬", "啸月狼", "撼地猿", "天魔", "星空虫", "(-_-)", "银蛟", "仙鹤", "青牛", "振天虎", "行星哥斯拉", "红莲哥斯拉", "基多拉", "拉顿", "木乃伊", "飞僵", "末影龙", "凋零", "循声守卫", "暮色恶魂", "@^$$!#^$#$" };
string c8[201] = { "青龙", "白虎", "玄武", "朱雀", "黑龙", "饕餮", "鲲鹏", "恒星哥斯拉", "僵祖", "魔祖", "him", "实体303", "恐惧魔王", "零值NULL", "末影女王" };
string c9[201] = { "稻草人", "行军蚁", "金锦鲤", "鱿鱼", "草", "油饼", "鸡", "伞兵一号", "2B涂卡笔", "末影螨", "小僵尸", "骷髅射手宝宝" };
string lei[11] = { "", "四色雷劫", "五色雷劫", "七彩雷劫", "九彩雷劫", "混沌雷劫" };
long long int t, sh, x, bao, sh1, x1, bao1, grade = 1, sleep = 400;
long long int a, g, b, c, d, a1, a2, a3, Exp, z, money = 10, u1, v1, w1;
string zuobis[101] = { "", "Free 6666.666666.666666", "Free 88888.88888.88888", "Attack - 100.1e9", "Defend - 123.12.3", "Maximum life span - 123.123.122", "Experience - 123.4.1.1", "Experience - 123.4.2.3", "rate - rate gifts 3.1.3.9.7", "...rate+...rate+...rate add s9e9v9e9n9-9t9y9", "Blood sucking rate 1", "Evasive rate 2", "Critical hit rate 3" };
bool zuobi[101];
bool admin = false;
bool tis[1001];
void tzy();
bool thu_rob();
double beil = 1;

void end( int t )
{
	for( int i = 1; i <= t; i++ )
	{
		cout << "\n";
	}
}

int random()
{
	int f = 10;
	
	if( rand() % 100 > 80 )
	{
		int q = rand() % 45;
		
		for( int i = 9; i >= 1; i-- )
		{
			if( q >= i * ( i - 1 ) / 2 )
			{
				f = i;
				break;
			}
		}
	}
	
	if( admin == true )
	{
		f = 1;
	}
	
	return f;
}

void gotoxy( long long int y, long long int x ) 
{
 
    COORD  coord;
    coord.X = x;
    coord.Y = y;
    HANDLE a = GetStdHandle( STD_OUTPUT_HANDLE );
    SetConsoleCursorPosition( a, coord );
}

void x_guai()
{
	cout << "是否需要 BUFF: ";
	
	string q;
	cin >> q;
	if( q == "是" || q == "yes" || q == "YES" || q == "Yes" || q == "y" || q == "true" || q == "Y" || q == "T" || q == "t" )
	{
		system( "cls" );
		cout << "正在抽取 BUFF";
		
		int c = rand() % 16;
//		int c = rand() % 100;
		for( int i = 1; i <= rand() % 4 + 4; i++ )
		{
			system( "color 3A" );
			Sleep(200);
			system( "color 75" );
			Sleep(200);
			cout << ".";
		}
		
		Sleep(sleep);
		system( "cls" );
		if( c == 0 )
		{
			cout << "attack * 4.5" << endl;
			a = a * 4.5;
		}
		else if( c == 1 )
		{
			cout << "defend * 4.5" << endl;
			b = b * 4.5;
		}
		else if( c == 2 )
		{
			cout << "Maximum life span * 4.5" << endl;
			c = c * 4.5;
			d = c;
		}
		else if( c == 3 )
		{
			cout << "attack * 3.5" << endl;
			cout << "defend * 3.5" << endl;
			a = a * 3.5;
			b = b * 3.5;
		}
		else if( c == 4 )
		{
			cout << "attack * 3" << endl;
			cout << "defend * 3" << endl;
			cout << "Maximum life span * 2.5" << endl;
			a = a * 3;
			b = b * 3;
			c = c * 2.5;
			d = c;
		}
		else if( c == 5 )
		{
			cout << "Blood sucking rate + 12%" << endl;
			x = x + 12;
		}
		else if( c == 6 )
		{
			cout << "Blood sucking rate * 6" << endl;
			x = x * 6;
		}
		else if( c == 7 )
		{
			cout << "Critical hit rate * 6" << endl;
			bao = bao * 6;
		}
		else if( c == 8 )
		{
			cout << "Critical hit rate + 12%" << endl;
			bao = bao + 12;
		}
		else if( c == 9 )
		{
			cout << "Evasive rate * 6" << endl;
			sh = sh * 6;
		}
		else if( c == 10 )
		{
			cout << "Evasive rate + 12%" << endl;
			sh = sh + 12;
		}
		else if( c == 11 )
		{
			cout << "Critical hit rate + 5%" << endl;
			cout << "Blood sucking rate + 5%" << endl;
			cout << "Evasive rate + 5%" << endl;
			bao = bao + 5;
			x = x + 5;
			sh = sh + 5;
		}
		else if( c == 12 )
		{
			cout << "Exp + 1000" << endl;
			Exp = Exp + 1000;
		}
		else if( c == 13 )
		{
			cout << "Free attribute points + 50" << endl;
			z = z + 50;
		}
		else if( c == 14 )
		{
			cout << "Free attribute points * 15" << endl;
			z = z * 15;
		}
		else if( c >= 15 )
		{
			cout << "Free attribute points + 30" << endl;
			cout << "attack + 15" << endl;
			cout << "defend + 15" << endl;
			cout << "Maximum life span + 75" << endl;
			cout << "Critical hit rate + 4%" << endl;
			cout << "Blood sucking rate + 4%" << endl;
			cout << "Evasive rate + 4%" << endl;
			a = a + 15;
			b = b + 15;
			c = c + 75;
			z = z + 30;
			bao = bao + 4;
			x = x + 4;
			sh = sh + 4;
			d = c;
		}
		
		Sleep(sleep*5);
	}
}

string sear( long long int t )
{
//	srand( time(0) );
	long long int a, b, c, d, e, f;
	
	a = rand() % 16;
	b = rand() % 6;
	c = rand() % 11;
	d = rand() % 13;
	e = rand() % 7;
	f = rand() % 4;
	
	if( c3[c] == "猿" && ( c1[a] == "草" || c1[a] == "光" || c1[a] == "木" || c1[a] == "金" || c1[a] == "冰" ) )
	{
		a = rand() % 16;
	}
	
	if( c3[c] == "狼"  && ( c1[a] == "草" || c1[a] == "地" || c1[a] == "木" || c1[a] == "金" || c1[a] == "冰" ) )
	{
		a = rand() % 16;
	}
	
	if( c3[c] == "龟"  && ( c1[a] == "空" || c1[a] == "天" || c1[a] == "金" || c1[a] == "木" || c1[a] == "水" ) )
	{
		a = rand() % 16;
	}
	
	if( c3[c] == "猿" && ( c2[b] == "元" ) )
	{
		b = rand() % 6;
	}
	
	if( ( c3[c] == "凤" || c3[c] == "凰" || c3[c] == "鹰" ) && ( c1[a] == "地" || c1[a] == "木" || c1[a] == "金" || c1[a] == "时" || c1[a] == "空" ) )
	{
		a = rand() % 16;
	}
	
	if( ( c3[c] == "龙" ) && ( c1[a] == "地" || c1[a] == "木" || c1[a] == "时" || c1[a] == "暗" || c1[a] == "光" ) )
	{
		a = rand() % 16;
	}
	
	string s = "";
	
	if( t <= 60 )
	{
		s += c1[a];
		s += c2[b];
		s += c3[c];
	}
	else if( t <= 90 )
	{
		s += c4[d];
		s += c5[e];
	}
	else
	{
		 long long int q = rand() % 10;
		 
		 if( q <= 6 )
		 {
		 	s += c4[a];
		 	s += "祖";
		 }
		 else
		 {
		 	s += "祖";
		 	s += c6[f];
		 }
	}
	
	return s;
}

string sear2( long long int t )
{
//	srand( time(0) );
	
	string s = "";
	
	if( t <= 90 )
	{
		long long int a = rand() % 21;
		s += c7[a];
	}
	else
	{
		long long int a = rand() % 15;
		s += c8[a];
	}
	
	return s;
}

long long int squt( long long int a, long long int b )
{
	if( a <= b )
	{
		return 0;
	}
	else
	{
		return a - b;
	}
}

void init_1()
{
	Exp = 0;
	grade = 1;
	a = rand() % 6 + ( ( rand() % 3 + 1 ) * ( rand() % 3 + 1 ) );
	b = rand() % 6 + ( ( rand() % 3 + 1 ) * ( rand() % 3 + 1 ) );
	c = rand() % 25 + ( ( rand() % 5 + 2 ) * ( rand() % 5 + 1 ) );
	z = rand() % 5 + 2;
	if( c == 0 ) c = 10;
	c = c * 2;
	d = c;
	sh = rand() % 7 + 3;
	x = rand() % 7 + 3;
	bao = rand() % 7 + 3;
}

int main()
{
	srand( time(0) );
	
	for( long long int i = 1; i <= 1000; i++ )
	{
		string s = sear(i);
	}system( "cls" );
	
	init_1();
	x_guai();
	
	while( t != 999 )
	{
		system( "cls" );
		
		End:
			system( "cls" );
		
		cout << "1.通天塔" << endl;
		cout << "2.新手村" << endl;
		cout << "3.商城" << endl;
		cout << "4.个人面板" << endl;
		cout << "5.设置" << endl;
		cin >> t;
		if( t != 11332244 ) system( "cls" );
		
		if( cin.fail() )
		{
			cin.clear();
			cin.ignore();
			t = 0;
		}
		
		if( t == 1 )
		{
			while( 1 )
			{
				system( "cls" );
				d = c;
				cout << "第几层(1~120):";
				cin >> t;
				
				if( t > 120 || t == 0 )
				{
					break;
				}
				
				system( "cls" );
				
				long long int q = rand() % 20;
				
				string name = "";
				
				if( q >= 0 )
				{
					name = sear2( t );
				}
				else
				{
					name = sear( t );
				}
				
				a1 = rand() % ( t * 300 ) +  ( t - 1 ) * 300 + 1;
				a2 = rand() % ( t * 200 ) * 30 +  ( ( t - 1 ) * 200 + 1 ) * 30 + 3;
				a3 = rand() % ( t * 300 ) +  ( t - 1 ) * 300 + 1;
				int mhealth = a2;
//				a3 = 0;
//				a2 = 50;
				long long int wq = a2;
				sh1 = ( rand() % t + t ) % 101;
				bao1 = ( rand() % t + t ) % 101;
				x1 = ( rand() % t + t ) % 101;
				
				if( name == "末影女王" )
				{
					sh1 *= 1.2;
					sh1 += 8;
					sh1 = min( sh1, 99ll );
				}
				
				cout << "------------------怪物信息------------------" << endl;
				cout << "name: " << name << endl;
				cout << "attack: " << a1 << endl;
				cout << "defend: " << a3 << endl;
				cout << "Maximum life span: " << a2 << endl;
				cout << "Evasive rate: " << sh1 << "%" << endl;
				cout << "Blood sucking rate: " << x1 << "%" << endl;
				cout << "Critical hit rate: " <<bao1 << "%" << endl;
				Sleep( 2 * sleep );
				
				gotoxy( 24, 20 );
				cout << "Game start!";
				Sleep( 2 * sleep );
				
				system( "cls" );
				
				cout << "------------------怪物信息------------------" << endl;
				cout << "name: " << name << endl;
				cout << "attack: " << a1 << endl;
				cout << "defend: " << a3 << endl;
				cout << "Maximum life span: " << a2 << endl;
				cout << "Evasive rate: " << sh1 << "%" << endl;
				cout << "Blood sucking rate: " << x1 << "%" << endl;
				cout << "Critical hit rate: " << bao1 << "%" << endl << endl << endl << endl;
				
				while( ( d > 0 || admin == true ) && a2 > 0 )
				{
					if( squt( a * 1.5, a3 ) == 0 && squt( a1 * 1.5, b ) == 0 )
					{
						cout << "---平局---" << endl;
						break;
					}
					// 主角 
					
					long long int q = rand() % 100 + 1;
					long long int tq;
					if( q <= bao )
					{
						int rate1 = rand() % 100 + 1;
						if( rate1 > sh1 + 1 )
						{
							tq = squt( 1.5 * a, a3  );
							a2 = a2 - tq;
							
							if( a2 <= 0 )
							{
								a2 = 0;
							}
							
							cout << "你攻击 [" << name << "] " << "触发了『暴击』造成了 " << tq << "点伤害,[" << name <<  "] 还余 " << a2 <<" 点生命" << endl;
							Sleep(sleep);
							
							if( d < c && tq > 0 )
							{
								d = d + ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 );
								if( d > c )
								{
									d = c;
								}
								cout << "你通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 ) << " 点血,你目前的血量为:" << d << endl;
							}
						}
						else
						{
							cout << "[" << name << "] 闪避了你的攻击" << endl;
						}
					}
					else
					{
						int rate1 = rand() % 100 + 1;
						if( rate1 > sh1 + 1 )
						{
							tq = squt( a, a3  );
							a2 = a2 - tq;
							
							if( a2 <= 0 )
							{
								a2 = 0;
							}
							
							cout << "你攻击 [" << name << "] " << ",造成了 " << tq << "点伤害,[" << name <<  "] 还余 " << a2 <<" 点生命" << endl;
							Sleep(sleep);
							
							if( d < c && tq > 0 )
							{
								d = d + ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 );
								if( d > c )
								{
									d = c;
								}
								cout << "你通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 ) << " 点血,你目前的血量为:" << d << endl;
							}
						}
						else
						{
							cout << "[" << name << "] 闪避了你的攻击" << endl;
						}
					}
					
					Sleep( sleep );
					
					if( keydown( 'P' ) )
					{
						Sleep(sleep*3);
						system( "cls" );
						cout << "你投降了!!!" << endl;
						cout << "自由属性点 -" << grade * 2 + 1 << endl;
						z = z - grade * 2 - 1;
						Sleep(sleep*6);
						goto End;
					}
					
					if( ( name == "him" || name == "零值NULL" ) && a2 <= mhealth * 0.1 )
					{
						cout << "[" << name << "] 将你踢出了世界" << endl;
						break;
					}
					
					if( a2 == 0 )
					{
						break;
					}
					
					// 怪物 
					
					q = rand() % 100 + 1;
					
					if( q <= bao1 )
					{
						int rate1 = rand() % 100 + 1;
						if( rate1 > sh + 1 )
						{
							tq = squt( 1.5 * a1, b  );
							d = d - tq;
							
							if( d <= 0 )
							{
								d = 0;
							}
							
							cout << "[" << name << "] " << "攻击了你,触发了『暴击』造成了 " << tq << "点伤害,你还余 " << d <<" 点生命" << endl;
							
							Sleep(sleep);
							
							if( a2 < wq && tq > 0 )
							{
								a2 = a2 + ( long long int )( double( tq ) / 100.00 * double(x1) + 1.00 );
								if( a2 > wq )
								{
									a2 = wq;
								}
								cout << "[" << name << "] 通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x1) + 1.00 ) << " 点血,[" << name << "] 目前的血量为:" << a2 << endl;
							}
						}
						else
						{
							cout << "你闪避了 [" << name << "] 的攻击" << endl;
						}
							
					}
					else
					{
						int rate1 = rand() % 100 + 1;
						
						if( rate1 > sh + 1 )
						{
							tq = squt( a1, b  );
							d = d - tq;
							
							if( d <= 0 )
							{
								d = 0;
							}
							
							cout << "[" << name << "] " << "攻击了你,造成了 " << tq << "点伤害,你还余 " << d <<" 点生命" << endl;
							Sleep(sleep);
							
							if( a2 < wq && tq > 0 )
							{
								a2 = a2 + ( long long int )( double( tq ) / 100.00 * double(x1) + 1.00 );
								if( a2 > wq )
								{
									a2 = wq;
								}
								cout << "[" << name << "] 通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x1) + 1.00 ) << " 点血,[" << name << "] 目前的血量为:" << a2 << endl;
							}
						}
						else
						{
							cout << "你闪避了 [" << name << "] 的攻击" << endl;
						}
					}
					
					if( keydown( 'P' ) )
					{
						Sleep(sleep*3);
						system( "cls" );
						cout << "你投降了!!!" << endl;
						cout << "自由属性点 -" << grade * 2 + 1 << endl;
						z = z - grade * 2 - 1;
						Sleep(sleep*6);
						goto End;
					}
					
					Sleep(sleep);
				}
				Sleep( 3 * sleep );
				cout << endl << endl;
				system( "pause" );
				system( "cls" );
				
				if( a2 <= 0 )
				{
					long long int tt = t * 100;
					long long int tw = 0, tq = 0;
					tw = rand() % tt;
					tw += t * 60;
					Exp += tw;
					tq = tq + rand() % tt + 5 + rand() % t + 1;
					money += tq;
					cout << "你战胜了 [" << name << "] 获得 [Money +" << tq << "]" << endl;
					cout << "你战胜了 [" << name << "] 获得 [Exp +" << tw << "]" << endl << endl << endl;
					system( "pause" );
					
					for( long long int i = 1; i <= 100; i++ )
					{
						if( Exp >= ( grade / 10 + 1 ) * grade * 40 )
						{
							system( "cls" );
							Exp = Exp - ( grade / 10 + 1 ) * grade * 40;
							system( "cls" );
							cout << "开始渡劫 ( " << grade << " -> " << grade + 1 << " )" << endl;
							system( "pause" );
							
							if( thu_rob() == true )
							{
								grade = grade + 1;
								long long int b1 = a;
								long long int b2 = b;
								long long int b3 = c;
								long long int b4 = z;
								long long int u = 0, v = 0, w = 0;
								a = a + grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 ) * 1;
								b = b + grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 ) * 1;
								c = c + grade * 5 + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 ) * 3;
								z = z + ( grade - 1 ) * 3 + rand() % grade;
								d = c;
								
								if( rand() % 20 == 0 )
								{
									u = rand() % 2 + 1;
								}
								if( rand() % 30 == 0 )
								{
									v = rand() % 3 + 1;
								}
								if( rand() % 25 == 0 )
								{
									w = rand() % 2 + 1;
									
									if( rand() % 20 == 0 )
									{
										w = w + 1;
									}
								}
								
								if( u > 3 )
								{
									u = 3;
								}
								else if( v > 3 )
								{
									v = 3;
								}
								else if( w > 3 )
								{
									w = 3;
								}
								
								u = min( u, 99 - sh );
								v = min( v, 999 - x );
								w = min( w, 100 - bao );
								
								sh = sh + u;
								x = x + v;
								bao = bao + w;
								cout << "attack +" << a - b1 << endl;
								cout << "defend +" << b - b2 << endl;
								cout << "Maximum life span +" << c - b3 << endl;;
								Sleep( sleep * 3 );
								
								cout << "突破成功!" << endl << endl;
								Sleep( sleep * 5 );
								
								system( "cls" );
								cout << "------------------人物信息------------------" << endl;
								cout << "grade: " << grade - 1 << " -> " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl;
								cout << "attack: " << b1 - u1 << " -> " << a << " (+" << a - b1 + u1 << ")" << endl;
								cout << "defend: " << b2 - v1 << " -> " << b << " (+" << b - b2 + v1 << ")" << endl;
								cout << "Maximum life span: " << b3 - w1 << " -> " << c << " (+" << c - b3 + w1 << ")" << endl;
								cout << "Free attribute points: " << b4 << " -> " << z << " (+" << z - b4 << ")" << endl;
								cout << "Evasive rate: " << sh - u << "%" << " -> " << sh << "% (+" << u << "%)" << endl;
								cout << "Blood sucking rate: " << x - v << "%" << " -> " << x << "% (+" << v << "%)" << endl;
								cout << "Critical hit rate: " << bao - w << "%" << " -> " << bao << "% (+" << w << "%)" << endl;
								
								system( "pause" );
							}
							else
							{
								cout << "突破失败" << endl;
								
								cout << "属性退回至突破前" << endl;
								a = a - u1;
								b = b - v1;
								c = c - w1;
								system( "pause" );
							}
						}
						else
						{
							break;
						}
					}
				}
				if( d <= 0 )
				{
					if( grade == 1 )
					{
						cout << "你死了" << endl;
						Sleep( sleep );
					}
					else
					{
						a = a - grade - 3;
						b = b - grade - 3;
						c = c - grade * 5 - 15;
						Exp = 0;
						d = c;
						grade = grade - 1;
						
						system( "cls" );
						cout << "你死了,等级降低,经验清空" << endl << endl;
						cout << "------------------人物信息------------------" << endl;
						cout << "grade: " << grade + 1 << " -> " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl;
						cout << "attack: " << a + grade + 1 << " -> " << a << " (-" << 2 * grade + 3 << ")" << endl;
						cout << "defend: " << b + grade + 1 << " -> " << b << " (-" << 2 * grade + 3 << ")" << endl;
						cout << "Maximum life span: " << c + grade * 5 + 5 << " -> " << c << " (-" << grade * 5 + 15 << ")" << endl;
						
						system( "pause" );
						system( "cls" );
					}
				}
			}
		}
		else if( t == 2 )
		{
			string q;
			while( q != "否" )
			{
				d = c;
				system( "cls" ); 
				cout << "是否进入:";
				cin >> q;
				
				if( q != "是" && q != "yes" && q != "YES" && q != "Yes" && q != "y" && q != "true" && q != "Y" && q != "T" && q != "t" )
				{
					break;
				}
				
				string name = c9[rand()%12];
				a1 = rand() % 16 + 1;
				a2 = rand() % 16 + 1;
				a3 = rand() % 16 + 1;
//				a3 = 0;
//				a2 = 50;
				sh1 = rand() % 3;
				bao1 = rand() % 3;
				x1 = rand() % 3;
				
				if( name == "草" )
				{
					a1 = ( rand() + 1 ) * ( rand() + 1 );
					a2 = 4 + rand() % 3;
					bao1 = 97 + rand() % 4;
				}
				
				if( name == "稻草人" )
				{
					a1 = abs( a - 13 + rand() % 16 );
					a2 = abs( c - 25 + rand() % 40 );
					a3 = abs( b - 13 + rand() % 16 );
				}
				
				if( name == "鸡" )
				{
					a1 = a1 + a3 + 1;
					a2 = a1 + a2 + a3 + 1;
					a3 = 1;
				}
				
				cout << "------------------怪物信息------------------" << endl;
				cout << "name: " << name << endl;
				cout << "attack: " << a1 << endl;
				cout << "defend: " << a3 << endl;
				cout << "Maximum life span: " << a2 << endl;
				cout << "Critical hit rate: " << bao1 << "%" << endl;
				Sleep( 2 * sleep );
				
				gotoxy( 48, 20 );
				cout << "Game start!";
				Sleep( 2 * sleep );
				
				system( "cls" );
				
				cout << "------------------怪物信息------------------" << endl;
				cout << "name: " << name << endl;
				cout << "attack: " << a1 << endl;
				cout << "defend: " << a3 << endl;
				cout << "Maximum life span: " << a2 << endl;
				cout << "Critical hit rate: " << bao1 << "%" << endl << endl << endl << endl;
				
				while( ( d > 0 || admin == true ) && a2 > 0 )
				{
					if( squt( a * 1.5, a3 ) == 0 && squt( a1 * 1.5, b ) == 0 )
					{
						cout << "---平局---" << endl;
						break;
					}
					// 主角 
					
					long long int q = rand() % 100 + 1;
					long long int tq;
					if( q <= bao )
					{
						tq = squt( 1.5 * a, a3  );
						a2 = a2 - tq;
						
						if( a2 <= 0 )
						{
							a2 = 0;
						}
						
						cout << "你攻击 [" << name << "] " << "触发了『暴击』,造成了 " << tq << "点伤害,[" << name <<  "] 还余 " << a2 <<" 点生命" << endl;
						Sleep(sleep);
						
						if( d < c && tq > 0 )
						{
							d = d + ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 );
							if( d > c )
							{
								d = c;
							}
							cout << "你通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 ) << " 点血,你目前的血量为:" << d << endl;
						}
					}
					else
					{
						tq = squt( a, a3  );
						a2 = a2 - tq;
						
						if( a2 <= 0 )
						{
							a2 = 0;
						}
						
						cout << "你攻击 [" << name << "] " << ",造成了 " << tq << "点伤害,[" << name <<  "] 还余 " << a2 <<" 点生命" << endl;
						Sleep(sleep);
						
						if( d < c && tq > 0 )
						{
							d = d + ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 );
							
							if( d > c )
							{
								d = c;
							}
							
							cout << "你通过『吸血』技能,吸取了 " << ( long long int )( double( tq ) / 100.00 * double(x) + 1.00 ) << " 点血,你目前的血量为:" << d << endl;
						}
					}
					
					Sleep( sleep );
					
					if( keydown( 'P' ) )
					{
						Sleep(sleep*3);
						system( "cls" );
						cout << "你投降了!!!" << endl;
						cout << "自由属性点 -" << grade * 2 + 1 << endl;
						z = z - grade * 2 - 1;
						Sleep(sleep*6);
						goto End;
					}
					
					if( a2 <= 0 )
					{
						break;
					}
					
					// 怪物 
					
					q = rand() % 100 + 1;
					if( q <= bao1 )
					{
						int rate1 = rand() % 100 + 1;
						if( rate1 > sh + 1 )
						{
							tq = squt( 1.5 * a1, b  );
							d = d - tq;
							
							if( d <= 0 )
							{
								d = 0;
							}
							
							cout << "[" << name << "] 攻击了你, 触发了暴击,造成了 " << tq << "点伤害,你还余 " << d <<" 点生命" << endl;
						}
						else
						{
							cout << "你闪避了 [" << name << "] 的攻击" << endl;
						}
					}
					else
					{
						int rate1 = rand() % 100 + 1;
						if( rate1 > sh + 1 )
						{
							tq = squt( a1, b  );
							d = d - tq;
							
							if( d <= 0 )
							{
								d = 0;
							}
							
							cout << "[" << name << "] 攻击了你,造成了 " << tq << "点伤害,你还余 " << d <<" 点生命" << endl;
						}
						else
						{
							cout << "你闪避了 [" << name << "] 的攻击" << endl;
						}
					}
					
					if( keydown( 'P' ) )
					{
						Sleep(sleep*3);
						system( "cls" );
						cout << "你投降了!!!" << endl;
						cout << "自由属性点 -" << grade * 2 + 1 << endl;
						z = z - grade * 2 - 1;
						Sleep(sleep*6);
						goto End;
					}
					Sleep( sleep );
				}
				Sleep( 3 * sleep );
				cout << endl << endl;
				system( "pause" );
				system( "cls" );
				
				if( a2 <= 0 )
				{
					long long int tw = 0, tq = 0;
					tw = rand() % 30;
					
					if( name == "金锦鲤" )
					{
						tw = tw + 20;
						tq = tq + 15;
					}
					else if( name == "草" )
					{
						tw = tw + rand() % 40;
					}
					else if( name == "稻草人" )
					{
						tw = tw + ( rand() % ( grade * 15 ) + grade * ( rand() % 6 + 3 ) );
						tq = tq + ( rand() % ( grade * 12 ) + grade * ( rand() % 5 + 4 ) );
					}
					else if( name == "鸡" )
					{
						tw = tw - 5;
						tw = tw + rand() % 30 + rand() % 10 + 2;
					}
					
					Exp += tw;
					tq = tq + rand() % 20 + 5;
					money += tq;
					cout << "你战胜了 [" << name << "] 获得 [Money +" << tq << "]" << endl;
					cout << "你战胜了 [" << name << "] 获得 [Exp +" << tw << "]" << endl << endl << endl;
					system( "pause" );
					
					for( long long int i = 1; i <= 100; i++ )
					{
						if( Exp >= ( grade / 10 + 1 ) * grade * 40 )
						{
							system( "cls" );
							Exp = Exp - ( grade / 10 + 1 ) * grade * 40;
							system( "cls" );
							cout << "开始渡劫 ( " << grade << " -> " << grade + 1 << " )" << endl;
							system( "pause" );
							
							if( thu_rob() == true )
							{
								grade = grade + 1;
								long long int b1 = a;
								long long int b2 = b;
								long long int b3 = c;
								long long int b4 = z;
								long long int u = 0, v = 0, w = 0;
								a = a + ( grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 3 ) * 0.4 );
								b = b + ( grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 3 ) * 0.4 );
								c = c + ( grade * 5 + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 3 ) );
								z = z + ( grade - 1 ) * 3 + rand() % grade;
								d = c;
								
								if( rand() % 20 == 0 )
								{
									u = rand() % 2 + 1;
								}
								if( rand() % 30 == 0 )
								{
									v = rand() % 3 + 1;
								}
								if( rand() % 25 == 0 )
								{
									w = rand() % 2 + 1;
									
									if( rand() % 20 == 0 )
									{
										w = w + 1;
									}
								}
								
								if( u > 3 )
								{
									u = 3;
								}
								else if( v > 3 )
								{
									v = 3;
								}
								else if( w > 3 )
								{
									w = 3;
								}
								
								u = min( u, 99 - sh );
								v = min( v, 999 - x );
								w = min( w, 100 - bao );
								
								sh = sh + u;
								x = x + v;
								bao = bao + w;
								cout << "attack +" << a - b1 << endl;
								cout << "defend +" << b - b2 << endl;
								cout << "Maximum life span +" << c - b3 << endl;;
								Sleep( sleep * 3 );
								
								cout << "突破成功!" << endl << endl;
								Sleep( sleep * 5 );
								
								system( "cls" );
								cout << "------------------人物信息------------------" << endl;
								cout << "grade: " << grade - 1 << " -> " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl;
								cout << "attack: " << b1 - u1 << " -> " << a << " (+" << a - b1 + u1 << ")" << endl;
								cout << "defend: " << b2 - v1 << " -> " << b << " (+" << b - b2 + v1 << ")" << endl;
								cout << "Maximum life span: " << b3 - w1 << " -> " << c << " (+" << c - b3 + w1 << ")" << endl;
								cout << "Free attribute points: " << b4 << " -> " << z << " (+" << z - b4 << ")" << endl;
								cout << "Evasive rate: " << sh - u << "%" << " -> " << sh << "% (+" << u << "%)" << endl;
								cout << "Blood sucking rate: " << x - v << "%" << " -> " << x << "% (+" << v << "%)" << endl;
								cout << "Critical hit rate: " << bao - w << "%" << " -> " << bao << "% (+" << w << "%)" << endl;
								
								system( "pause" );
							}
							else
							{
								cout << "突破失败" << endl;
								
								cout << "属性退回至突破前" << endl;
								a = a - u1;
								b = b - v1;
								c = c - w1;
								system( "pause" );
							}
						}
						else
						{
							break;
						}
					}
				}
				if( d <= 0 )
				{
					if( grade == 1 )
					{
						cout << "你死了" << endl;
						Sleep( sleep );
					}
					else
					{
						a = a - grade - 3;
						b = b - grade - 3;
						c = c - grade * 5 - 15;
						Exp /= 2;
						d = c;
						grade = grade - 1;
						
						system( "cls" );
						cout << "你死了,等级降低" << endl << endl;
						cout << "------------------人物信息------------------" << endl;
						cout << "grade: " << grade + 1 << " -> " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl;
						cout << "attack: " << a + grade + 1 << " -> " << a << " (-" << grade + 3 << ")" << endl;
						cout << "defend: " << b + grade + 1 << " -> " << b << " (-" << grade + 3 << ")" << endl;
						cout << "Maximum life span: " << c + grade * 5 + 5 << " -> " << c << " (-" << grade * 5 + 15 << ")" << endl;
						
						system( "pause" );
						system( "cls" );
					}
				}
			}
		}
		else if( t == 3 )
		{
			int qur = 0;
			while( b != 999 )
			{
				system( "cls" );
				cout << "Monry: " << money << endl << endl;
				
				int f = 10;
				
				f = random();
				
				cout << "1.Free attribute points * 1 (  " << 2 * f << " coins" << endl;
				if( f != 10 ){
					cout << "{原 " << 20 << " coins}  ";
				}cout << " )";
				if( f != 10 ){
					cout << "  ------ " << f << "折" << endl;
				}else{
					cout << endl;
				}
				
				cout << "2.Equipments - sword" << endl;
				cout << "3.Equipments - helmet" << endl;
				cout << "4.Equipments - chestplate" << endl;
				cout << "5.Equipments - leggings" << endl;
				cout << "6.Equipments - boots" << endl;
				cout << "7.Special Equipments" << endl;
				
				cout << endl << "		[999 return]		" << endl;
				cout << "编号:";
				cin >> qur;
				
				if( qur == 999 )
				{
					break;
				}
				
				if( qur == 1 )
				{
					cout << "How many: ";
					cin >> qur;
					
					if( 2 * f * qur > money )
					{
						cout << "You don't how too much money!" << endl;
					}
					else
					{
						cout << "Free attribute points +" << qur << endl;
						cout << "Money -" << 2 * f * qur << endl;
						money = money - 2 * f * qur;
						z += qur;
					}
					
					cout << endl;
					system( "pause" );
				}
				else if( qur == 2 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1.wooden sword ( attack +5 )" << 5 * f1 * 1.8 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 50 * 1.8 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "2.stone sword ( attack +20 )" << 20 * f2 * 1.75 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 200 * 1.75 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "3.iron sword ( attack +80 )" << 80 * f3 * 1.70 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 800 * 1.70 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f4 = random();
						cout << "4.golden sword ( attack +320 )" << 320 * f4 * 1.65 << " coins";
						if( f4 != 10 ){
							cout << "{原 " << 3200 * 1.65 << " coins}  ";
						}cout << " )";
						if( f4 != 10 ){
							cout << "  ------ " << f4 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f5 = random();
						cout << "5.diamond sword ( attack +1280 )" << 1280 * f5 * 1.6 << " coins";
						if( f5 != 10 ){
							cout << "{原 " << 12800 * 1.6 << " coins}  ";
						}cout << " )";
						if( f5 != 10 ){
							cout << "  ------ " << f5 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f6 = random();
						cout << "6.netherite sword ( attack +5120 )" << 5120 * f6 * 1.55 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 51200 * 1.55 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f6 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f7 = random();
						cout << "7.bedrock sword ( attack +25600 )" << 25600 * f7 * 1.5 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 256000 * 1.5 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f7 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 5 * f1 * 1.8 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 5 * f1 * 1.8 << endl;
								money = money - 5 * f1 * 1.8, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "wooden sword", equip[1].att = 5, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 20 * f2 * 1.75 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 20 * f2 * 1.75 << endl;
								money = money - 20 * f2 * 1.75, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "stone sword", equip[1].att = 20, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 80 * f3 * 1.7 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 80 * f3 * 1.7 << endl;
								money = money - 80 * f3 * 1.7, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "iron sword", equip[1].att = 80, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 4 ) {
							if( 320 * f4 * 1.65 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 320 * f4 * 1.65 << endl;
								money = money - 320 * f4 * 1.65, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "golden sword", equip[1].att = 320, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 5 ) {
							if( 1280 * f5 * 1.6 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 1280 * f5 * 1.6 << endl;
								money = money - 1280 * f5 * 1.6, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "diamond sword", equip[1].att = 1280, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 6 ) {
							if( 5120 * f6 * 1.55 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 5120 * f6 * 1.55 << endl;
								money = money - 5120 * f6 * 1.55, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "netherite sword", equip[1].att = 5120, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
						if( qur == 7 ) {
							if( 25600 * f7 * 1.5 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 25600 * f7 * 1.5 << endl;
								money = money - 25600 * f7 * 1.5, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "bedrock sword", equip[1].att = 25600, a += equip[1].att;
							} cout << endl, system( "pause" );
						}
					}
					
					qur = 0;
				}
				else if( qur == 3 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1.wooden helmet ( defend +3 )" << 3 * f1 * 1.8 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 30 * 1.8 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "2.stone helmet ( defend +12 )" << 12 * f2 * 1.75 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 120 * 1.75 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "3.iron helmet ( defend +48 )" << 48 * f3 * 1.70 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 480 * 1.70 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f4 = random();
						cout << "4.golden helmet ( defend +192 )" << 192 * f4 * 1.65 << " coins";
						if( f4 != 10 ){
							cout << "{原 " << 1920 * 1.65 << " coins}  ";
						}cout << " )";
						if( f4 != 10 ){
							cout << "  ------ " << f4 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f5 = random();
						cout << "5.diamond helmet ( defend +768 )" << 768 * f5 * 1.6 << " coins";
						if( f5 != 10 ){
							cout << "{原 " << 7680 * 1.6 << " coins}  ";
						}cout << " )";
						if( f5 != 10 ){
							cout << "  ------ " << f5 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f6 = random();
						cout << "6.netherite helmet ( defend +3072 )" << 3072 * f6 * 1.55 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 30720 * 1.55 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f6 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f7 = random();
						cout << "7.bedrock helmet ( defend +13824 )" << 13824 * f7 * 1.5 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 138240 * 1.5 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f7 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 3 * f1 * 1.8 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 3 * f1 * 1.8 << endl;
								money = money - 3 * f1 * 1.8, b -= equip[2].def;
								equip[2].name = "wooden helmet", equip[2].def = 3, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 12 * f2 * 1.75 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 12 * f2 * 1.75 << endl;
								money = money - 12 * f2 * 1.75, b -= equip[2].def;
								equip[2].name = "stone helmet", equip[2].def = 12, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 48 * f3 * 1.7 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 48 * f3 * 1.7 << endl;
								money = money - 48 * f3 * 1.7, b -= equip[2].def;
								equip[2].name = "iron helmet", equip[2].def = 48, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 4 ) {
							if( 192 * f4 * 1.65 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 192 * f4 * 1.65 << endl;
								money = money - 192 * f4 * 1.65, b -= equip[2].def;
								equip[2].name = "golden helmet", equip[2].def = 192, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 5 ) {
							if( 768 * f5 * 1.6 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 768 * f5 * 1.6 << endl;
								money = money - 768 * f5 * 1.6, b -= equip[2].def;
								equip[2].name = "diamond helmet", equip[2].def = 768, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 6 ) {
							if( 3072 * f6 * 1.55 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 3072 * f6 * 1.55 << endl;
								money = money - 3072 * f6 * 1.55, b -= equip[2].def;
								equip[2].name = "netherite helmet", equip[2].def = 3072, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 7 ) {
							if( 13824 * f7 * 1.5 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 13824 * f7 * 1.5 << endl;
								money = money - 13824 * f7 * 1.5, b -= equip[2].def;
								equip[2].name = "bedrock helmet", equip[2].def = 13824, b += equip[2].def;
							} cout << endl, system( "pause" );
						}
					}
					
					qur = 0;
				}
				else if( qur == 4 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1. wooden chestplate ( defend +4 )" << 4 * f1 * 1.8 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 40 * 1.8 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "2. stone chestplate ( defend +16 )" << 16 * f2 * 1.75 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 160 * 1.75 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "3. iron chestplate ( defend +64 )" << 64 * f3 * 1.70 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 640 * 1.70 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f4 = random();
						cout << "4. golden chestplate ( defend +256 )" << 256 * f4 * 1.65 << " coins";
						if( f4 != 10 ){
							cout << "{原 " << 2560 * 165 << " coins}  ";
						}cout << " )";
						if( f4 != 10 ){
							cout << "  ------ " << f4 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f5 = random();
						cout << "5. diamond chestplate ( defend +1024 )" << 1024 * f5 * 1.6 << " coins";
						if( f5 != 10 ){
							cout << "{原 " << 10240 * 1.6 << " coins}  ";
						}cout << " )";
						if( f5 != 10 ){
							cout << "  ------ " << f5 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f6 = random();
						cout << "6. netherite chestplate ( defend +4096 )" << 4096 * f6 * 1.55 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 40960 * 1.55 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f6 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f7 = random();
						cout << "7. bedrock chestplate ( defend +20480 )" << 20480 * f7 * 1.5 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 204800 * 1.5 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f7 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 4 * f1 * 1.8 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 4 * f1 * 1.8 << endl;
								money = money - 4 * f1 * 1.8, b -= equip[3].def;
								equip[3].name = "wooden chestplate", equip[3].def = 4, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 16 * f2 * 1.75 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 16 * f2 * 1.75 << endl;
								money = money - 16 * f2 * 1.75, b -= equip[3].def;
								equip[3].name = "stone chestplate", equip[3].def = 16, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 64 * f3 * 1.7 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 64 * f3 * 1.7 << endl;
								money = money - 64 * f3 * 1.7, b -= equip[3].def;
								equip[3].name = "iron chestplate", equip[3].def = 64, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 4 ) {
							if( 256 * f4 * 1.65 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 256 * f4 * 1.65 << endl;
								money = money - 256 * f4 * 1.65, b -= equip[3].def;
								equip[3].name = "golden chestplate", equip[3].def = 256, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 5 ) {
							if( 1024 * f5 * 1.6 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 1024 * f5 * 1.6 << endl;
								money = money - 1024 * f5 * 1.6, b -= equip[3].def;
								equip[3].name = "diamond chestplate", equip[3].def = 1024, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 6 ) {
							if( 4096 * f6 * 1.55 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 4096 * f6 * 1.55 << endl;
								money = money - 4096 * f6 * 1.55, b -= equip[3].def;
								equip[3].name = "netherite chestplate", equip[3].def = 4096, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 7 ) {
							if( 20480 * f7 * 1.5 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 20480 * f7 * 1.5 << endl;
								money = money - 20480 * f7 * 1.5, b -= equip[3].def;
								equip[3].name = "bedrock chestplate", equip[3].def = 20480, b += equip[3].def;
							} cout << endl, system( "pause" );
						}
					}
					
					qur = 0;
				}
				else if( qur == 5 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1.wooden leggings ( defend +3 )" << 3 * f1 * 1.8 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 30 * 1.8 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "2.stone leggings ( defend +12 )" << 12 * f2 * 1.75 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 120 * 1.75 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "3.iron leggings ( defend +48 )" << 48 * f3 * 1.70 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 480 * 1.70 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f4 = random();
						cout << "4.golden leggings ( defend +192 )" << 192 * f4 * 1.65 << " coins";
						if( f4 != 10 ){
							cout << "{原 " << 1920 * 1.65 << " coins}  ";
						}cout << " )";
						if( f4 != 10 ){
							cout << "  ------ " << f4 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f5 = random();
						cout << "5.diamond leggings ( defend +768 )" << 768 * f5 * 1.6 << " coins";
						if( f5 != 10 ){
							cout << "{原 " << 7680 * 1.6 << " coins}  ";
						}cout << " )";
						if( f5 != 10 ){
							cout << "  ------ " << f5 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f6 = random();
						cout << "6.netherite leggings ( defend +3072 )" << 3072 * f6 * 1.55 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 30720 * 1.55 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f6 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f7 = random();
						cout << "7.bedrock leggings ( defend +13824 )" << 13824 * f7 * 1.5 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 138240 * 1.5 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f7 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 3 * f1 * 1.8 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 3 * f1 * 1.8 << endl;
								money = money - 3 * f1 * 1.8, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "wooden leggings", equip[4].def = 3, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 12 * f2 * 1.75 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 12 * f2 * 1.75 << endl;
								money = money - 12 * f2 * 1.75, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "stone leggings", equip[4].def = 12, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 48 * f3 * 1.7 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 48 * f3 * 1.7 << endl;
								money = money - 48 * f3 * 1.7, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "iron leggings", equip[4].def = 48, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 4 ) {
							if( 192 * f4 * 1.65 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 192 * f4 * 1.65 << endl;
								money = money - 192 * f4 * 1.65, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "golden leggings", equip[4].def = 192, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 5 ) {
							if( 768 * f5 * 1.6 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 768 * f5 * 1.6 << endl;
								money = money - 768 * f5 * 1.6, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "diamond leggings", equip[4].def = 768, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 6 ) {
							if( 3072 * f6 * 1.55 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 3072 * f6 * 1.55 << endl;
								money = money - 3072 * f6 * 1.55, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "netherite leggings", equip[4].def = 3072, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 7 ) {
							if( 13824 * f7 * 1.5 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 13824 * f7 * 1.5 << endl;
								money = money - 13824 * f7 * 1.5, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "bedrock leggings", equip[4].def = 13824, b += equip[4].def;
							} cout << endl, system( "pause" );
						}
					}
					
					qur = 0;
				}
				else if( qur == 6 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1. wooden boots ( defend +2 )" << 2 * f1 * 1.8 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 18 * 2 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "2. stone boots ( defend +8 )" << 8 * f2 * 1.75 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 17.5 * 8 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "3. iron boots ( defend +32 )" << 32 * f3 * 1.70 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 17 * 32 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f4 = random();
						cout << "4. golden boots ( defend +128 )" << 128 * f4 * 1.65 << " coins";
						if( f4 != 10 ){
							cout << "{原 " << 16.5 * 128 << " coins}  ";
						}cout << " )";
						if( f4 != 10 ){
							cout << "  ------ " << f4 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f5 = random();
						cout << "5. diamond boots ( defend +512 )" << 512 * f5 * 1.6 << " coins";
						if( f5 != 10 ){
							cout << "{原 " << 512 * 16 << " coins}  ";
						}cout << " )";
						if( f5 != 10 ){
							cout << "  ------ " << f5 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f6 = random();
						cout << "6. netherite boots ( defend +2048 )" << 2048 * f6 * 1.55 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 2048 * 15.5 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f6 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f7 = random();
						cout << "7. bedrock boots ( defend +10240 )" << 10240 * f7 * 1.5 << " coins";
						if( f6 != 10 ){
							cout << "{原 " << 10240 * 15 << " coins}  ";
						}cout << " )";
						if( f6 != 10 ){
							cout << "  ------ " << f7 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 2 * f1 * 1.8 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 2 * f1 * 1.8 << endl;
								money = money - 2 * f1 * 1.8, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "wooden boots", equip[5].def = 2, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 8 * f2 * 1.75 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 8 * f2 * 1.75 << endl;
								money = money - 8 * f2 * 1.75, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "stone boots", equip[5].def = 8, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 32 * f3 * 1.7 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 32 * f3 * 1.7 << endl;
								money = money - 32 * f3 * 1.7, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "iron boots", equip[5].def = 32, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 4 ) {
							if( 128 * f4 * 1.65 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 128 * f4 * 1.65 << endl;
								money = money - 128 * f4 * 1.65, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "golden boots", equip[5].def = 128, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 5 ) {
							if( 512 * f5 * 1.6 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 512 * f5 * 1.6 << endl;
								money = money - 512 * f5 * 1.6, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "diamond boots", equip[5].def = 512, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 6 ) {
							if( 2048 * f6 * 1.55 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 2048 * f6 * 1.55 << endl;
								money = money - 2048 * f6 * 1.55, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "netherite boots", equip[5].def = 2048, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
						if( qur == 7 ) {
							if( 10240 * f7 * 1.5 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 10240 * f7 * 1.5 << endl;
								money = money - 10240 * f7 * 1.5, sh -= equip[4].a, b -= equip[5].def;
								equip[5].name = "bedrock boots", equip[5].def = 10240, b += equip[5].def;
							} cout << endl, system( "pause" );
						}
					}
					
					qur = 0;
				}
				else if( qur == 7 )
				{
					while( qur != 999 )
					{
						system( "cls" );
						cout << "Monry: " << money << endl;
						cout << "Equipment at first: " << endl;
						for( int i = 1; i <= 5; i++ )
						{
							cout << "  " << i << ". " << equip[i].name << endl;
						} cout << endl;
						
						int f1 = 10, f2 = 10, f3 = 10, f4 = 10, f5 = 10, f6 = 10, f7 = 10;
						
						f1 = random();
						cout << "1. bloodthirster ( Blood sucking rate +30% )" << 600 * f1 << " coins";
						if( f1 != 10 ){
							cout << "{原 " << 6000 << " coins}  ";
						}cout << " )";
						if( f1 != 10 ){
							cout << "  ------ " << f1 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f3 = random();
						cout << "2. swiftness legging ( Evasive rate +20% )" << 800 * f2 << " coins";
						if( f3 != 10 ){
							cout << "{原 " << 8000 << " coins}  ";
						}cout << " )";
						if( f3 != 10 ){
							cout << "  ------ " << f3 << "折" << endl;
						}else{
							cout << endl;
						}
						
						f2 = random();
						cout << "3. swiftness boots ( Evasive rate +10% )" << 420 * f2 << " coins";
						if( f2 != 10 ){
							cout << "{原 " << 4200 << " coins}  ";
						}cout << " )";
						if( f2 != 10 ){
							cout << "  ------ " << f2 << "折" << endl;
						}else{
							cout << endl;
						}
						
						cout << endl << "		[999 return]		" << endl;
						cout << "编号:";
						cin >> qur;
						
						if( qur == 1 ) {
							if( 600 * f1 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 600 * f1 << endl;
								money = money - 600 * f1, x -= equip[1].b, a -= equip[1].att;
								equip[1].name = "bloodthirster", equip[5].b = 15, x += equip[5].b;
							} cout << endl, system( "pause" );
						}
						if( qur == 2 ) {
							if( 800 * f3 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 800 * f3 << endl;
								money = money - 800 * f3, sh -= equip[4].a, b -= equip[4].def;
								equip[4].name = "swiftness legging", equip[4].a = 10, sh += equip[4].a;
							} cout << endl, system( "pause" );
						}
						if( qur == 3 ) {
							if( 420 * f2 > money ) cout << "You don't how too much money!" << endl;
							else {
								cout << "Money -" << 420 * f2 << endl;
								money = money - 420 * f2, sh -= equip[5].a, b -= equip[4].def;
								equip[5].name = "swiftness boots", equip[5].a = 10, sh += equip[5].a;
							} cout << endl, system( "pause" );
						}
					}
				}
			}
		}
		else if( t == 4 )
		{
			cout << "------------------人物信息------------------" << endl;
			cout << "attack: " << a << endl;
			cout << "defend: " << b << endl;
			cout << "Maximum life span: " << c << endl;
			cout << "Free attribute points: " << z << endl;
			cout << "Money: " << money << endl;
			cout << "Evasive rate: " << sh << "%" << endl;
			cout << "Blood sucking rate: " << x << "%" << endl;
			cout << "Critical hit rate: " << bao << "%" << endl;
			cout << "grade: " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl << endl;
			cout << endl << "Equipment: " << endl;
			for( int i = 1; i <= 5; i++ )
			{
				cout << "  " << i << ". " << equip[i].name << " ( ";
				
				if( equip[i].att != 0 )
				{
					cout << "attack+" << equip[i].att << " ";
				}
				if( equip[i].def != 0 )
				{
					cout << "defend+" << equip[i].def << " ";
				}
				
				cout << ")" << endl;
			} cout << endl << endl;
			
			string q = "";
			
			if( admin == false )
			{
				cout << "是否添加自由属性点:";
				cin >> q;
				
				if( q == "是" || q == "yes" || q == "YES" || q == "Yes" || q == "y" || q == "true" || q == "Y" || q == "T" || q == "t" )
				{
					tzy();
					
					cout << endl << endl << endl;
					system( "pause" );
				}
				
			}
			else
			{
				cout << "是否更改属性:";
				cin >>  q;
				
				if( q == "是" || q == "yes" || q == "YES" || q == "Yes" || q == "y" || q == "true" || q == "Y" || q == "T" || q == "t" )
				{
					while( 1 )
					{
						system( "cls" );
						cout << "------------------人物信息------------------" << endl;
						cout << "attack: " << a << endl;
						cout << "defend: " << b << endl;
						cout << "Maximum life span: " << c << endl;
						cout << "Free attribute points: " << z << endl;
						cout << "Money: " << money << endl;
						cout << "Evasive rate: " << sh << "%" << endl;
						cout << "Blood sucking rate: " << x << "%" << endl;
						cout << "Critical hit rate: " << bao << "%" << endl;
						cout << "grade: " << grade << " (" << Exp << "/" << ( grade / 10 + 1 ) * grade * 40 << ")" << endl << endl << endl;
						
						int u = 999, v = 999;
						cout << "需更改的属性所在行( 0 返回 ): ";
						cin >> u;
						
						if( u == 0 )
						{
							break;
						}
						
						cout << "更改后的值(无需添加 '%' ): ";
						cin >> v;
						
						if( u == 1 ) a = v;
						if( u == 2 ) b = v;
						if( u == 3 ) c = v;
						if( u == 4 ) z = v;
						if( u == 5 ) money = v;
						if( u == 6 ) sh = v;
						if( u == 7 ) x = v;
						if( u == 8 ) bao = v;
						if( u == 9 ) grade = v;
						if( u == 10 ) Exp = v;
					}
				}
			}
		}
		else if( t == 5 )
		{
			cout << "sleep = ";
			cin >> sleep;
			
			if( sleep == 1234321 )
			{
				string s1;
				cin >> s1;
				
				if( s1 == "coins1" )
				{
					money += 100;
				}
				
				if( s1 == "coins4" )
				{
					money += 400;
				}
				
				if( s1 == "coins9" )
				{
					money += 1600;
				}
				
				if( s1 == "end_coins" )
				{
					money += 6400;
				}
			}
			
			system( "cls" );
		}
		else if( t == 26213 )
		{
			string what;
			cout << "what: ";
			getline( cin, what );
			getline( cin, what );
			
			cout << endl << endl;
			
			if( what == zuobis[1] && zuobi[1] == false )
			{
				cout << "Free attribute points +6666" << endl;
				z = z + 6666;
				zuobi[1] = true;
				system("pause" );
			}
			else if( what == zuobis[2] && zuobi[2] == false )
			{
				cout << "Free attribute points +88888" << endl;
				z = z + 88888;
				zuobi[2] = true;
				system("pause" );
			}
			else if( what == zuobis[3] && zuobi[3] == false )
			{
				int nqrt = rand() + rand() + 10000;
				cout << "attack +" << nqrt << endl;
				a = a + nqrt;
				zuobi[3] = true;
				system("pause" );
			}
			else if( what == zuobis[4] && zuobi[4] == false )
			{
				int nqrt = rand() + rand() + 10000;
				cout << "defend +" << nqrt << endl;
				b = b + nqrt;
				zuobi[4] = true;
				system("pause" );
			}
			else if( what == zuobis[5] && zuobi[5] == false )
			{
				int nqrt = ( rand() + rand() + 10000 ) * ( rand() % 5 + 2 );
				cout << "Maximum life span +" << nqrt << endl;
				c = c + nqrt;
				zuobi[5] = true;
				system("pause" );
			}
			else if( what == zuobis[8] && zuobi[8] == false )
			{
				cout << "Evasive rate +15%" << endl;
				cout << "Blood sucking rate +15%" << endl;
				cout << "Critical hit rate +15%" << endl;
				sh = sh + 15;
				bao = bao + 15;
				x = x + 15;
				zuobi[8] = true;
				system( "pause" );
				
				sh = min( sh, 100ll );
				x = min( x, 999ll );
				bao = min( bao, 100ll );
			}
			else if( what == zuobis[9] && zuobi[9] == false )
			{
				cout << "Evasive rate +50%" << endl;
				cout << "Blood sucking rate +50%" << endl;
				cout << "Critical hit rate +50%" << endl;
				sh = sh + 50;
				bao = bao + 50;
				x = x + 50;
				zuobi[9] = true;
				system( "pause" );
				
				sh = min( sh, 100ll );
				x = min( x, 999ll );
				bao = min( bao, 100ll );
			}
			else if( what == zuobis[10] && zuobi[10] == false )
			{
				cout << "Blood sucking rate +70%" << endl;
				x = x + 70;
				zuobi[10] = true;
				system( "pause" );
				
				x = min( x, 999ll );
			}
			else if( what == zuobis[11] && zuobi[11] == false )
			{
				cout << "Evasive rate +70%" << endl;
				sh = sh + 70;
				zuobi[11] = true;
				system( "pause" );
				
				sh = min( sh, 100ll );
			}
			else if( what == zuobis[12] && zuobi[12] == false )
			{
				cout << "Critical hit rate +70%" << endl;
				bao = bao + 70;
				zuobi[12] = true;
				system( "pause" );
				
				bao = min( bao, 100ll );
			}
			else if( ( what == zuobis[6] && zuobi[6] == false ) || ( what == zuobis[7] && zuobi[7] == false ) )
			{
				int nqrt = ( rand() + rand() + 10000 ) * ( grade * ( rand() % 5 + 1 ) );
				cout << "Exp +" << nqrt << endl;
				Exp = Exp + nqrt;
				
				
				for( long long int i = 1; i <= 100; i++ )
				{
					if( Exp >= ( grade / 10 + 1 ) * grade * 40 )
					{
						system( "cls" );
						Exp = Exp - ( grade / 10 + 1 ) * grade * 40;
						grade = grade + 1;
						long long int b1 = a;
						long long int b2 = b;
						long long int b3 = c;
						long long int b4 = z;
						cout << "你升级了,你目前的等级为:" << grade << " 级" << endl;
						a = a + grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 );
						b = b + grade + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 );
						c = c + grade * 5 + ( rand() % ( grade * ( rand() % 3 + 1 ) ) + grade - 1 ) * 4;
						z = z + ( grade - 1 ) * 3 + rand() % grade;
						d = c;
						
						system( "cls" );
						cout << "------------------人物信息------------------" << endl;
						cout << "grade: " << grade - 1 << " -> " << grade << endl;
						cout << "attack: " << b1 << " -> " << a << " (+" << a - b1 << ")" << endl;
						cout << "defend: " << b2 << " -> " << b << " (+" << b - b2 << ")" << endl;
						cout << "Maximum life span: " << b3 << " -> " << c << " (+" << c - b3 << ")" << endl;
						cout << "Free attribute points: " << b4 << " -> " << z << " (+" << z - b4 << ")" << endl << endl << endl;
						
						system( "pause" );
					}
					else
					{
						break;
					}
				}
				
				if( what == zuobis[6] )
				{
					zuobi[6] = true;
				}
				else
				{
					zuobi[7] = true;
				}
			}
		}
		else if( t == 11332244 )
		{
			string ss = "";
			cin >> ss;
			
			if( ss == "-9manager6-" )
			{
				St:
					;
				
				system( "cls" );
				end(6);
				cout << "                       _____________________________________________" << endl;
				cout << "                      |" << endl;
				cout << "                      |    name: " << endl;
				cout << "                      |    password: " << endl;
				cout << "                      |_____________________________________________" << endl;
				
				string s1, s2;
				gotoxy( 8, 34 );
				cin >> s1;
				gotoxy( 9, 38 );
				
				char mc;
				while( 1 )
				{ 
					mc = _getch();
					
					if( ( mc <= 'z' && mc >= 'a' ) || ( mc <= '9' && mc >= '1' ) ) 
					{
						s2 += mc;
						cout << "*";
					}
					else if( mc == '\r' )
					{
						break;
					}
					else if( mc == '\b' )
					{
						s2 = s2.substr( 0, s2.length() - 1 );
						cout << "\b \b";
					}
				}
				
				Sleep(200);
				
				system( "cls" );
				if( s1 == "杜子腾" && s2 == "123456aabbccdd" )
				{
					admin = true;
					a = pow( 2, 31 ) - 1;
					b = pow( 2, 31 ) - 1;
					c = pow( 2, 31 ) - 1;
					z = pow( 2, 31 ) - 1;
					money = pow( 2, 31 ) - 1;
					grade = 99;
					Exp = 39599;
					sh = 99;
					x = 999;
					bao = 100;
				}
				else
				{
					end(6); 
					cout << "                     用户名或密码错误,是否重新输入( 1.是 2.否 )";
					mc = _getch();
					
					if( mc == '1' )
					{
						goto St;
					}
				}
			}
		}
		
		t = 0;
	}
    
    return 0;
}


void tzy()
{
	system( "cls" );
	cout << "Free attribute points: " << z << endl;
	
	long long int num, many;
	cout << "where( attack = 1, defend = 2, Maximum life span = 3, return = 0 )[ 1 Free attribute points = 5 Maximum life paint ]: ";
	cin >> num;
	
	if( num == 0 )
	{
		return ;
	}
	
	cout << "how many: ";
	cin >> many;
	
	if( many > z )
	{
		cout << "you don't have (" << many << ") Free attribute points" << endl;
		tzy();
	}
	else if( num > 3 || num < 1 )
	{
		cout << "wrong input!" << endl;
	}
	else
	{
		if( num == 1 )
		{
			a = a + many;
		}
		else if( num == 2 )
		{
			b = b + many;
		}
		else if( num == 3 )
		{
			c = c + many * 5;
		}
		
		z = z - many;
		
		tzy();
	}
}

bool thu_rob()
{
	beil = 1;
	u1 = 0;
	v1 = 0;
	w1 = 0;
	system( "cls" );
	int sh = ( rand() % 5 + 1 ) * 2 + 1;
	long long int att; 
	string s9 = lei[(sh-1)/2];
	
	if( ( sh - 1 ) / 2 == 1 )
	{
		sh = 4;
	}
	
	if( ( sh - 1 ) / 2 == 5 )
	{
		sh = 12;
	}
	cout << "触发 -[" << s9 << "]- " << endl;
	
	if( sh == 4 )
	{
		beil = 1.2;
	}
	else if( sh == 5 )
	{
		beil = 1.4;
	}
	else if( sh == 7 )
	{
		beil = 1.7;
	}
	else if( sh == 9 )
	{
		beil = 2.1;
	}
	else if( sh == 10 )
	{
		beil = 2.6;
	}
	
	att = ( ( a + b + c / 3 ) * beil / 3 / 1.4 ) * 1;
	att = att / 3;
	long long int d = c;
	for( int i = 1; i <= sh; i++ )
	{
		long long int at = ( att / ( 1 + sh ) * sh / 2 ) * i;
		int rate1 = rand() % 100 + 1;
		d = d - squt( at, b );
		
		if( rate1 > sh / 1.25 + 1 )
		{
			cout << "[" << i << "]: life -" << squt( at, b ) << "   life: " << d << endl;
		}
		else
		{
			cout << "[" << i << "]: 你闪避了这道雷劫" << endl;
		}
		
		if( d <= 0 && admin == false )
		{
			return false;
		}
		
		Sleep(sleep*2);
		
		long long int t1, t2, t3;
		t1 = grade + ( rand() % ( grade * ( rand() % 2 + 1 ) ) + grade ) + 1;
		t2 = grade + ( rand() % ( grade * ( rand() % 2 + 1 ) ) + grade ) + 1;
		t3 = grade * 4 + ( rand() % ( grade * ( rand() % 2 + 1 ) ) + grade ) * 3 + 1;
		t1 = t1 * ( 1 + beil - 0.5 ), t1 /= 1.8;
		t2 = t2 * ( 1 + beil - 0.5 ), t2 /= 1.8;
		t3 = t3 * ( 1 + beil - 0.5 ), t3 /= 1.8;
		u1 = u1 + t1;
		v1 = v1 + t2;
		w1 = w1 + t3;
		
		cout << "Maximum life span +" << t3 << endl;
		cout << "life +" << t3 << endl;
		a = a + t1;
		b = b + t2;
		c = c + t3;
		d = d + t3;
		system( "pause" );
		cout << endl << endl << endl << endl << endl;
	}
	
	system( "pause" );
	system( "cls" );
	return true;
}























 

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值