Unstable 1.8.4.0
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Barotrauma.Networking;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using Barotrauma.Items.Components;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -40,7 +41,7 @@ namespace Barotrauma
|
||||
{
|
||||
matchingData.ApplyPermadeath();
|
||||
|
||||
if (GameMain.Server is { ServerSettings.IronmanMode: true })
|
||||
if (GameMain.Server?.ServerSettings is { IronmanModeActive: true })
|
||||
{
|
||||
mpCampaign.SaveSingleCharacter(matchingData);
|
||||
}
|
||||
@@ -85,5 +86,16 @@ namespace Barotrauma
|
||||
{
|
||||
GameServer.Log($"{GameServer.CharacterLogName(this)} has gained the talent '{talentPrefab.DisplayName}'", ServerLog.MessageType.Talent);
|
||||
}
|
||||
|
||||
private void SyncInGameEditables(Item item)
|
||||
{
|
||||
foreach (ItemComponent itemComponent in item.Components)
|
||||
{
|
||||
foreach (var serializableProperty in SerializableProperty.GetProperties<InGameEditable>(itemComponent))
|
||||
{
|
||||
GameMain.Server.CreateEntityEvent(item, new Item.ChangePropertyEventData(serializableProperty, itemComponent));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user