版本比较
HarryPotter(转存)
正文
增加 165 行删除 165 行
11 行未改动1213141516161718192017 行未改动3839404142424344454628 行未改动7576777879798081828354 行未改动13813914014114214214314414514622 行未改动16917017117217317317417517617617717817918018118218318318418518618732 行未改动22022122222322422422522622722722822923023137 行未改动26927027127227327327427527627727827727827928028128229 行未改动31231331431531631731631731831932032115 行未改动3373383393403413413423433443454 行未改动35035135235335435435535635735735835936036136236336436436536636736837 行未改动40640740840941041041141241341341441541641741841942042042142242342439 行未改动46446546646746846946846947047147247334 行未改动50850951051151251351251351451551651716 行未改动5345355365375385385395405415424 行未改动54754854955055155155255355455455555655755844 行未改动60360460560660760760860961061061161261361447 行未改动66266366466566666766666766866967067067167267367427 行未改动70270370470570670670770870971070971071171271371415 行未改动7307317327337347347357367377384 行未改动74374474574674774774874975075075175275375475575675775775875976076111 行未改动77377477577677777877777877978078178220 行未改动803804805806807807808809810810811812813814815816817817818819820821490 行未改动全部展开1312131313141315131613161317131813191319132013211322132213231324132513266 行未改动133313341335133613371337133813391340134113421343134413451346134713461347134813491350135124 行未改动13761377137813791380138113801381138213831383138413851386138713881389139013911392139213931394139513963 行未改动140014011402140314041404140514061407140714081409141014119 行未改动14211422142314241425142514261427142814291429143014311432143314341434143514361437143714381439144014419 行未改动14511452145314541455145614551456145714581459146027 行未改动148814891490149114921493149214931494149514961497149814991498149915001501150215031504150515061507150815091508150915101511151215111512151315141515151689 行未改动16061607160816091610161116101611161216131614161516161617161816191620162116201621162216231623162416251626162727 行未改动16551656165716581659165916601661166216633 行未改动16671668166916701671167116721673167416753 行未改动16791680168116821683168316841685168616873 行未改动16911692169316941695169516961697169816993 行未改动170317041705170617071707170817091710171142 行未改动1754175517561757175817591758175917601761176217631764176517661767176817691768176917701771177217711772177317741775177630 行未改动180718081809181018111811181218131814181513 行未改动18291830183118321833183318341835183618372 行未改动18401841184218431844184418451846184718482 行未改动18511852185318541855185518561857185818593 行未改动18631864186518661867186718681869187018712 行未改动18741875187618771878187818791880188118822 行未改动18851886188718881889188918901891189218933 行未改动18971898189919001901190119021903190419052 行未改动19081909191019111912191219131914191519162 行未改动19191920192119221923192319241925192619272 行未改动19301931193219331934193419351936193719382 行未改动19411942194319441945194519461947194819494 行未改动19541955195619571958195819591960196119621963196419651966196719681967196819691970197119701971197219731974197589 行未改动2065206620672068206920692070207120712072207320742075204 行未改动全部展开228022812282228322842284228522862286228722882289229027 行未改动231823192320232123222323232223232324232523262327196 行未改动全部展开2524252525262527252825282529253025312532253325342535253625372538253825392540254125422543254425452546254725482548254925502551255225532554255525562557255725582559256025612562256325642565256625662567256825692570257125722573257425752575257625772578257925802581258225832584258425852586258725883 行未改动25922593259425952596259625972598259926003 行未改动26042605260626072608260826092610261126123 行未改动261626172618261926202620262126222623262426 行未改动26512652265326542655265526562657265826592 行未改动266226632664266526662666266726682669267026712672267326742674267526762677267826792680268126822682268326842685268626872688268926902690269126922693269426952696269726982698269927002701270253 行未改动27562757275827592760276127602761276227632764276569 行未改动28352836283728382839284028392840284128422843284488 行未改动293329342935293629372938293729382939294029412942419 行未改动全部展开33623363336433653366336633673368336933703371337233733374337533753376337733773378337933803381338233833384338533863386338733883388338933903390339133923393339419 行未改动34143415341634173418341834193420342034213422342234233424342434253426342634273428342934305 行未改动34363437343834393440344034413442344334443445344634473447344834493449345034513451345234533453345434553456345768 行未改动352635273528352935303530353135323533353427 行未改动356235633564356535663567356635673568356935703570357135723573357445 行未改动36203621362236233624362536243625362636273628362915 行未改动36453646364736483649364936503651365236534 行未改动3658365936603661366236623663366436653666366636673668366936703671367236733673367436753676367722 行未改动37003701370237033704370437053706370737083709370937103711371237133714371437153716371737183718371937203721372216 行未改动373937403741374237433743374437453746374637473748374937503751375237523753375437553756534 行未改动全部展开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全幅药水 //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; 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 (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 cout << "石怪发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } else { if (rand() % 2) cout << "石怪一脚踹了过去,但没有踢中" << endl; 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; 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 cout << Hname << "发起进攻 " << "石怪扣血0滴 剩余" << mhealth << "滴" << endl; } else { if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl; 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; if (Sl[6]) mfaint = 0; else mfaint -= 1; } if (mhurt > 0) { if (Sl[6]) mhurt = 0; else mhurt -= 1; 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 (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; 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 cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } else { if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl; 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; 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 cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl; } else { if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl; 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; 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 (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; 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; 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 cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } else { if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl; 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 cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl; } else { if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl; 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 (Sl[6]) mfaint = 0; else mfaint -= 1; } if (mhurt > 0) { if (Sl[6]) 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 (hisH < 1) return 0; if (Sl[0]) { cout << "在对方和石怪的战斗中,你已经恢复了2000生命" << endl; if (maxhealth < health + 2000) health = maxhealth; else health += 2000; 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; 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 cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } else { if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl; 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; 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++; 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 cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl; } else { if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl; 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; 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; if (dead) return 0; cout << "员工头冲了过来" << endl; fight("员工头", 5000, 5000, 10, 14, 2000); if (dead) return 0; if (dead) return 0; cout << "店主冲了过来" << endl; fight("店主", 10000, 1000, 100, 15, 4000); if (dead) return 0; 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(); if (q == 1) street(); } } } } else { cout << "购买成功" << endl; bag[p]++; money -= m; if (ane == 1) D_Of_C++; if (ane1 == 1) D_Of_C1 += 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 << "杖芯不够"; if (bag[w2] < c2) cout << "你木材和杖芯都不够"; else cout << "杖芯不够"; } else if (bag[w2] < c2) 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; 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; if (rand() % 2 && level > 4) bag[0] += 1; cout << "你升了1级" << endl; levelup(); if (ane1 == 4) D_Of_C1++; 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 (ane == 2) D_Of_C++; if (ane1 == 1) D_Of_C1 += ((maxhealth) - health) / 16; health = maxhealth; } else cout << "钱不足" << endl; else cout << "钱不足" << endl; } else { health = maxhealth; cout << "恢复成功" << endl; if (ane == 2) D_Of_C++; if (ane == 2) D_Of_C++; } } else if (a == 2) return 0; 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 << " "; 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 << "请别乱输"; else if (aaaa == 0) break; else cout << "请别乱输"; levelup(); system("cls"); cout << "魔法人士:" << name << endl; cout << "势力:"; if (camp) cout << "伏地魔" << endl; else cout << "哈利波特" << endl; 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 << "伏地魔总部(伏地魔不在) "; if (camp) cout << "霍格沃茨(哈利波特不在) "; else cout << "伏地魔总部(伏地魔不在) "; cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 "; if (camp) cout << "15, 医疗兵(伏地魔的)"; else cout << "15, 庞弗雷女士 "; 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; 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 << "伏地魔总部(伏地魔不在) "; if (camp) cout << "霍格沃茨(哈利波特不在) "; else cout << "伏地魔总部(伏地魔不在) "; cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 "; if (camp) cout << "15, 医疗兵(伏地魔的)"; 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; else cout << "物品不足" << endl; break; case 2: cout << "几个?"; cin >> aaaa;3 行未改动 bag[20] -= aaaa; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 3: cout << "几个?"; cin >> aaaa;3 行未改动 bag[21] -= aaaa; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 4: cout << "几个?"; cin >> aaaa;3 行未改动 bag[22] -= aaaa; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 5: cout << "几个?"; cin >> aaaa;3 行未改动 bag[43] -= aaaa; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 6: cout << "几个?"; cin >> aaaa;42 行未改动 levelup(); system("cls"); cout << "魔法人士:" << name << endl; cout << "势力:"; if (camp) cout << "伏地魔" << endl; else cout << "哈利波特" << endl; 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 << "伏地魔总部(伏地魔不在) "; if (camp) cout << "霍格沃茨(哈利波特不在) "; else cout << "伏地魔总部(伏地魔不在) "; cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 "; if (camp) cout << "15, 医疗兵(伏地魔的)"; else cout << "15, 庞弗雷女士 "; 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; else cout << "物品不足" << endl; break; case 2: if (bag[7] >= 1) { cout << "学习成功" << endl;13 行未改动 Sl[2] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 4: if (bag[9] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[3] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 5: if (bag[10] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[4] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 6: if (bag[11] >= 1) { cout << "学习成功" << endl;3 行未改动 Sl[5] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 7: if (bag[12] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[6] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 8: if (bag[13] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[7] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 9: if (bag[14] >= 1) { cout << "学习成功" << endl;3 行未改动 Sl[8] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 10: if (bag[15] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[9] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 11: if (bag[16] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[10] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 12: if (bag[17] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[11] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 13: if (bag[18] >= 1) { cout << "学习成功" << endl;2 行未改动 Sl[12] = 1; Sleep(1000); break; } else cout << "物品不足" << endl; else cout << "物品不足" << endl; break; case 0: break; default:4 行未改动 system("cls"); cout << "魔法人士:" << name << endl; cout << "势力:"; if (camp) cout << "伏地魔" << endl; else 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 << "伏地魔总部(伏地魔不在) "; if (camp) cout << "霍格沃茨(哈利波特不在) "; else cout << "伏地魔总部(伏地魔不在) "; cout << "4,霍格沃茨(最后战场) 5,奥利凡德魔杖商店 6,抽奖 7,经验石店 8,背包 9,工厂 10,材料店 11,任务 12,终极任务 13,副本 14,保存 "; if (camp) cout << "15, 医疗兵(伏地魔的)"; else cout << "15, 庞弗雷女士 "; 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 cout << "您的抽奖券不足" << endl; } else if (a == 2) return 0; 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; is[i][j] = false; int x = 8, y = 1; string a[100] = { 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"; 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(); if (money < 100) DriveOut(); else { money -= 100; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; health += 200; maxhealth += 200; } break; case 2: if (money < 200) DriveOut(); if (money < 200) DriveOut(); else { money -= 200; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; health += 500; maxhealth += 500; } break; case 3: if (money < 100) DriveOut(); if (money < 100) DriveOut(); else { money -= 100; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; defense += 20; } break; case 4: if (money < 200) DriveOut(); if (money < 200) DriveOut(); else { money -= 200; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; defense += 50; } break; case 5: if (money < 100) DriveOut(); if (money < 100) DriveOut(); else { money -= 100; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; attack += 100; } break; case 6: if (money < 200) DriveOut(); if (money < 200) DriveOut(); else { money -= 200; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl; attack += 250; } break; case 7: if (money < 500) DriveOut(); if (money < 500) DriveOut(); else { money -= 500; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl;3 行未改动 experience += 1000; } break; case 8: if (money < 1000) DriveOut(); if (money < 1000) DriveOut(); else { money -= 1000; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl;3 行未改动 experience += 3000; } break; case 9: if (money < 2000) DriveOut(); if (money < 2000) DriveOut(); else { money -= 2000; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl;3 行未改动 experience += 9000; } break; case 10: if (money < 10000) DriveOut(); if (money < 10000) DriveOut(); else { money -= 10000; cout << "店主:一路走好!" << endl; cout << "你拿起药水就喝了下去。" << endl;26 行未改动 cin >> which; switch (which) { case 1: if (money < 40000) DriveOut(); if (money < 40000) DriveOut(); else { money -= 40000; cout << "店主:一路走好!" << endl; bag[12]++;2 行未改动 case 2: cout << "店主:对不起,本书已经售完" << endl; break; case 3: if (money < 20000) DriveOut(); if (money < 20000) DriveOut(); else { money -= 20000; cout << "店主:一路走好!" << endl; bag[16]++; } break; case 4: if (money < 20000) DriveOut(); if (money < 20000) DriveOut(); else { money -= 20000; cout << "店主:一路走好!" << endl; bag[13]++; } break; case 5: if (money < 25000) DriveOut(); if (money < 25000) DriveOut(); else { money -= 25000; cout << "店主:一路走好!" << endl; bag[10]++; } break; case 6: if (money < 20000) DriveOut(); if (money < 20000) DriveOut(); else { money -= 20000; cout << "店主:一路走好!" << endl; bag[17]++; } break; case 7: if (money < 15000) DriveOut(); 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++) 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] = "######### #######"; 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"; 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; if (camp) cout << "魔法部大门看守:不可能,你是伏地魔的人!" << endl; else { cout << "魔法部大门看守仔细一看。" << endl; Sleep(1000); cout << "魔法部大门看守:他是哈利波特的人,抓了他问哈利波特下落!" << endl; } } Sleep(1000); fight("大门看守", 2000, 200, 20, 0, 1000); if (dead) return 0; if (dead) return 0; fight("大门看守", 2000, 200, 20, 0, 1000); if (dead) return 0; 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; if (dead) return 0; fight("雕像", 10000, 200, 20, 0, 500); if (dead) return 0; if (dead) return 0; fight("雕像", 10000, 200, 20, 0, 500); if (dead) return 0; 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; if (dead) return 0; fight("员工", 3000, 200, 100, 14, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 14, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 15, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 17, 1000); if (dead) return 0; 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 (dead) return 0; if (lie) { cout << "上次的员工跑了过来" << endl; Sleep(1000); cout << "员工:你,你骗了我们!" << endl; Sleep(1000); fight("员工", 3000, 200, 100, 14, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 14, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 14, 1000); if (dead) return 0; if (dead) return 0; fight("员工", 3000, 200, 100, 15, 1500); if (dead) return 0; 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; else cout << "请勿乱输" << endl; Sleep(1000); break; } }27 行未改动 hisH -= 50; } } if (mfaint > 0) { if (Sl[6]) mfaint = 0; else mfaint -= 1; if (Sl[6]) mfaint = 0; else mfaint -= 1; } if (mhurt > 0) { if (Sl[6]) 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 (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; 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 cout << "你发起进攻 " << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } else { if (rand() % 2) cout << "你一脚踹了过去,但没有踢中" << endl; 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; else cout << Hname << "扣血0滴 剩余" << hisH << "滴" << endl; } } } Sleep(700);22 行未改动 } } if (rand() % 3 == 0) { cout << "对方发动技能:快快复苏 生命加200" << endl; hisH += 200; hisH += 200; } if (rand() % 3 == 0) { cout << "对方发动技能:盔甲护身 生命加50 防御增加50" << endl; hisH += 50; hisD += 50; hisD += 50; } if (rand() % 3 == 0) { cout << "对方使用技能神锋无影 攻击增加200 扣血200滴" << endl; health -= 200; hisA += 200; hisA += 200; } if (rand() % 3 == 0) { cout << "对方使用技能昏昏倒地 " << name << "一回合之内不能攻击" << endl; mfaint += 1; 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 cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl; } else { if (rand() % 2) cout << Hname << "一脚踹了过来,但没有踢中" << endl; 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; else cout << Hname << "发起进攻 " << "你扣血0滴 剩余" << health << "滴" << endl; } } Sleep(1000); if (health <= 0) {534 行未改动全部展开