Updated Team Player, and Bodyguard trophies.
This commit is contained in:
parent
b668b5051b
commit
6ff3fd47a4
|
@ -129,14 +129,14 @@
|
||||||
{
|
{
|
||||||
"id" : "TEAM_PLAYER",
|
"id" : "TEAM_PLAYER",
|
||||||
"title" : "Taking one for the team",
|
"title" : "Taking one for the team",
|
||||||
"description" : "Be killed by a missile that was meant for someone else",
|
"description" : "Be hit by a missile that was meant for someone else",
|
||||||
"value" : "TROPHY_BRONZE",
|
"value" : "TROPHY_BRONZE",
|
||||||
"hidden" : 1
|
"hidden" : 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id" : "BODYGUARD",
|
"id" : "BODYGUARD",
|
||||||
"title" : "The bodyguard",
|
"title" : "The bodyguard",
|
||||||
"description" : "Kill an enemy with a missile intended for their wing leader",
|
"description" : "Hit an enemy with a missile intended for their wing leader",
|
||||||
"value" : "TROPHY_BRONZE",
|
"value" : "TROPHY_BRONZE",
|
||||||
"hidden" : 1
|
"hidden" : 1
|
||||||
},
|
},
|
||||||
|
|
|
@ -220,11 +220,6 @@ static void checkCollisions(Bullet *b)
|
||||||
battle.stats[STAT_MISSILES_EVADED]++;
|
battle.stats[STAT_MISSILES_EVADED]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* assuming that health <= 0 will always mean killed */
|
|
||||||
if (e->health <= 0)
|
|
||||||
{
|
|
||||||
e->killedBy = b->owner;
|
|
||||||
|
|
||||||
if (b->type == BT_MISSILE && b->target != e)
|
if (b->type == BT_MISSILE && b->target != e)
|
||||||
{
|
{
|
||||||
if (e == player)
|
if (e == player)
|
||||||
|
@ -237,6 +232,11 @@ static void checkCollisions(Bullet *b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* assuming that health <= 0 will always mean killed */
|
||||||
|
if (e->health <= 0)
|
||||||
|
{
|
||||||
|
e->killedBy = b->owner;
|
||||||
|
|
||||||
if (e == player)
|
if (e == player)
|
||||||
{
|
{
|
||||||
battle.lastKilledPlayer = b->owner;
|
battle.lastKilledPlayer = b->owner;
|
||||||
|
|
Loading…
Reference in New Issue