阅读量:0
#include <bits/stdc++.h> #include <windows.h> using namespace std; string name,wh; int hl,wh1; int gj=50,fy=50,jy=5000,hp=60; int main() { // 共十个武魂["昊天锤","蓝电霸王龙","七杀剑","火凤凰","尖尾雨燕","蓝银皇","六翼天使","邪眸白虎","破魂枪","奇茸通天菊"]; srand(time(NULL)); cout<<" ---------斗罗大陆---------"<<endl; cout<<"(福利放送:开局5000点经验)"<<endl; cout<<"你好,欢迎来到斗罗大陆,行走江湖,请留下你的大名:"; cin >> name; if(name=="黄金斗战士"){ jy=30000; gj=100; fy=100; hp=160; } cout<<name<<",你即将进行魂力测评,请做好准备"<<endl; Sleep(3000); hl=rand()%100+1; if(hl<=20) { cout<<"你只是一个普通人,没有魂力,平凡的度过一生!!!"<<endl; return 0; } else{ hl=(hl-20)/8; cout<<"你的魂力为"<<hl<<"级,请开始你的成神之路"<<endl; } cout<<name<<",你即将觉醒武魂,请做好准备"<<endl; Sleep(3000); wh1=rand()%10; if(wh1==0) { wh="昊天锤"; gj+=27; fy+=12; } if(wh1==1) { wh="蓝电霸王龙"; gj+=17; fy+=21; } if(wh1==2) { wh="七杀剑"; gj+=31; fy+=7; } if(wh1==3) { wh="火凤凰"; gj+=21; fy+=15; } if(wh1==4) { wh="尖尾雨燕"; gj+=18; fy+=16; } if(wh1==5) { wh="蓝银皇"; gj+=13; fy+=26; } if(wh1==6) { wh="六翼天使"; gj+=20; fy+=20; } if(wh1==7) { wh="邪眸白虎"; gj+=23; fy+=16; } if(wh1==8) { wh="破魂枪"; gj+=28; fy+=10; } if(wh1==9) { wh="奇茸通天菊"; gj+=16; fy+=18; } while(jy>=hl*100){ hl+=1; cout<<"恭喜"<<name<<"升级,当前魂力"<<hl<<"级!!!"<<endl; cout<<"攻击力加7,防御力加5,HP值加10"<<endl; jy-=hl*100; if(hl%10==0){ cout<<"魂力达到瓶颈,请吸收魂环"<<endl; break; } } gj+=7*hl; fy+=5*hl; hp+=10*hl; cout<<"你的武魂是:"<<wh<<" 攻击力:"<<gj<<" 防御力:"<<fy<<" 经验值:"<<jy<<"/"<<hl*100<<" HP:"<<hp<<endl; return 0; }
外挂:将名字取为 黄金斗战士 即可获得30000经验值和额外增幅!!!