代码拉取完成,页面将自动刷新
同步操作将从 buzhibujue/zhuguosha 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "zgs.h"
#include<string.h>
/*行为判断*/
extern Pig player[MAX_PLAYER];
bool can_xyq(int playerid,int recipient){/*Pig player[MAX_PLAYER];*/
int i;
if(strcmp(player[playerid].id,player[recipient].id)||((player[recipient].id=='M'&&player[playerid].id=='Z'))||(player[playerid].id=='Z'&&player[recipient].id=='Z')){/*如果自己是忠臣,对象是主公或者自己的身份和对象一致,或者主公对自己献殷勤*/
if(player[recipient].id=='M'){
for(i=0;i<player[playerid].card.number;i++){
if(player[playerid].card.type=='J'&&use_j(playerid,i,))
}
}
if(is_zp(recipient)||is_fp(recipient)){
}
if(player[playerid].id=='Z'&&player[recipient].id=='Z'){
}
}
}
bool can_bdy(int playerid,int recipient){
//使用杀
if(can_use_k(playerid,recipient)){
if(player[recipient].id=='M'||player[recipient].Loyalty_or_opposition==1){
player[playerid].Loyalty_or_opposition=-1;
}
if(player[recipient].Loyalty_or_opposition==-1){
player[playerid].Loyalty_or_opposition=1;
}
return true;
}
//使用决斗
int i;
for(i=0;i<player[playerid].card.number;i++){
if(player[playerid].card.type=="F"){
if(use_f(playerid,recipient,i)){
if(player[recipient].id=='M'){
player[playerid].Loyalty_or_opposition=-1;
}
if(player[recipient].Loyalty_or_opposition=-1){
player[playerid].Loyalty_or_opposition=1;
}
return true;
}
}
}
//使用无懈可击抵消献殷勤
}
//是否跳忠过
bool is_zp(int playerid){
if(player[playerid].Loyalty_or_opposition==1){
return true;
}
else{
return false;
}
}
//是否跳反过
bool is_fp(int playerid){
if(player[playerid].Loyalty_or_opposition==-1){
return true;
}
else{
return false;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。