(6cbedf076) Fixed combat mission achievements being impossible to unlock.
This commit is contained in:
@@ -311,11 +311,9 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
if (gameSession.Mission is CombatMission combatMission)
|
if (gameSession.Mission is CombatMission combatMission)
|
||||||
{
|
{
|
||||||
#if CLIENT
|
|
||||||
//all characters that are alive and in the winning team get an achievement
|
//all characters that are alive and in the winning team get an achievement
|
||||||
UnlockAchievement(gameSession.Mission.Prefab.AchievementIdentifier + (int)GameMain.GameSession.WinningTeam, true,
|
UnlockAchievement(gameSession.Mission.Prefab.AchievementIdentifier + (int)GameMain.GameSession.WinningTeam, true,
|
||||||
c => c != null && !c.IsDead && !c.IsUnconscious && combatMission.IsInWinningTeam(c));
|
c => c != null && !c.IsDead && !c.IsUnconscious && combatMission.IsInWinningTeam(c));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else if (gameSession.Mission.Completed)
|
else if (gameSession.Mission.Completed)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user