Skip to content

Commit

Permalink
Chaos isn't a world (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro committed Aug 5, 2021
1 parent 0aae92a commit 0de2f47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Universalis.GameData/GameDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private IReadOnlyDictionary<uint, string> LoadAvailableWorlds()

return worlds
.Where(w => w.IsPublic)
.Where(w => w.RowId != 25) // Chaos (world)
.Select(w => new World { Name = w.Name, Id = w.RowId })
.Concat(ChineseServers.Worlds())
.ToDictionary(w => w.Id, w => w.Name);
Expand All @@ -79,6 +80,7 @@ private IReadOnlyDictionary<string, uint> LoadAvailableWorldsReversed()

return worlds
.Where(w => w.IsPublic)
.Where(w => w.RowId != 25) // Chaos (world)
.Select(w => new World { Name = w.Name, Id = w.RowId })
.Concat(ChineseServers.Worlds())
.ToDictionary(w => w.Name, w => w.Id);
Expand All @@ -97,6 +99,7 @@ private IReadOnlySet<uint> LoadAvailableWorldIds()

return new SortedSet<uint>(worlds
.Where(w => w.IsPublic)
.Where(w => w.RowId != 25) // Chaos (world)
.Select(w => new World { Name = w.Name, Id = w.RowId })
.Concat(ChineseServers.Worlds())
.Select(w => w.Id)
Expand Down Expand Up @@ -139,6 +142,7 @@ private IReadOnlyList<DataCenter> LoadDataCenters()
Name = dc.Name,
WorldIds = worlds
.Where(w => w.IsPublic)
.Where(w => w.RowId != 25) // Chaos (world)
.Where(w => w.DataCenter.Row == dc.RowId)
.Select(w => w.RowId)
.ToArray(),
Expand Down

0 comments on commit 0de2f47

Please sign in to comment.