Updated Team Player, and Bodyguard trophies.
This commit is contained in:
parent
b668b5051b
commit
6ff3fd47a4
|
@ -129,14 +129,14 @@
|
|||
{
|
||||
"id" : "TEAM_PLAYER",
|
||||
"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",
|
||||
"hidden" : 1
|
||||
},
|
||||
{
|
||||
"id" : "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",
|
||||
"hidden" : 1
|
||||
},
|
||||
|
|
|
@ -220,23 +220,23 @@ static void checkCollisions(Bullet *b)
|
|||
battle.stats[STAT_MISSILES_EVADED]++;
|
||||
}
|
||||
|
||||
if (b->type == BT_MISSILE && b->target != e)
|
||||
{
|
||||
if (e == player)
|
||||
{
|
||||
awardTrophy("TEAM_PLAYER");
|
||||
}
|
||||
else if (b->owner == player && (e->aiFlags & AIF_MOVES_TO_LEADER) && (b->target->flags & EF_AI_LEADER))
|
||||
{
|
||||
awardTrophy("BODYGUARD");
|
||||
}
|
||||
}
|
||||
|
||||
/* 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 (e == player)
|
||||
{
|
||||
awardTrophy("TEAM_PLAYER");
|
||||
}
|
||||
else if (b->owner == player && (e->aiFlags & AIF_MOVES_TO_LEADER) && (b->target->flags & EF_AI_LEADER))
|
||||
{
|
||||
awardTrophy("BODYGUARD");
|
||||
}
|
||||
}
|
||||
|
||||
if (e == player)
|
||||
{
|
||||
battle.lastKilledPlayer = b->owner;
|
||||
|
|
Loading…
Reference in New Issue