版本比较
三国杀
正文
增加 43 行删除 36 行
530 行未改动全部展开53153253353453553653753853553653753853954054154227 行未改动57057157257357457457557657757817 行未改动59659759859960060060160260360423 行未改动62862963063163263263363463563625 行未改动66266366466566666666766866967023 行未改动6946956966976986986997007017023 行未改动70670770870971071071171271371371471571671726 行未改动74474574674774874874975075175275375375475575675724 行未改动7827837847857867867877887897901,601 行未改动全部展开2392239323942395239623962397239823992400119 行未改动全部展开252025212522252325242524252525262527252825292530253025312532253325342535253625372538253950 行未改动259025912592259325922594259525962597259811 行未改动261026112612261326142615261626172618312 行未改动全部展开293129322933293429322935293629372938293929372940294129422943294448 行未改动299329942995299629942997299829993000300129993002300330043005300648 行未改动305530563057305830563059306030613062306330613064306530663067306857 行未改动312631273128312931273130313131323133313131343135313631373138137 行未改动全部展开327632773278327932773280328132823283328419 行未改动3304330533063307330533083309331033113312193 行未改动全部展开350635073508350935073510351135123513351440 行未改动355535563557355835563559356035613562356349 行未改动36133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363632 行未改动36693670367136723664367336743675367636776 行未改动36843685368636873679368036883689369036823683369136923693369413 行未改动370837093710371137053712371337143715530 行未改动全部展开 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); 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(); 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); 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); 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); 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); 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&&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); 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); 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); 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); 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); 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 jdsr()//借刀杀人,人机太傻不会用,只能真人用 { int number1=0,number2=0; do { print(); printf("请输入借刀的目标:"); 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; 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); 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); 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); 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); 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); 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); 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); 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); 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=="借刀杀人") 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); 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); 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); 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;// }// else 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 参考:神张辽 谋 lhr 2/3参考: + +
法国赌神 4/4 参考:陆逊、沮授、黄月英 + 验牌 13 行未改动 + 鬼脑 锁定技,回合开始时你进行判定,你本回合出杀的次数为 X(X 为判定牌点数), 你出牌阶段每出一张非"无懈可击"的牌,结算完成后,你进行判定,若为红色,你弃置一张手牌。 + 天赐 你的判定牌生效后,你获得之 锁定技,你的判定牌生效后,你获得之 */```