Added PACIFIST trophy.
This commit is contained in:
parent
ff9b35b0aa
commit
5de2356bec
|
@ -272,5 +272,11 @@
|
||||||
"description" : "Be destroyed while piloting an ATAF",
|
"description" : "Be destroyed while piloting an ATAF",
|
||||||
"value" : "TROPHY_BRONZE",
|
"value" : "TROPHY_BRONZE",
|
||||||
"hidden" : 1
|
"hidden" : 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : "PACIFIST",
|
||||||
|
"title" : "Pacifist",
|
||||||
|
"description" : "Complete any fighter-based mission without firing",
|
||||||
|
"value" : "TROPHY_BRONZE"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -238,7 +238,7 @@ void doTrophyAlerts(void)
|
||||||
}
|
}
|
||||||
else if (alertTrophy)
|
else if (alertTrophy)
|
||||||
{
|
{
|
||||||
alertRect.x = MIN(alertRect.x + 16, -1);
|
alertRect.x = MIN(alertRect.x + 24, -1);
|
||||||
|
|
||||||
if (alertRect.x > -150)
|
if (alertRect.x > -150)
|
||||||
{
|
{
|
||||||
|
@ -363,6 +363,7 @@ static void loadTrophyData(char *filename)
|
||||||
t->shortDescription[MAX_NAME_LENGTH - 1] = '.';
|
t->shortDescription[MAX_NAME_LENGTH - 1] = '.';
|
||||||
t->shortDescription[MAX_NAME_LENGTH - 2] = '.';
|
t->shortDescription[MAX_NAME_LENGTH - 2] = '.';
|
||||||
t->shortDescription[MAX_NAME_LENGTH - 3] = '.';
|
t->shortDescription[MAX_NAME_LENGTH - 3] = '.';
|
||||||
|
t->shortDescription[MAX_NAME_LENGTH - 4] = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
t->stat = -1;
|
t->stat = -1;
|
||||||
|
@ -459,6 +460,11 @@ void awardPostMissionTrophies(void)
|
||||||
awardTrophy("SURVIVOR");
|
awardTrophy("SURVIVOR");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->guns[0].type && player->missiles && !game->starSystem->isSol && !battle.stats[STAT_SHOTS_FIRED] && !battle.stats[STAT_MISSILES_FIRED])
|
||||||
|
{
|
||||||
|
awardTrophy("PACIFIST");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the player is known as "Player", so we need to check the craft they were assigned to */
|
/* the player is known as "Player", so we need to check the craft they were assigned to */
|
||||||
|
|
|
@ -44,4 +44,5 @@ extern void textSize(char *text, int size, int *w, int *h);
|
||||||
extern App app;
|
extern App app;
|
||||||
extern Battle battle;
|
extern Battle battle;
|
||||||
extern Colors colors;
|
extern Colors colors;
|
||||||
|
extern Entity *player;
|
||||||
extern Game game;
|
extern Game game;
|
||||||
|
|
Loading…
Reference in New Issue