(5a377a8ee) Unstable v0.9.1000.0
This commit is contained in:
@@ -38,7 +38,9 @@ namespace Barotrauma
|
||||
|
||||
if (item.Submarine == null)
|
||||
{
|
||||
if (!(item.ParentInventory?.Owner is Character)) { continue; }
|
||||
//items outside the sub don't count as destroyed if they're still in the traitor's inventory
|
||||
bool carriedByTraitor = Traitors.Any(traitor => item.IsOwnedBy(traitor.Character));
|
||||
if (!carriedByTraitor) { continue; }
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System;
|
||||
using Barotrauma.Networking;
|
||||
using Lidgren.Network;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Barotrauma.IO;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using Barotrauma.Extensions;
|
||||
@@ -235,7 +235,7 @@ namespace Barotrauma
|
||||
#if SERVER
|
||||
foreach (var traitor in Traitors.Values)
|
||||
{
|
||||
GameServer.Log($"{traitor.Character.Name} is a traitor and the current goals are:\n{(traitor.CurrentObjective?.GoalInfos != null ? TextManager.GetServerMessage(traitor.CurrentObjective?.GoalInfos) : "(empty)")}", ServerLog.MessageType.ServerMessage);
|
||||
GameServer.Log($"{GameServer.CharacterLogName(traitor.Character)} is a traitor and the current goals are:\n{(traitor.CurrentObjective?.GoalInfos != null ? TextManager.GetServerMessage(traitor.CurrentObjective?.GoalInfos) : "(empty)")}", ServerLog.MessageType.ServerMessage);
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
@@ -287,10 +287,7 @@ namespace Barotrauma
|
||||
{
|
||||
pendingObjectives.Remove(objective);
|
||||
completedObjectives.Add(objective);
|
||||
if (pendingObjectives.Count > 0)
|
||||
{
|
||||
objective.EndMessage();
|
||||
}
|
||||
objective.EndMessage();
|
||||
continue;
|
||||
}
|
||||
if (objective.IsStarted && !objective.CanBeCompleted)
|
||||
|
||||
Reference in New Issue
Block a user