正文
增加 40 行删除 40 行
62 行未改动63646566676869707145 行未改动1171181191201211221231241256 行未改动13213313413513613713813914083 行未改动22422522622722822923023123211 行未改动24424524624724824925025125262 行未改动31531631731831932032132232385 行未改动4094104114124134144154164174184194204214226 行未改动42943043143243343443543643757 行未改动4954964974984995005015025035045055065075085095105115125135145155165175185195205217 行未改动5295305315325335345355365374 行未改动54254354454554654754854955055155255355455555682 行未改动63964064164264364464564664764864965065165265365465565665765865966074 行未改动735736737738739740741742743107 行未改动全部展开85185285385485585685785885986086186286386418 行未改动88388488588688788888989089128 行未改动92092192292392492592692792862 行未改动damage_record += damage;cout<<"【回复状态】记录普攻伤害:"<<damage<<" 累计:"<<damage_record<<endl;}*rationality+=1;if(e[d] <= 0){e[d] = 0;}}45 行未改动}//每回合结束时调用,更新回复状态void update_recovery_state() {if(recovery_state){int damage_record_per=0.5;recovery_turn--;cout<<"【回复状态】剩余回合:"<<recovery_turn<<endl;6 行未改动if(recovery_turn==0){recovery_state = false;damage_record = 0;}}}private:int qenergy=180;//e技能能量、q技能能量83 行未改动{break;}}}}11 行未改动{generate(number_of_level);for(int i=1;i<=1;i++){string rolename="lost";actionqueue.push(rolename);numberqueue.push(i);}62 行未改动lost.recovery_turn = 0;lost.damage_record = 0;lost.rationality=0;}return 0;}int move(string role)85 行未改动}std::this_thread::sleep_for(std::chrono::milliseconds(1000));CLEAR_SCREEN;enemy.print();}return 0;}//养成int yangcheng2(string name){6 行未改动cout<<screen_stirp[1]<<endl;cout<<screen_stirp[1]<<endl;cout<<screen_stirp[1]<<endl;cout<<screen_stirp[0]<<endl;}int yangcheng1(){string nameye[10][10]={{"lost(1)"}};57 行未改动};// 预定义动画帧vector<AnimationFrame> loading_frames = {{screen_stirp[2], "□□□□□□□□□□□□□□□□□□□□"},{screen_stirp[3], "■□□□□□□□□□□□□□□□□□□□"},{screen_stirp[4], "■■□□□□□□□□□□□□□□□□□□"},{screen_stirp[2], "■■■□□□□□□□□□□□□□□□□□"},{screen_stirp[3], "■■■■□□□□□□□□□□□□□□□□"},{screen_stirp[4], "■■■■■□□□□□□□□□□□□□□□"},{screen_stirp[2], "■■■■■■□□□□□□□□□□□□□□"},{screen_stirp[3], "■■■■■■■□□□□□□□□□□□□□"},{screen_stirp[4], "■■■■■■■■□□□□□□□□□□□□"},{screen_stirp[2], "■■■■■■■■■□□□□□□□□□□□"},{screen_stirp[3], "■■■■■■■■■■□□□□□□□□□□"},{screen_stirp[4], "■■■■■■■■■■■□□□□□□□□□"},{screen_stirp[2], "■■■■■■■■■■■■□□□□□□□□"},{screen_stirp[3], "■■■■■■■■■■■■■□□□□□□□"},{screen_stirp[4], "■■■■■■■■■■■■■■□□□□□□"},{screen_stirp[2], "■■■■■■■■■■■■■■■□□□□□"},{screen_stirp[3], "■■■■■■■■■■■■■■■■□□□□"},{screen_stirp[4], "■■■■■■■■■■■■■■■■■□□□"},{screen_stirp[2], "■■■■■■■■■■■■■■■■■■□□"},{screen_stirp[3], "■■■■■■■■■■■■■■■■■■■□"},{screen_stirp[4], "■■■■■■■■■■■■■■■■■■■■"}};7 行未改动cout << frame.progress_bar;cout << screen_stirp[7] + screen_stirp[7] + screen_stirp[6] << endl;cout << screen_stirp[1] << endl << screen_stirp[0] << endl;}int start_screen()//开始屏幕显示{int a;cout<<screen_stirp[0]<<endl<<screen_stirp[1]<<endl;4 行未改动cout<<"输入任意内容以开始游戏:";cin>>a;cout<<endl;cout<<"欢迎来到“名为数学的游戏”游戏马上开始"<<endl;// 播放加载动画for (const auto& frame : loading_frames) {render_frame(frame);std::this_thread::sleep_for(std::chrono::milliseconds(300));}return 0;}//------------------------------------------------------------------------游戏开始显示//------------------------------------------------------------------------角色 or 战斗82 行未改动}else if(a=="f"){o.select(1);}else if(a=="g"){CLEAR_SCREEN;o.yangcheng1();}else{CLEAR_SCREEN;}}}};int main(){74 行未改动string name;int bl_v;int enemy_at_power;};enemykind kind[1000]={{" natural",200,50},{},};107 行未改动全部展开public:void attack_1(int* player_data,int bianhao) override {//从玩家血量中选择最大的两个数,拼和成一个百分数,此次攻击所造成的的伤害为攻击力与这个百分数乘算的结果int p_l = *player_data;// 步骤1:提取玩家血量的每一位数字int every_b_l[5] = {0};int digit_count = 0; // 记录实际提取的数字位数int temp = p_l;// 分解玩家血量的每一位数字while (temp > 0 && digit_count < 5){every_b_l[digit_count++] = temp % 10; // 取个位数字temp = temp / 10; // 去掉个位}18 行未改动int digit_count = 0; // 记录实际提取的数字位数int temp = p_l;// 分解玩家能量的每一位数字while (temp > 0 && digit_count < 5){every_b_l[digit_count++] = temp % 10; // 取个位数字temp = temp / 10; // 去掉个位}28 行未改动- [x] 敌人行动- [ ] 养成- [ ] ...### bug修复- [x] 受攻击后血量异常变化or不扣血注释:现在的你终于可以被打死了- [x] 敌人第一次攻击时会打你两轮注释:你终于不怕在开局被打个半死了- [ ] ...62 行未改动63646566676869707145 行未改动1171181191201211221231241256 行未改动13213313413513613713813914083 行未改动22422522622722822923023123211 行未改动24424524624724824925025125262 行未改动31531631731831932032132232385 行未改动4094104114124134144154164174184194204214226 行未改动42943043143243343443543643757 行未改动4954964974984995005015025035045055065075085095105115125135145155165175185195205217 行未改动5295305315325335345355365374 行未改动54254354454554654754854955055155255355455555682 行未改动63964064164264364464564664764864965065165265365465565665765865966074 行未改动735736737738739740741742743107 行未改动全部展开85185285385485585685785885986086186286386418 行未改动88388488588688788888989089128 行未改动92092192292392492592692792862 行未改动damage_record += damage;cout<<"【回复状态】记录普攻伤害:"<<damage<<" 累计:"<<damage_record<<endl;}*rationality+=1;if(e[d] <= 0){e[d] = 0;}}45 行未改动}//每回合结束时调用,更新回复状态void update_recovery_state() {if(recovery_state){int damage_record_per=0.5;recovery_turn--;cout<<"【回复状态】剩余回合:"<<recovery_turn<<endl;6 行未改动if(recovery_turn==0){recovery_state = false;damage_record = 0;}}}private:int qenergy=180;//e技能能量、q技能能量83 行未改动{break;}}}}11 行未改动{generate(number_of_level);for(int i=1;i<=1;i++){string rolename="lost";actionqueue.push(rolename);numberqueue.push(i);}62 行未改动lost.recovery_turn = 0;lost.damage_record = 0;lost.rationality=0;}return 0;}int move(string role)85 行未改动}std::this_thread::sleep_for(std::chrono::milliseconds(1000));CLEAR_SCREEN;enemy.print();}return 0;}//养成int yangcheng2(string name){6 行未改动cout<<screen_stirp[1]<<endl;cout<<screen_stirp[1]<<endl;cout<<screen_stirp[1]<<endl;cout<<screen_stirp[0]<<endl;}int yangcheng1(){string nameye[10][10]={{"lost(1)"}};57 行未改动};// 预定义动画帧vector<AnimationFrame> loading_frames = {{screen_stirp[2], "□□□□□□□□□□□□□□□□□□□□"},{screen_stirp[3], "■□□□□□□□□□□□□□□□□□□□"},{screen_stirp[4], "■■□□□□□□□□□□□□□□□□□□"},{screen_stirp[2], "■■■□□□□□□□□□□□□□□□□□"},{screen_stirp[3], "■■■■□□□□□□□□□□□□□□□□"},{screen_stirp[4], "■■■■■□□□□□□□□□□□□□□□"},{screen_stirp[2], "■■■■■■□□□□□□□□□□□□□□"},{screen_stirp[3], "■■■■■■■□□□□□□□□□□□□□"},{screen_stirp[4], "■■■■■■■■□□□□□□□□□□□□"},{screen_stirp[2], "■■■■■■■■■□□□□□□□□□□□"},{screen_stirp[3], "■■■■■■■■■■□□□□□□□□□□"},{screen_stirp[4], "■■■■■■■■■■■□□□□□□□□□"},{screen_stirp[2], "■■■■■■■■■■■■□□□□□□□□"},{screen_stirp[3], "■■■■■■■■■■■■■□□□□□□□"},{screen_stirp[4], "■■■■■■■■■■■■■■□□□□□□"},{screen_stirp[2], "■■■■■■■■■■■■■■■□□□□□"},{screen_stirp[3], "■■■■■■■■■■■■■■■■□□□□"},{screen_stirp[4], "■■■■■■■■■■■■■■■■■□□□"},{screen_stirp[2], "■■■■■■■■■■■■■■■■■■□□"},{screen_stirp[3], "■■■■■■■■■■■■■■■■■■■□"},{screen_stirp[4], "■■■■■■■■■■■■■■■■■■■■"}};7 行未改动cout << frame.progress_bar;cout << screen_stirp[7] + screen_stirp[7] + screen_stirp[6] << endl;cout << screen_stirp[1] << endl << screen_stirp[0] << endl;}int start_screen()//开始屏幕显示{int a;cout<<screen_stirp[0]<<endl<<screen_stirp[1]<<endl;4 行未改动cout<<"输入任意内容以开始游戏:";cin>>a;cout<<endl;cout<<"欢迎来到“名为数学的游戏”游戏马上开始"<<endl;// 播放加载动画for (const auto& frame : loading_frames) {render_frame(frame);std::this_thread::sleep_for(std::chrono::milliseconds(300));}return 0;}//------------------------------------------------------------------------游戏开始显示//------------------------------------------------------------------------角色 or 战斗82 行未改动}else if(a=="f"){o.select(1);}else if(a=="g"){CLEAR_SCREEN;o.yangcheng1();}else{CLEAR_SCREEN;}}}};int main(){74 行未改动string name;int bl_v;int enemy_at_power;};enemykind kind[1000]={{" natural",200,50},{},};107 行未改动全部展开public:void attack_1(int* player_data,int bianhao) override {//从玩家血量中选择最大的两个数,拼和成一个百分数,此次攻击所造成的的伤害为攻击力与这个百分数乘算的结果int p_l = *player_data;// 步骤1:提取玩家血量的每一位数字int every_b_l[5] = {0};int digit_count = 0; // 记录实际提取的数字位数int temp = p_l;// 分解玩家血量的每一位数字while (temp > 0 && digit_count < 5){every_b_l[digit_count++] = temp % 10; // 取个位数字temp = temp / 10; // 去掉个位}18 行未改动int digit_count = 0; // 记录实际提取的数字位数int temp = p_l;// 分解玩家能量的每一位数字while (temp > 0 && digit_count < 5){every_b_l[digit_count++] = temp % 10; // 取个位数字temp = temp / 10; // 去掉个位}28 行未改动- [x] 敌人行动- [ ] 养成- [ ] ...### bug修复- [x] 受攻击后血量异常变化or不扣血注释:现在的你终于可以被打死了- [x] 敌人第一次攻击时会打你两轮注释:你终于不怕在开局被打个半死了- [ ] ...