system("cls");
cout<<"以下为你背包中可装备的物品。\n"<<endl;
for(int i=1;i<=1000;i++){
if(bag[i]!=0&&item[i].type!=0){
cout<<"编号 "<<i<<" "<<itemname[i]<<" 数量:"<<bag[i]<<" 个"<<endl;
}
else continue;
}
cout<<endl;
cout<<"当前你装备头盔:"<<armor1name[armor1]<<"(+"<<armor1defense[armor1]<<")"<<endl;
cout<<"当前你装备胸甲:"<<armor2name[armor2]<<"(+"<<armor2defense[armor2]<<")"<<endl;
cout<<"当前你装备护腿:"<<armor3name[armor3]<<"(+"<<armor3defense[armor3]<<")"<<endl;
cout<<"当前你装备靴子:"<<armor4name[armor4]<<"(+"<<armor4defense[armor4]<<")"<<endl;
cout<<"当前你主手装备:"<<weapon1name[weapon1]<<"(+"<<weapon1attack[weapon1]<<")"<<endl;
cout<<"当前你副手装备:"<<weapon2name[weapon2]<<"(+"<<weapon2attack[weapon2]<<")"<<endl;
cout<<"当前你使用斧子:"<<tool1name[tool1]<<endl;
cout<<"当前你使用稿子:"<<tool2name[tool2]<<endl;
sc(6);
if(armor1==4&&armor2==4&&armor3==4&&armor4==4){//铁套套装奖励
cout<<"套装奖励:防御+2"<<endl;
}
if(armor1==5&&armor2==5&&armor3==5&&armor4==5){//钻石套套装奖励
cout<<"套装奖励:防御+3"<<endl;
}
if(armor1==6&&armor2==6&&armor3==6&&armor4==6){//下界合金套套装奖励
cout<<"套装奖励:防御+4"<<endl;
}
if(armor1==7&&armor2==7&&armor3==7&&armor4==7){//流浪者套套装奖励
cout<<"套装奖励:攻击+1"<<endl;
}
if(armor1==8&&armor2==8&&armor3==8&&armor4==8){//远古套套装奖励
cout<<"套装奖励:防御+6"<<endl;
}
if(armor1==10&&armor2==10&&armor3==10&&armor4==10){//寒冰套套装奖励
cout<<"套装奖励:魔力+5"<<endl;
}
if(armor1==12&&armor2==12&&armor3==12&&armor4==12){//沙尘套套装奖励
cout<<"套装奖励:暴击率+15%"<<endl;
}
if(armor1==14&&armor2==14&&armor3==14&&armor4==14){//熔火套套装奖励
cout<<"套装奖励:获得发射火球的能力"<<endl;
cout<<"熔火弓使敌人着火的概率+20%"<<endl;
}
sc(7);
SetConsoleTitle("--装备--");
cout<<endl<<"0,退出 1,卸下武器 2,装备武器"<<endl;
cin>>choose;
fflush(stdin);
switch(choose){
case 0:
return;
break;
case 1://卸下装备
cout<<"你要卸下?"<<endl;
cout<<"0,返回 1,头盔 2,胸甲 3,护腿 4,靴子 5,主手 6,副手 7,斧子 8,稿子"<<endl;
cin>>choose;
switch(choose){
case 5://主手
if(weapon1==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==1&&item[i].level==weapon1){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
weapon1=0;
break;
case 6://副手
if(weapon2==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==2&&item[i].level==weapon2){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
weapon2=0;
break;
case 7://斧子
if(tool1==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==3&&item[i].level==tool1){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
tool1=0;
break;
case 8://稿子
if(tool2==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==4&&item[i].level==tool2){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
tool2=0;
break;
case 1://头
if(armor1==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==5&&item[i].level==armor1){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
armor1=0;
break;
case 2://甲
if(armor2==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==6&&item[i].level==armor2){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
armor2=0;
break;
case 3://腿
if(armor3==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==7&&item[i].level==armor3){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
armor3=0;
break;
case 4://鞋
if(armor4==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
for(int i=1;i<=1000;i++){
if(item[i].type==8&&item[i].level==armor4){
bag[i]++;
cout<<"已卸下 "<<item[i].itemname<<" !"<<endl;
break;
}
}
armor4=0;
break;
}
getch();
weapon();
break;
case 2: //装备武器
cout<<"输入你背包中的武器/工具/装备编号以更换装备,不要乱输其他物品的编号!"<<endl<<endl;
cin>>choose;
if(bag[choose]<1){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
if(item[choose].type==0){
cout<<"请勿乱输!"<<endl;
getch();
weapon();
return;
}
bag[choose]--;
cout<<"已装备 "<<item[choose].itemname<<" !"<<endl;
switch(item[choose].type){
case 1://主手
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==weapon1){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
weapon1=item[choose].level;
break;
case 2://副手
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==weapon2){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
weapon2=item[choose].level;
break;
case 3://斧子
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==tool1){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
tool1=item[choose].level;
break;
case 4://稿子
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==tool2){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
tool2=item[choose].level;
break;
case 5://头
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==armor1){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
armor1=item[choose].level;
break;
case 6://甲
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==armor2){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
armor2=item[choose].level;
break;
case 7://腿
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==armor3){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
armor3=item[choose].level;
break;
case 8://鞋
for(int i=1;i<=1000;i++){
if(item[i].type==item[choose].type&&item[i].level==armor4){
cout<<"已卸下 "<<item[i].itemname<<endl;
bag[i]++;
break;
}
}
armor4=item[choose].level;
break;
}
getch();
weapon();
return;
default:
cin.clear();
break;
}
}
void build(){//建造
SetConsoleTitle("--建造--");
system("cls");
cout<<"输入编号以建造/放置建筑。"<<endl<<endl;
if(bag[9]>=1) cout<<"编号1 建造 工作台 需要 工作台 x1"<<endl;
if(bag[18]>=1) cout<<"编号2 建造 熔炉 需要 熔炉 x1"<<endl;
if(bag[54]>=1) cout<<"编号3 建造 锻造台 需要 锻造台 x1"<<endl;
if(bag[65]>=10) cout<<"编号4 建造 地狱传送门 需要 黑曜石 x10"<<endl;
if(bag[127]>=1) cout<<"编号5 建造 中级工作台 需要 中级工作台 x1"<<endl;
cout<<"\n输入 0 退出"<<endl;
cin>>choose;
switch(choose){
case 0:
return;
break;
case 1:
if(bag[9]<1){
cout<<"请勿乱输!"<<endl;
getch();
build();
}
if(crafttable){
cout<<"你已经建造过 工作台 了!"<<endl;
getch();
build();
}
bag[9]-=1;
cout<<"建造成功!现在可合成更多物品!"<<endl;
crafttable=true;
getch();
build();
break;
case 2:
if(bag[18]<1){
cout<<"请勿乱输!"<<endl;
getch();
build();
}
if(furnace){
cout<<"你已经建造过 熔炉 了!"<<endl;
getch();
build();
}
bag[18]-=1;
cout<<"建造成功!现在可熔炼矿石!(在<合成>处熔炼,作者懒得多写一个函数)"<<endl;
furnace=true;
getch();
build();
break;
case 3:
if(bag[54]<1){
cout<<"请勿乱输!"<<endl;
getch();
build();
}
if(smithtable){
cout<<"你已经建造过 锻造台 了!"<<endl;
getch();
build();
}
bag[54]-=1;
cout<<"建造成功!现在可升级装备!(在<合成>处升级,作者懒得多写一个函数)"<<endl;
smithtable=true;
getch();
build();
break;
case 4:
if(bag[65]<10){
cout<<"请勿乱输!"<<endl;
getch();
build();
}
if(nether){
cout<<"你已经建造过 地狱传送门 了!"<<endl;
getch();
build();
}
bag[65]-=10;
cout<<"建造成功!现在可进入地狱!......"<<endl;
nether=true;
getch();
build();
break;
case 5:
if(bag[127]<1){
cout<<"请勿乱输!"<<endl;
getch();
build();
}
if(crafttable2){
cout<<"你已经建造过 中级工作台 了!"<<endl;
getch();
build();
}
bag[127]-=1;
cout<<"建造成功!现在可合成更多高级物品!"<<endl;
crafttable2=true;
getch();
build();
break;
}
return;
}
void changelog(){//更新日志
system("cls");
//吾日三省吾身:注释bag[i]=100了吗?注释skill[i]=1了吗?你更新了吗?
//最后这句有点难。
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n不要再往上翻了!没有彩蛋了!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n你真是一个无聊的家伙!告诉你一个秘密,作者很帅!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n真的有人会看这些吗?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n你看到了这里!...你真无聊!!!"<<endl<<endl;;
//idk what did i want to express
cout<<"2024/x/x 1.12.6:"<<endl;
cout<<"1,调整了流浪商人货物的价格"<<endl;
cout<<"2,加入“治疗”技能 - 未实装"<<endl;
cout<<"3,补充了物品描述"<<endl;
cout<<"4,对查看物品界面进行了优化调整"<<endl;
cout<<"5,加入查看物品合成配方的功能!"<<endl;
cout<<"6,修正了某些愚蠢的配方错误"<<endl;
cout<<"7,在降级界面增加了提示"<<endl;
cout<<"8,优化了宽松状态下的显示界面"<<endl;
cout<<"9,加入“冥想术”技能 - 未实装"<<endl;
cout<<"10,在*&%/功能中加入免责声明以及确认"<<endl;
cout<<"11,修改了一些文字。"<<endl;
cout<<endl<<endl;
cout<<"2024/3/1 1.12.5:"<<endl;
cout<<"1,修复了商店物品编号重叠少卖东西的bug"<<endl;
cout<<"2,将一些被动技能的触发时刻修改"<<endl;
cout<<"3,修改了《蔡JK传奇》的网址!(这算什么更新?"<<endl;
cout<<"4,修复了魔力药水无法在背包使用的bug"<<endl;
cout<<"5,修复了反弹技能似乎不对敌人造成伤害的bug,不过没人发现)"<<endl;
cout<<"6,修改了战斗函数中造成伤害的代码,现在连击,闪避等被动技能可以在各种情况下触发,同时减少了代码"<<endl;
cout<<"7,减少了代码量"<<endl;
cout<<"8,修改了技能升级界面ui"<<endl;
cout<<"9,加入降级功能!允许玩家将已不再需要使用的技能转换为经验球,或减少魔力消耗等其他作用"<<endl;
cout<<"10,修复了关于读取存档的小问题。总之1号存档一般不会有问题,23号可能作者会出小纰漏。"<<endl;
cout<<"11,将合成远古稿、远古斧、寒冰稿、寒冰斧消耗的木棍数修正为2(发现有些抽象"<<endl;
cout<<"12,修改了在雪地中被偷袭致死后不会返回村庄的小问题"<<endl;
cout<<"13,加入新副本 沙漠神殿"<<endl;
cout<<"14,加入新技能 “冲刺”"<<endl;
cout<<"15,加入了 沙尘套装"<<endl;
cout<<"16,加入了雪地商店"<<endl;
cout<<"17,修复了侦察的bug,尽管压根没人用这个技能()也没人发现"<<endl;
cout<<"18,反弹,疯狂的开关不再消耗一回合"<<endl;
cout<<"19,优化战斗"<<endl;
cout<<"20,现在熔火弓攻击有概率使敌人着火"<<endl;
cout<<endl;
cout<<"2023/12/17 1.12.4:"<<endl;
cout<<"1,应hqx要求在战斗判断了一下无效输入并返回。"<<endl;
cout<<"2,加入新技能“空气斩”,但没实装"<<endl;//已实装
cout<<"3,战斗把之前没判定的被动技能重新判定了下。"<<endl;
cout<<"4,考虑到玩家体验和游戏流程,特将挖矿砍树的时间缩减1/3。(快说我良心!"<<endl;
cout<<"5,降低了矿洞挖矿时遇到怪物的概率 (一半"<<endl;
cout<<"6,应hjq要求减少了副本冷却,改为半小时 - 满意了吧"<<endl;
cout<<"7,对恶霸村民再次削弱,真的有人会打不过吗?"<<endl;
cout<<"8,某些人干了太多坏事,改了一下信誉,现在刷信誉更快了,掉信誉稍微少了点。"<<endl;
cout<<"9,喝药不需要消耗回合力"<<endl;
cout<<"10,现在可以在背包内喝药了"<<endl;
cout<<"11,附魔师可以降级压缩经验球了"<<endl;
cout<<"12,降低了魔力护盾的冷却"<<endl;
cout<<"13,加入了一个抽象的随机名字"<<endl;
cout<<"14,修改了部分装备名"<<endl;
cout<<"15,魔力护盾不消耗回合"<<endl;
cout<<"16,加入了下界要塞"<<endl;
cout<<"17,金苹果可以吃了(所以之前都没有用?!"<<endl;
cout<<"18,修了保存存档的一个小bug"<<endl;
cout<<"19,加入熔火套装"<<endl;
cout<<"20,修复了技能冷却不减少的bug,原因是以前重写技能系统的时候忘修改了..."<<endl;
cout<<"21,修复了无效使用技能仍冷却且消耗魔力的bug"<<endl;
cout<<"22,增加了在丛林冒险遇到丛林神庙的概率"<<endl;
cout<<"23,在战斗时显示技能已冷却回合"<<endl;
cout<<"24,修复了流浪商人力量药出售失败的bug,因为不小心多打了个0..."<<endl;
cout<<"25,降低了骷髅掉落箭的数量"<<endl;
cout<<"26,修改了新手教程的地址(其实就去掉了ac.)"<<endl;
cout<<"27,削弱了寒冰洞窟里的士兵"<<endl;
cout<<"28,略微增强寒冰洞窟中的敌怪"<<endl;
cout<<"29,修复了寒冰洞窟副本结束后仍冒险的bug"<<endl;
cout<<"30,对部分以前没有作颜色修改的地方进行调整"<<endl;
cout<<"31,略微削弱长弓挑战者"<<endl;
cout<<"32,加强三连击"<<endl;
cout<<"33,修改丛林神庙能二刷boss的bug"<<endl;
cout<<"34,增加丛林神庙敌怪技能书的掉率"<<endl;
cout<<"35,加入《蔡JK传奇》的入口"<<endl;
cout<<endl;
cout<<"2023/10/13 1.12.3:"<<endl;
cout<<"1,修复了健康技能的判定"<<endl;
cout<<"2,修复了战斗时使用技能颜色显示错误的bug"<<endl;
cout<<"3,改了开头?"<<endl;
cout<<"4,加入了一个也许勉强算副本的东西...?雪地探险!"<<endl;
cout<<"5,简单修了一下代码数组格式(非游戏内容"<<endl;
cout<<"6,修了掉落物闪退的bug,rand()%0警钟敲烂"<<endl;
cout<<"7,修改附魔师界面。"<<endl;
cout<<"8,修复地狱挖矿的bug。"<<endl;
cout<<"9,修复副本被丛林守护者击败不死的bug。"<<endl;
cout<<"10,调整了部分Sleep()的时长和部分掉落物。"<<endl;
cout<<"11,商店可一次性出售多份物品"<<endl;
cout<<"12,钻石苹果能吃了。"<<endl;
cout<<"13,修改了流浪商人的代码以及价格。"<<endl;
cout<<"14,加入了寒冰装备!"<<endl;
cout<<"15,修改了雪地部分敌怪的掉落物。"<<endl;
cout<<"16,冰冻的升级又变得更难啦!哈哈哈哈哈哈("<<endl;
cout<<"17,加入套装奖励机制!"<<endl;
cout<<"18,加入暴击机制。"<<endl;
cout<<"19,加入设置功能,可以调整显示界面。设置不支持保存(即存档),因为改了旧存档就不能用了"<<endl;
cout<<"但可以每次读取后都设置一次("<<endl;
cout<<"20,现在战斗时执行无效操作不会跳过回合了,可以重新操作"<<endl;
cout<<"21,加入自动保存功能。可以在设置开启,防止各种原因丢失存档,"<<endl;
cout<<endl;
cout<<"1.12.2:"<<endl;
cout<<"1,修复了上个版本更新日志版本号标错的bug(((似乎我之前也标错过((("<<endl;
cout<<"2,修复了关于技能“魔力精通”与“力量”升级所需物品错误的bug,原因是作者CtrlV时忘改下标了("<<endl;
cout<<"3,修复了技能“力量”技能简介显示错误的bug,原因还是我忘改下标了(((但实战效果不变。"<<endl;
cout<<"4,为大量贵物(划)怪物加入技能书掉落物,但概率较低(约为2%左右)。越强的怪掉率越高。"<<endl;
cout<<"5,优化了技能升级界面,现在你在升级时会显示你所有的经验球数量和当前等级"<<endl;
cout<<"6,新增技能“魔力精通”。" <<endl;
cout<<"7,新增丛林商店。" <<endl;
cout<<"8,新增技能“闪避”。"<<endl;
cout<<"9,修改技能界面,现显示是否为被动技能"<<endl;
cout<<"10,技能界面现在五颜六色("<<endl;
cout<<"11,新增技能“连击”。"<<endl;
cout<<"12,战斗技能界面修改"<<endl;
cout<<"13,商店物品价格调整"<<endl;
cout<<"14,商店货物调整"<<endl;
cout<<"15,新增技能“健康”。"<<endl;
cout<<"PS:代码里补了很多部分的注释,虽然我自己其实不用看"<<endl; //看你*呢
cout<<"事实上,如冰冻这样的技能升级要求不可能如此简单。只是我没有写更多物品。\n所以请做好以后版本升级要求及其苛刻的准备(你这个版本能拿到本来就不合理\n甚至于雪怪本身的强度就不应该掉落冰冻技能书\n只是因为技能都写好了不实加进游戏不太好("<<endl;
cout<<endl;
cout<<"1.12.1:"<<endl;
cout<<"1,修改了丛林守护者boss技能优先级"<<endl;
cout<<"2,修复了丛林守护者无掉落物的bug(其实是忘写了((("<<endl;
cout<<"3,加入了出售功能,现在可以出售物品了"<<endl;
cout<<"4,加入猪灵"<<endl;
cout<<"5,修复装备需点击两次的小问题"<<endl;
cout<<"6,地狱挖矿更新,加入更多矿石"<<endl;
cout<<"7,修复了商店不显示购买物品的bug"<<endl;
cout<<"8,稍微修改了掉落物部分的代码"<<endl;
cout<<"9,修复了狙击者·弓无法装备的bug"<<endl;
cout<<"10,修改了流浪者的掉落物"<<endl;
cout<<"11,修复了在某些地方能进入不存在的商店的bug"<<endl;
cout<<"12,修复了挖青金石掉落物错误的bug"<<endl;
cout<<"13,修改技能界面"<<endl;
cout<<"14,修改了背包查看信息的功能,现在你必须拥有此物品才能查看信息"<<endl;
cout<<"15,修复了钻石苹果不能吃的bug,现在在背包交互"<<endl;
cout<<"16,加入了杀死极域的功能(?"<<endl;
cout<<"17,修改技能界面ui"<<endl;
cout<<"18,当你没有压缩经验球时会隐藏界面"<<endl;
cout<<"19,修复了旅馆价格默认最低的bug"<<endl;
cout<<"20,增加狙击骷髅的经验和初次逃跑率"<<endl;
cout<<"21,技能重写完毕。"<<endl;
cout<<endl;
cout<<"1.12.0:"<<endl;
cout<<"1,修改了部分介绍,错别字"<<endl;
cout<<"2,修复了某些文本闪烁过快看不清的问题"<<endl;
cout<<"3,增加一些标题"<<endl;
cout<<"4,修复了流浪商人出售的稿子送货不正确的问题"<<endl;
cout<<"5,加入了更多tips"<<endl;
cout<<"6,略微下调“流浪者之钝稿”的挖掘速度"<<endl;
cout<<"7,略微上调“流浪者之重斧”的挖掘速度"<<endl;
cout<<"8,增加两个存档,现允许保存三个角色的进度"<<endl;
cout<<"9,增加在村庄冒险时遇见抽奖机的概率"<<endl;
cout<<"10,修改了旅行家任务出错的bug"<<endl;
cout<<"11,提升了雪怪掉落冰冻技能书的概率"<<endl;
cout<<"12,加入了丛林神庙,第一个副本!"<<endl;
cout<<"13,加入了挖原石的上限,目的是为了防止挂机刷绿宝石。("<<endl;
cout<<"14,重做了装备与背包,现在更方便,实际上是重写了物品。\n值得高兴的是以前写的答辩代码删掉了。\n(以前的装备代码依托答辩"<<endl;
cout<<"15,重写了合成代码,现在编号按顺序,而且理论上比以前方便。\n(实际上没什么变化,但是代码长度大大减小了)" <<endl;
cout<<"16,重写了商店代码,但没有添加新内容。预计于下个版本添加,目前变化仅是减少了代码长度"<<endl<<"加入一个很臭的彩蛋。"<<endl<<"此版本很多预计内容没有写完,放出来只是因为我太久没有更新了()\n更多内容还请期待1.12.1!"<<endl;
cout<<endl;
cout<<"1.11.4:"<<endl;
cout<<"-1,加入了负数标号("<<endl;
cout<<"0,加入了一个...tips?"<<endl;
cout<<"1,调整了恶霸村民的数值,使玩家在初期与恶霸村民战斗时能保持较多血量。"<<endl;
cout<<"2,战斗界面增加了跳过回合选项(但是没啥用)"<<endl;
cout<<"3,完善了(一小部分)背包查看物品信息的功能"<<endl;
cout<<"4,修复了未持有该物品也可查看此物品信息的bug"<<endl;
cout<<"4,修复了战斗界面顺序错误**的**"<<endl;
cout<<"5,增加了新的装备"<<endl;
cout<<"6,再次增加敌人掉落物,同时修改敌人掉落物机制,现在掉落物可重复且概率数量更高更随机。"<<endl;
cout<<"7,增加了1.11.3的彩蛋的出现概率(指概率大了10倍\n但是,不注意可能也发现不了..."<<endl;
cout<<"8,修复了玩家可能在旅馆零元睡(?)的bug"<<endl;
cout<<"9,修复了玩家可以无限喝药水的bug"<<endl;
cout<<"10,修复了治疗药水最高仅恢复 4 点血量的bug"<<endl;
cout<<"11,加入更多药水"<<endl;
cout<<"12,修改了新手教程的网址,更新了新手教程"<<endl;
cout<<"13,优化了以前写的lj代码"<<endl;
cout<<"14,优化了剧情,世界观等内容"<<endl;
cout<<"15,修复了速度药水的bug"<<endl;
cout<<"16,在村庄加入了一台抽奖机,可以抽出各种****"<<endl;
cout<<"17,增加雪地冒险内容"<<endl;
cout<<"18,增加洞穴冒险内容"<<endl;
cout<<"19,加入了末影人"<<endl;
cout<<"20,增加地狱冒险内容"<<endl;
cout<<"21,9,000 行纪念!"<<endl;//屎(
cout<<"22,下个版本预计会增加很多内容,可以试图查看本版本新增的代码预测()"<<endl;
cout<<"可能会加入死亡惩罚\n预计加入副本\n更新主线内容\n新增装备\n新增boss(真正意义上的)\n更多的技能?"<<endl;
cout<<endl;
cout<<"1.11.3:"<<endl;
cout<<"1,修复了物品名称错位bug(虽然这个bug正常遇不到"<<endl;
cout<<"2,修复了作者写错版本号的bug((("<<endl;
cout<<"3,修复了作者写更新日志总要在后面加括号的bug("<<endl;
cout<<"4,经证实,上条bug并未被完全修复("<<endl;
cout<<"5,调整了技能界面,现在更美观(个人认为"<<endl;
cout<<"6,调整了强♂壮僵尸的数值,现在ta会使用重♂击技能"<<endl;
cout<<"7,调整了装备界面,现在显示装备为你带来的防御"<<endl;
cout<<"8,调整了商店的price"<<endl;
cout<<"9,调整了作♂者的更新日志,现在ta会标序♂号"<<endl;
sc(6|2);
cout<<"10,调整了颜色"<<endl;
sc(7);
cout<<"11,我们发现似乎与怪物战斗只能获得一些微不足道的经验和绿宝石。而且敌人的AI单一。\n这就导致战斗的收益与损耗是不成正比的,玩法也单一。\n且前期玩家没有强力装备时难以获胜\n在挖矿后做出装备了敌人又太弱♂了。\n所以,增加了敌人的掉落物,现在可能会掉落武器。\n同时略微上调敌人属性。"<<endl;
cout<<"12,调整了村庄旅馆休息的价格,但愿能使玩家更热衷于战斗=)"<<endl;
cout<<"13,调整了存读档的范围,原因是物品的数量超过了我们先前的预期(指两个月前的预期)((("<<endl;
cout<<"14,修复了作者写错序号的bug"<<endl;
cout<<"15,增加了新手教程!但愿能有更多人玩...会吗?"<<endl;
cout<<"16,增加了出售功能,现在可以出售物品给流浪商人。"<<endl;
cout<<"17,增加附魔师的戏份()现在可以提升你的装备技能上限。"<<endl;
cout<<"18,删去一个没有用的功能"<<endl;
cout<<"19,本版本 游戏突破 8,000 行!"<<endl;
cout<<"20,加入一个彩蛋......只有运气好的人能碰到!"<<endl;
cout<<"21,修改了一些小细节..."<<endl;
cout<<endl;
cout<<"1.11.2:"<<endl;
cout<<"修复了附魔师提升魔力无限次数的bug"<<endl;
cout<<"修复了**商人不卖穿云箭技能书的bug"<<endl;
cout<<"修复了魔力保存错误的bug"<<endl;
cout<<"修复了附魔师不显示绿宝石的问题"<<endl;
cout<<"修复了商店的某些问题"<<endl;
sc(4|1);
cout<<"调整了颜色"<<endl;
sc(7);
cout<<"增加了**商人的货物,现有流浪者套装出售"<<endl;
cout<<"调整了入侵敌人的数据"<<endl;
cout<<"调整了僵尸,骷髅的敌怪的数据"<<endl;
cout<<endl;
cout<<"1.11.1:"<<endl;
cout<<"修复了作者不认真写更新日志的bug"<<endl;//如修
cout<<"修复了作者不上传HFOJ的bug"<<endl;
cout<<"修复了作者随便糊弄在更新日志上夹带私货的bug(也可能没完全修好(("<<endl;
cout<<"修复了合成时材料不足也能合成导致负数的bug"<<endl;
cout<<"修复了无工作台锻造台熔炉也可合成的bug"<<endl;
cout<<"修复了地狱挖矿失败还tm退出不了的bug"<<endl;
cout<<"修复了一堆作者的忘记自己修复了的bug"<<endl;
cout<<"修复了部分显示问题"<<endl;
cout<<"修改了读存档系统"<<endl;
cout<<"调整了矿物,树木硬度,现在时间不那么长但也不那么短"<<endl;
cout<<"修复了作者脑子经常发热的bug"<<endl;
cout<<"P.S.本次更新加入了一个彩蛋......"<<endl;
cout<<endl;
cout<<"1.11.0:"<<endl;
color("爷会颜色辣!",1,7);
cout<<endl<<endl;
cout<<"1.10.9:"<<endl;
cout<<"stO DEV-C++ Orz"<<endl;
cout<<endl;
cout<<"1.10.8:"<<endl;
cout<<"修bug加了副手!!!!"<<endl;
cout<<endl;
cout<<"1.10.7:"<<endl;
cout<<"修bug加内容"<<endl;
cout<<endl;
cout<<"1.10.6:"<<endl;
cout<<"加入技能上限"<<endl;
cout<<endl;
cout<<"1.10.5:"<<endl;
cout<<"懒得写"<<endl;
cout<<endl;
cout<<"1.10.4:"<<endl;
cout<<"修复了bug"<<endl;
cout<<"完善大量内容"<<endl;
cout<<endl;
cout<<"1.10.3:"<<endl;
cout<<"修复了bug"<<endl;
cout<<"完善技能"<<endl;
cout<<endl;
cout<<"1.10.2:"<<endl;
cout<<"修复了bug"<<endl;
cout<<"优化了游戏体验,完善技能"<<endl;
cout<<endl;
cout<<"1.10.1:"<<endl;
cout<<"修复了bug"<<endl;
cout<<endl;
cout<<"1.10.0:"<<endl;//技能更新
cout<<"增加了技能!"<<endl;
cout<<endl;
cout<<"1.9.4:"<<endl;
cout<<"增加了防机房朋友作弊的小手段(但还是可以)"<<endl;
cout<<"修复了合成的bug"<<endl;
cout<<"又双叒修复了关于存档的bug"<<endl;
cout<<endl;
cout<<"1.9.3:"<<endl;
cout<<"优化了游戏体验"<<endl;
cout<<"增加药水!"<<endl;
cout<<"修复了关于存档的严重bug"<<endl;
cout<<endl;
cout<<"1.9.2:"<<endl;
cout<<"修复了已知bug"<<endl;
cout<<endl;
cout<<"1.9.1:"<<endl;
cout<<"新增存读档功能!!!"<<endl;
cout<<endl;
cout<<"1.9.0:"<<endl;
cout<<"增加了黑曜石和下界合金系列物品,增加地狱传送门"<<endl;
cout<<"增加大量和下界合金有关的合成配方"<<endl;
cout<<"增加商店(1.9.0了你才搞商店???)"<<endl;
cout<<endl;
cout<<"1.8.4:"<<endl;
cout<<"修复了装备的bug"<<endl;
cout<<"优化文本显示(say)"<<endl;
cout<<endl;
cout<<"1.8.3:"<<endl;
cout<<"修复了一个一个非常严重的输入字符就卡死的bug(喜)"<<endl;
cout<<endl;
cout<<"1.8.2:"<<endl;
cout<<"合成配方+"<<endl;
cout<<"冒险内容+"<<endl;
cout<<endl;
cout<<"1.8.1:"<<endl;
cout<<"合成配方增加"<<endl;
cout<<"入侵修改"<<endl;
cout<<endl;
cout<<"1.8.0:"<<endl;
cout<<"村庄冒险内容修改"<<endl;
cout<<"信誉值修改"<<endl;
cout<<"增加任务"<<endl;
cout<<"增加Notch雕像,亡灵入侵"<<endl;
cout<<endl;
cout<<"1.7.4:"<<endl;
cout<<"合成完成部分配方"<<endl;
cout<<"平原冒险内容增加"<<endl;
cout<<endl;
cout<<"1.7.3:"<<endl;
cout<<"装备系统增加护甲"<<endl;
cout<<"增加合成配方"<<endl;
cout<<endl;
cout<<"1.7.2:"<<endl;
cout<<"增加了玩家开始不输入1的弱智功能(划掉)"<<endl;
cout<<"增加了一个无关紧要的升级计算系统"<<endl;
cout<<endl;
cout<<"1.7.1:"<<endl;
cout<<"装备系统界面优化,bug修复"<<endl;
cout<<""<<endl;
cout<<endl;
cout<<"1.7.0:"<<endl;
cout<<"增加装备系统"<<endl;
cout<<"增加矿物,配方,冒险内容"<<endl;
cout<<endl;
cout<<"1.6.1:"<<endl;
cout<<"增加了砍树掉苹果的功能"<<endl;
cout<<"增加冒险内容"<<endl;
cout<<endl;
cout<<"1.6.0:"<<endl;
cout<<"洞穴挖矿增加挖矿物功能"<<endl;
cout<<"增加大量合成配方"<<endl;
cout<<"剧情体验优化"<<endl;
cout<<"优化了敌怪AI,现分为近战AI和远程AI"<<endl;
cout<<endl;
cout<<"1.5.2:"<<endl;
cout<<"增加了信誉设定"<<endl;
cout<<"修改了村庄部分的冒险内容"<<endl;
cout<<endl;
cout<<"1.5.1:"<<endl;
cout<<"合成完成部分配方"<<endl;
cout<<"增加了村庄部分冒险更新"<<endl;
cout<<"增加了查看物品详情的功能"<<endl;
cout<<endl;
cout<<"1.5.0:"<<endl;
cout<<"增加查看物品详细信息的功能"<<endl;
cout<<"建造完成部分内容"<<endl;
cout<<"添加了更多与石头有关的合成配方"<<endl;
cout<<endl;
cout<<"1.4.0:"<<endl;
cout<<"挖矿完成挖石头"<<endl;
cout<<"修改了村庄部分冒险内容"<<endl;
cout<<endl;
cout<<"1.3.1:"<<endl;
cout<<"合成完成部分配方"<<endl;
cout<<endl;
cout<<"1.3.0:"<<endl;
cout<<"合成完成部分配方"<<endl;
cout<<"战斗系统,敌怪AI(弱智AI)完成"<<endl;//确实
cout<<endl;
cout<<"1.2.0:"<<endl;
cout<<"村庄部分冒险更新"<<endl;
cout<<"背包完成"<<endl;
cout<<endl;
cout<<"1.1.0:"<<endl;
cout<<"砍树完成"<<endl;
cout<<"优化了界面"<<endl;
cout<<endl;
cout<<"1.0.0:"<<endl;
cout<<"游戏基本内容确定"<<endl;
cout<<"前进,剧情完成"<<endl;
cout<<endl;
cout<<"输入任意键继续..."<<endl;
getch();
}
void save(){//存档
switch(saving){
case 0:
return;
break;
case 1:{
ofstream outfile("你的MINECRAFT存档.txt",std::ios::trunc|ios::binary|ios::in|ios::out);
outfile<<ver<<" "<<name<<" "<<" "<<place<<" "<<maxhealth<<" "<<health<<" "<<basicmagic<<" "<<magic<<" "<<magicup<<" "<<attack<<" "<<defense<<" "<<money<<" "<<experience<<" "<<level<<" "<<speed<<" "<<xp_orb<<" ";
outfile<<credit<<" "<<weapon1<<" "<<weapon2<<" "<<tool1<<" "<<tool2<<" "<<attackdis1<<" "<<attackdis2<<" "<<armor1<<" "<<armor2<<" "<<armor3<<" "<<armor4<<" ";
outfile<<nether<<" "<<ender<<" "<<dead<<" "<<defend<<" "<<blessing<<" "<<crafttable<<" "<<furnace<<" "<<smithtable<<" "<<crafttable2<<" ";
outfile<<undeadattack<<" "<<attacklevel<<" "<<diamondapple<<" "<<badguy<<" "<<weaponcheck<<" "<<blesscold<<" ";
outfile<<task1<<" "<<farland<<" "<<jungle_temple<<" "<<desert_temple<<" "<<woodland_mansion<<" "<<stronghold<<" "<<nether_fortress<<" "<<bastion_remnants<<" "<<end_city<<endl;
for(int i=0;i<200;i++) outfile<<bag[i]<<" ";
for(int i=1001;i<1020;i++) outfile<<bag[i]<<" ";
for(int i=1;i<=7;i++) outfile<<hard_max[i]<<" ";
for(int i=1;i<=7;i++) outfile<<time_last[i]<<" ";
for(int i=1;i<10;i++) outfile<<arrow[i]<<" ";
outfile<<endl;
for(int i=1;i<=100;i++) outfile<<skill[i]<<" "<<skillcold[i]<<" "<<skillmagic[i]<<" "<<sk[i].skilltake<<endl;
outfile<<skilltakemax<<" "<<skilltakenow;
outfile.close();
break;
}
case 2:{
ofstream outfile("你的MINECRAFT存档2.txt",std::ios::trunc|ios::binary|ios::in|ios::out);
outfile<<ver<<" "<<name<<" "<<" "<<place<<" "<<maxhealth<<" "<<health<<" "<<basicmagic<<" "<<magic<<" "<<magicup<<" "<<attack<<" "<<defense<<" "<<money<<" "<<experience<<" "<<level<<" "<<speed<<" "<<xp_orb<<" ";
outfile<<credit<<" "<<weapon1<<" "<<weapon2<<" "<<tool1<<" "<<tool2<<" "<<attackdis1<<" "<<attackdis2<<" "<<armor1<<" "<<armor2<<" "<<armor3<<" "<<armor4<<" ";
outfile<<nether<<" "<<ender<<" "<<dead<<" "<<defend<<" "<<blessing<<" "<<crafttable<<" "<<furnace<<" "<<smithtable<<" "<<crafttable2<<" ";
outfile<<undeadattack<<" "<<attacklevel<<" "<<diamondapple<<" "<<badguy<<" "<<weaponcheck<<" "<<blesscold<<" ";
outfile<<task1<<" "<<farland<<" "<<jungle_temple<<" "<<desert_temple<<" "<<woodland_mansion<<" "<<stronghold<<" "<<nether_fortress<<" "<<bastion_remnants<<" "<<end_city<<endl;
for(int i=0;i<200;i++) outfile<<bag[i]<<" ";
for(int i=1001;i<1020;i++) outfile<<bag[i]<<" ";
for(int i=1;i<=7;i++) outfile<<hard_max[i]<<" ";
for(int i=1;i<=7;i++) outfile<<time_last[i]<<" ";
for(int i=1;i<10;i++) outfile<<arrow[i]<<" ";
outfile<<endl;
for(int i=1;i<=100;i++) outfile<<skill[i]<<" "<<skillcold[i]<<" "<<skillmagic[i]<<" "<<sk[i].skilltake<<endl;
outfile<<skilltakemax<<" "<<skilltakenow;
outfile.close();
break;
}
case 3:{
ofstream outfile("你的MINECRAFT存档3.txt",std::ios::trunc|ios::binary|ios::in|ios::out);
outfile<<ver<<" "<<name<<" "<<" "<<place<<" "<<maxhealth<<" "<<health<<" "<<basicmagic<<" "<<magic<<" "<<magicup<<" "<<attack<<" "<<defense<<" "<<money<<" "<<experience<<" "<<level<<" "<<speed<<" "<<xp_orb<<" ";
outfile<<credit<<" "<<weapon1<<" "<<weapon2<<" "<<tool1<<" "<<tool2<<" "<<attackdis1<<" "<<attackdis2<<" "<<armor1<<" "<<armor2<<" "<<armor3<<" "<<armor4<<" ";
outfile<<nether<<" "<<ender<<" "<<dead<<" "<<defend<<" "<<blessing<<" "<<crafttable<<" "<<furnace<<" "<<smithtable<<" "<<crafttable2<<" ";
outfile<<undeadattack<<" "<<attacklevel<<" "<<diamondapple<<" "<<badguy<<" "<<weaponcheck<<" "<<blesscold<<" ";
outfile<<task1<<" "<<farland<<" "<<jungle_temple<<" "<<desert_temple<<" "<<woodland_mansion<<" "<<stronghold<<" "<<nether_fortress<<" "<<bastion_remnants<<" "<<end_city<<endl;
for(int i=0;i<200;i++) outfile<<bag[i]<<" ";
for(int i=1001;i<1020;i++) outfile<<bag[i]<<" ";
for(int i=1;i<=7;i++) outfile<<hard_max[i]<<" ";
for(int i=1;i<=7;i++) outfile<<time_last[i]<<" ";
for(int i=1;i<10;i++) outfile<<arrow[i]<<" ";
outfile<<endl;
for(int i=1;i<=100;i++) outfile<<skill[i]<<" "<<skillcold[i]<<" "<<skillmagic[i]<<" "<<sk[i].skilltake<<endl;
outfile<<skilltakemax<<" "<<skilltakenow;
outfile.close();
break;
}
default:
cout<<"请勿乱输!"<<endl;
return;
break;
}
cout<<"保存成功!"<<endl;
return;
}
void read(){//读档22
string name114=name;
SetConsoleTitle("--读取--");
system("cls");
cout<<"你确定要读取存档吗?若你没有保存过就最好不要读取(这可能会触发反作弊机制,后果自负)。\n读取会覆盖你当前的游戏进度。"<<endl;
//你说得对,但是反作弊被我删了(
cout<<"0,返回 1,确定"<<endl;
cin>>choose;
if(choose==0) return;
cout<<"你要读取于那个存档?"<<endl;
cout<<"1,1号存档 2,2号存档 3,3号存档"<<endl;
cin>>reading;
SetConsoleTitle("--读取中--");
cout<<"读取存档中..."<<endl;
Sleep(2000);
switch(reading){
case 0:
return;
break;
case 1:{
ifstream fin("你的MINECRAFT存档.txt");
fin>>version>>name;
system("cls");
cout<<"读取到"<<name<<"的存档!"<<endl;
if(ver!=version){
cout<<"警告:你正在读取"<<version<<"的存档!\n当前版本为"<<ver<<",可能会出现漏洞,后果自负!"<<endl;
cout<<"0,返回 1,爷知道爷在做什么"<<endl;
cin>>choose;
if(choose==1){
cout<<"祝你好运..."<<endl;
Sleep(1000);
}else return;
}else{
cout<<"0,返回 1,读取"<<endl;
cin>>choose;
if(choose==0){
name=name114;
return;
}
cout<<"读取存档成功!"<<endl;
}
fin>>place>>maxhealth>>health>>basicmagic>>magic>>magicup>>attack>>defense>>money>>experience>>level>>speed>>xp_orb;
fin>>credit>>weapon1>>weapon2>>tool1>>tool2>>attackdis1>>attackdis2>>armor1>>armor2>>armor3>>armor4;
fin>>nether>>ender>>dead>>defend>>blessing>>crafttable>>furnace>>smithtable>>crafttable2;
fin>>undeadattack>>attacklevel>>diamondapple>>badguy>>weaponcheck>>blesscold;
fin>>task1>>farland>>jungle_temple>>desert_temple>>woodland_mansion>>stronghold>>nether_fortress>>bastion_remnants>>end_city;
for(int i=0;i<200;i++) fin>>bag[i];
for(int i=1001;i<1020;i++) fin>>bag[i];
for(int i=1;i<=7;i++) fin>>hard_max[i];
for(int i=1;i<=7;i++) fin>>time_last[i];
for(int i=1;i<10;i++) fin>>arrow[i];
for(int i=1;i<=100;i++) fin>>skill[i]>>skillcold[i]>>skillmagic[i]>>sk[i].skilltake;
fin>>skilltakemax>>skilltakenow;
break;
}
case 2:{
ifstream fin("你的MINECRAFT存档2.txt");
fin>>version>>name;
system("cls");
cout<<"读取到"<<name<<"的存档!"<<endl;
if(ver!=version){
cout<<"警告:你正在读取"<<version<<"的存档!\n当前版本为"<<ver<<",可能会出现漏洞,后果自负!"<<endl;
cout<<"0,返回 1,爷知道爷在做什么"<<endl;
cin>>choose;
if(choose==1){
cout<<"祝你好运..."<<endl;
Sleep(1000);
}else return;
}else{
cout<<"0,返回 1,读取"<<endl;
cin>>choose;
if(choose==0){
name=name114;
return;
}
cout<<"读取存档成功!"<<endl;
}
fin>>place>>maxhealth>>health>>basicmagic>>magic>>magicup>>attack>>defense>>money>>experience>>level>>speed>>xp_orb;
fin>>credit>>weapon1>>weapon2>>tool1>>tool2>>attackdis1>>attackdis2>>armor1>>armor2>>armor3>>armor4;
fin>>nether>>ender>>dead>>defend>>blessing>>crafttable>>furnace>>smithtable>>crafttable2;
fin>>undeadattack>>attacklevel>>diamondapple>>badguy>>weaponcheck>>blesscold;
fin>>task1>>farland>>jungle_temple>>desert_temple>>woodland_mansion>>stronghold>>nether_fortress>>bastion_remnants>>end_city;
for(int i=0;i<200;i++) fin>>bag[i];
for(int i=1001;i<1020;i++) fin>>bag[i];
for(int i=1;i<=7;i++) fin>>hard_max[i];
for(int i=1;i<=7;i++) fin>>time_last[i];
for(int i=1;i<10;i++) fin>>arrow[i];
for(int i=1;i<=100;i++) fin>>skill[i]>>skillcold[i]>>skillmagic[i]>>sk[i].skilltake;
fin>>skilltakemax>>skilltakenow;
break;
}
case 3:{
ifstream fin("你的MINECRAFT存档3.txt");
fin>>version>>name;
system("cls");
cout<<"读取到"<<name<<"的存档!"<<endl;
if(ver!=version){
cout<<"警告:你正在读取"<<version<<"的存档!\n当前版本为"<<ver<<",可能会出现漏洞,后果自负!"<<endl;
cout<<"0,返回 1,爷知道爷在做什么"<<endl;
cin>>choose;
if(choose==1){
cout<<"祝你好运..."<<endl;
Sleep(1000);
}else return;
}else{
cout<<"0,返回 1,读取"<<endl;
cin>>choose;
if(choose==0){
name=name114;
return;
}
cout<<"读取存档成功!"<<endl;
}
fin>>place>>maxhealth>>health>>basicmagic>>magic>>magicup>>attack>>defense>>money>>experience>>level>>speed>>xp_orb;
fin>>credit>>weapon1>>weapon2>>tool1>>tool2>>attackdis1>>attackdis2>>armor1>>armor2>>armor3>>armor4;
fin>>nether>>ender>>dead>>defend>>blessing>>crafttable>>furnace>>smithtable>>crafttable2;
fin>>undeadattack>>attacklevel>>diamondapple>>badguy>>weaponcheck>>blesscold;
fin>>task1>>farland>>jungle_temple>>desert_temple>>woodland_mansion>>stronghold>>nether_fortress>>bastion_remnants>>end_city;;
for(int i=0;i<200;i++) fin>>bag[i];
for(int i=1001;i<1020;i++) fin>>bag[i];
for(int i=1;i<=7;i++) fin>>hard_max[i];
for(int i=1;i<=7;i++) fin>>time_last[i];
for(int i=1;i<10;i++) fin>>arrow[i];
for(int i=1;i<=100;i++) fin>>skill[i]>>skillcold[i]>>skillmagic[i]>>sk[i].skilltake;
fin>>skilltakemax>>skilltakenow;
break;
}
}
cout<<"已读取 "<<name<<" 的存档!"<<endl;
getch();
return;
}
void add_skill(int num,string skillname,char rarity,int level_max,int magic,int cold){
sk[num].skillname=skillname;
sk[num].rarity=rarity;
sk[num].level_max=level_max;
sk[num].magic[1]=magic;
sk[num].cold[1]=cold;
return;
}