2f107db...5202af9

This commit is contained in:
Joonas Rikkonen
2019-03-18 21:42:26 +02:00
parent 58c92888b7
commit 044fd3344b
395 changed files with 27417 additions and 19754 deletions
@@ -0,0 +1,23 @@
using Barotrauma.Networking;
using System.Collections.Generic;
namespace Barotrauma
{
partial class CrewManager
{
partial void CreateRandomConversation()
{
List<Character> availableSpeakers = Character.CharacterList.FindAll(c =>
c.AIController is HumanAIController &&
!c.IsDead &&
c.SpeechImpediment <= 100.0f);
foreach (Client client in GameMain.Server.ConnectedClients)
{
if (client.Character != null) availableSpeakers.Remove(client.Character);
}
pendingConversationLines.AddRange(NPCConversation.CreateRandom(availableSpeakers));
}
}
}