其他分享
首页 > 其他分享> > 《关键第四号》小游戏控制台

《关键第四号》小游戏控制台

作者:互联网

直接上代码

#include <iostream>
#include <windows.h>
#include <conio.h>
#include <unistd.h>
#include <cstdlib>
#include <time.h>
#include <cmath> 
#include <fstream>
#include <bits/stdc++.h>
#include <cstdio>
#include <cmath>
using namespace std;
int bag[1000];
clock_t end;
clock_t start;
int ok_f;
int dzb;
int asdfg = 0;
int flag_6 = 0,flag_7 = 0,flag_8 = 0,flag_9 = 0;
int mh = 2000;
int c_g = 1,ls[150][150],ppp1,ppp2;
int maxg = 6;
int q_q = 1; 
string kl[150];
int cun[2000];
int cf = 0;
int exe = 0; 
int vip5,vip3,vip1;
int chuans1,chuans2;
/*
不用存档的:kl,ls,ppp1,ppp2 
*/ 
//1钱 2血 3攻 4防 5闪避 6暴击 7流眀 8控火术 9控电术 10控水术 11控制天气 12心灵传动
//13超速度 14超重力 15瞬移术 16飞行术 17疗伤力 18迁移力 
//19控光术 20能力升级石 21能力升阶石 22红宝石 23蓝宝石 24绿宝石 25黑宝石 
//26技能触发概率 27装甲车 28直升飞机 39战机 30小轿车 31掠行者 32莫加多尔战舰 33阿努比斯号
//34烈焰圣剑 35圣水屏障 36神光药丸 37炫光宝石 38炫光戒指 
void dqcd(){
	ifstream infile;
    ofstream outfile;
 	int i = 1; 
    infile.open("存档信息xx11.dll"); 
    while (!infile.eof() && i <= 200){
        infile >> cun[i];
		i++;            
    }
    bag[1] = cun[1];
    bag[2] = cun[2];
    bag[3] = cun[3];
    bag[4] = cun[4];
    bag[5] = cun[5];
    bag[6] = cun[6];
    bag[7] = cun[7];
    bag[8] = cun[8];
    bag[9] = cun[9];
    bag[10] = cun[10];
    bag[11] = cun[11];
    bag[12] = cun[12];
    bag[13] = cun[13];
    bag[14] = cun[14];
    bag[15] = cun[15];
    bag[16] = cun[16];
    bag[17] = cun[17];
    bag[18] = cun[18];
    bag[19] = cun[19];
    bag[20] = cun[20];
    bag[21] = cun[21];
    bag[22] = cun[22];
    bag[23] = cun[23];
    bag[24] = cun[24];
    bag[25] = cun[25];
    bag[26] = cun[26];
    bag[27] = cun[27];
    bag[28] = cun[28];
    bag[29] = cun[29];
    bag[30] = cun[30];
    bag[31] = cun[31];
    bag[32] = cun[32];
    bag[33] = cun[33];
    bag[34] = cun[34];
    bag[35] = cun[35];
    bag[36] = cun[36];
    bag[37] = cun[37];
    bag[38] = cun[38];
    ok_f = cun[39];
    dzb = cun[40];
    asdfg = cun[41];
    flag_6 = cun[42];
    flag_7 = cun[43];
    flag_8 = cun[44];
    flag_9 = cun[45];
    mh = cun[46];
    c_g = cun[47];
    q_q = cun[48];
    cf = cun[49];
    vip1 = cun[50];
    vip3 = cun[51];
    vip5 = cun[52];
    exe = cun[53];
}
void swcd(){
	ofstream outfile[3];
    cun[1] = bag[1];
    cun[2] = bag[2];
    cun[3] = bag[3];
    cun[4] = bag[4];
    cun[5] = bag[5];
    cun[6] = bag[6];
    cun[7] = bag[7];
    cun[8] = bag[8];
    cun[9] = bag[9];
    cun[10] = bag[10];
    cun[11] = bag[11];
    cun[12] = bag[12];
    cun[13] = bag[13];
    cun[14] = bag[14];
    cun[15] = bag[15];
    cun[16] = bag[16];
    cun[17] = bag[17];
    cun[18] = bag[18];
    cun[19] = bag[19];
    cun[20] = bag[20];
    cun[21] = bag[21];
    cun[22] = bag[22];
    cun[23] = bag[23];
    cun[24] = bag[24];
    cun[25] = bag[25];
    cun[26] = bag[26];
    cun[27] = bag[27];
    cun[28] = bag[28];
    cun[29] = bag[29];
    cun[30] = bag[30];
    cun[31] = bag[31];
    cun[32] = bag[32];
    cun[33] = bag[33];
    cun[34] = bag[34];
    cun[35] = bag[35];
    cun[36] = bag[36];
    cun[37] = bag[37];
    cun[38] = bag[38];
    cun[39] = ok_f;
    cun[40] = dzb;
    cun[41] = asdfg;
    cun[42] = flag_6;
    cun[43] = flag_7;
    cun[44] = flag_8;
    cun[45] = flag_9;
    cun[46] = mh;
    cun[47] = c_g;
    cun[48] = q_q;
    cun[49] = cf;
    cun[50] = vip1;
    cun[51] = vip3;
    cun[52] = vip5;
    cun[53] = exe;
    outfile[0].open("存档信息xx11.dll");
    for (int i = 1;i <= 53;i++) outfile[0] << cun[i] << endl;
}
void init(){
	memset(bag,0,sizeof(bag));
	bag[1] = 2000,bag[2] = 2000,bag[3] = 200,bag[4] = 20,bag[5] = 1,bag[6] = 1;
	ok_f = 0;
	memset(ls,0,sizeof(ls));
	for (int i = 0;i < 150;i++){
		kl[i] = "";
	}
}
int zdfight(int xue2,int gong2,int fang2,int shan2,int bao2){
	int pd = 0;
	while (bag[2] > 0 && xue2 > 0){
		int p = rand() % 100;
		int q = rand() % 100;
		if (p >= bag[5] && p <= bao2 && pd <= 0){
			//cout << "对方对你造成了暴击伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) * 3;
			//cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				//cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		if (p >= bag[5] && pd <= 0){
			//cout << "对方对你造成了普通伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) - bag[4];
		//	cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
			//	cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		int m = rand() % 100;
		int n = rand() % 100;
		if (0 <= m && m <= bag[6] && !(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) * 3;
		//	cout << "你造成了暴击伤害,对敌方造成3被正常伤害,并无视防御" << endl;
			Sleep(5);
			xue2 -= ok;
		//	cout << "对方减血" << ok << "滴,还剩" << xue2 << endl;
			Sleep(5);
		}
		if (!(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) - bag[4];
			xue2 -= ok;
		//	cout << "你打掉了对方" << ok << "滴血,还剩" << xue2 << endl; 
			Sleep(5);
		}
		if (xue2 <= 0){
		//	cout << "你赢了" << endl;
			Sleep(1000);
			return 0;
		}
		if (bag[7] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
		//		cout << "你使用了流明的超能力,扔了一个火球过去,对方减血1000滴,并眩晕对方1回合,攻击+500" << endl;
				Sleep(5);
				pd++;
				xue2 -= (1000 + bag[34]);
				bag[3] = bag[3] + 500;
		//		cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
		//			cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
	//			cout << "你使用了控电术的超能力,用闪电劈了对方一下,造成自身攻击力100%的伤害,并麻痹对方1回合" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1 + bag[36]);
				pd++;
		//		cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
		//			cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[10] == 1){
			int ok = rand() % (5 - bag[26]);
			if (ok == 0){
		//		cout << "你使用了控火术的超能力,把对方点着了,造成自身攻击力120%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1.2 + bag[35]);
	//			cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
	//				cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
			//	cout << "你使用了控水术的超能力,把对方淹了,造成自身攻击力200%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 2 + bag[37]);
		//		cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
		//			cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[11] == 1){
			int ok = rand() % (8 - bag[34]);
			if (ok == 0){
		//		cout << "你使用了控制天气的超能力,用闪电劈了对方一下,造成100%的攻击伤害,并把对方刮飞了,使对方3回合内无法发行动" << endl;
				pd += 3;
				xue2 -= (bag[3] + bag[38]);
		//		cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
		//			cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[12] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
	//			cout << "你使用了心灵传动的超能力,扔了一辆汽车,造成100%的攻击伤害" << endl;
				xue2 -= bag[3];
				xue2 -= bag[39];
	//			cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
	//				cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[17] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
	//			cout << "你使用了疗伤的超能力,回复200%的攻击伤害的血量" << endl;
				Sleep(5);
				bag[2] = bag[2] + bag[3] * 2 + bag[40];
			}
		}
		if (bag[19] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
	//			cout << "你使用了控光术,让对方陷入了黑暗,是对方2回合无法攻击" << endl;
				Sleep(5);
				pd += 2;
			}
		}
		if (bag[18] == 1){
			int ok = rand() % (5 - bag[26]);
			if (ok == 0){
	//			cout << "你使用了迁移力,防御增加" << endl;
				bag[4] = bag[4] + 200; 
			}
		}
	}
}
int fight(int xue2,int gong2,int fang2,int shan2,int bao2){
	int pd = 0;
	while (bag[2] > 0 && xue2 > 0){
		int p = rand() % 100;
		int q = rand() % 100;
		if (p >= bag[5] && p <= bao2 && pd <= 0){
			cout << "对方对你造成了暴击伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) * 3;
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		if (p >= bag[5] && pd <= 0){
			cout << "对方对你造成了普通伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) - bag[4];
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		int m = rand() % 100;
		int n = rand() % 100;
		if (0 <= m && m <= bag[6] && !(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) * 3;
			cout << "你造成了暴击伤害,对敌方造成3被正常伤害,并无视防御" << endl;
			Sleep(5);
			xue2 -= ok;
			cout << "对方减血" << ok << "滴,还剩" << xue2 << endl;
			Sleep(5);
		}
		if (!(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) - bag[4];
			xue2 -= ok;
			cout << "你打掉了对方" << ok << "滴血,还剩" << xue2 << endl; 
			Sleep(5);
		}
		if (xue2 <= 0){
			cout << "你赢了" << endl;
			Sleep(1000);
			return 0;
		}
		if (bag[7] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了流明的超能力,扔了一个火球过去,对方减血1000滴,并眩晕对方1回合,攻击+500" << endl;
				Sleep(5);
				pd++;
				xue2 -= (1000 + bag[34]);
				bag[3] = bag[3] + 500;
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
				cout << "你使用了控电术的超能力,用闪电劈了对方一下,造成自身攻击力100%的伤害,并麻痹对方1回合" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1 + bag[36]);
				pd++;
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[10] == 1){
			int ok = rand() % (5 - bag[26]);
			if (ok == 0){
				cout << "你使用了控火术的超能力,把对方点着了,造成自身攻击力120%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1.2 + bag[35]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
				cout << "你使用了控水术的超能力,把对方淹了,造成自身攻击力200%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 2 + bag[37]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[11] == 1){
			int ok = rand() % (8 - bag[34]);
			if (ok == 0){
				cout << "你使用了控制天气的超能力,用闪电劈了对方一下,造成100%的攻击伤害,并把对方刮飞了,使对方3回合内无法发行动" << endl;
				pd += 3;
				xue2 -= (bag[3] + bag[38]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[12] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了心灵传动的超能力,扔了一辆汽车,造成100%的攻击伤害" << endl;
				xue2 -= bag[3];
				xue2 -= bag[39];
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[17] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
				cout << "你使用了疗伤的超能力,回复200%的攻击伤害的血量" << endl;
				Sleep(5);
				bag[2] = bag[2] + bag[3] * 2 + bag[40];
			}
		}
		if (bag[19] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了控光术,让对方陷入了黑暗,是对方2回合无法攻击" << endl;
				Sleep(5);
				pd += 2;
			}
		}
		if (bag[18] == 1){
			int ok = rand() % (5 - bag[26]);
			if (ok == 0){
				cout << "你使用了迁移力,防御增加" << endl;
				bag[4] = bag[4] + 200; 
			}
		}
	}
}
int fanalfight(int xue2,int gong2,int fang2,int shan2,int bao2){
	int pd = 0;
	while (bag[2] > 0 && xue2 > 0){
		int p = rand() % 100;
		int q = rand() % 100;
		if (p >= bag[5] && p <= bao2 && pd <= 0){
			cout << "对方对你造成了暴击伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) * 3;
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		if (p >= bag[5] && pd <= 0){
			cout << "对方对你造成了普通伤害" << endl;
			Sleep(5);
			bag[2] -= (gong2 - rand() * rand() % (gong2 / 4)) - bag[4];
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				cout << "你输了" << endl;
				Sleep(1000);
				bag[2] = 20;
				return 1;
			}
		}
		int m = rand() % 100;
		int n = rand() % 100;
		if (0 <= m && m <= bag[6] && !(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) * 3;
			cout << "你造成了暴击伤害,对敌方造成3被正常伤害,并无视防御" << endl;
			Sleep(5);
			xue2 -= ok;
			cout << "对方减血" << ok << "滴,还剩" << xue2 << endl;
			Sleep(5);
		}
		if (!(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) - bag[4];
			xue2 -= ok;
			cout << "你打掉了对方" << ok << "滴血,还剩" << xue2 << endl; 
			Sleep(5);
		}
		if (xue2 <= 0){
			cout << "你赢了" << endl;
			Sleep(1000);
			return 0;
		}
		if (bag[7] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了流明的超能力,扔了一个火球过去,对方减血1000滴,并眩晕对方1回合,攻击+500" << endl;
				Sleep(5);
				pd++;
				xue2 -= (1000 + bag[34]);
				bag[3] = bag[3] + 500;
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
				cout << "你使用了控电术的超能力,用闪电劈了对方一下,造成自身攻击力100%的伤害,并麻痹对方1回合" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1 + bag[36]);
				pd++;
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[10] == 1){
			int ok = rand() % (5 - bag[26]);
			if (ok == 0){
				cout << "你使用了控火术的超能力,把对方点着了,造成自身攻击力120%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 1.2 + bag[35]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[9] == 1){
			int ok = rand() % (6 - bag[26]);
			if (ok == 0){
				cout << "你使用了控水术的超能力,把对方淹了,造成自身攻击力200%的伤害" << endl;
				Sleep(5);
				xue2 -= (bag[3] * 2 + bag[37]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0; 
				}
			}
		}
		if (bag[11] == 1){
			int ok = rand() % (8 - bag[34]);
			if (ok == 0){
				cout << "你使用了控制天气的超能力,用闪电劈了对方一下,造成100%的攻击伤害,并把对方刮飞了,使对方3回合内无法发行动" << endl;
				pd += 3;
				xue2 -= (bag[3] + bag[38]);
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[12] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了心灵传动的超能力,扔了一辆汽车,造成100%的攻击伤害" << endl;
				xue2 -= bag[3];
				xue2 -= bag[39];
				cout << "对方还剩" << xue2 << "滴血" << endl;
				Sleep(5);
				if (xue2 <= 0){
					cout << "你赢了" << endl;
					return 0;
				} 
			}
		}
		if (bag[17] == 1){
			int ok = rand() % (4 - bag[26]);
			if (ok == 0){
				cout << "你使用了疗伤的超能力,回复200%的攻击伤害的血量" << endl;
				Sleep(5);
				bag[2] = bag[2] + bag[3] * 2 + bag[40];
			}
		}
		if (bag[19] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了控光术,让对方陷入了黑暗,是对方2回合无法攻击" << endl;
				Sleep(5);
				pd += 2;
			}
		}
		if (bag[18] == 1){
			int ok = rand() % (3 - bag[26]);
			if (ok == 0){
				cout << "你使用了迁移力,防御增加" << endl;
				bag[4] = bag[4] + 200; 
			}
		}
		if (0 <= m && m <= bag[6] && !(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) * 3;
			cout << "你造成了暴击伤害,对敌方造成3被正常伤害,并无视防御" << endl;
			Sleep(5);
			xue2 -= ok;
			cout << "对方减血" << ok << "滴,还剩" << xue2 << endl;
			Sleep(5);
		}
		if (!(0 <= n && n <= shan2)){
			int ok = (bag[3] - (rand() * rand()) % (bag[3] / 4)) - bag[4];
			xue2 -= ok;
			cout << "你打掉了对方" << ok << "滴血,还剩" << xue2 << endl; 
			Sleep(5);
		}
		if (xue2 <= 0){
			cout << "你赢了" << endl;
			Sleep(1000);
			return 0;
		}
		int ok = rand() % (3 - bag[26]);
		if (ok == 0){
			cout << "对方使用了流明的超能力,扔了一个火球过去,你减血1000滴,对方攻击+500" << endl;
			Sleep(5);
			bag[21] -= 1000;
			gong2 += 500;
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (xue2 <= 0){
				cout << "你输了" << endl;
				return 1; 
			}
		}
		ok = rand() % (6 - bag[26]);
		if (ok == 0){
			cout << "对方使用了控水术的超能力,把对方淹了,造成自身攻击力200%的伤害" << endl;
			Sleep(5);
			xue2 -= (gong2 * 2);
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (xue2 <= 0){
				cout << "你输了" << endl;
				return 1; 
			}
		}
		ok = rand() % (3 - bag[26]);
		if (ok == 0){
			cout << "对方使用了心灵传动的超能力,扔了一辆汽车,造成100%的攻击伤害" << endl;
			bag[2] -= gong2;
			cout << "你还剩" << bag[2] << "滴血" << endl;
			Sleep(5);
			if (bag[2] <= 0){
				cout << "你输了" << endl;
				bag[2] = 20;
				return 1;
			} 
		}
	}
}
int main(){
	srand(time(0));
	cout << "欢迎来到关键第四号——洛林传奇小游戏" << endl;
	Sleep(100);
	cout << "这个小游戏是根据一套书改编而来的,《洛林传奇》系列" << endl;
	Sleep(100);
	cout << "看过原著或玩过的可以不看简介" << endl;
	Sleep(100);
	cout << "在一个离地球很远的距离外,有两颗行星上面有智慧生命" << endl;
	Sleep(100);
	cout << "其中一个星球叫做洛林,另一个叫做莫加多尔" << endl;
	Sleep(100);
	cout << "所以他们就是洛林人和莫加多尔人" << endl;
	Sleep(100);
	cout << "洛林人拥有一些超能力,而莫加多尔人有黑科技" << endl;
	Sleep(100);
	cout << "洛林人管有超能力的叫加尔德,没有的叫什么你也不用知道,因为跟他们没关系" << endl;
	Sleep(100); 
	cout << "洛林人和莫加多尔人打了起来——因为莫加多尔人想统治宇宙" << endl;
	Sleep(100);
	cout << "而莫加多尔人差点把洛林人给灭种了" << endl;
	Sleep(100);
	cout << "洛林人有9个小加尔德(不包括10号)逃了出来" << endl;
	Sleep(100);
	cout << "他们分别是1~9号" << endl;
	Sleep(100);
	cout << "1、2、3号已死,5号叛逃,而因为书名是关键第四号,所以你就是第四号" << endl;
	Sleep(100);
	cout << "你只要击败莫加多尔领袖希特雷库斯·雷就算游戏胜利" << endl;
	Sleep(100);
	cout << "但你要在莫加多尔人入侵地球成功之前击败他" << endl;
	Sleep(100);
	cout << "另外,其他人物默认都是按照书里的超能力选的" << endl;
	Sleep(100);
	cout << "但他们的属性是固定的" << endl;
	Sleep(100);
	cout << "但你要先找到他们" << endl;
	Sleep(15000);
	system("cls");
	cout << "请问您之前玩过并存档了吗 1、存过 2、没存过";
	int kkkk;
	cin >> kkkk;
	if (kkkk == 1){
		dqcd();
	} else {
		init();
	}
	for (int i = 0;;i++){
		system("cls");
		if (ok_f == 1 && clock() - start >= 3600000){
			bag[dzb + 6] = 1;
		} else if (ok_f == 1){
			int shi = (clock() - start) / 3600000;
			int fen = (clock() - start - shi * 3600000) / 60000;
			int miao = (clock() - start - shi * 3600000 - fen * 60000) / 1000;
			int haomiao = (clock() - start - shi * 3600000 - fen * 60000 - miao * 1000);
			cout << "已过" << shi << "时" << fen << "分" << miao << "秒" << haomiao << "毫秒" << endl;
		}
		cout << "血量:" << bag[2] << endl;
		cout << "攻击:" << bag[3] << endl;
		cout << "防御:" << bag[4] << endl;
		cout << "战力:" << bag[2] * 5 + bag[3] * 10 + bag[4] * 20 << endl; 
		cout << "1、训练 2、打仗 3、打希特雷库斯·雷 4、商店 5、找其他人 6、开发超能力 7、新手指南 8、背包 9、测试 10、抽奖 11、回血 12、升级 13、超能力升级/升阶 14、夺取基地 15、退出游戏" << endl;
		if (vip1 == 1){
			cout << "16、vip专属商店 ";
		} 
		if (vip3 == 1){
			cout << "17、vip专属兑换 ";
		}
		if (vip5 == 1){
			cout << "18、vip专属任务";
		}
		long long mm;
		cin >> mm;
		cout << endl;
		if (mm == 7){
			cout << "欢迎来到关键第四号——洛林传奇小游戏" << endl;
			Sleep(100);
			cout << "这个小游戏是根据一套书改编而来的,《洛林传奇》系列" << endl;
			Sleep(100);
			cout << "看过原著或玩过的可以不看简介" << endl;
			Sleep(100);
			cout << "在一个离地球很远的距离外,有两颗行星上面有智慧生命" << endl;
			Sleep(100);
			cout << "其中一个星球叫做洛林,另一个叫做莫加多尔" << endl;
			Sleep(100);
			cout << "所以他们就是洛林人和莫加多尔人" << endl;
			Sleep(100);
			cout << "洛林人拥有一些超能力,而莫加多尔人有黑科技" << endl;
			Sleep(100);
			cout << "洛林人管有超能力的叫加尔德,没有的叫什么你也不用知道,因为跟他们没关系" << endl;
			Sleep(100); 
			cout << "洛林人和莫加多尔人打了起来——因为莫加多尔人想统治宇宙" << endl;
			Sleep(100);
			cout << "而莫加多尔人差点把洛林人给灭种了" << endl;
			Sleep(100);
			cout << "洛林人有9个小加尔德(不包括10号)逃了出来" << endl;
			Sleep(100);
			cout << "他们分别是1~9号" << endl;
			Sleep(100);
			cout << "1、2、3号已死,5号叛逃,而因为书名是关键第四号,所以你就是第四号" << endl;
			Sleep(100);
			cout << "你只要击败莫加多尔领袖希特雷库斯·雷就算游戏胜利" << endl;
			Sleep(100);
			cout << "但你要在莫加多尔人入侵地球成功之前击败他" << endl;
			Sleep(100);
			cout << "另外,其他人物默认都是按照书里的超能力选的" << endl;
			Sleep(100);
			cout << "但他们的属性是固定的" << endl;
			Sleep(100);
			cout << "但你要先找到他们" << endl;
			Sleep(15000);
			system("cls");
		} else if (mm == 9){
			system("cls");
			fight(1000,100,10,1,1);
			system("cls");
		} else if (mm == 4){
			cout << "1、兑换商店" << endl;
			cout << "2、增血商店" << endl;
			cout << "3、武器商店" << endl;
			cout << "4、防具商店" << endl;
			cout << "5、载具商店" << endl;
			int m;
			cin >> m;
			if (m == 1){
				system("cls");
				cout << "物品                价格                效果" << endl;
				cout << "1、防御手镯    2500¥+红宝石*1    大幅提升防御,并激发迁移力" << endl;
				cout << "2、火焰手镯    2500¥+黑宝石*1    大幅提升攻击,并激发流明" << endl;
				cout << "3、闪电手镯    3000¥+绿宝石*1    大幅提升攻击,并激发控电术" << endl;
				cout << "4、生命手镯    2500¥+蓝宝石*1    大幅提升血量,并激发疗伤力" << endl;
				int oo = 0;
				cin >> oo;
				if (oo == 1){
					if (bag[1] >= 2500 && bag[22] >= 1){
						cout << "购买成功" << endl;
						bag[4] += 1000;
						bag[1] -= 2500;
						bag[22]--;
						bag[18]++;
						Sleep(1000);
						system("cls");
					} else {
						cout << "物资不足" << endl;
						Sleep(1000);
						system("cls");
					}
				} else if (oo == 2){
					if (bag[1] >= 2500 && bag[25] >= 1){
						cout << "购买成功" << endl;
						bag[3] += 5000;
						bag[1] -= 2500;
						bag[25]--;
						bag[7]++;
						Sleep(1000);
						system("cls");
					} else {
						cout << "物资不足" << endl;
						Sleep(1000);
						system("cls");
					}
				} else if (oo == 3){
					if (bag[1] >= 3000 && bag[24] >= 1){
						cout << "购买成功" << endl;
						bag[3] += 5000;
						bag[9]++;
						bag[1] -= 3000;
						bag[24]--;
						Sleep(1000);
						system("cls");
					} else {
						cout << "物资不足" << endl;
						Sleep(1000);
						system("cls");
					}	
				} else if (oo == 4){
					if (bag[1] >= 2500 && bag[23] >= 0){
						bag[17]++;
						bag[2] += 10000;
						bag[1] -= 2500;
						bag[23]--;
						mh += 10000;
						cout << "购买成功" << endl;
						Sleep(1000);
						system("cls");
					} else {
						cout << "物资不足" << endl;
						Sleep(1000);
						system("cls");
					}
				}
			} else if (m == 2){
				cout << "1、小型药包 200¥" << endl;
				cout << "2、中型药包 500¥" << endl;
				cout << "3、大型药包 1000¥" << endl;
				int oo;
				cin >> oo;
				if (oo == 1){
					if (bag[1] >= 200){
						cout << "获得小型药包*1" << endl;
						bag[2] += 200;
						bag[1] -= 200; 
						mh += 200;
					}
				} else if (oo == 2){
					if (bag[1] >= 500){
						cout << "获得中型药包*1" << endl;
						bag[2] += 500;
						bag[1] -= 500;
						mh += 500;
					}
				} else {
					if (bag[1] >= 1000){
						cout << "获得大型药包*1" << endl;
						bag[2] += 1000;
						bag[1] -= 1000;
						mh += 1000;
					}
				}
			} else if (m == 3){
				cout << "1、匕首 200¥" << endl;
				cout << "2、长剑 500¥" << endl;
				cout << "3、激光枪 1000¥" << endl;
				int oo;
				cin >> oo;
				if (oo == 1){
					if (bag[1] >= 200){
						cout << "匕首*1" << endl;
						bag[3] += 100;
						bag[1] -= 100;
					}
				} else if (oo == 2){
					if (bag[1] >= 500){
						cout << "获得长剑*1" << endl;
						bag[3] += 250;
						bag[1] -= 500;
					}
				} else {
					if (bag[1] >= 1000){
						cout << "获得激光枪*1" << endl;
						bag[3] += 500;
						bag[1] -= 1000;
					}
				}
			} else if (m == 4){
				cout << "1、铁甲 200¥" << endl;
				cout << "2、钢甲 500¥" << endl;
				cout << "3、金甲 1000¥" << endl;
				int oo;
				cin >> oo;
				if (oo == 1){
					if (bag[1] >= 200){
						cout << "获得铁甲*1" << endl;
						bag[4] += 20;
						bag[1] -= 200;
					}
				} else if (oo == 2){
					if (bag[1] >= 500){
						cout << "获得钢甲*1" << endl;
						bag[4] += 50;
						bag[1] -= 500;
					}
				} else {
					if (bag[1] >= 1000){
						cout << "获得金甲*1" << endl;
						bag[4] += 100;
						bag[1] -= 1000;
					}
				}
			} else {
				system("cls");
				cout << "1、小轿车 100¥" << endl;
				cout << "2、装甲车 200¥" << endl;
				cout << "3、直升飞机 300¥" << endl;
				cout << "4、战机 500¥(超值)" << endl;
				int opqrst;
				cin >> opqrst;
				if (opqrst == 1){
					if (bag[1] >= 100){
						bag[31]++;
						bag[2] += 100;
						mh += 100;
						bag[1] -= 100;
					}
				} else if (opqrst == 2){
					if (bag[1] >= 200){
						bag[28]++;
						bag[2] += 200;
						bag[3] += 100;
						mh += 200;
						bag[1] -= 200;
					}
				} else if (opqrst == 3){
					if (bag[1] >= 300){
						bag[29]++;
						bag[2] += 300;
						bag[3] += 200;
						mh += 300;
						cf = 1;
						bag[1] -= 300;
					}
				} else if (bag[39] <= 0){
					if (bag[1] >= 500){
						bag[30]++;
						cf = 1;
						bag[2] += 300;
						bag[3] += 100;
						bag[4] += 100;
						bag[5] += 10;
						bag[6] += 10;
						bag[1] -= 500;
						mh += 300;
					}
				}
			}
		} else if (mm == 11){
			cout << "花" << mh - bag[2] << "回血??? 1、是 2、不是" << endl;
			int oo;
			cin >> oo;
			if (oo == 1){
				if (bag[1] >= mh - bag[2]){
					bag[2] = mh;
					bag[1] = bag[1] - mh + bag[2];
				} else {
					cout << "你都没钱,还想回满血,不可能的" << endl;
					Sleep(5000);
				}
			} else {
				system("cls"); 
			}
		} else if (mm == 8){
			cout << "金币:" << bag[1] << endl;
			cout << "血量:" << bag[2] << endl;
			cout << "最高血量:" << mh << endl;
			cout << "攻击:" << bag[3] << endl;
			cout << "防御:" << bag[4] << endl;
			cout << "战力:" << bag[2] * 5 + bag[3] * 10 + bag[4] * 15 << endl;
			cout << "闪避:" << bag[5] << "%" << endl;
			cout << "暴击:" << bag[6] << "%" << endl;
			cout << "升级石:" << bag[20] << endl;
			cout << "升阶石:" << bag[21] << endl;
			cout << "以获得超能力:";
			if (bag[7] == 1) cout << "流明、";
			if (bag[8] == 1) cout << "控火术、";
			if (bag[9] == 1) cout << "控电术、";
			if (bag[10] == 1) cout << "控水术、";
			if (bag[11] == 1) cout << "控制天气、";
			if (bag[12] == 1) cout << "心灵传动、";
			if (bag[13] == 1) cout << "超速度、"; 
			if (bag[14] == 1) cout << "超重力、"; 
			if (bag[15] == 1) cout << "瞬移术、";
			if (bag[16] == 1) cout << "飞行术、";
			if (bag[17] == 1) cout << "疗伤力、";
			if (bag[18] == 1) cout << "迁移力、";
			if (bag[19] == 1) cout << "控光术、";
			cout << endl;
			cout << "输入任意数结束" << endl;
			int op;
			cin >> op;
			system("cls");
		} else if (mm == 5){
			cout << "1、6号(难度★★★★)";
			if (flag_6 == 1){
				cout << "   寻找完毕";
			}
			cout << endl;
			cout << "2、7号(难度★★★)";
			if (flag_7 == 1){
				cout << "   寻找完毕" << endl;
			}
			cout << endl;
			cout << "3、8号(难度★★,新手建议)";
			if (flag_8 == 1){
				cout << "   寻找完毕";
			}
			cout << endl;
			cout << "4、九号(难度★★★★★,战力要求大,建议把其他人先找到了)";
			if (flag_9 == 1){
				cout << "   寻找完毕";
			}
			int xx;
			cin >> xx;
			if (xx == 1){
				cout << "寻找成功后可以获得控制天气、心灵传动2个超能力" << endl;
				Sleep(5000);
				system("cls");
				cout << "你化装成了一个莫加多尔人" << endl;
				cout << "你来到了西弗吉尼亚基地,门卫让你说出你是来干什么的" << endl;
				cout << "1、撒谎:希特雷库斯·雷让我来把6号给杀了的" << endl;
				cout << "2、跟他们打" << endl;
				int ll;
				cin >> ll;
				if (ll == 1){
					cout << "门卫:“说出密码才能进入!”" << endl;
					string x;
					cin >> x;
					if (x == "11010420100521281X"){
						cout << "门卫:“请进”" << endl;
						cout << "你找到了6号,并准备把她带出来,然而有一只巨兽发现了你,并向你扑来" << endl;
						Sleep(5000);
						system("cls");
						int o = fight(20000,100,100,0,0);
						system("cls");
						if (o == 0){
							cout << "你赢了,救出了6号,并获得了心灵传动、控制天气" << endl;
							bag[12]++;
							bag[11]++;
						} else {
							cout << "你死了" << endl;
							cout << "没法救出6号" << endl;
							Sleep(5000);
							system("cls");
						}
					} else {
						cout << "门卫:“你骗了我!!!”" << endl;
						int o = fight(1000,100,10,0,0);
						if (o == 0){
							cout << "你赢了" << endl;
							cout << "加血1000滴" << endl;
							bag[2] += 1000;
							int flag = 0;
							cout << "这时,一队莫加多尔人来了,总共10个" << endl;
							for (int i = 0;i < 10;i++){
								int q = fight(500,300,10,0,0);
								if (q == 1){
									flag = 1;
									cout << "你输了" << endl;
									cout << "没有救出6号"  << endl;
									break;	 
								}
							}
							Sleep(5000);
							if (flag == 1){
								system("cls");
							} else {
								system("cls");
								cout << "这时,一群克劳尔兽冲了出来" << endl;
								int flag1 = 0;
								for (int i = 0;i < 5;i++){
									int q = fight(1000,100,10,0,0);
									if (q == 1){
										cout << "你输了" << endl;
										cout << "你没有救出6号" << endl;
										flag1 = 0;
										break; 
									}
								}
								if (flag1 == 0){
									system("cls");
								} else {
									cout << "你救出了6号" << endl;
									bag[11]++;
									bag[12]++; 
								}
							}
						} 
					}
				} else {
					cout << "门卫:“你骗了我!!!”" << endl;
					int o = fight(1000,100,10,0,0);
					if (o == 0){
						cout << "你赢了" << endl;
						cout << "加血1000滴" << endl;
						bag[2] += 1000;
						int flag = 0;
						cout << "这时,一队莫加多尔人来了,总共10个" << endl;
						for (int i = 0;i < 10;i++){
							int q = fight(500,300,10,0,0);
							if (q == 1){
								flag = 1;
								cout << "你输了" << endl;
								cout << "没有救出6号"  << endl;
								break;	 
							}
						}
						Sleep(5000);
						if (flag == 1){
							system("cls");
						} else {
							system("cls");
							cout << "这时,一群克劳尔兽冲了出来" << endl;
							int flag1 = 0;
							for (int i = 0;i < 5;i++){
								int q = fight(1000,100,10,0,0);
								if (q == 1){
									cout << "你输了" << endl;
									cout << "你没有救出6号" << endl;
									flag1 = 0;
									break; 
								}
							}
							if (flag1 == 0){
								system("cls");
							} else {
								cout << "你救出了6号" << endl;
								bag[11]++;
								bag[12]++; 
							}
						}
					} 
				}
			} else if (xx == 2){
				cout << "寻找成功后可以获得疗伤力、心灵传动2个超能力" << endl;
				Sleep(5000);
				system("cls");
				cout << "你化装成了一个莫加多尔人" << endl;
				cout << "你来到了西弗吉尼亚基地,门卫让你说出你是来干什么的" << endl;
				cout << "1、撒谎:希特雷库斯·雷让我来把7号给杀了的" << endl;
				cout << "2、跟他们打" << endl;
				int ll;
				cin >> ll;
				if (ll == 1){
					cout << "门卫:“说出密码才能进入!”" << endl;
					string x;
					cin >> x;
					if (x == "20100521"){
						cout << "门卫:“请进”" << endl;
						cout << "你找到了7号,并准备把她带出来,然而有一只巨兽发现了你,并向你扑来" << endl;
						Sleep(5000);
						system("cls");
						int o = fight(10000,200,100,0,0);
						system("cls");
						if (o == 0){
							cout << "你赢了,救出了7号,并获得了心灵传动、疗伤力" << endl;
							bag[12]++;
							bag[17]++;
						} else {
							cout << "你死了" << endl;
							cout << "没法救出7号" << endl;
							Sleep(5000);
							system("cls");
						}
					} else {
						cout << "门卫:“你骗了我!!!”" << endl;
						int o = fight(1000,100,10,0,0);
						if (o == 0){
							cout << "你赢了" << endl;
							cout << "加血1000滴" << endl;
							bag[2] += 1000;
							int flag = 0;
							cout << "这时,一队莫加多尔人来了,总共10个" << endl;
							for (int i = 0;i < 10;i++){
								int q = fight(500,300,10,0,0);
								if (q == 1){
									flag = 1;
									cout << "你输了" << endl;
									cout << "没有救出7号"  << endl;
									break;	 
								}
							}
							Sleep(5000);
							if (flag == 1){
								system("cls");
							} else {
								cout << "你救出了7号" << endl;
								bag[17]++;
								bag[12]++; 
							}
						} 
					}
				} else {
					cout << "门卫:“你根本不是莫加多尔人”" << endl;
					int o = fight(1000,100,10,0,0);
					if (o == 0){
						cout << "你赢了" << endl;
						cout << "加血1000滴" << endl;
						bag[2] += 1000;
						int flag = 0;
						cout << "这时,一队莫加多尔人来了,总共10个" << endl;
						for (int i = 0;i < 10;i++){
							int q = fight(500,300,10,0,0);
							if (q == 1){
								flag = 1;
								cout << "你输了" << endl;
								cout << "没有救出7号"  << endl;
								break;	 
							}
						}
						if (flag == 0){ 
							cout << "你救出了7号" << endl;
							bag[11]++;
							bag[12]++;
						}
					} 
				}
			} else if (xx == 3 && flag_8 != 1){
				cout << "你在印度找到了他,但发现有一群莫加多尔人把他包围了" << endl;
				int xueti = bag[2];
				int flagk = 0;
				for (int i = 0;i < 15;i++){
					int q = fight(500,100,10,1,1);
					if (q == 1){
						cout << "你输了" << endl;
						flagk = 1;
					}
					bag[2] = xueti;
				}
				if (flagk == 0){
					bag[15]++;
					bag[12]++;
					flag_8 = 1;
				} else {
					Sleep(5000);
				}
			} else if (xx == 4 && flag_9 != 1){
				cout << "寻找成功后可以获得超重力、超速度、心灵传动3个超能力" << endl;
				Sleep(5000);
				system("cls");
				cout << "你化装成了一个莫加多尔人" << endl;
				cout << "你来到了西弗吉尼亚基地,门卫让你说出你是来干什么的" << endl;
				cout << "1、撒谎:希特雷库斯·雷让我来把9号给杀了的" << endl;
				cout << "2、跟他们打" << endl;
				int ll;
				cin >> ll;
				if (ll == 1){
					cout << "门卫:“说出密码才能进入!”" << endl;
					string x;
					cin >> x;
					if (x == "11010420100521281X"){
						cout << "门卫:“请进”" << endl;
						cout << "你找到了9号,并准备把他带出来,然而有一只巨兽发现了你,并向你扑来" << endl;
						Sleep(5000);
						system("cls");
						int o = fight(20000,300,100,0,0);
						system("cls");
						if (o == 0){
							cout << "你赢了,救出了9号,并获得了超重力,超速度,心灵传动" << endl;
							bag[12]++;
							bag[13]++;
							bag[14]++;
							flag_9 = 1;
						} else {
							cout << "你死了" << endl;
							cout << "没法救出9号" << endl;
							Sleep(5000);
							system("cls");
						}
					} else {
						cout << "门卫:“你骗了我!!!”" << endl;
						int o = fight(1000,100,10,0,0);
						if (o == 0){
							cout << "你赢了" << endl;
							cout << "加血1000滴" << endl;
							bag[2] += 1000;
							int flag = 0;
							cout << "这时,一队莫加多尔人来了,总共10个" << endl;
							for (int i = 0;i < 10;i++){
								int q = fight(500,300,10,0,0);
								if (q == 1){
									flag = 1;
									cout << "你输了" << endl;
									cout << "没有救出9号"  << endl;
									break;	 
								}
							}
							Sleep(5000);
							if (flag == 1){
								system("cls");
							} else {
								system("cls");
								cout << "这时,一群克劳尔兽冲了出来" << endl;
								int flag1 = 0;
								for (int i = 0;i < 5;i++){
									int q = fight(1000,100,10,0,0);
									if (q == 1){
										cout << "你输了" << endl;
										cout << "你没有救出9号" << endl;
										flag1 = 0;
										break; 
									}
								}
								if (flag1 == 0){
									system("cls");
								} else {
									cout << "又有一只巨兽冲了出来" << endl;
									int qqq = fight(20000,100,10,1,1);
									if (qqq == 0){
										cout << "你赢了" << endl;
										bag[12]++;
										bag[13]++;
										bag[14]++;
										flag_9 = 1;
									}
								}
							}
						} 
					}
				} else {
					cout << "门卫:“你骗了我!!!”" << endl;
					int o = fight(1000,100,10,0,0);
					if (o == 0){
						cout << "你赢了" << endl;
						cout << "加血1000滴" << endl;
						bag[2] += 1000;
						int flag = 0;
						cout << "这时,一队莫加多尔人来了,总共10个" << endl;
						for (int i = 0;i < 10;i++){
							int q = fight(500,300,10,0,0);
							if (q == 1){
								flag = 1;
								cout << "你输了" << endl;
								cout << "没有救出9号"  << endl;
								break;	 
							}
						}
						Sleep(5000);
						if (flag == 1){
							system("cls");
						} else {
							system("cls");
							cout << "这时,一群克劳尔兽冲了出来" << endl;
							int flag1 = 0;
							for (int i = 0;i < 5;i++){
								int q = fight(1000,100,10,0,0);
								if (q == 1){
									cout << "你输了" << endl;
									cout << "你没有救出9号" << endl;
									flag1 = 0;
									break; 
								}
							}
							if (flag1 == 0){
								system("cls");
							} else {
								cout << "又有一只巨兽冲了出来" << endl;
								int qqq = fight(20000,100,10,1,1);
								if (qqq == 0){
									cout << "你赢了" << endl;
									bag[12]++;
									bag[13]++;
									bag[14]++;
									flag_9 = 1;
								}
							}
						}
					} 
				}
			} 
			system("cls");
		} else if (mm == 2){
			system("cls");
			cout << "1、小批莫加多尔人 2、大批莫加多尔人 3、莫加多尔军团(小) 4、掠行者号";
			cout << " 5、莫加多尔军团(中) 6、莫加多尔军团(大) 7、莫加多尔战舰 8、阿努比斯号";
			int xp;
			cin >> xp;
			if (xp == 1){
				system("cls");
				int k = fight(1000,100,10,1,1);
				if (k == 0){
					cout << "获得1*升级石" << endl;
					cout << "100金币" << endl;
					bag[20]++;
					bag[1] += 100;
					exe += 100;
				}
			} else if (xp == 2){
				system("cls");
				int k = fight(2000,200,20,2,2);
				if (k == 0){
					cout << "获得2*升级石" << endl;
					cout << "200金币" << endl;
					bag[20] += 2;
					bag[1] += 200;
					exe += 200;
				}
			} else if (xp == 3){
				system("cls");
				int k = fight(4000,400,40,4,4);
				if (k == 0){
					cout << "获得1*进阶石" << endl;
					cout << "400金币" << endl;
					bag[21]++;
					bag[1] += 400;
					exe += 400;
				}
			} else if (xp == 4){
				system("cls");
				int k = fight(8000,800,80,8,8);
				if (k == 0){
					cout << "获得1*黑宝石" << endl;
					bag[32]++;
					cout << "400金币" << endl;
					bag[25]++;
					bag[1] += 400;
					bag[3] += 300; 
					exe += 800; 
				}
			} else if (xp == 5){
				system("cls");
				int k = fight(8000,800,80,8,8);
				if (k == 0){
					cout << "获得1*红宝石" << endl;
					cout << "800金币" << endl;
					bag[21]++;
					bag[1] += 800;
					exe += 1600;
				}
			} else if (xp == 6){
				system("cls");
				int k = fight(8000,1500,80,8,8);
				if (k == 0){
					cout << "获得1*蓝宝石" << endl;
					cout << "400金币" << endl;
					bag[22]++;
					bag[1] += 400;
					exe += 3200;
				}
			} else if (xp == 7){
				system("cls");
				int k = fight(16000,3000,80,8,8);
				if (k == 0){
					cout << "获得1*绿宝石" << endl;
					cout << "5000金币" << endl;
					cout << "10*技能进阶石" << endl;
					cout << "10*技能升级石" << endl; 
					bag[23]++;
					bag[1] += 5000;
					bag[33]++;
					bag[3] += 1200;
					bag[21] += 10;
					bag[20] += 10;
					exe += 6400;
				}
			} else {
				system("cls");
				int k = fight(80000,8000,800,30,30);
				if (k == 0){
					cout << "获得1*红宝石、1*绿宝石、1*蓝宝石、1*黑宝石" << endl;
					cout << "10000金币" << endl;
					bag[22]++;
					bag[23]++;
					bag[24]++;
					bag[25]++;
					bag[1] += 10000;
					exe += 12800;
				}
			}
		} else if (mm == 13){
			cout << "你要升阶/升级/激发那个超能力???" << endl;
			cout << "1流眀 2控火术 3控电术 4控水术 5控制天气 6心灵传动 7超速度 8超重力 9瞬移术 10飞行术 11疗伤力 12迁移力 13控光术" << endl;
			cin >> num;
			if (num == 1){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							Sleep(2000);
							bag[34] += 50;
							bag[20]--; 
						}
					} else {
						cout << "使用成功" << endl;
						Sleep(2000);
						bag[34] += (50 * bag[20]);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[34] += 150;
							Sleep(2000);
							bag[21]--; 
						} 
					} else {
						cout << "使用成功" << endl;
						bag[34] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				} else if (num2 == 2){
					system("cls");
					cout << "1、能力升级石:" << bag[20] << endl;
					cout << "2、能力进阶石:" << bag[21] << endl;
					int num2;
					cin >> num2;
					if (num2 == 1){
						cout << endl;
						cout << "1、使用一次" << "        " << "2、一键使用" << endl;
						int num3;
						cin >> num3;
						if (num3 == 1){
							if (bag[20] >= 1){
								cout << "使用成功" << endl;
								Sleep(2000);
								bag[35] += 50;
								bag[20]--;
							}
						} else {
							cout << "使用成功" << endl;
							Sleep(2000);
							bag[35] += (50 * bag[20]);
							bag[20] = 0;
						}
					} else if (num2 == 2){
						cout << endl;
						cout << "1、使用一次" << "        " << "2、一键使用" << endl;
						int num3;
						cin >> num3;
						if (num3 == 1){
							if (bag[21] >= 1){
								cout << "使用成功" << endl;
								bag[35] += 150;
								Sleep(2000);
								bag[21]--;
							}
						} else {
							cout << "使用成功" << endl;
							bag[35] += (150 * bag[20]);
							Sleep(2000);
							bag[21] = 0;
						}
					}
				}
			} else if (num == 3){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							Sleep(2000);
							bag[20]--;
							bag[36] += 50;
						}
					} else {
						cout << "使用成功" << endl;
						bag[36] += (50 * bag[20]);
						Sleep(2000);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[36] += 150;
							bag[21]--;
							Sleep(2000);
				 		}
					} else {
						cout << "使用成功" << endl;
						bag[36] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				}
			} else if (num == 4){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
				 	cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							bag[37] += 50;
							Sleep(2000);
							bag[20]--;
						}
					} else {
						cout << "使用成功" << endl;
						bag[37] += (50 * bag[20]);
						Sleep(2000);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[37] += 150;
							Sleep(2000);
							bag[21]--;
						}
					} else {
						cout << "使用成功" << endl;
						bag[37] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				}
			} else if (num == 5){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							bag[38] += 50;
							Sleep(2000);
							bag[20]--;
						} 
					} else {
						cout << "使用成功" << endl;
						bag[38] += (50 * bag[20]);
						Sleep(2000);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[38] += 150;
							bag[21]--;
							Sleep(2000);
						} 
					} else {
						cout << "使用成功" << endl;
						bag[38] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				}
			} else if (num == 6){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							bag[39] += 50;
							Sleep(2000);
							bag[20]--;
						}
					} else {
						cout << "使用成功" << endl;
						bag[39] += (50 * bag[20]);
						Sleep(2000);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[39] += 150;
							Sleep(2000);
							bag[21]--;
						} 
					} else {
						cout << "使用成功" << endl;
						bag[39] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				}
			} else if (num == 7 || num == 8 || num == 9 || num == 10){
				if (bag[num + 6])
				bag[5] += 10;
				bag[6] += 10;
				bag[num + 6] = 0;
				cout << "激活成功" << endl;
				Sleep(2000);
				system("cls");
			} else if (num == 11){
				system("cls");
				cout << "1、能力升级石:" << bag[20] << endl;
				cout << "2、能力进阶石:" << bag[21] << endl;
				int num2;
				cin >> num2;
				if (num2 == 1){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[20] >= 1){
							cout << "使用成功" << endl;
							bag[40] += 50;
							Sleep(2000);
							bag[20]--;
						} 
					} else {
						cout << "使用成功" << endl;
						bag[40] += (50 * bag[20]);
						Sleep(2000);
						bag[20] = 0;
					}
				} else if (num2 == 2){
					cout << endl;
					cout << "1、使用一次" << "        " << "2、一键使用" << endl;
					int num3;
					cin >> num3;
					if (num3 == 1){
						if (bag[21] >= 1){
							cout << "使用成功" << endl;
							bag[40] += 150;
							Sleep(2000);
							bag[21]--;;
						}
					} else {
						cout << "使用成功" << endl;
						bag[40] += (150 * bag[20]);
						Sleep(2000);
						bag[21] = 0;
					}
				}
			} else {
				cout << "激发成功" << endl;
				system("cls"); 
			}
		} else if (mm == 6){
			cout << "开发时建议干别的/打关" << endl;
			cout << "1、流眀 2、控火 3、控电 4、控水 5、控制天气 6、心灵传动 7、超速度 8、超重力 9";
			cout << "、瞬移术 10、飞行术 12、疗伤力 13、迁移力" << endl;
			cin >> dzb;
			start = clock();
			ok_f = 1;
		} else if (mm == 3){
			if (asdfg == 0){
				cout << "你都不知道他在哪,你还想把他sha了???";
				Sleep(5000);
				system("cls");
			} else {
				cout << "成败在此一举,对方生命:100000000 攻击:10000000 防御:1000000 闪避:20 暴击:20" << endl;
				cout << "是否迎战?1yes 2no" << endl;
				int kkkk;
				cin >> kkkk;
				if (kkkk == 1){
					int cbzcyj = fanalfight(100000000,10000000,1000000,20,20);
					if (cbzcyj == 0){
						system("cls");
						cout << "你终结了这场战争,并拿下来胜利" << endl;
						cout << "游戏结束" << endl;
						break; 
					} else {
						cout << "你失败了" << endl;
						Sleep(5000);
						system("cls");
					}
				} else {
					system("cls");
					continue;
				}
			}
		} else if (mm == 14){
			if (c_g == 1){
				kl[1] = "######";
				kl[2] = "I    O";
				kl[3] = "######";
				ppp1 = 3;
				ppp2 = 6;
			} else if (c_g == 2){
				kl[1] = "##########";
				kl[2] = "I  #1P##2#";
				kl[3] = "#  #   # O";
				kl[4] = "#    #   #";
				kl[5] = "##########";
				ppp1 = 5;
				ppp2 = 10;
			} else if (c_g == 3){
				kl[1] = "###############";
				kl[2] = "I # 2##PPP5 ##O";
				kl[3] = "# #   ##23  ##2";
				kl[4] = "#   #    #    3";
				kl[5] = "#  # ##### ####";
				kl[6] = "#999PPPPPPPPPP#";
				kl[7] = "###############";
				ppp1 = 7;
				ppp2 = 15;
			} else if (c_g == 4){
				kl[1] = "####################";
				kl[2] = "I   #1234567899999B#";
				kl[3] = "###    ##########99#";
				kl[4] = "#              9999#";
				kl[5] = "#              9999#";
				kl[6] = "#      O       9999#";
				kl[7] = "#              9999#";
				kl[8] = "####################";
				ppp1 = 8;
				ppp2 = 20;
			} else if (c_g == 5){
				cout << "在这一关,你需要杀出重围,才能到达终点,但你也可以选择领完奖励再走";
				Sleep(10000);
				system("cls");
				kl[1] = "##############################";
				kl[2] = "I2222222222222222222222222222#";
				kl[3] = "#2222222222222222222222222222#";
				kl[4] = "#2222222222222222222222222222#";
				kl[5] = "#2222222222222222222222222222#";
				kl[6] = "#2222222222222222222222222222#";
				kl[7] = "#2222222222222222222222222222#";
				kl[8] = "#2222222222222222222222222222#";
				kl[9] = "#2222222222222222222222222222#";
				kl[10] = "#222222222222222222222222222O#";
				kl[11] = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP";
				kl[12] = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP";
				kl[13] = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP";
				kl[14] = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP";
				kl[15] = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP";
				ppp1 = 15;
				ppp2 = 30;
			} else if (c_g == 6){
				kl[1] = "###################################";
				kl[2] = "I 9999999999999999999999BBBBBBBBBB#";
				kl[3] = "# 99999999999999999999999999999999#";
				kl[4] = "# 99999999999999999999999999999999#";
				kl[5] = "# 99999999999999999999999999999999#";
				kl[6] = "# 99999999999999999999999999999999#";
				kl[7] = "# 99999999999999999999999999999999#";
				kl[8] = "# 99999999999999999999999999999999#";
				kl[9] = "# 99999999999999999999999999999999#";
				kl[10] = "# 99999999999999999999999999999999#";
				kl[11] = "# 99999999999999999999999999999999#";
				kl[12] = "# 99999999999999999999999999999999#";
				kl[13] = "# 99999999999999999999999999999999#";
				kl[14] = "# 99999999999999999999999999999999#";
				kl[15] = "# 99999999999999999999999999999999#";
				kl[16] = "#O99999999999999999999999999999999#";
				ppp1 = 16;
				ppp2 = 32;
			}
			int x = 2,y = 0;
			for (int i = 1;i <= ppp1;i++){
				for (int j = 0;j < ppp2;j++){
					cout << kl[i][j]; 
				}
				cout << endl;
			}
			for (;;){
				char ch;
				cin >> ch;
				if (ch == 'w'){
					if (kl[x - 1][y] == '#'){
						continue;
					} else {
						x--;
						if ('0' < kl[x][y] && kl[x][y] <= '9'){
							cout << "你遇到了" << kl[x][y] << "级怪";
							Sleep(2000);
							cout << endl;
							int kkl = kl[x][y] - 48;
							int bv = fight(2000 + kkl * 1000,200 + kkl * 100,20 + kkl * 10,1,1);
							if (bv == 0){
								//x--;
								//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							} else {
								cout << "你输了";
								Sleep(2000);
								system("cls");
								break;
							}
							system("cls");
						} else if (kl[x][y] == 'O'){
							cout << "你赢了" << endl;
							Sleep(2000);
							system("cls");
							c_g++;
							break;
						} else if (kl[x][y] == ' '){
							//x--;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'B'){
							int lpq = rand() % 10;
							if (lpq <= 1){
								cout << "你获得了流明的超能力" << endl;
								Sleep(2000);
							}
							kl[x][y] = ' ';
							//x--;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'P'){
							cout << "你获得了钱 * 100";
							Sleep(2000);
							bag[1] += 100;
							kl[x][y] = ' ';
							//x--;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						}
						kl[x][y] = 'I';
						kl[x + 1][y] = ' ';
					}
				} else if (ch == 's'){
					if (kl[x + 1][y] == '#'){
						continue;
					} else {
						x++;
						if ('0' < kl[x][y] && kl[x][y] <= '9'){
							cout << "你遇到了" << kl[x][y] << "级怪";
							Sleep(2000);
							cout << endl;
							int kkl = kl[x][y] - 48;
							int bv = fight(2000 + kkl * 1000,200 + kkl * 100,20 + kkl * 10,1,1);
							if (bv == 0){
								//x++;
								//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							} else {
								cout << "你输了";
								Sleep(2000);
								system("cls");
								break;
							}
							system("cls");
						} else if (kl[x][y] == 'O'){
							cout << "你赢了" << endl;
							Sleep(2000); 
							system("cls");
							c_g++;
							break;
						} else if (kl[x + 1][y] == ' '){
							//x++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'B'){
							int lpq = rand() % 10;
							if (lpq <= 1){
								cout << "你获得了流明的超能力" << endl;
								Sleep(2000);
							}
							kl[x][y] = ' ';
							//x++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'P'){
							cout << "你获得了钱 * 100";
							Sleep(2000);
							bag[1] += 100;
							kl[x][y] = ' ';
							//x++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						}
						kl[x][y] = 'I';
						kl[x - 1][y] = ' ';
					}
				} else if (ch == 'd'){
					if (kl[x][y + 1] == '#'){
						continue;
					} else {
						y++;
						if ('0' < kl[x][y] && kl[x][y] <= '9'){
							cout << "你遇到了" << kl[x][y] << "级怪";
							Sleep(2000);
							cout << endl;
							int kkl = kl[x][y] - 48;
							int bv = fight(2000 + kkl * 1000,200 + kkl * 100,20 + kkl * 10,1,1);
							if (bv == 0){
								//y++;
								//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							} else {
								cout << "你输了";
								Sleep(2000);
								system("cls");
								break;
							}
							system("cls");
						} else if (kl[x][y] == 'O'){
							cout << "你赢了" << endl;
							Sleep(2000);
							system("cls");
							c_g++;
							break;
						} else if (kl[x][y] == ' '){
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'B'){
							int lpq = rand() % 10;
							if (lpq <= 1){
								cout << "你获得了流明的超能力" << endl;
								Sleep(2000);
							}
							kl[x][y] = ' ';
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y + 1] == 'P'){
							cout << "你获得了钱 * 100";
							Sleep(2000);
							bag[1] += 100;
							kl[x][y] = ' ';
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						}
						kl[x][y] = 'I';
						kl[x][y - 1] = ' ';
					}
				} else {
					if (kl[x][y - 1] == '#'){
						continue;
					} else {
						y--;
						if ('0' < kl[x][y] && kl[x][y] <= '9'){
							cout << "你遇到了" << kl[x][y] << "级怪";
							Sleep(2000);
							cout << endl;
							int kkl = kl[x][y] - 48;
							int bv = fight(2000 + kkl * 1000,200 + kkl * 100,20 + kkl * 10,1,1);
							if (bv == 0){
								//y++; 
								//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							} else {
								cout << "你输了";
								Sleep(2000);
								system("cls");
								break;
							}
							system("cls");
						} else if (kl[x][y] == 'O'){
							cout << "你赢了" << endl;
							Sleep(2000);
							system("cls");
							c_g++;
							break;
						} else if (kl[x][y] == ' '){
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y] == 'B'){
							int lpq = rand() % 10;
							if (lpq <= 1){
								cout << "你获得了流明的超能力" << endl;
								Sleep(2000);
							}
							kl[x][y] = ' ';
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						} else if (kl[x][y + 1] == 'P'){
							cout << "你获得了钱 * 100";
							bag[1] += 100;
							Sleep(2000);
							kl[x][y] = ' ';
							//y++;
							//ls[x - 1][y] = ls[x + 1][y] = ls[x][y - 1] = ls[x][y + 1] = 1;
							system("cls");
						}
						kl[x][y] = 'I';
						kl[x][y + 1] = ' ';
					}
				}
				system("cls");
				for (int i = 1;i <= ppp1;i++){
					for (int j = 0;j < ppp2;j++){
						cout << kl[i][j]; 
					}
					cout << endl;
				}
			}
		} else if (mm == 1){
			cout << "欢迎来到训练系统,这里有无数关" << endl;
			Sleep(5000);
			system("cls");
			cout << "第" << q_q << "关" << endl; 
			cout << "1、自动刷关 2、打关";
			int zkl;
			cin >> zkl;
			if (zkl == 1){
				int countcount = 0;
				while (zdfight(2000 + q_q * 1000,200 + q_q * 100,20 + q_q * 10,1,1) == 0){
					q_q++;
					countcount++;
				}
				bag[1] += countcount * 100;
				exe += countcount * 100;
			} else {
				int ooooo = fight(2000 + q_q * 1000,200 + q_q * 1000,20 + q_q * 10,1,1);
				Sleep(2000);
				system("cls");
				if (ooooo == 0){
					q_q++;
					bag[1] += 100;
					exe += 100;
				} else {
					q_q = q_q;
				}
			}
		} else if (mm == 20){
			cout << "欢迎来到外挂系统,你激发后会发现有一些新的东西,比如商店" << endl;
			cout << "而且,你的钱会多很多";
			cout << endl;
			cout << "不过,你需要再次输入一个密码,才能进入外挂系统" << endl;
			string vvviiippp;
			cin >> vvviiippp;
			if (vvviiippp == "135781012,31tianyongbucha"){
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP5系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "你已经是VIP5用户了";
				vip5 = 1;
				vip3 = 1;
				vip1 = 1;
				bag[1] += 1000000;
			} else if (vvviiippp == "woyaodangvip3"){
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP3系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "你已经是VIP3用户了";
				vip3 = 1;
				vip1 = 1;
				bag[1] += 100000;
			} else if (vvviiippp == "12345,dangshangvip"){
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "进入VIP1系统中" << "·······";
				Sleep(100);
				cout << endl;
				cout << "你已经是VIP1用户了";
				vip1 = 1;
				bag[1] += 10000;
			}
		} else if (vip1 == 1 && mm == 16){
			system("cls");
			cout << "这里是VIP商店,请问你要什么";
			cout << endl;
			cout << "1、烈焰圣剑 1000¥" << endl;
			cout << "2、圣水屏障 1000¥" << endl;
			cout << "3、神光药丸 1000¥" << endl;
			cout << "4、炫光宝石 3000¥(建议VIP3后购买)" << endl;
			int vipsh;
			cin >> vipsh;
			if (vipsh == 1 || vipsh == 2 || vipsh == 3){
				if (bag[1] >= 1000){
					if (vipsh == 1)	bag[36]++,bag[3] += 50000;
					else if (vipsh == 2) bag[37]++,bag[4] += 5000;
					else bag[38]++,bag[2] += 500000,mh += 500000;
					cout << "购买成功" << endl;
					Sleep(3000);
				} else {
					cout << "金币不足!";
					Sleep(3000);
				}
			} else {
				if (bag[1] >= 3000) {bag[39]++;Sleep(3000);}
				else {cout << "金币不足";Sleep(3000);}
			}
		} else if (mm == 17 && vip3 == 1){
			cout << "尊敬的VIP用户,欢迎来到VIP兑换" << endl;
			cout << "1、1*炫光宝石 = 1*蓝宝石 + 1*绿宝石 + 1*黑宝石 + 1*红宝石" << endl;
			cout << "2、5*烈焰圣剑 = 1*炫光戒指" << endl;
			cout << "3、1*炫光戒指 = 炫光宝石*1 + 1500¥" << endl;
			int opqrstu;
			cin >> opqrstu;
			if (opqrstu == 1){
				if (bag[22] >= 1 && bag[23] >= 1 && bag[24] >= 1 && bag[25] >= 1){
					bag[37]++;
					bag[22]--;
					bag[23]--;
					bag[24]--;
					bag[25]--;
				}
			} else if (opqrstu == 2){
				if (bag[38] >= 1){
					bag[36] += 5;
					bag[3] += 250000;
				}
			} else {
				if (bag[37] >= 1 && bag[2] >= 1500){
					bag[38]++;
					bag[7]++;
				}
			}
		} else if (mm == 18 && vip5 == 1){
			cout << "尊敬的VIP用户,这里是VIP专属任务" << endl;
			cout << "1、获得一架掠行者 100经验" << endl;
			cout << "2、打到第10关 1000经验" << endl;
			cout << "3、打到第100关 炫光宝石" << endl;
			int opqrstu;
			cin >> opqrstu;
			if (opqrstu == 1){
				if (bag[31] >= 1){
					exe += 100;
				}
			} else if (opqrstu == 2){
				if (q_q >= 10){
					exe += 1000;
				}
			} else if (opqrstu == 3){
				if (q_q >= 100){
					bag[37]++;
				}
			}
		} else if (mm == 15){
			swcd();
			return 0;
		} else if (mm == 12){
			cout << "升级成功" << endl;
			int m = exe / 100;
			exe -= exe / 100 * 100;
			bag[2] += m * 100;
			bag[3] += m * 10;
			bag[4] += m * 1;
		} else if (mm == 10){
			cout << "100¥抽一次" << endl;
			int opqrstu;
			opqrstu = rand() % 15;
			if (opqrstu == 0){
				bag[7]++;
				cout << "获得流明超能力";
				Sleep(3000);
			} else {
				exe += 150;
				cout << "获得经验 * 150";
			}
		}
		if (c_g >= maxg){
			asdfg = 1;			
		}
	}
	return 0;
}

标签:cout,num3,int,第四号,else,bag,小游戏,cun,控制台
来源: https://blog.csdn.net/zjw0521/article/details/120657612