版本比较
三国杀
正文
增加 86 行删除 48 行
530 行未改动全部展开53153253353453553653753853954054154221 行未改动56456556656756856957057157257357457557657757817 行未改动59659759859960060160260360423 行未改动62862963063163263363463563625 行未改动66266366466566666766866967023 行未改动6946956966976986997007017023 行未改动70670770870971071171271371471571671726 行未改动74474574674774874975075175275375475575675724 行未改动7827837847857867877887897901,201 行未改动全部展开199219931994199519961997199819992000200120022003383 行未改动全部展开23872388238923902391239223932394104 行未改动全部展开24992500250125022503250425052506250725082509251025112512251325142515251650 行未改动25672568256925702571257225732574257511 行未改动25872588258925902591259225932594312 行未改动全部展开2907290829092910291129122913291429152916291729182919292048 行未改动2969297029712972297329742975297629772978297929802981298248 行未改动3031303230333034303530363037303830393040304130423043304457 行未改动3102310331043105310631073108310931103111311231133114137 行未改动全部展开3252325332543255325632573258325932603261326232633264326514 行未改动328032813282328332843285328632873288193 行未改动全部展开34823483348434853486348734883489349040 行未改动35313532353335343535353635373538353947 行未改动35873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361015 行未改动3626362736283629363036313632363336343635363636373638363936403641364236436 行未改动365036513652365336543655365636576 行未改动36643665366636673668366936703671367236733674367536763677530 行未改动全部展开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{21 行未改动else if(idx) MessageBox(NULL,("玩家 "+to_string(idx)+" 对玩家 "+to_string(id)+" 造成 "+to_string(x)+" 点伤害").c_str(),"伤害提醒",MB_OK);else if(op) MessageBox(NULL,("玩家 "+to_string(id)+" 受到 "+to_string(x)+" 点"+(op%3==1?"火焰":"雷电")+"伤害").c_str(),"伤害提醒",MB_OK);else MessageBox(NULL,("玩家 "+to_string(id)+" 失去 "+to_string(x)+" 点体力").c_str(),"失去体力提醒",MB_OK);diyi(idx,id,2*x);player[id].hp-=x;print();int binsi=0;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,201 行未改动全部展开int number=0,card_number=0;do{print();printf("请输入顺手牵羊目标:");scanf("%d",&number);}while(number<1||number>5||number==id||dis[id][number]>1||player[number].hp<=0);int flag=1;for(int j=1;j<=5;j++){if(!find(j,"无懈可击")) continue;383 行未改动全部展开printf("请打出一张杀:");scanf("%d",&number);}while(number<0||number>=player[player_id].cards.size()||(player[player_id].cards[number].name!="杀"&&player[player_id].cards[number].name!="雷杀"&&player[player_id].cards[number].name!="火杀"));recycle.cards.push_back(player[player_id].cards[number]);player[player_id].cards.erase(player[player_id].cards.begin()+number);}else break;104 行未改动全部展开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);if(goal.name=="顺手牵羊") ssqy(id,goal);if(goal.name=="桃园结义") tyjy(id);if(goal.name=="决斗") jd(id,goal);if(goal.name=="火攻") hg(id,goal);if(goal.name=="杀"||goal.name=="雷杀"||goal.name=="火杀")14 行未改动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;47 行未改动Sleep(2000);init();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;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()%3==0) player[i].ability["猜结论"]=player[i].ability["乱写"]=1;// else if(rand()&1) player[i].ability["随机化"]=player[i].ability["卡常"]=1;// else player[i].ability["鬼脑"]=player[i].ability["天赐"]=1;if(player[i].ability["鏖战"]) player[i].hp=1,player[i].limit=2;}work();return 0;15 行未改动参考:神赵云,郭嘉,张飞+ 岌岌锁定技,当你受到 1 点伤害时,你摸 2 张牌。+ 鏖战锁定技,你的体力上限为 2,你的手牌上限 +2,当你脱离或进入濒死状态时,你摸 1 张牌。+ 桃源你可以将闪当桃使用。+ 强弩锁定技,你出杀无次数限制。SPxwx 4/4参考:马超+ 随机化当你使用杀指定唯一目标时,你进行判定。花色:+ 黑桃:目标不能响应此牌+ 红桃:此牌伤害 +1+ 梅花:你弃置其一张手牌6 行未改动+ 卡常锁定技,你与其他角色的距离 -1法国赌神 4/4参考:陆逊、沮授、黄月英+ 验牌6 行未改动当你使用一张普通锦囊牌时,你可以摸一张牌+ 赌神限定技,当你处于濒死状态时,你可以将体力值回复至 2,并将体力上限改为 2tzk 4/4参考:戏志才+ 鬼脑锁定技,回合开始时你进行判定,你本回合出杀的次数为 X(X 为判定牌点数),你出牌阶段每出一张非"无懈可击"的牌,结算完成后,你进行判定,若为红色,你弃置一张手牌。+ 天赐你的判定牌生效后,你获得之*/```530 行未改动全部展开53153253353453553653753853954054154221 行未改动56456556656756856957057157257357457557657757817 行未改动59659759859960060160260360423 行未改动62862963063163263363463563625 行未改动66266366466566666766866967023 行未改动6946956966976986997007017023 行未改动70670770870971071171271371471571671726 行未改动74474574674774874975075175275375475575675724 行未改动7827837847857867877887897901,201 行未改动全部展开1992199319941995199619971998199920002001200220032004383 行未改动全部展开2388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415104 行未改动全部展开2520252125222523252425252526252725282529253025312532253325342535253625372538253950 行未改动25902591259225932594259525962597259811 行未改动261026112612261326142615261626172618312 行未改动全部展开2931293229332934293529362937293829392940294129422943294448 行未改动2993299429952996299729982999300030013002300330043005300648 行未改动3055305630573058305930603061306230633064306530663067306857 行未改动3126312731283129313031313132313331343135313631373138137 行未改动全部展开3276327732783279328032813282328332843285328632873288328914 行未改动330433053306330733083309331033113312193 行未改动全部展开35063507350835093510351135123513351440 行未改动35553556355735583559356035613562356347 行未改动36113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364315 行未改动36593660366136623663366436653666366736683669367036713672367336743675367636776 行未改动368436853686368736883689369036913692369336946 行未改动370137023703370437053706370737083709371037113712371337143715530 行未改动全部展开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{21 行未改动else if(idx) MessageBox(NULL,("玩家 "+to_string(idx)+" 对玩家 "+to_string(id)+" 造成 "+to_string(x)+" 点伤害").c_str(),"伤害提醒",MB_OK);else if(op) MessageBox(NULL,("玩家 "+to_string(id)+" 受到 "+to_string(x)+" 点"+(op%3==1?"火焰":"雷电")+"伤害").c_str(),"伤害提醒",MB_OK);else MessageBox(NULL,("玩家 "+to_string(id)+" 失去 "+to_string(x)+" 点体力").c_str(),"失去体力提醒",MB_OK);diyi(idx,id,2*x);player[id].hp-=(player[id].armor.name=="白银狮子"?1:x);print();int binsi=0;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,201 行未改动全部展开int number=0,card_number=0;do{print();printf("请输入顺手牵羊目标(输入 -1 取消):");scanf("%d",&number);}while(number!=-1&&(number<1||number>5||number==id||dis[id][number]>1||player[number].hp<=0));if(number==-1) return 0;int flag=1;for(int j=1;j<=5;j++){if(!find(j,"无懈可击")) continue;383 行未改动全部展开printf("请打出一张杀:");scanf("%d",&number);}while(number<0||number>=player[player_id].cards.size()||(player[player_id].cards[number].name!="杀"&&player[player_id].cards[number].name!="雷杀"&&player[player_id].cards[number].name!="火杀"));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;do{system("cls");print();printf("请弃置一张手牌(0~%d):",player[id].cards.size()-1);scanf("%d",&number);}while(number<0||number>=player[id].cards.size());player[id].cards.erase(player[id].cards.begin()+number);}}recycle.cards.push_back(player[player_id].cards[number]);player[player_id].cards.erase(player[player_id].cards.begin()+number);}else break;104 行未改动全部展开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);if(goal.name=="顺手牵羊") if(!ssqy(id,goal)) continue;if(goal.name=="桃园结义") tyjy(id);if(goal.name=="决斗") jd(id,goal);if(goal.name=="火攻") hg(id,goal);if(goal.name=="杀"||goal.name=="雷杀"||goal.name=="火杀")14 行未改动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;47 行未改动Sleep(2000);init();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;}else if(rand()&1) player[i].ability["随机化"]=player[i].ability["卡常"]=1;else player[i].ability["岌岌"]=player[i].ability["鏖战"]=player[i].ability["桃源"]=player[i].ability["强弩"]=1;if(player[i].ability["鏖战"]) player[i].hp=1,player[i].limit=2;}work();return 0;15 行未改动参考:神赵云,郭嘉,张飞+ 岌岌锁定技,当你受到 1 点伤害时,你摸 2 张牌。+ 鏖战锁定技,你的体力上限为 2,你的手牌上限 +2,当你进入或脱离濒死状态时,你摸 1 张牌。+ 桃源当有人进入濒死状态时,你可以将闪当桃使用。+ 强弩锁定技,你出杀无次数限制。SPxwx 4/4参考:马超+ 随机化锁定技,当你使用杀指定唯一目标时,你进行判定。花色:+ 黑桃:目标不能响应此牌+ 红桃:此牌伤害 +1+ 梅花:你弃置其一张手牌6 行未改动+ 卡常锁定技,你与其他角色的距离 -1谋 lhr 2/3参考:+法国赌神 4/4参考:陆逊、沮授、黄月英+ 验牌6 行未改动当你使用一张普通锦囊牌时,你可以摸一张牌+ 赌神限定技,当你处于濒死状态时,你可以将体力值回复至 2,并将体力上限改为 2tzk 4/4参考:戏志才+ 鬼脑锁定技,回合开始时你进行判定,你本回合出杀的次数为 X(X 为判定牌点数),你出牌阶段每出一张非"无懈可击"的牌,结算完成后,你进行判定,若为红色,你弃置一张手牌。+ 天赐锁定技,你的判定牌生效后,你获得之*/```