Added TEAM_PLAYER trophy.
This commit is contained in:
parent
265bb0305b
commit
4792c6d971
|
@ -138,6 +138,12 @@
|
|||
"description" : "Complete a mission using a Shuttle",
|
||||
"value" : "TROPHY_BRONZE"
|
||||
},
|
||||
{
|
||||
"id" : "TEAM_PLAYER",
|
||||
"title" : "Taking one for the Team",
|
||||
"description" : "Be killed by a missile that was meant for someone else",
|
||||
"value" : "TROPHY_SILVER"
|
||||
},
|
||||
{
|
||||
"id" : "CHALLENGE_25",
|
||||
"title" : "",
|
||||
|
|
|
@ -214,6 +214,11 @@ static void checkCollisions(Bullet *b)
|
|||
}
|
||||
|
||||
e->killedBy = b->owner;
|
||||
|
||||
if (b->type == BT_MISSILE && e == player && b->target != player)
|
||||
{
|
||||
awardTrophy("TEAM_PLAYER");
|
||||
}
|
||||
}
|
||||
|
||||
if (b->owner == player && b->type == BT_MISSILE)
|
||||
|
|
Loading…
Reference in New Issue