版本比较
HarryPotter(转存)
正文
增加 165 行删除 165 行
11 行未改动12131415161718192017 行未改动38394041424344454628 行未改动75767778798081828354 行未改动13813914014114214314414514622 行未改动16917017117217317417517617717817918018118218318418518618732 行未改动22022122222322422522622722822923023137 行未改动26927027127227327427527627727827928028128229 行未改动31231331431531631731831932032115 行未改动3373383393403413423433443454 行未改动35035135235335435535635735835936036136236336436536636736837 行未改动40640740840941041141241341441541641741841942042142242342439 行未改动46446546646746846947047147247334 行未改动50850951051151251351451551651716 行未改动5345355365375385395405415424 行未改动54754854955055155255355455555655755844 行未改动60360460560660760860961061161261361447 行未改动66266366466566666766866967067167267367427 行未改动70270370470570670770870971071171271371415 行未改动7307317327337347357367377384 行未改动74374474574674774874975075175275375475575675775875976076111 行未改动77377477577677777877978078178220 行未改动803804805806807808809810811812813814815816817818819820821490 行未改动全部展开1312131313141315131613171318131913201321132213231324132513266 行未改动133313341335133613371338133913401341134213431344134513461347134813491350135124 行未改动1376137713781379138013811382138313841385138613871388138913901391139213931394139513963 行未改动1400140114021403140414051406140714081409141014119 行未改动1421142214231424142514261427142814291430143114321433143414351436143714381439144014419 行未改动145114521453145414551456145714581459146027 行未改动1488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151689 行未改动160616071608160916101611161216131614161516161617161816191620162116221623162416251626162727 行未改动1655165616571658165916601661166216633 行未改动1667166816691670167116721673167416753 行未改动1679168016811682168316841685168616873 行未改动1691169216931694169516961697169816993 行未改动17031704170517061707170817091710171142 行未改动1754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177630 行未改动18071808180918101811181218131814181513 行未改动1829183018311832183318341835183618372 行未改动1840184118421843184418451846184718482 行未改动1851185218531854185518561857185818593 行未改动1863186418651866186718681869187018712 行未改动1874187518761877187818791880188118822 行未改动1885188618871888188918901891189218933 行未改动1897189818991900190119021903190419052 行未改动1908190919101911191219131914191519162 行未改动1919192019211922192319241925192619272 行未改动1930193119321933193419351936193719382 行未改动1941194219431944194519461947194819494 行未改动195419551956195719581959196019611962196319641965196619671968196919701971197219731974197589 行未改动20652066206720682069207020712072207320742075204 行未改动全部展开2280228122822283228422852286228722882289229027 行未改动2318231923202321232223232324232523262327196 行未改动全部展开252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725883 行未改动2592259325942595259625972598259926003 行未改动2604260526062607260826092610261126123 行未改动26162617261826192620262126222623262426 行未改动2651265226532654265526562657265826592 行未改动2662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270253 行未改动275627572758275927602761276227632764276569 行未改动283528362837283828392840284128422843284488 行未改动2933293429352936293729382939294029412942419 行未改动全部展开33623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339419 行未改动341434153416341734183419342034213422342334243425342634273428342934305 行未改动343634373438343934403441344234433444344534463447344834493450345134523453345434553456345768 行未改动35263527352835293530353135323533353427 行未改动356235633564356535663567356835693570357135723573357445 行未改动362036213622362336243625362636273628362915 行未改动3645364636473648364936503651365236534 行未改动3658365936603661366236633664366536663667366836693670367136723673367436753676367722 行未改动3700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372216 行未改动373937403741374237433744374537463747374837493750375137523753375437553756534 行未改动全部展开11 行未改动int ict = 0, nowlevel = 0;int bag[44] = { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0};//0抽奖券 1经验石R 2经验石SR 3经验石SSR 4经验石SSS 5经验石X//6技能书快快复苏 7技能书铁甲咒 8技能书昏昏倒地 9技能书神锋无影 10技能书咒立停 11技能书石化咒 12技能书恢复咒 13技能书召唤咒 14技能书遗忘咒 15技能书万弹齐发 16技能书钻心咒 17技能书夺魂咒 18技能书死亡咒//19生命药水 20防御药水 21攻击药水 22经验药水 23全幅药水//24猫狸子胡须 25媚娃头发 26马形水怪的鬃毛 27龙心腱 28雷鸟尾羽 29凤凰羽毛 30独角兽尾毛 31龙神经 32夜骐的尾羽//33桦木 34紫衫木 35冬青木 36山楂木柳条 37橡木 38械木 39山毛榉木 40栗木 41樱桃木 42桃花心木//43速度药水string Material1name[9] = { "猫狸子胡须","媚娃头发","马形水怪的鬃毛","龙心腱","雷鸟尾羽","凤凰羽毛","独角兽尾毛","龙神经","夜骐的尾羽" };17 行未改动Sleep(250);choose();}else {if (MessageBox(0, TEXT("你确定?"), TEXT("请选择"), MB_OKCANCEL | MB_ICONINFORMATION) == IDOK) return 0;choose();}return 0;}28 行未改动for (int i = 0; i < 100; i++) {fin >> wandname[i];fin >> wandpower[i];fin >> wand[i];}fin >> Nwand >> amm >> f >> wandi >> wandnamei >> wandpoweri >> ict >> speed >> nowlevel;isn = true;}}54 行未改动int mfaint = 0;dead = false;int ha = hisA;while (1) {if (hfaint > 0) hfaint -= 1;if (mfaint > 0) {if (rand() % 3 == 0){mfaint = 0;22 行未改动if (attack + ran > hisD) {cout << "石怪发起进攻 " << Hname << "扣血" << mattack - hisD + ran << "滴 剩余" << hisH - (mattack - hisD + ran) << "滴" << endl;hisH -= mattack - hisD + ran;}else cout << "石怪发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "石怪一脚踹了过去,但没有踢中" << endl;else {cout << "石怪一脚踹了过去,但只擦着了腰" << endl;if ((mattack / 3) + ran > hisD) {cout << Hname << "扣血" << (mattack / 3) + ran - hisD << "滴 剩余" << hisH - ((mattack / 3) + ran - hisD) << "滴" << endl;hisH -= (mattack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(1000);32 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "石怪扣血" << hisA - defense + ran << "滴 剩余" << mhealth - (hisA - defense + ran) << "滴" << endl;mhealth -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "石怪扣血0滴 剩余" << mhealth << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了石怪的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "石怪扣血" << (hisA / 3) + ran - defense << "滴 剩余" << mhealth - ((hisA / 3) + ran - defense) << "滴" << endl;37 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;}if (mfaint <= 0) {29 行未改动hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);37 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(700);if (health <= 0) {39 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;34 行未改动hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}Sleep(1000);}if (rand() % 4 == 0 && Sl[8]) {16 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;44 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;47 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;}27 行未改动}if (rand() % 4 == 0 && Sl[7]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH- hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);11 行未改动else {cout << "对方死亡\n获得" << his / 30 << "元" << endl;money += his / 30;experience += (his / 30) * 10;if (ane == 3) D_Of_C++;if (ane1 == 3) D_Of_C1++;return 0;}}if (hfaint <= 0) {20 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout <<"你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(700);if (health <= 0) {490 行未改动全部展开fight("员工", 1000, 100, 10, 14, 1000);if (dead) return 0;cout << "另外一个员工冲了过来" << endl;fight("员工", 1000, 100, 10, 14, 2000);if (dead) return 0;cout << "员工头冲了过来" << endl;fight("员工头", 5000, 5000, 10, 14, 2000);if (dead) return 0;cout << "店主冲了过来" << endl;fight("店主", 10000, 1000, 100, 15, 4000);if (dead) return 0;cout << "获得100元" << endl;money += 100;if (rand() % 10 < 3) {Sleep(3000);6 行未改动cout << "你要不要到大街上消消气(杀人)" << endl;cout << "1要! 2不必了" << endl;int q;cin >> q;if (q == 1) street();}}}}else {cout << "购买成功" << endl;bag[p]++;money -= m;if (ane == 1) D_Of_C++;if (ane1 == 1) D_Of_C1 += m;}Sleep(1000);return 0;}24 行未改动Sleep(1000);return 0;}if (bag[w1] < c1) {if (bag[w2] < c2) cout << "你木材和杖芯都不够";else cout << "杖芯不够";}else if (bag[w2] < c2) cout << "木材不够";else {cout << "制作成功" << endl;string wn;wn = Material1name[w1 - 24] + Material2name[w2 - 33] + "魔杖";bag[w1] -= c1;bag[w2] -= c2;wand[wandi++]++;wandpower[wandpoweri++] = c1 * 20 * (w1 - 4) + c1 * 10 * (w2 - 13);wandname[wandnamei++] = wn;}Sleep(1000);return 0;}3 行未改动if (experience >= level * 100) {experience -= level * 100;level++;maxhealth += 100; health += 100; attack += 10; defense += 5; speed += 10;if (rand() % 2 && level > 4) bag[0] += 1;cout << "你升了1级" << endl;levelup();if (ane1 == 4) D_Of_C1++;}return 0;}int Hos()9 行未改动if (level > 10) {if (money >= ((maxhealth) - health) / 16) {money -= ((maxhealth) - health) / 16;cout << "恢复成功\n剩余:" << money << "元";if (ane == 2) D_Of_C++;if (ane1 == 1) D_Of_C1 += ((maxhealth) - health) / 16;health = maxhealth;}else cout << "钱不足" << endl;}else {health = maxhealth;cout << "恢复成功" << endl;if (ane == 2) D_Of_C++;}}else if (a == 2) return 0;else {cout << "请别乱输";Hos();}9 行未改动system("color 02");int aaaa = 1;while (aaaa) {for (int i = 0; i < wandi; i++) {if (wandname[i] == Nwand) cout << "o";else cout << " ";cout << i + 1 << "," << wandname[i] << " " << wand[i] << "个" << " 力量:" << wandpower[i] << endl;}cout << "1,装备魔杖 2,卸下现有魔杖 0,退出" << endl;cin >> aaaa;27 行未改动}Nwand = "空手";Sleep(1000);}else if (aaaa == 0) break;else cout << "请别乱输";levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "1" << endl;89 行未改动levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;27 行未改动bag[19] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 2:cout << "几个?";cin >> aaaa;3 行未改动bag[20] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 3:cout << "几个?";cin >> aaaa;3 行未改动bag[21] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 4:cout << "几个?";cin >> aaaa;3 行未改动bag[22] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 5:cout << "几个?";cin >> aaaa;3 行未改动bag[43] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 6:cout << "几个?";cin >> aaaa;42 行未改动levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "2" << endl;30 行未改动Sl[0] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 2:if (bag[7] >= 1) {cout << "学习成功" << endl;13 行未改动Sl[2] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 4:if (bag[9] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[3] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 5:if (bag[10] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[4] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 6:if (bag[11] >= 1) {cout << "学习成功" << endl;3 行未改动Sl[5] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 7:if (bag[12] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[6] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 8:if (bag[13] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[7] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 9:if (bag[14] >= 1) {cout << "学习成功" << endl;3 行未改动Sl[8] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 10:if (bag[15] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[9] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 11:if (bag[16] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[10] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 12:if (bag[17] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[11] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 13:if (bag[18] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[12] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 0:break;default:4 行未改动system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "4" << endl;89 行未改动cout << "经验药水 " << num9 << "个" << endl;cout << "全幅药水 " << num10 << "个" << endl;cout << "金币 " << num11 << "个" << endl;}else cout << "您的抽奖券不足" << endl;}else if (a == 2) return 0;else {cout << "请别乱输。";system("cls");LD();204 行未改动全部展开system("color 02");bool is[101][101];for (int i = 0; i < 100; i++)for (int j = 0; j < 100; j++)is[i][j] = false;int x = 8, y = 1;string a[100] = {"##################################################","# 1 # 2 2 3# # 1 #89#1#1# 1 1 #12 #3 #1#","#2#1#5 # #1# # ## # ##91 6 #9#7#11## # # 11#","# ## ## # # # #### # ##### # ####5## # # #####",27 行未改动system("cls");cout << "生命:" << health << "/" << maxhealth << endl;for (int i = 0; i < 20; i++) {for (int j = 0; j < 50; j++) {if (is[i][j]) cout << a[i][j];else cout << "0";}cout << endl;}int ch;196 行未改动全部展开cin >> which;switch (which){case 1:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;health += 200;maxhealth += 200;}break;case 2:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;health += 500;maxhealth += 500;}break;case 3:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;defense += 20;}break;case 4:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;defense += 50;}break;case 5:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;attack += 100;}break;case 6:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;attack += 250;}break;case 7:if (money < 500) DriveOut();else {money -= 500;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 1000;}break;case 8:if (money < 1000) DriveOut();else {money -= 1000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 3000;}break;case 9:if (money < 2000) DriveOut();else {money -= 2000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 9000;}break;case 10:if (money < 10000) DriveOut();else {money -= 10000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;26 行未改动cin >> which;switch (which){case 1:if (money < 40000) DriveOut();else {money -= 40000;cout << "店主:一路走好!" << endl;bag[12]++;2 行未改动case 2:cout << "店主:对不起,本书已经售完" << endl;break;case 3:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[16]++;}break;case 4:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[13]++;}break;case 5:if (money < 25000) DriveOut();else {money -= 25000;cout << "店主:一路走好!" << endl;bag[10]++;}break;case 6:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[17]++;}break;case 7:if (money < 15000) DriveOut();else {money -= 15000;cout << "店主:一路走好!" << endl;bag[15]++;53 行未改动int checkpoint(int l){system("color 02");bool is[101][101];for (int i = 0; i < 100; i++)for (int j = 0; j < 100; j++)is[i][j] = false;int x = 1, y = 1;string a[100];if (l == 1) {69 行未改动a[0] = "#################";a[1] = "#PPPPPPPPPPPPPPP#";a[2] = "#P#############P#";a[3] = "#PPPP 9999999 PP#";if (rand() % 100 < 7) a[4] = "#################";else a[4] = "######### #######";a[5] = "#2 2#2 2#9##2 P#";a[6] = "# # # # # #22# #";a[7] = "# # # # # # #22##";a[8] = "I # # # # # # # o";88 行未改动cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;for (int i = 0; i < 25; i++) {for (int j = 0; j < 50; j++) {if (is[i][j]) cout << a[i][j];else cout << "0";}cout << endl;}int ch;419 行未改动全部展开cout << "1抢劫! 2办事的。" << endl;cin >> a;if (a == 1) cout << "魔法部大门看守:拦下他!" << endl;else {if (camp) cout << "魔法部大门看守:不可能,你是伏地魔的人!" << endl;else {cout << "魔法部大门看守仔细一看。" << endl;Sleep(1000);cout << "魔法部大门看守:他是哈利波特的人,抓了他问哈利波特下落!" << endl;}}Sleep(1000);fight("大门看守", 2000, 200, 20, 0, 1000);if (dead) return 0;fight("大门看守", 2000, 200, 20, 0, 1000);if (dead) return 0;cout << "增加100滴血" << endl;health += 100;Sleep(1000);cout << "你踢开了大门" << endl;Sleep(1000);cout << "里面的几个雕像活了" << endl;Sleep(1000);fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;cout << "增加500滴血" << endl;health += 500;cout << "你杀死了雕像后, 正准备往楼上走" << endl;Sleep(1000);19 行未改动else {cout << "员工:干掉他!" << endl;Sleep(1000);fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 15, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 17, 1000);if (dead) return 0;if (rand() % 3 == 0) {cout << "你获得了技能书铁甲咒" << endl;bag[7]++;Sleep(1000);5 行未改动cout << "你遇到了副部长" << endl;Sleep(1000);fight("副部长", 10000, 1000, 100, 20, 3000);health += 5000;if (dead) return 0;if (lie) {cout << "上次的员工跑了过来" << endl;Sleep(1000);cout << "员工:你,你骗了我们!" << endl;Sleep(1000);fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 15, 1500);if (dead) return 0;fight("员工", 3000, 200, 100, 17, 2000);if (dead) return 0;if (rand() % 3 == 0){cout << "你获得了技能书铁甲咒" << endl;68 行未改动};cout << "开始吧!" << endl;maze();}else cout << "请勿乱输" << endl;Sleep(1000);break;}}27 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else {mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;45 行未改动return 0;}if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else{if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);22 行未改动}}if (rand() % 3 == 0) {cout << "对方发动技能:快快复苏 生命加200" << endl;hisH += 200;}if (rand() % 3 == 0) {cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;hisH += 50;hisD += 50;}if (rand() % 3 == 0) {cout << "对方使用技能神锋无影 攻击增加200 扣血200滴" << endl;health -= 200;hisA += 200;}if (rand() % 3 == 0) {cout << "对方使用技能昏昏倒地 " << name << "一回合之内不能攻击" << endl;mfaint += 1;}if (rand() % 3 == 0){if (rand() % 10) {16 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {if ((hisA / 3) + ran > hisD) {cout << Hname << "发起进攻 你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(1000);if (health <= 0) {534 行未改动全部展开11 行未改动12131415161718192017 行未改动38394041424344454628 行未改动75767778798081828354 行未改动13813914014114214314414514622 行未改动16917017117217317417517617717817918018118218318418518618732 行未改动22022122222322422522622722822923023137 行未改动26927027127227327427527627727827928028128229 行未改动31231331431531631731831932032115 行未改动3373383393403413423433443454 行未改动35035135235335435535635735835936036136236336436536636736837 行未改动40640740840941041141241341441541641741841942042142242342439 行未改动46446546646746846947047147247334 行未改动50850951051151251351451551651716 行未改动5345355365375385395405415424 行未改动54754854955055155255355455555655755844 行未改动60360460560660760860961061161261361447 行未改动66266366466566666766866967067167267367427 行未改动70270370470570670770870971071171271371415 行未改动7307317327337347357367377384 行未改动74374474574674774874975075175275375475575675775875976076111 行未改动77377477577677777877978078178220 行未改动803804805806807808809810811812813814815816817818819820821490 行未改动全部展开1312131313141315131613171318131913201321132213231324132513266 行未改动133313341335133613371338133913401341134213431344134513461347134813491350135124 行未改动1376137713781379138013811382138313841385138613871388138913901391139213931394139513963 行未改动1400140114021403140414051406140714081409141014119 行未改动1421142214231424142514261427142814291430143114321433143414351436143714381439144014419 行未改动145114521453145414551456145714581459146027 行未改动1488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151689 行未改动160616071608160916101611161216131614161516161617161816191620162116221623162416251626162727 行未改动1655165616571658165916601661166216633 行未改动1667166816691670167116721673167416753 行未改动1679168016811682168316841685168616873 行未改动1691169216931694169516961697169816993 行未改动17031704170517061707170817091710171142 行未改动1754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177630 行未改动18071808180918101811181218131814181513 行未改动1829183018311832183318341835183618372 行未改动1840184118421843184418451846184718482 行未改动1851185218531854185518561857185818593 行未改动1863186418651866186718681869187018712 行未改动1874187518761877187818791880188118822 行未改动1885188618871888188918901891189218933 行未改动1897189818991900190119021903190419052 行未改动1908190919101911191219131914191519162 行未改动1919192019211922192319241925192619272 行未改动1930193119321933193419351936193719382 行未改动1941194219431944194519461947194819494 行未改动195419551956195719581959196019611962196319641965196619671968196919701971197219731974197589 行未改动20652066206720682069207020712072207320742075204 行未改动全部展开2280228122822283228422852286228722882289229027 行未改动2318231923202321232223232324232523262327196 行未改动全部展开252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725883 行未改动2592259325942595259625972598259926003 行未改动2604260526062607260826092610261126123 行未改动26162617261826192620262126222623262426 行未改动2651265226532654265526562657265826592 行未改动2662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270253 行未改动275627572758275927602761276227632764276569 行未改动283528362837283828392840284128422843284488 行未改动2933293429352936293729382939294029412942419 行未改动全部展开33623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339419 行未改动341434153416341734183419342034213422342334243425342634273428342934305 行未改动343634373438343934403441344234433444344534463447344834493450345134523453345434553456345768 行未改动35263527352835293530353135323533353427 行未改动356235633564356535663567356835693570357135723573357445 行未改动362036213622362336243625362636273628362915 行未改动3645364636473648364936503651365236534 行未改动3658365936603661366236633664366536663667366836693670367136723673367436753676367722 行未改动3700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372216 行未改动373937403741374237433744374537463747374837493750375137523753375437553756534 行未改动全部展开11 行未改动int ict = 0, nowlevel = 0;int bag[44] = { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0};//0抽奖券 1经验石R 2经验石SR 3经验石SSR 4经验石SSS 5经验石X//6技能书快快复苏 7技能书铁甲咒 8技能书昏昏倒地 9技能书神锋无影 10技能书咒立停 11技能书石化咒 12技能书恢复咒 13技能书召唤咒 14技能书遗忘咒 15技能书万弹齐发 16技能书钻心咒 17技能书夺魂咒 18技能书死亡咒//19生命药水 20防御药水 21攻击药水 22经验药水 23全幅药水//24猫狸子胡须 25媚娃头发 26马形水怪的鬃毛 27龙心腱 28雷鸟尾羽 29凤凰羽毛 30独角兽尾毛 31龙神经 32夜骐的尾羽//33桦木 34紫衫木 35冬青木 36山楂木柳条 37橡木 38械木 39山毛榉木 40栗木 41樱桃木 42桃花心木//43速度药水string Material1name[9] = { "猫狸子胡须","媚娃头发","马形水怪的鬃毛","龙心腱","雷鸟尾羽","凤凰羽毛","独角兽尾毛","龙神经","夜骐的尾羽" };17 行未改动Sleep(250);choose();}else {if (MessageBox(0, TEXT("你确定?"), TEXT("请选择"), MB_OKCANCEL | MB_ICONINFORMATION) == IDOK) return 0;choose();}return 0;}28 行未改动for (int i = 0; i < 100; i++) {fin >> wandname[i];fin >> wandpower[i];fin >> wand[i];}fin >> Nwand >> amm >> f >> wandi >> wandnamei >> wandpoweri >> ict >> speed >> nowlevel;isn = true;}}54 行未改动int mfaint = 0;dead = false;int ha = hisA;while (1) {if (hfaint > 0) hfaint -= 1;if (mfaint > 0) {if (rand() % 3 == 0){mfaint = 0;22 行未改动if (attack + ran > hisD) {cout << "石怪发起进攻 " << Hname << "扣血" << mattack - hisD + ran << "滴 剩余" << hisH - (mattack - hisD + ran) << "滴" << endl;hisH -= mattack - hisD + ran;}else cout << "石怪发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "石怪一脚踹了过去,但没有踢中" << endl;else {cout << "石怪一脚踹了过去,但只擦着了腰" << endl;if ((mattack / 3) + ran > hisD) {cout << Hname << "扣血" << (mattack / 3) + ran - hisD << "滴 剩余" << hisH - ((mattack / 3) + ran - hisD) << "滴" << endl;hisH -= (mattack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(1000);32 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "石怪扣血" << hisA - defense + ran << "滴 剩余" << mhealth - (hisA - defense + ran) << "滴" << endl;mhealth -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "石怪扣血0滴 剩余" << mhealth << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了石怪的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "石怪扣血" << (hisA / 3) + ran - defense << "滴 剩余" << mhealth - ((hisA / 3) + ran - defense) << "滴" << endl;37 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;}if (mfaint <= 0) {29 行未改动hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);37 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(700);if (health <= 0) {39 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;34 行未改动hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}Sleep(1000);}if (rand() % 4 == 0 && Sl[8]) {16 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;44 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout << "你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;47 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;}27 行未改动}if (rand() % 4 == 0 && Sl[7]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;hisH = monsterfight(Hname, hisH, hisA, hisD, hisS, hisSP);if (hisH < 1) return 0;if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH- hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else {if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);11 行未改动else {cout << "对方死亡\n获得" << his / 30 << "元" << endl;money += his / 30;experience += (his / 30) * 10;if (ane == 3) D_Of_C++;if (ane1 == 3) D_Of_C1++;return 0;}}if (hfaint <= 0) {20 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {cout << "对方一脚踹了过来,但只擦着了你的腰" << endl;if ((hisA / 3) + ran > hisD) {cout <<"你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(700);if (health <= 0) {490 行未改动全部展开fight("员工", 1000, 100, 10, 14, 1000);if (dead) return 0;cout << "另外一个员工冲了过来" << endl;fight("员工", 1000, 100, 10, 14, 2000);if (dead) return 0;cout << "员工头冲了过来" << endl;fight("员工头", 5000, 5000, 10, 14, 2000);if (dead) return 0;cout << "店主冲了过来" << endl;fight("店主", 10000, 1000, 100, 15, 4000);if (dead) return 0;cout << "获得100元" << endl;money += 100;if (rand() % 10 < 3) {Sleep(3000);6 行未改动cout << "你要不要到大街上消消气(杀人)" << endl;cout << "1要! 2不必了" << endl;int q;cin >> q;if (q == 1) street();}}}}else {cout << "购买成功" << endl;bag[p]++;money -= m;if (ane == 1) D_Of_C++;if (ane1 == 1) D_Of_C1 += m;}Sleep(1000);return 0;}24 行未改动Sleep(1000);return 0;}if (bag[w1] < c1) {if (bag[w2] < c2) cout << "你木材和杖芯都不够";else cout << "杖芯不够";}else if (bag[w2] < c2) cout << "木材不够";else {cout << "制作成功" << endl;string wn;wn = Material1name[w1 - 24] + Material2name[w2 - 33] + "魔杖";bag[w1] -= c1;bag[w2] -= c2;wand[wandi++]++;wandpower[wandpoweri++] = c1 * 20 * (w1 - 4) + c1 * 10 * (w2 - 13);wandname[wandnamei++] = wn;}Sleep(1000);return 0;}3 行未改动if (experience >= level * 100) {experience -= level * 100;level++;maxhealth += 100; health += 100; attack += 10; defense += 5; speed += 10;if (rand() % 2 && level > 4) bag[0] += 1;cout << "你升了1级" << endl;levelup();if (ane1 == 4) D_Of_C1++;}return 0;}int Hos()9 行未改动if (level > 10) {if (money >= ((maxhealth) - health) / 16) {money -= ((maxhealth) - health) / 16;cout << "恢复成功\n剩余:" << money << "元";if (ane == 2) D_Of_C++;if (ane1 == 1) D_Of_C1 += ((maxhealth) - health) / 16;health = maxhealth;}else cout << "钱不足" << endl;}else {health = maxhealth;cout << "恢复成功" << endl;if (ane == 2) D_Of_C++;}}else if (a == 2) return 0;else {cout << "请别乱输";Hos();}9 行未改动system("color 02");int aaaa = 1;while (aaaa) {for (int i = 0; i < wandi; i++) {if (wandname[i] == Nwand) cout << "o";else cout << " ";cout << i + 1 << "," << wandname[i] << " " << wand[i] << "个" << " 力量:" << wandpower[i] << endl;}cout << "1,装备魔杖 2,卸下现有魔杖 0,退出" << endl;cin >> aaaa;27 行未改动}Nwand = "空手";Sleep(1000);}else if (aaaa == 0) break;else cout << "请别乱输";levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "1" << endl;89 行未改动levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;27 行未改动bag[19] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 2:cout << "几个?";cin >> aaaa;3 行未改动bag[20] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 3:cout << "几个?";cin >> aaaa;3 行未改动bag[21] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 4:cout << "几个?";cin >> aaaa;3 行未改动bag[22] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 5:cout << "几个?";cin >> aaaa;3 行未改动bag[43] -= aaaa;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 6:cout << "几个?";cin >> aaaa;42 行未改动levelup();system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "2" << endl;30 行未改动Sl[0] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 2:if (bag[7] >= 1) {cout << "学习成功" << endl;13 行未改动Sl[2] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 4:if (bag[9] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[3] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 5:if (bag[10] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[4] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 6:if (bag[11] >= 1) {cout << "学习成功" << endl;3 行未改动Sl[5] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 7:if (bag[12] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[6] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 8:if (bag[13] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[7] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 9:if (bag[14] >= 1) {cout << "学习成功" << endl;3 行未改动Sl[8] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 10:if (bag[15] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[9] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 11:if (bag[16] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[10] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 12:if (bag[17] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[11] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 13:if (bag[18] >= 1) {cout << "学习成功" << endl;2 行未改动Sl[12] = 1;Sleep(1000);break;}else cout << "物品不足" << endl;break;case 0:break;default:4 行未改动system("cls");cout << "魔法人士:" << name << endl;cout << "势力:";if (camp) cout << "伏地魔" << endl;else cout << "哈利波特" << endl;cout << "生命:" << health << "/" << maxhealth << endl;cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;cout << "速度:" << speed << endl;cout << "等级:" << level << endl;cout << "经验:" << experience << "/" << level * 100 << endl;cout << "金币:" << money << endl;cout << "1,魔法部(攻击即可占领) 2,大街(杀人/阻止食死徒) 3,";if (camp) cout << "霍格沃茨(哈利波特不在) ";else cout << "伏地魔总部(伏地魔不在) ";cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 ";if (camp) cout << "15, 医疗兵(伏地魔的)";else cout << "15, 庞弗雷女士 ";cout << "16,改变参数(测试专用 需要密码) 17,设置 18,登出" << endl;cout << "8" << endl;cout << "1,查看魔杖 2,查看药水 3,查看经验石 4,学习技能" << endl;cout << "4" << endl;89 行未改动cout << "经验药水 " << num9 << "个" << endl;cout << "全幅药水 " << num10 << "个" << endl;cout << "金币 " << num11 << "个" << endl;}else cout << "您的抽奖券不足" << endl;}else if (a == 2) return 0;else {cout << "请别乱输。";system("cls");LD();204 行未改动全部展开system("color 02");bool is[101][101];for (int i = 0; i < 100; i++)for (int j = 0; j < 100; j++)is[i][j] = false;int x = 8, y = 1;string a[100] = {"##################################################","# 1 # 2 2 3# # 1 #89#1#1# 1 1 #12 #3 #1#","#2#1#5 # #1# # ## # ##91 6 #9#7#11## # # 11#","# ## ## # # # #### # ##### # ####5## # # #####",27 行未改动system("cls");cout << "生命:" << health << "/" << maxhealth << endl;for (int i = 0; i < 20; i++) {for (int j = 0; j < 50; j++) {if (is[i][j]) cout << a[i][j];else cout << "0";}cout << endl;}int ch;196 行未改动全部展开cin >> which;switch (which){case 1:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;health += 200;maxhealth += 200;}break;case 2:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;health += 500;maxhealth += 500;}break;case 3:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;defense += 20;}break;case 4:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;defense += 50;}break;case 5:if (money < 100) DriveOut();else {money -= 100;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;attack += 100;}break;case 6:if (money < 200) DriveOut();else {money -= 200;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;attack += 250;}break;case 7:if (money < 500) DriveOut();else {money -= 500;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 1000;}break;case 8:if (money < 1000) DriveOut();else {money -= 1000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 3000;}break;case 9:if (money < 2000) DriveOut();else {money -= 2000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;3 行未改动experience += 9000;}break;case 10:if (money < 10000) DriveOut();else {money -= 10000;cout << "店主:一路走好!" << endl;cout << "你拿起药水就喝了下去。" << endl;26 行未改动cin >> which;switch (which){case 1:if (money < 40000) DriveOut();else {money -= 40000;cout << "店主:一路走好!" << endl;bag[12]++;2 行未改动case 2:cout << "店主:对不起,本书已经售完" << endl;break;case 3:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[16]++;}break;case 4:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[13]++;}break;case 5:if (money < 25000) DriveOut();else {money -= 25000;cout << "店主:一路走好!" << endl;bag[10]++;}break;case 6:if (money < 20000) DriveOut();else {money -= 20000;cout << "店主:一路走好!" << endl;bag[17]++;}break;case 7:if (money < 15000) DriveOut();else {money -= 15000;cout << "店主:一路走好!" << endl;bag[15]++;53 行未改动int checkpoint(int l){system("color 02");bool is[101][101];for (int i = 0; i < 100; i++)for (int j = 0; j < 100; j++)is[i][j] = false;int x = 1, y = 1;string a[100];if (l == 1) {69 行未改动a[0] = "#################";a[1] = "#PPPPPPPPPPPPPPP#";a[2] = "#P#############P#";a[3] = "#PPPP 9999999 PP#";if (rand() % 100 < 7) a[4] = "#################";else a[4] = "######### #######";a[5] = "#2 2#2 2#9##2 P#";a[6] = "# # # # # #22# #";a[7] = "# # # # # # #22##";a[8] = "I # # # # # # # o";88 行未改动cout << "攻击:" << attack << endl;cout << "防御:" << defense << endl;for (int i = 0; i < 25; i++) {for (int j = 0; j < 50; j++) {if (is[i][j]) cout << a[i][j];else cout << "0";}cout << endl;}int ch;419 行未改动全部展开cout << "1抢劫! 2办事的。" << endl;cin >> a;if (a == 1) cout << "魔法部大门看守:拦下他!" << endl;else {if (camp) cout << "魔法部大门看守:不可能,你是伏地魔的人!" << endl;else {cout << "魔法部大门看守仔细一看。" << endl;Sleep(1000);cout << "魔法部大门看守:他是哈利波特的人,抓了他问哈利波特下落!" << endl;}}Sleep(1000);fight("大门看守", 2000, 200, 20, 0, 1000);if (dead) return 0;fight("大门看守", 2000, 200, 20, 0, 1000);if (dead) return 0;cout << "增加100滴血" << endl;health += 100;Sleep(1000);cout << "你踢开了大门" << endl;Sleep(1000);cout << "里面的几个雕像活了" << endl;Sleep(1000);fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;fight("雕像", 10000, 200, 20, 0, 500);if (dead) return 0;cout << "增加500滴血" << endl;health += 500;cout << "你杀死了雕像后, 正准备往楼上走" << endl;Sleep(1000);19 行未改动else {cout << "员工:干掉他!" << endl;Sleep(1000);fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 15, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 17, 1000);if (dead) return 0;if (rand() % 3 == 0) {cout << "你获得了技能书铁甲咒" << endl;bag[7]++;Sleep(1000);5 行未改动cout << "你遇到了副部长" << endl;Sleep(1000);fight("副部长", 10000, 1000, 100, 20, 3000);health += 5000;if (dead) return 0;if (lie) {cout << "上次的员工跑了过来" << endl;Sleep(1000);cout << "员工:你,你骗了我们!" << endl;Sleep(1000);fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 14, 1000);if (dead) return 0;fight("员工", 3000, 200, 100, 15, 1500);if (dead) return 0;fight("员工", 3000, 200, 100, 17, 2000);if (dead) return 0;if (rand() % 3 == 0){cout << "你获得了技能书铁甲咒" << endl;68 行未改动};cout << "开始吧!" << endl;maze();}else cout << "请勿乱输" << endl;Sleep(1000);break;}}27 行未改动hisH -= 50;}}if (mfaint > 0) {if (Sl[6]) mfaint = 0;else mfaint -= 1;}if (mhurt > 0) {if (Sl[6]) mhurt = 0;else {mhurt -= 1;cout << "你的心像被一把刀刺穿了一样 扣血200滴" << endl;health -= 200;45 行未改动return 0;}if (Sl[0]) {cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl;if (maxhealth < health + 2000) health = maxhealth;else health += 2000;}}if (rand() % 4 == 0 && Sl[8]) {cout << "你使用技能召唤咒!召唤出石怪跟" << Hname << "战斗" << endl;15 行未改动if (hisA + ran > hisD) {cout << "对方发起进攻 自己扣血" << hisH - hisD + ran << "滴 剩余" << hisH - (hisA - hisD + ran) << "滴" << endl;hisH -= hisA - hisD + ran;}else cout << "对方发起进攻 自己扣血0滴 剩余" << hisH << "滴" << endl;}if (rand() % 2 && Sl[12]) {cout << "你使用技能阿瓦达索命 " << Hname << "扣血" << hisH - hisH / 4 << "滴" << endl;hisH /= 4;4 行未改动if (attack + ran > hisD) {cout << "你发起进攻 " << Hname << "扣血" << attack - hisD + ran << "滴 剩余" << hisH - (attack - hisD + ran) << "滴" << endl;hisH -= attack - hisD + ran;}else cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}else{if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl;else {cout << "你一脚踹了过去,但只擦着了腰" << endl;if ((attack / 3) + ran > hisD) {cout << Hname << "扣血" << (attack / 3) + ran - hisD << "滴 剩余" << hisH - ((attack / 3) + ran - hisD) << "滴" << endl;hisH -= (attack / 3) + ran - hisD;}else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl;}}}Sleep(700);22 行未改动}}if (rand() % 3 == 0) {cout << "对方发动技能:快快复苏 生命加200" << endl;hisH += 200;}if (rand() % 3 == 0) {cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl;hisH += 50;hisD += 50;}if (rand() % 3 == 0) {cout << "对方使用技能神锋无影 攻击增加200 扣血200滴" << endl;health -= 200;hisA += 200;}if (rand() % 3 == 0) {cout << "对方使用技能昏昏倒地 " << name << "一回合之内不能攻击" << endl;mfaint += 1;}if (rand() % 3 == 0){if (rand() % 10) {16 行未改动if (hisA + ran > defense) {cout << Hname << "发起进攻 " << "你扣血" << hisA - defense + ran << "滴 剩余" << health - (hisA - defense + ran) << "滴" << endl;health -= hisA - defense + ran;}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}else {if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl;else {if ((hisA / 3) + ran > hisD) {cout << Hname << "发起进攻 你扣血" << (hisA / 3) + ran - defense << "滴 剩余" << health - ((hisA / 3) + ran - defense) << "滴" << endl;health -= ((hisA / 3) + ran - defense);}else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl;}}Sleep(1000);if (health <= 0) {534 行未改动全部展开