yee~
我是yanxinchenji,
大家心心念念的武器技能,它来啦!!!
本次更新主要更新武器技能与防沉迷系统(?
还有一些剧情与玩家水分与饥饿度
具体有哪些请大家到游戏中体验吧!
/*末日之战1:新生*/
/*作者:yanxinchenji*/
/*如需转载请标明出处!*/
/*存档功能尚在完善,末日之战2一定出!*/
/*编译环境:dev-C++*/
#include<algorithm>
#include<cmath>
#include<vector>
#include<stdio.h>
#include<iostream>
#include<string>
#include<cstring>
#include<windows.h>
#include<conio.h>
#include<cstdlib>
#include<ctime>
#include<fstream>
using namespace std;
/*****全局的*****/
long long things[10000];
/*
1 HP 2 XP 3 atk //4 episode 5 water
6 food 7 体力 8 money 9 技能 10 name
11 defense 12 jiujibao 185 存档编号
*/
int sudu=80;
int money=things[8];//重新定义一个,免得武器店和药店报错
string name;
int episodes;
string filename[10]={"空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档","空存档"};//存档名,如果没有改变则为“空存档”
/*********存档函数*********/
void w1();
void w2();
void w3();
void w4();
void w5();//一堆输出点
void w6();
void w7();
void w8();
void w9();
void r1();
void r2();
void r3();
void r4();
void r5();//一堆读入点
void r6();
void r7();
void r8();
void r9();
void mrf();//save.txt的读取
void mwf();//save.txt的存档
void Write_File();//负责调用子存档函数
void Read_File();//负责调用子读取函数
/*功能函数*/
void gs();
void g();
void hidden();
void Sout(string n);
void gotoxy(int x,int y);
int random(int n,int m);
void cls();
void about();
int zhangjieshu;
void init();
void namek();//实名注册系统
/*菊清函数*/
void juqing();
void end1();
/*游戏页面函数*/
void mianban();//定义干什么(省流)
string episode[10000];//1初出茅庐2背水一战3休养生息4凋零风暴
void welcome();
int main();
string where[10000];//1武器店2药店3家4状态
void home();
string guaiwu[123];//1小怪物2大怪物3boss4凋零风暴
void fight();
void diaolingfengbao();
void fightmmain();
void daguai();
void xiaoguai();
void boss();
/*升级(完善中)*/
const unsigned long long sj[]=//升级所需经验值
{
//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 22
0,0,100,300,500,800,1500,2122,4500,6821,8933,13382,20091,38392,59183,70003,89312,100033,110344,130953,150099,169821,193831,229183,
// 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
500000,867132,1102933,1491839,1783021,2092103,2819382,3857192,4561738,5637139,7003928,8563729,10000000,10092819,11928372,12837291,14838279,16738291,18973820,
// 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
20093819,23849577,25860392,28039281,3003920,3120392,3302910,3939201,4029102,4392018,4592018,4672103,4800928,5028102,5193029,5392010,5503921,5872810,6839201,
// 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
7293829,7495820,7888930,8139002,8873029,9567291,10093829,11293029,13930295,15930281,169302810,18392910,22839020,28739201,38392819,50009329,74892396,99837281,
// 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
103958372,113837293,136573829,157683920,175837292,183726195,200999887,218376859,239837261,254637289,267392019,289383910,309201839,339281039,358372918,381039283,
// 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
457362821,478392018,500938271,536839201,556738291,598372918,620999382,647382019,667382010,683920133,708310999,738291839,756372819,778837261,819382910,837291038,
// 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
1000000000,1093729183,1128372919,1273829102,1303928193,13283920193,135869302,142637291,144738291,145637289,149392019,151839201,1553291333,156839201,158382919,160993029,
// 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
1618392918,1638392819,1657382918,1689392819,1700900300,17100000000,1728393820,1759382910,1783929182,1800392022,1819310393,1827392913,1858392918,1889380130,1918038286,1938028284,
// 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
1958302882,1978928388,2009380291,2039209288,2048983828,20673802838,2083920788,210989382,212980838,214008000,2147483647,225903988,2500993021,2930993822,3259586666,3693829100,
// 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
4193857766,4894827188,5693028188,6839281999,7503929188,79302918383,9603929183,1059837772,12968392005,15382993005,16392159388,18396198382,21325938292,24593203928,26832392012,
//下面为程序自动生成 385
30052279053,33358029748,39696055400,43665660940,51962136518,59236835630,66937624261,77647644142,91624220087,106284095300,122226709595,139338448938,160239216278,177865530068,199209393676,227098708790,249808579669,294774124009,338990242610,376279169297,440246628077,488673757165,566861558311,657559407640,762768912862,884811938919,1008685610367,1129727883611,1276592508480,1493613234921,1642974558413,1840131505422,2189756491452,2408732140597,2745954640280,3267686021933,3855869505880,4357132541644,4967131097474,5712200762095,6797518906893,7885121931995,8673634125194,9887942902721,11173375480074,12514180537682,14891874839841,16827818569020,19015434982992,21867750230440,24054525253484,27181613536436,30715223296172,35936811256521,40967964832433,45474440964000,51386118289320,61149480764290,71544892494219,85138422068120,99611953819700,110569268739867,122731888301252,139914352663427,166498079669478,183147887636425,206957113029160,229722395462367,261883530827098,298547225142891,349300253417182,415667301566446,461390704738755,539827124544343,642394278207768,706633706028544,833827773113681,967240216811870,1092981444997413,1256928661747025,1420329387774138,1590768914307034,1877107318882300,2121131270336999,2481723586294289,2903616595964318,3223014421520393,3642006296318044,4079047051876209,4731694580176402,5441448767202862,6094422619267206,7130474464542631,8413959868160304,9423635052339540,11025653011237262,12679500962922852,15088606145878194,16899238883383578,19772109493558788,22540204822657020,26146637594282144,30330099609367288,33666410566397688,37033051623037456,42588009366493072,49827970958796896,57302166602616432,65897491593008896,74464165500100048,84144507015113056,95083292927077760,110296619795410208,125738146566767632,139569342689112064,157713357238696640,187678895114048992,213953940430015840,254605189111718848,295342019369593856,336689902081336960,370358892289470656,429616315055785984,506947251765827456,562711449460068480,669626624857481472,770070618586103680,847077680444713984,948727002098079616,1110010592454753152,1243211863549323520,1404829405810735616,1431086375945250560,1446971027840490240,1494018951557873152,1518714164038880000,1592428131188393984,1630900628817673728,1810299697987617792,1824965224029160192,1877743262415855616,1974937311041138432,2007712974518568192,2104325350214072320,2277593219013369088,2389212896748011520,2402552078753502208,2442051050667406336,2526209225503725568,2644886891827077120,2752031650881759744,2925328324759292928,3082952541741774848,3114801490694014464,3272962213933260800,3448520616728823808,3562378621596667904,3614580665056815104,3715541270040010240,3829626753671020544,3881950815100641792,4066119147758477312,4100812022884206080,4264982704384962048,4393977614875269632,4552320047186110976,4729663571374253056,4748539979845751808,4817922013471148032,4978958553478782976,5037722159087005696,5105887941592544256,5153669446809650176,5158992743549910016,5216864161138915328,5313692663972759552,5476127048895844352,5614437613770797056,5790912181349713920,5874510199086896128,6009584831237059584,6108877048861882368,6286137713971544064,6369582544521513984,6402682722514263040,6504774754431067136,6666897655207197696,6846854075068702720,6883076441892843520,6971175851971602432,7024803267562148864,7173881272107077632,7225138449090473984,7346607341013281792,7490330458986493952,7651300351116490752,7800145196587322368,7863362331652847616,8014695660294729728,8134268892447566848,8247604581892128768,8334495277132959744,8394519971509001216,8462948123097688064,8525747737633649664,8598595290495365120,8756588869792719872,8788140778443200512,8902971217834443776,8934328782589128704,9084111032814346240,
};
/*凋零风暴学习string*/
const string study[5]=
{
"凋零风暴的血量与攻击力都很高,没事不要惹它","凋零风暴的防御力很低,一把铁剑就能干过它","凋零风暴的弱点是下半身,建议用刺击与砍击","先把防御力提升到1000再打凋零风暴","凋零风暴被打完半血就无法再用弓箭攻击了"
};
//凋零风暴剧情部分
const string nsStory[9]=
{
//Nither
"哼哼,这些年来还没有几个人打过我的,怎么又来了一个送死的蠢货",
//1
"好,那就来吧!",
//2
"哼,你算老几啊,能打的过我吗?",
"告诉你吧,有创世神的帮助,我是不会死的!!!",
"好啊,但是你这个游戏也太危险了,一不小心你就会死的哦~",
//Player
//2
"?敢说我是蠢货?看看我打不打的过你就完了!",
"那又怎么样!我可是有备而来!",
//1
"真正的勇士从来都是不说废话的!来吧!",
//以下请等待2.12800.315
"吗"
};
/********函数定义********/
void mrf()//储存存档名称的存档
{
ifstream fin("save.YXCJ");
for(int i=1;i<=9;i++)
fin>>filename[i];
fin.close();
}
void mwf()
{
ofstream fout("save.YXCJ");
for(int i=1;i<=9;i++)
fout<<filename[i]<<'\n';
fout.close();
}
void w1()
{
ofstream fout("file2.b");
fout<<name<<endl;
for(int i=0;i<2000;i++)
fout<<things[i]<<' ';
fout<<sudu<<'\n';
fout<<money<<endl;
fout<<episodes<<endl;
fout.close();
}
void w2()
{
ofstream fout("file2.b");
fout<<name<<endl;
for(int i=0;i<2000;i++)
fout<<things[i]<<' ';
fout<<sudu<<'\n';
fout<<money<<endl;
fout<<episodes<<endl;
fout.close();
}
void w3()
{
of