Faction Test v1.0.1.0

This commit is contained in:
Regalis11
2023-02-16 15:01:28 +02:00
parent caa5a2f762
commit 2c5a7923b0
309 changed files with 7502 additions and 4335 deletions
@@ -403,7 +403,7 @@ namespace Barotrauma.Steam
var ids = items.Select(it => it.Id.Value).ToHashSet();
var toUninstall = ContentPackageManager.WorkshopPackages
.Where(pkg
=> !pkg.UgcId.TryUnwrap(out SteamWorkshopId workshopId)
=> !pkg.UgcId.TryUnwrap<SteamWorkshopId>(out var workshopId)
|| !ids.Contains(workshopId.Value))
.ToArray();
if (toUninstall.Any())
@@ -495,7 +495,8 @@ namespace Barotrauma.Steam
new XAttribute("corepackage", isCorePackage),
new XAttribute("modversion", modVersion),
new XAttribute("gameversion", gameVersion),
new XAttribute("installtime", ToolBox.Epoch.FromDateTime(updateTime)));
#warning TODO: stop writing Unix time after this gets on main
new XAttribute("installtime", new SerializableDateTime(updateTime).ToUnixTime()));
if ((modPathDirName ?? modName).ToIdentifier() != itemTitle)
{
root.Add(new XAttribute("altnames", modPathDirName ?? modName));