Added TEAM_PLAYER trophy.

This commit is contained in:
Steve 2016-04-08 11:03:50 +01:00
parent 265bb0305b
commit 4792c6d971
2 changed files with 11 additions and 0 deletions

View File

@ -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" : "",

View File

@ -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)