diff --git a/base.c b/base.c index 314b6aa6e0a0d4ec0dd0a9f5bcbd15d2747be062..60096d79b51f2a1275582eafbbacf020bac9ff74 100644 --- a/base.c +++ b/base.c @@ -13,6 +13,25 @@ int can_use(int id,char* type){ return i; return 0; } - void use_k(int playerid,int recipient){ + if( can_ use( recipient,"D" ))( +use_ d( recipient); +}else + + + player[recipient].health--; + int x=can use(playerid, "K" ); + use( playerid,x); + +} + + void use d( int playerid)f + int x=can_ use( recipient, "D" ); + use recipient,x); } + +void use_ p int playerid){ +player[player id]. health++; +if(player[playerid] .health>4) +player[playerid] . health=4; +} \ No newline at end of file