v0.19.8.0
This commit is contained in:
@@ -1267,7 +1267,11 @@ namespace Barotrauma
|
||||
}
|
||||
}, () =>
|
||||
{
|
||||
return new[] { FactionPrefab.Prefabs.Select(f => f.Identifier.Value).ToArray() };
|
||||
return new[]
|
||||
{
|
||||
FactionPrefab.Prefabs.Select(f => f.Identifier.Value).ToArray(),
|
||||
GameMain.GameSession?.Campaign.Factions.Select(f => f.Prefab.Identifier.ToString()).ToArray() ?? Array.Empty<string>()
|
||||
};
|
||||
}, true));
|
||||
|
||||
commands.Add(new Command("fixitems", "fixitems: Repairs all items and restores them to full condition.", (string[] args) =>
|
||||
@@ -2235,7 +2239,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public static void ShowError(string msg, Color? color = null)
|
||||
public static void LogError(string msg, Color? color = null)
|
||||
{
|
||||
color ??= Color.Red;
|
||||
NewMessage(msg, color.Value, isCommand: false, isError: true);
|
||||
@@ -2407,7 +2411,7 @@ namespace Barotrauma
|
||||
}
|
||||
#endif
|
||||
|
||||
ShowError(error);
|
||||
LogError(error);
|
||||
}
|
||||
|
||||
public static void AddWarning(string warning)
|
||||
|
||||
Reference in New Issue
Block a user