mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Battle: TARGET on the player with 6 emeralds
This commit is contained in:
parent
b04433bc7b
commit
cdecada971
1 changed files with 13 additions and 2 deletions
|
|
@ -338,10 +338,21 @@ bool is_player_tracking_target(player_t *player = stplyr)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// WANTED player sees TARGETs on players holding emeralds
|
|
||||||
if (player->emeralds != 0 && K_IsPlayerWanted(stplyr))
|
if (player->emeralds != 0 && K_IsPlayerWanted(stplyr))
|
||||||
{
|
{
|
||||||
return true;
|
// The player who is about to win because of emeralds
|
||||||
|
// gets a TARGET on them
|
||||||
|
if (K_NumEmeralds(player) == 6) // 6 out of 7
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// WANTED player sees TARGETs on players holding
|
||||||
|
// emeralds
|
||||||
|
if (K_IsPlayerWanted(stplyr))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return K_IsPlayerWanted(player);
|
return K_IsPlayerWanted(player);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue