@page "/admin/players/character" @model Players.CharacterModel @using DataServer.Data.Entities @using DataServer.Data.Enums @{ ViewData["Title"] = $"Character: {Model.Character.Name}"; }
← Back to Account

@Model.Character.Name

Level @Model.Character.Level • @Model.Character.Gold.ToString("N0") Gold • ID: @Model.Character.Id

@if (!string.IsNullOrEmpty(Model.Message)) {
@Model.Message
}
@Html.AntiForgeryToken()

Basic Information

@Html.AntiForgeryToken()

Stats

HP
@Model.Character.MaxHealth
Mana
@Model.Character.MaxMana
Stam
@Model.Character.MaxStamina
XP+
@(((Model.Character.XpBonus - 1) * 100).ToString("0"))%
Spd
@Model.Character.MoveSpeed.ToString("0")
Atk
@Model.Character.AttackSpeed.ToString("0.0")

Inventory (@Model.InventoryItems.Count/30)

@for (int i = 0; i < 30; i++) { var item = Model.InventoryItems.FirstOrDefault(it => it.SlotIndex == i); var rarityBorder = item?.ItemDefinition?.Rarity switch { ItemRarity.Uncommon => "border-green-500", ItemRarity.Rare => "border-blue-500", ItemRarity.Epic => "border-purple-500", ItemRarity.Legendary => "border-orange-500", _ => "border-gray-700" };
onclick="showItemModal(@item.Id, @item.Quantity, @item.SlotIndex)" }> @if (item?.ItemDefinition != null) { @if (!string.IsNullOrEmpty(item.ItemDefinition.SpritePath)) { } else { @item.ItemDefinition.Name.Substring(0, Math.Min(2, item.ItemDefinition.Name.Length)) } @if (item.Quantity > 1) { @item.Quantity } }
}

Lifetime Stats

@Model.Character.TotalKillsKills
@Model.Character.TotalDeathsDeaths
@Model.Character.PlayersKilledPvP Kills
@Model.Character.DungeonsCompletedDungeons
@Model.Character.BossesKilledBosses

Equipment

@foreach (var slot in new[] { (DungeonEquipmentSlot.MainHand, "Weapon"), (DungeonEquipmentSlot.OffHand, "Off-Hand"), (DungeonEquipmentSlot.Head, "Head"), (DungeonEquipmentSlot.Chest, "Chest"), (DungeonEquipmentSlot.Legs, "Legs"), (DungeonEquipmentSlot.Boots, "Boots"), (DungeonEquipmentSlot.Gloves, "Gloves"), (DungeonEquipmentSlot.Accessory1, "Accessory 1"), (DungeonEquipmentSlot.Accessory2, "Accessory 2") }) { var item = Model.EquippedItems.FirstOrDefault(i => i.EquipSlot == slot.Item1);
@if (item?.ItemDefinition != null && !string.IsNullOrEmpty(item.ItemDefinition.SpritePath)) { } else { @slot.Item2.Substring(0, 1) }

@slot.Item2

@(item?.ItemDefinition?.Name ?? "Empty")

@if (item?.ItemDefinition != null) { }
}
@section Scripts { }