代码拉取完成,页面将自动刷新
#include "zgs.h"
/*ʹɱ*/
extern int player_number, cur[MAX_PLAYER],MP;
extern Pig player[MAX_PLAYER];
bool can_use_k(int playerid,int recipient){
return recipient!=-1&&recipient<=player_number&&recipient>0&&can_use(playerid,'K') && playerid!=recipient && dis(playerid,recipient)<=1;
}
void use_d( int playerid){
printf(" Player[%d] use %s\n",playerid,CARD_NAME('D'));
int x=can_use( playerid, 'D' );
use(playerid,x);
}
void use_kk(int playerid){
printf( "Player[%d] use %s\n",playerid,CARD_NAME('K'));
int x=can_use( playerid, 'K' );
use(playerid,x);
}
void use_k(int playerid,int recipient){
printf("Player[%d] use %s to Player[%d]\n",playerid,CARD_NAME('K'),recipient);
jump(playerid,recipient);
if(can_use(recipient,'D')&&(!player[recipient].is_human||will_use(recipient,'D'))){
use_d(recipient);
}else
hurt(recipient,playerid,1);
int x=can_use(playerid, 'K' );
use(playerid,x);
}
void use_p(int playerid){
printf("Player[%d] use %s(%d+1=%d)\n",playerid,CARD_NAME('P'),player[playerid].health,player[playerid].health+1);
cur[playerid]++;
player[playerid]. health++;
if(player[playerid].health>4+(MP==playerid))
player[playerid].health=4+(MP==playerid);
use(playerid,can_use(playerid,'P'));
}
void use_z(int playerid){
printf("Player[%d] is equipped with %s\n",playerid, CARD_NAME('Z'));
player[playerid].has_z|=1;
use(playerid,can_use(playerid,'Z'));
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。