1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add lobby rating to home

add gametype (WIP) to home
misc UI tweaks
This commit is contained in:
RaidMax
2021-06-30 09:57:07 -05:00
parent c3d1780791
commit 57f1dd3f3c
9 changed files with 59 additions and 15 deletions

View File

@ -3,6 +3,7 @@ using SharedLibraryCore;
using SharedLibraryCore.Dtos;
using SharedLibraryCore.Interfaces;
using System.Linq;
using Data.Models.Client.Stats;
namespace WebfrontCore.Controllers
{
@ -39,7 +40,8 @@ namespace WebfrontCore.Controllers
Name = p.Name,
ClientId = p.ClientId,
Level = p.Level.ToLocalizedLevelName(),
LevelInt = (int)p.Level
LevelInt = (int)p.Level,
ZScore = p.GetAdditionalProperty<EFClientStatistics>(IW4MAdmin.Plugins.Stats.Helpers.StatManager.CLIENT_STATS_KEY)?.ZScore
}).ToList(),
ChatHistory = s.ChatHistory.ToList(),
PlayerHistory = s.ClientHistory.ToArray(),