7
2024-12-17 16:32:39
发布于:浙江
仿造寻道大千
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int tao = 500;
int a = 1, b = 1;
int gong = 10, lian = 0, yun = 0;
float fan = 79, xia = 15, zho = 5, shang = 1;
int shengmax = 1000, ti = 6, dti = 3, xian = 1, sheng = 1000;
int g, ling = 20000;
int jing = 0;
int a1, a2, a3;
int lingg=11110;
int lingss[22] = {0, 0, 500, 1500, 4500, 12000, 20000, 30000, 50000, 100000, 150000, 200000, 300000, 500000, 800000, 1400000, 2200000, 3000000, 3500000, 4000000,4500000,5000000};
int duc = 0;
long double She[10000] = { 320, 350, 380, 410, 440, 470, 500, 530, 560, 590, 630, 650, 680, 710, 740, 770, 800, 830, 860, 890, 920, 950, 980, 1010, 1040, 1070, 1100, 1130, 1160, 1190, 1220, 1250, 1280, 1310, 1350, 400, 1450, 1500, 1550, 1600, 1650, 1700, 1750, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000, 3200, 3400, 3600, 3800, 4000, 4200, 4400, 4600, 4800, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 10500, 11000, 12000, 12500, 13000, 14000, 15000};
float fann[21] = {0, 0, 74, 69, 64, 59, 50, 42, 35, 30, 24, 21, 19, 0, 0,0};
float xi[21] = {0, 0, 19, 23, 27, 30, 34, 37, 39, 33, 36, 33, 30,23,17,8};
float zhos[21] = {0, 0, 6, 7, 7, 9, 13, 17, 21, 31, 33, 36, 39,56,60,52};
float sha[21] = {0, 0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 10, 11 , 20 , 22, 37};
float ji[21] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 00, 01 , 01 , 01, 03};
int kans = 0;
int pu = 100;
int lingd = 0;
int lv = 0, xiy = 200, chu = 400, shen = 500;
string aaa[100] = {"炼气前期", "炼气中期", "炼气后期", "筑基前期", "筑基中期", "筑基后期", "金丹前期", "金丹中期", "金丹后期", "元婴前期", "元婴中期", "元婴后期", "化神前期", "化神中期", "化神后期", "炼虚前期", "炼虚中期", "炼虚后期", "合体前期", "合体中期", "合体后期", "大乘前期", "大乘中期", "大乘后期", "真仙前期", "真仙中期", "真仙后期", "玄仙前期", "玄仙中期", "玄仙后期", "人仙前期", "人仙中期", "人仙后期", "地仙前期", "地仙中期", "地仙后期", "天仙前期", "天仙中期", "天仙后期", "圣人前期", "圣人中期", "圣人后期", "仙王前期", "仙王中期", "仙王后期", "小神前期", "小神半中期", "小神中期", "小神半后期", "小神后期", "小神半巅峰", "小神巅峰", "小神半圆满", "小神圆满", "半神前期", "半神半中期", "半神中期", "半神半后期", "半神后期", "半神半巅峰", "半神巅峰", "半神半圆满", "半神圆满"};
void jjj(){
system("cls");
cout<<"\n\n\n\n\n \n";
cout<<" ________________\n";
cout<<" | |\n";
cout<<" | 1招募 |\n";
cout<<" | 2退出 |\n";
cout<<" |______________|\n";
char a;
cin>>a;
if(a=='1'){
int A=rand()%100;
cout<<"\n\n\n\n\n ";
if(A<=70){
cout<<"邵宇豪 攻击+10";
gong+=10;
}
else if(A<=95){
cout<<"陈宇铭 攻击+100 生命*1.005";
gong+=100;
sheng=sheng*1.001;
}
else{
cout<<"王则羽 攻击+400 生命*1.1";
gong+=400;
sheng=sheng*1.1;
}
}
else if(a=='2'){
return;
}
system("cls");
Sleep(1000);
jjj();
}
int li() {
system("cls");
cout << "1升级灵兽 2刷新灵兽 3.退出";
int a;
cin >> a;
if (a == 1) {
if (lingd == 0) {
system("cls");
cout << "暂时没有灵兽";
Sleep(1001);
li();
} else {
cout << "目前灵兽等级:" << lingd;
cout << "升级可自动(y/n)";
cout<<"目前"<<lv<<"级";
char a;
cin >> a;
float lvv = lv, shengli, ti = 0, shenglv;
if (a == 'y') {
if (lingd == 1) {
ti = 100;
shengli = 10;
shenglv = 0.5;
} else if (lingd == 2) {
ti = 200;
shengli = 25;
shenglv = 1;
} else if (lingd == 3) {
ti = 400;
shengli = 50;
shenglv = 2;
} else if(lingd==4){
shengli = 100;
ti = 500;
shenglv = 4;
}
else{
shengli = 150;
ti = 1000;
shenglv = 8;
}
ti=ti+lv*shenglv;
for (int i = lv; i < lv+1000; i++) {
if (lingg >= ti) {
lvv++;
lingg -= ti;
ti+=shengli;
} else {
break;
}
}
system("cls");
cout << "升了" << lvv - lv << "级";
lv = lvv;
shengmax = shengmax + shenglv * lv;
gong = gong + shenglv * lv;
lian = lian + shenglv * lv;
Sleep(1000);
}
}
} else if (a == 2) {
cout << "1普通" << " 1000\n";
cout << "2稀有" << " 2000\n";
cout << "3传奇" << " 4000\n";
cout << "4神话" << " 8000\n";
cout << "5王中王" << " 16000\n";
int aa;
cin >> aa;
if (aa == 1 && lingg >= 1000) {
lingd = 1;
lingg-=1000;lv=0;
} else if (aa == 2 && lingg >= 2000 && lingd == 1) {
lingd = 2;
lingg-=2000;lv=0;
} else if (aa == 3 && lingg >= 4000 && lingd == 2) {
lingd = 3;
lingg-=4000;lv=0;
} else if (aa == 4 && lingg >= 8000 && lingd == 3) {
lingd = 4;
lingg-=8000;lv=0;
}
else if (aa == 5 && lingg >= 16000 && lingd == 4) {
lingd = 5;
lingg-=16000;
lv=0;
}
else{
system("cls");
cout<<"得先有前一等级,灵兽石得够";
Sleep(1000);
}
}
if(a==3){
return 0;
}
li();
}
void yao() {
system("cls");
cout << "1.砍树次数 2.战力 3.退出";
int n;
cin >> n;
if (n == 1) {
system("cls");
cout << " +" << kans / 5 << "桃子\n";
tao = tao + kans / 5;
kans = 0;
} else if (n == 2) {
cout << "\n\n\n\n\n " << gong * 7 + shengmax * 4 + lian * 12 << endl;
cout << " " << "攻击:" << gong << " 生命:" << sheng << endl;
cout << " " << "连击:" << lian;
Sleep(1000);
system("cls");
} else if (n == 3) {
return;
} else {
system("cls");
cout << "请输入1 2 3";
}
system("cls");
}
void cc() {
kans++;
int eeee = rand() % 30 + 100;
float a = rand() % eeee + 1;
int b = rand() % 4 + 1;
float c = 0, d;
float e = 0;
if(a>=127){
c = rand() % 800 + 400;
d = rand() % 1050 + 590;
e = rand() % 6 + 0.2 ;
cout << " 完美";
jing += 150;
}
else if (a >= 120) {
c = rand() % 600 + 200;
d = rand() % 850 + 290;
cout << " 仙品";
jing += 120;
} else if (a <= fan) {
c = rand() % 40 + 12;
d = rand() % 70 + 48;
cout << " 凡品";
} else if (a > fan && a < (fan + xia)) {
c = rand() % 65 + 20;
d = rand() % 100 + 56;
cout << " 下品";
} else if (a > (fan + xia) && a < (fan + xia + zho)) {
c = rand() % 105 + 30;
d = rand() % 165 + 65;
cout << " 中品";
} else if (a > (fan + xia + zho) && a < (fan + xia + zho + shang)) {
c = rand() % 300 + 145;
d = rand() % 535 + 170;
e = rand() % 4;
cout << " 上品";
jing += 100;
} else if (xian >= 3&&a > (fan + xia + zho + shang)) {
c = rand() % 400 + 170;
d = rand() % 650 + 225;
e = rand() % 5;
cout << " 极品";
jing += 120;
Sleep(200);
}
gong = gong + c;
a1 = c;
a2 = d;
a3 = e;
shengmax += d;
sheng = shengmax;
lian = lian + e;
cout << "\n\n\n\n\n " << "新装备\n";
cout << " " << b << "类 " << "战力加" << c * 4 + d * 7 + e * 12 << '\n';
cout << " 自动分解";
jing += 25;
Sleep(500);
return;
}
void zh() {
Sleep(1000);
while (1) {
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
g = g - gong;
int jj = rand() % 100 + 1;
if (jj > 100 - lian) {
Sleep(400);
cout << " " << gong << endl;
cout << " " << "连击\n";
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
g = g - gong;
system("cls");
Sleep(500);
}
g = g - gong;
Sleep(400);
cout << " " << gong << " " << g << endl;
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
if (g <= 0) {
Sleep(300);
cout << "恭喜成功";
ling = ling + a * 2000 + b * 200;
jing = jing + (a / 2 + 1) * 25 + (b / 2 + 1) * 3;
Sleep(1000);
b += 1;
tao += 15;
if (b >= 10 && a < 10) {
a += 1;
b = 1;
} else {
if (b >= 20 && a < 20) {
b -= 19;
a += 1;
} else if (a < 30 && b >= 30) {
b = 1;
a += 1;
}
}
lingg=lingg+a*100+b*5;
sheng = shengmax;
break;
}
Sleep(1000);
system("cls");
cout << "\n\n\n\n\n";
cout << " " << a * 1200 + b * 120 + gong / 10 << endl;
sheng = sheng - a * 1200 - b * 120 - gong / 10;
cout << " O" << " O\n";
cout << " |--" << " o-|\n";
cout << " / \\" << " / \\ \n";
Sleep(500);
system("cls");
cout << "\n\n\n\n\n";
Sleep(500);
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
system("cls");
if (sheng <= 0) {
system("cls");
Sleep(500);
cout << "你...";
Sleep(500);
cout << "死了";
Sleep(1000);
sheng = shengmax;
break;
system("cls");
}
}
}
void zao() {
cout << " ________\n";
cout << " |1.冒险|\n";
cout << " |______|\n";
cout << " __________\n";
cout << " |" << "目前关卡|\n";
cout << " |" << a << " " << b << "|\n";
cout << " |________|\n";
int c;
cin >> c;
if (c == 1) {
g = a * 6000 + b * 400;
if (a >= 5) {
g = g + a / 5 * 5000;
}
zh();
}
}
int He() {
system("cls");
cout << "\n\n\n\n\n";
cout << "渡劫需" << She[duc] << "经验\n";
cout << "目前经验" << jing;
cout << "\n目前境界" << aaa[duc];
cout << "\n目前渡劫次数" << duc;
cout << "\n是与否(y/n)";
char a;
cin >> a;
if (a == 'y') {
if (jing >= She[duc]) {
system("cls");
cout << "\n\n\n\n\n";
cout << " 渡劫中\n";
Sleep(300);
cout << " 渡劫成功\n";
Sleep(300);
duc++;
cout << " 目前境界" << aaa[duc];
gong = gong * 1.1;
shengmax = shengmax * 1.15;
lian = lian * 1.1;
jing = jing - She[duc];
Sleep(1000);
system("cls");
} else {
cout << "经验不够";
Sleep(1000);
system("cls");
}
} else {
cout << "不升级回城";
Sleep(1000);
system("cls");
}
}
void Shy() {
Sleep(1000);
sheng = shengmax;
int cishu = 0;
int ZHo;
while (1) {
cishu++;
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
g = g - gong;
int jj = rand() % 100 + 1;
if (jj > 100 - lian) {
Sleep(400);
ZHo += gong;
cout << " " << gong << endl;
cout << " " << "连击\n";
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
g = g - gong;
}
Sleep(400);
ZHo += gong;
cout << " " << gong << endl;
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " " << shengmax / 10 << endl;
sheng = sheng - shengmax / 10;
cout << " O" << " O\n";
cout << " |--" << " o-|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
if (sheng <= 0) {
break;
}
if (cishu == 3 || cishu == 6 || cishu == 9) {
system("cls");
cout << "\n\n\n\n\n 是否跳过(y/n)" << endl;
char a;
cin >> a;
if (a == 'y') {
break;
ZHo = ZHo / cishu * 10;
}
system("cls");
}
}
if (ZHo < 2000) {
cout << " +10桃子\n";
tao += 10;
} else if (ZHo >= 2000) {
cout << " +20桃子\n";
tao += 20;
} else if (ZHo >= 10000) {
cout << " +30桃子\n";
tao += 30;
} else if (ZHo >= 30000) {
cout << " +35桃子\n";
tao += 35;
} else if (ZHo >= 50000) {
cout << " +40桃子\n";
tao += 40;
} else if (ZHo >= 100000) {
cout << " +50桃子\n";
tao += 50;
} else if (ZHo >= 200000) {
cout << " +100桃子\n";
tao += 100;
}
dti++;
Sleep(1000);
system("cls");
}
void df() {
system("cls");
cout << "徐俊杰 化神前期 战力 3.3 亿 1\n";
cout << "徐瑾萱 元婴中期 战力102.3 万 2\n";
cout << "王则羽 元婴前期 战力 94.3 万 3\n";
cout << "单筱钰 元婴前期 战力 85.4 万 4\n";
cout << "徐瑾萱2 练气前期 战力 12.2 万 5\n";
cout << "退出 6\n";
int n;
cin >> n;
int gs;
int jl = 0;
if (n == 1) {
g = 81000040;
gs = 8376271;
jl = 190000;
dti -= 1;
}
if (n == 2) {
g = 400000;
gs = 10500;
jl = 10000;
dti -= 1;
}
if (n == 3) {
g = 350000;
gs = 9400;
jl = 10000;
dti -= 1;
}
if (n == 4) {
g = 340000;
gs = 9600;
jl = 4800;
dti -= 1;
}
if (n == 5) {
g = 9000;
gs = 690;
jl = 1120;
dti -= 1;
}
if (n == 6) {
return;
}
int cishu = 0;
while (1) {
cishu += 1;
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(200);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
g = g - gong;
int jj = rand() % 100 + 1;
if (jj > 100 - lian) {
Sleep(400);
cout << " " << gong << endl;
cout << " " << "连击\n";
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
g = g - gong;
}
Sleep(400);
cout << " " << gong << endl;
cout << " O " << " O\n";
cout << " |-O" << " -|\n";
cout << " / \\" << " / \\ \n";
g = g - gong;
if (g <= 0) {
ti += 1;
Sleep(300);
cout << "恭喜成功";
cout << "获得" << jl << "个灵石";
ling += jl;
sheng = shengmax;
Sleep(300);
Sleep(300);
break;
}
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
cout << " " << gs << endl;
sheng = sheng - gs;
cout << " O" << " O\n";
cout << " |--" << " o-|\n";
cout << " / \\" << " / \\ \n";
Sleep(400);
system("cls");
cout << "\n\n\n\n\n";
Sleep(400);
cout << " O" << " O\n";
cout << " |--" << " --|\n";
cout << " / \\" << " / \\\n";
system("cls");
if (sheng <= 0 || cishu >= 10) {
system("cls");
Sleep(500);
cout << "你...";
Sleep(500);
cout << "死了";
Sleep(400);
sheng = shengmax;
Sleep(300);
Sleep(300);
break;
}
}
system("cls");
df();
}
void n() {
cout << "1.挑战妖王\n挑战次数" << ti << '\n';
cout << "2.斗法\n挑战卷(/)" << dti;
Sleep(1000);
int k;
cin >> k;
if (k == 1) {
Shy();
ti -= 1;
} else if (k == 2) {
df();
}
return;
}
void cnm() {
system("cls");
cout << "目前灵石:" << ling << '\n';
cout << "目前等级:" << xian << '\n';
cout << "升级需灵石" << lingss[xian + 1] << '\n';
cout << "是否升级(y/n)" << '\n';
char a;
cin >> a;
if (a == 'y') {
if (ling >= lingss[xian]) {
xian++;
fan = fann[xian];
xia = xi[xian];
zho = zhos[xian];
shang = sha[xian];
ling -= lingss[xian];
}
} else {
cout << "不升级回城";
}
system("cls");
return;
}
int oo=0;
int qita() {
while (1) {
cout << " " << lingg << "个\n";
Sleep(100);
cout << " 1灵兽 2彩蛋 3宗门 4退出\n";
char d;
cin >> d;
if (d == '1') {
system("cls");
li();
system("cls");
}else if (d == '2'&&oo==0) {
system("cls");
oo++;
cout<<" 桃子+1000";
tao+=1000;
Sleep(1001);
system("cls");
}
else if(d=='3'){
jjj();
}
else if (d == '4') {
return 0;
}
}
qita();
}
int main() {
while (1) {
cout << " " << tao << "个\n";
Sleep(100);
cout << " 1砍 2冒险 3挑战 4升级仙树 5渡劫 6妖盟 7速砍 8其他\n";
char d;
cin >> d;
if (d == '1' && tao <= 0) {
system("cls");
cout << "没有桃子";
system("cls");
} else if (d == '1' && tao >= 1) {
cc();
Sleep(500);
tao -= 1;
ling = ling + (duc + 1) * 20;
system("cls");
} else if (d == '2') {
system("cls");
zao();
} else if (d == '3') {
n();
system("cls");
} else if (d == '4') {
cnm();
system("cls");
} else if (d == '5') {
He();
system("cls");
} else if (d == '6') {
yao();
system("cls");
} else if (d == '7' && duc >= 15 && tao >= 3 & xian >= 6) {
system("cls");
cc();
system("cls");
cout << " 刚才那件装备*3";
Sleep(1001);
shengmax = shengmax + a1 * 3;
gong = gong + a2 * 3;
lian = lian + a3 * 3;
system("cls");
tao -= 3;
jing = jing + 100;
kans += 3;
}
else if(d=='8'){
system("cls");
qita();
system("cls");
}
}
}
全部评论 1
建议起一个好标题
2024-11-28 来自 美国
1不想让他们知道
2024-11-28 来自 浙江
0你自己建个团队 然后把代码发到团队题库
2024-11-28 来自 广东
0牛
2024-12-03 来自 浙江
0
有帮助,赞一个