Skip to content

Commit

Permalink
fix: load guild for rank information
Browse files Browse the repository at this point in the history
  • Loading branch information
lodicolo committed Jan 16, 2025
1 parent c5e2bce commit baaa0cb
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Intersect.Server.Core/Entities/Player.Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,12 @@ SortDirection sortDirection
.Skip(offset)
.Take(count)
.Include(p => p.Bank)
.Include(p => p.Guild)
.Include(p => p.Hotbar)
.Include(p => p.Quests)
.Include(p => p.Variables)
.Include(p => p.Items)
.Include(p => p.Quests)
.Include(p => p.Spells)
.Include(p => p.Variables)
.AsSplitQuery()
) ??
throw new InvalidOperationException();
Expand All @@ -512,11 +513,12 @@ SortDirection sortDirection
.Skip(offset)
.Take(count)
.Include(p => p.Bank)
.Include(p => p.Guild)
.Include(p => p.Hotbar)
.Include(p => p.Quests)
.Include(p => p.Variables)
.Include(p => p.Items)
.Include(p => p.Quests)
.Include(p => p.Spells)
.Include(p => p.Variables)
.AsSplitQuery()
) ??
throw new InvalidOperationException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@WebResources.XofYExp.Format(player.Exp, player.ExperienceToNextLevel)
</span>
<span class="row">
@(player.Guild?.Name ?? WebResources.NoGuild)
@(string.IsNullOrWhiteSpace(player.Guild?.Name) ? WebResources.NoGuild : WebResources.GuildX.Format(player.Guild.Name))
</span>
</span>
</section>
Expand Down
6 changes: 6 additions & 0 deletions Intersect.Server/Web/WebResources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Intersect.Server/Web/WebResources.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@
<data name="UserNotFound" xml:space="preserve">
<value>No encontrado</value>
</data>
<data name="GuildX" xml:space="preserve">
<value>Clan: {0}</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Intersect.Server/Web/WebResources.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@
<data name="NoGuild" xml:space="preserve">
<value>Pas en guilde</value>
</data>
<data name="GuildX" xml:space="preserve">
<value>Guilde: {0}</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Intersect.Server/Web/WebResources.it.resx
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<data name="Home" xml:space="preserve">
<value>Inizio</value>
</data>
<data name="GuildX" xml:space="preserve">
<value>Gilda: {0}</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Intersect.Server/Web/WebResources.pt-br.resx
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@
<data name="Home" xml:space="preserve">
<value>Início</value>
</data>
<data name="GuildX" xml:space="preserve">
<value>Guilda: {0}</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Intersect.Server/Web/WebResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@
<data name="XsPlayers" xml:space="preserve">
<value>{0}'s Characters</value>
</data>
<data name="GuildX" xml:space="preserve">
<value>Guild: {0}</value>
</data>
</root>

0 comments on commit baaa0cb

Please sign in to comment.