v1.12.6.2 (Spring Update 2026)

This commit is contained in:
Regalis11
2026-04-09 15:10:07 +03:00
parent c8657caefa
commit a4607dffad
197 changed files with 5586 additions and 3461 deletions
@@ -551,9 +551,14 @@ namespace Barotrauma
private static void UnlockKillAchievement(Character killer, Character target, Identifier identifier)
{
if (killer != null &&
target.Params.UnlockKillAchievementForWholeCrew &&
GameSession.GetSessionCrewCharacters(CharacterType.Player).Contains(killer))
bool alwaysUnlockForWholeCrew = false;
#if CLIENT
alwaysUnlockForWholeCrew = GameMain.GameSession?.Campaign is SinglePlayerCampaign;
#endif
if (killer != null &&
(alwaysUnlockForWholeCrew || target.Params.UnlockKillAchievementForWholeCrew) &&
GameSession.GetSessionCrewCharacters(CharacterType.Both).Contains(killer))
{
UnlockAchievement(identifier, unlockClients: true, characterConditions: c => c != null);
}