版本比较
三国杀
正文
增加 43 行删除 36 行
530 行未改动全部展开53153253353453553653753853954054154227 行未改动57057157257357457557657757817 行未改动59659759859960060160260360423 行未改动62862963063163263363463563625 行未改动66266366466566666766866967023 行未改动6946956966976986997007017023 行未改动70670770870971071171271371471571671726 行未改动74474574674774874975075175275375475575675724 行未改动7827837847857867877887897901,601 行未改动全部展开239223932394239523962397239823992400119 行未改动全部展开25202521252225232524252525262527252825292530253125322533253425352536253750 行未改动25882589259025912592259325942595259611 行未改动26082609261026112612261326142615312 行未改动全部展开2928292929302931293229332934293529362937293829392940294148 行未改动2990299129922993299429952996299729982999300030013002300348 行未改动3052305330543055305630573058305930603061306230633064306557 行未改动3123312431253126312731283129313031313132313331343135137 行未改动全部展开32733274327532763277327832793280328119 行未改动330133023303330433053306330733083309193 行未改动全部展开35033504350535063507350835093510351140 行未改动35523553355435553556355735583559356049 行未改动36103611361236133614361536163617361836193620362136223623362436253626362732 行未改动3660366136623663366436653666366736686 行未改动367536763677367836793680368136823683368436853686368713 行未改动37013702370337043705370637073708530 行未改动全部展开player[killer].have_minus1=player[killer].have_plus1=0;}if(deceased==1){int living=0;for(int i=1;i<=5;i++) living+=(player[i].hp>0);if(living>1) MessageBox(NULL,"游戏结束,反贼胜利","游戏结束",MB_OK);else MessageBox(NULL,"游戏结束,内奸胜利","游戏结束",MB_OK);exit(0);}else{27 行未改动if(player[id].hp<=0)//求桃{binsi=1;MessageBox(NULL,("玩家 "+to_string(id)+" 求桃").c_str(),"求桃提示",MB_OK);if(player[id].ability["鏖战"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动鏖战").c_str(),"技能提示",MB_OK),get_cards(id,1),print();for(int i=id;i<=5;i++){if(!find(i,"桃")&&(id!=player_id||i!=player_id||!find(i,"酒"))&&(!player[i].ability["桃源"]||!find(i,"闪"))) continue;if(player[id].hp>0) break;17 行未改动if(now==i&&player[i].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[i].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(i)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;23 行未改动if(player[i].cards[j].name=="桃"||(player[i].ability["桃源"]&&player[i].cards[j].name=="闪")){Card card=player[i].cards[j];player[i].cards.erase(player[i].cards.begin()+j);if(card.name=="闪") MessageBox(NULL,("玩家 "+to_string(i)+" 发动桃源,将 "+card_to_string(card)+" 当桃使用").c_str(),"技能提示",MB_OK);else MessageBox(NULL,("玩家 "+to_string(i)+" 出 "+card_to_string(card)).c_str(),"求桃信息",MB_OK);player[id].hp++;yinqin(i,id,2);j--;25 行未改动if(now==i&&player[i].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[i].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(i)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;23 行未改动if(player[i].cards[j].name=="桃"||(player[i].ability["桃源"]&&player[i].cards[j].name=="闪")){Card card=player[i].cards[j];player[i].cards.erase(player[i].cards.begin()+j);if(card.name=="闪") MessageBox(NULL,("玩家 "+to_string(i)+" 发动桃源,将 "+card_to_string(card)+" 当桃使用").c_str(),"技能提示",MB_OK);else MessageBox(NULL,("玩家 "+to_string(i)+" 出 "+card_to_string(card)).c_str(),"求桃信息",MB_OK);player[id].hp++;yinqin(i,id,2);j--;3 行未改动}}int connected=player[id].connected;if(player[id].hp<=0) die(idx,id);//没救过来if(player[id].hp>0&&binsi&&player[id].ability["鏖战"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动鏖战").c_str(),"技能提示",MB_OK),get_cards(id,1),print();if(player[id].hp>0&&player[id].ability["岌岌"]){MessageBox(NULL,("玩家 "+to_string(id)+" 发动技能岌岌").c_str(),"技能提示",MB_OK);get_cards(id,2*x);print();}if(op&&connected)//属性伤害 + 连环26 行未改动string tmp=card_to_string(judgen);if(judgen.color&1){MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}namespace OutCard24 行未改动if(now==id&&player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;1,601 行未改动全部展开if(now==player_id&&player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;119 行未改动全部展开u^=number^id;//轮流打出杀}hurt(u^number^id,u,1);}void jdsr()//借刀杀人,人机太傻不会用,只能真人用{int number1=0,number2=0;do{print();printf("请输入借刀的目标:");scanf("%d",&number1);}while(number1<1||number1>5||!player[number1].have_weapon||number1==player_id);do{print();printf("请输入杀的目标:");50 行未改动if(flag) break;}}}if(flag) return;if((find(number1,"杀")||find(number1,"雷杀")||find(number1,"火杀"))&&(player[number1].check[number2]<-5||rand()%3==0)){for(int i=0;i<player[number1].cards.size();i++){11 行未改动{player[player_id].cards.push_back(player[number1].weapon);player[number1].have_weapon=0;player[number1].weapon=Null;}}void wgfd(int id)//玩家 id 使用五谷丰登{int tot=0,living=0;312 行未改动全部展开string tmp=card_to_string(judgen);if(judgen.color==1){MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}bool judge_blcd(int id)//判定兵粮寸断48 行未改动string tmp=card_to_string(judgen);if(judgen.color==2){MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}bool judge_sd(int id)//判定闪电48 行未改动string tmp=card_to_string(judgen);if(judgen.color==0&&2<=judgen.number&&judgen.number<=9){MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}int judge_time(int id)//玩家 id 的判定阶段57 行未改动{if(id!=player_id) MessageBox(NULL,("玩家 "+to_string(id)+" 的回合即将开始").c_str(),"回合开始提示",MB_OK);if(player[id].ability["鬼脑"]){MessageBox(NULL,("玩家 "+to_string(id)+" 发动技能鬼脑,进行判定").c_str(),"技能提示",MB_OK);Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);player[id].mark["鬼脑"]=judgen.number;if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);}int judge_res=judge_time(id);//先判定if(player[id].hp<=0) return;//中大奖被闪电劈死了137 行未改动全部展开player[id].cards.erase(player[id].cards.begin()+card_number);recycle.cards.push_back(goal);if(goal.name=="闪电") player[id].judge.push_back(goal);if(goal.name=="桃") player[id].hp++;if(goal.name=="借刀杀人") jdsr();if(goal.name=="五谷丰登") wgfd(id);if(goal.name=="无中生有") wzsy(id);if(goal.name=="铁索连环") tslh(id);if(goal.name=="过河拆桥") ghcq(id,goal);19 行未改动if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;193 行未改动全部展开if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;40 行未改动if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动天赐,获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;49 行未改动for(int i=1;i<=5;i++){// if(i==player_id)// {// player[i].ability["随机化"]=player[i].ability["卡常"]=1;// player[i].ability["猜结论"]=player[i].ability["乱写"]=1;// }// else// {// player[i].ability["岌岌"]=player[i].ability["鏖战"]=player[i].ability["桃源"]=player[i].ability["强弩"]=1;// player[i].ability["随机化"]=player[i].ability["卡常"]=1;// player[i].ability["猜结论"]=player[i].ability["乱写"]=1;// player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;// }if(rand()&1){if(rand()&1) player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;else player[i].ability["猜结论"]=player[i].ability["乱写"]=1;32 行未改动SPxwx 4/4参考:马超+ 随机化当你使用杀指定唯一目标时,你进行判定。花色:+ 黑桃:目标不能响应此牌+ 红桃:此牌伤害 +1+ 梅花:你弃置其一张手牌6 行未改动+ 卡常锁定技,你与其他角色的距离 -1神 lhr参考:神张辽++法国赌神 4/4参考:陆逊、沮授、黄月英+ 验牌13 行未改动+ 鬼脑锁定技,回合开始时你进行判定,你本回合出杀的次数为 X(X 为判定牌点数),你出牌阶段每出一张非"无懈可击"的牌,结算完成后,你进行判定,若为红色,你弃置一张手牌。+ 天赐你的判定牌生效后,你获得之*/```530 行未改动全部展开53153253353453553653753853954054154227 行未改动57057157257357457557657757817 行未改动59659759859960060160260360423 行未改动62862963063163263363463563625 行未改动66266366466566666766866967023 行未改动6946956966976986997007017023 行未改动70670770870971071171271371471571671726 行未改动74474574674774874975075175275375475575675724 行未改动7827837847857867877887897901,601 行未改动全部展开239223932394239523962397239823992400119 行未改动全部展开2520252125222523252425252526252725282529253025312532253325342535253625372538253950 行未改动25902591259225932594259525962597259811 行未改动261026112612261326142615261626172618312 行未改动全部展开2931293229332934293529362937293829392940294129422943294448 行未改动2993299429952996299729982999300030013002300330043005300648 行未改动3055305630573058305930603061306230633064306530663067306857 行未改动3126312731283129313031313132313331343135313631373138137 行未改动全部展开32763277327832793280328132823283328419 行未改动330433053306330733083309331033113312193 行未改动全部展开35063507350835093510351135123513351440 行未改动35553556355735583559356035613562356349 行未改动36133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363632 行未改动3669367036713672367336743675367636776 行未改动3684368536863687368836893690369136923693369413 行未改动37083709371037113712371337143715530 行未改动全部展开player[killer].have_minus1=player[killer].have_plus1=0;}if(deceased==1){int living=0,neijian=0;for(int i=1;i<=5;i++) living+=(player[i].hp>0),neijian|=(player[i].ident=="内奸"&&player[i].hp>0);if(living==1&&neijian) MessageBox(NULL,"游戏结束,内奸胜利","游戏结束",MB_OK);else MessageBox(NULL,"游戏结束,反贼胜利","游戏结束",MB_OK);exit(0);}else{27 行未改动if(player[id].hp<=0)//求桃{binsi=1;MessageBox(NULL,("玩家 "+to_string(id)+" 求桃").c_str(),"求桃提示",MB_OK);if(player[id].ability["鏖战"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[鏖战]").c_str(),"技能提示",MB_OK),get_cards(id,1),print();for(int i=id;i<=5;i++){if(!find(i,"桃")&&(id!=player_id||i!=player_id||!find(i,"酒"))&&(!player[i].ability["桃源"]||!find(i,"闪"))) continue;if(player[id].hp>0) break;17 行未改动if(now==i&&player[i].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[i].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(i)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;23 行未改动if(player[i].cards[j].name=="桃"||(player[i].ability["桃源"]&&player[i].cards[j].name=="闪")){Card card=player[i].cards[j];player[i].cards.erase(player[i].cards.begin()+j);if(card.name=="闪") MessageBox(NULL,("玩家 "+to_string(i)+" 发动[桃源],将 "+card_to_string(card)+" 当桃使用").c_str(),"技能提示",MB_OK);else MessageBox(NULL,("玩家 "+to_string(i)+" 出 "+card_to_string(card)).c_str(),"求桃信息",MB_OK);player[id].hp++;yinqin(i,id,2);j--;25 行未改动if(now==i&&player[i].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[i].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(i)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;23 行未改动if(player[i].cards[j].name=="桃"||(player[i].ability["桃源"]&&player[i].cards[j].name=="闪")){Card card=player[i].cards[j];player[i].cards.erase(player[i].cards.begin()+j);if(card.name=="闪") MessageBox(NULL,("玩家 "+to_string(i)+" 发动[桃源],将 "+card_to_string(card)+" 当桃使用").c_str(),"技能提示",MB_OK);else MessageBox(NULL,("玩家 "+to_string(i)+" 出 "+card_to_string(card)).c_str(),"求桃信息",MB_OK);player[id].hp++;yinqin(i,id,2);j--;3 行未改动}}int connected=player[id].connected;if(player[id].hp<=0) die(idx,id);//没救过来if(player[id].hp>0&&binsi&&player[id].ability["鏖战"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[鏖战]").c_str(),"技能提示",MB_OK),get_cards(id,1),print();if(player[id].hp>0&&player[id].ability["岌岌"]){MessageBox(NULL,("玩家 "+to_string(id)+" 发动[岌岌]").c_str(),"技能提示",MB_OK);get_cards(id,2*x);print();}if(op&&connected)//属性伤害 + 连环26 行未改动string tmp=card_to_string(judgen);if(judgen.color&1){MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}namespace OutCard24 行未改动if(now==id&&player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;1,601 行未改动全部展开if(now==player_id&&player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;119 行未改动全部展开u^=number^id;//轮流打出杀}hurt(u^number^id,u,1);}int jdsr()//借刀杀人,人机太傻不会用,只能真人用{int number1=0,number2=0;do{print();printf("请输入借刀的目标(输入 -1 取消):");scanf("%d",&number1);if(number1==-1) break;}while(number1<1||number1>5||!player[number1].have_weapon||number1==player_id);if(number1==-1) return 0;do{print();printf("请输入杀的目标:");50 行未改动if(flag) break;}}}if(flag) return 1;if((find(number1,"杀")||find(number1,"雷杀")||find(number1,"火杀"))&&(player[number1].check[number2]<-5||rand()%3==0)){for(int i=0;i<player[number1].cards.size();i++){11 行未改动{player[player_id].cards.push_back(player[number1].weapon);player[number1].have_weapon=0;player[number1].weapon=Null;}return 1;}void wgfd(int id)//玩家 id 使用五谷丰登{int tot=0,living=0;312 行未改动全部展开string tmp=card_to_string(judgen);if(judgen.color==1){MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐]获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}bool judge_blcd(int id)//判定兵粮寸断48 行未改动string tmp=card_to_string(judgen);if(judgen.color==2){MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}bool judge_sd(int id)//判定闪电48 行未改动string tmp=card_to_string(judgen);if(judgen.color==0&&2<=judgen.number&&judgen.number<=9){MessageBox(NULL,(tmp+"(即将生效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 1;}MessageBox(NULL,(tmp+"(即将失效)").c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);return 0;}int judge_time(int id)//玩家 id 的判定阶段57 行未改动{if(id!=player_id) MessageBox(NULL,("玩家 "+to_string(id)+" 的回合即将开始").c_str(),"回合开始提示",MB_OK);if(player[id].ability["鬼脑"]){MessageBox(NULL,("玩家 "+to_string(id)+" 发动[鬼脑],进行判定").c_str(),"技能提示",MB_OK);Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);player[id].mark["鬼脑"]=judgen.number;if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);}int judge_res=judge_time(id);//先判定if(player[id].hp<=0) return;//中大奖被闪电劈死了137 行未改动全部展开player[id].cards.erase(player[id].cards.begin()+card_number);recycle.cards.push_back(goal);if(goal.name=="闪电") player[id].judge.push_back(goal);if(goal.name=="桃") player[id].hp++;if(goal.name=="借刀杀人") if(!jdsr()) continue;if(goal.name=="五谷丰登") wgfd(id);if(goal.name=="无中生有") wzsy(id);if(goal.name=="铁索连环") tslh(id);if(goal.name=="过河拆桥") ghcq(id,goal);19 行未改动if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;193 行未改动全部展开if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;40 行未改动if(player[id].ability["鬼脑"]){Card judgen=judge();MessageBox(NULL,card_to_string(judgen).c_str(),"判定结果",MB_OK);if(player[id].ability["天赐"]) MessageBox(NULL,("玩家 "+to_string(id)+" 发动[天赐],获得判定牌").c_str(),"技能提示",MB_OK),player[id].cards.push_back(judgen);else recycle.cards.push_back(judgen);if(judgen.color&1){int number=0;49 行未改动for(int i=1;i<=5;i++){// if(i==player_id)// {// player[i].ability["鬼脑"]=player[i].ability["天赐"]=player[i].ability["随机化"]=player[i].ability["猜结论"]=1;// player[i].ability["随机化"]=player[i].ability["卡常"]=1;// player[i].ability["猜结论"]=player[i].ability["乱写"]=1;// player[i].ability["岌岌"]=player[i].ability["鏖战"]=player[i].ability["桃源"]=player[i].ability["强弩"]=1;// player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;// player[i].ability["天赐"]=1;// }// else// {// player[i].ability["岌岌"]=player[i].ability["桃源"]=player[i].ability["强弩"]=1;// player[i].ability["岌岌"]=player[i].ability["鏖战"]=player[i].ability["桃源"]=player[i].ability["强弩"]=1;// player[i].ability["随机化"]=player[i].ability["卡常"]=1;// player[i].ability["猜结论"]=player[i].ability["乱写"]=1;// player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;// }// elseif(rand()&1){if(rand()&1) player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;else player[i].ability["猜结论"]=player[i].ability["乱写"]=1;32 行未改动SPxwx 4/4参考:马超+ 随机化锁定技,当你使用杀指定唯一目标时,你进行判定。花色:+ 黑桃:目标不能响应此牌+ 红桃:此牌伤害 +1+ 梅花:你弃置其一张手牌6 行未改动+ 卡常锁定技,你与其他角色的距离 -1谋 lhr 2/3参考:+法国赌神 4/4参考:陆逊、沮授、黄月英+ 验牌13 行未改动+ 鬼脑锁定技,回合开始时你进行判定,你本回合出杀的次数为 X(X 为判定牌点数),你出牌阶段每出一张非"无懈可击"的牌,结算完成后,你进行判定,若为红色,你弃置一张手牌。+ 天赐锁定技,你的判定牌生效后,你获得之*/```