@model DataServer.Data.Entities.DungeonItemDefinition @using DataServer.Data.Enums @{ var rarityColor = Model.Rarity switch { ItemRarity.Uncommon => "text-green-400", ItemRarity.Rare => "text-blue-400", ItemRarity.Epic => "text-purple-400", ItemRarity.Legendary => "text-orange-400", _ => "text-gray-300" }; var rarityBg = Model.Rarity switch { ItemRarity.Uncommon => "border-green-600", ItemRarity.Rare => "border-blue-600", ItemRarity.Epic => "border-purple-600", ItemRarity.Legendary => "border-orange-600", _ => "border-gray-600" }; }

@Model.Name

@Model.Type • @Model.Rarity

@if (!string.IsNullOrEmpty(Model.Description)) {

@Model.Description

} @if (Model.MinDamage > 0 || Model.MaxDamage > 0) {
@Model.MinDamage - @Model.MaxDamage @Model.DamageTypeKey Damage @if (Model.AttackRange > 0) { Range: @Model.AttackRange }
} @if (Model.Armor > 0) {

Armor: @Model.Armor

} @{ var bonuses = new List<(string name, int value, string color)>(); if (Model.BonusStrength != 0) bonuses.Add(("STR", Model.BonusStrength, "text-red-400")); if (Model.BonusIntelligence != 0) bonuses.Add(("INT", Model.BonusIntelligence, "text-blue-400")); if (Model.BonusWisdom != 0) bonuses.Add(("WIS", Model.BonusWisdom, "text-purple-400")); if (Model.BonusEndurance != 0) bonuses.Add(("END", Model.BonusEndurance, "text-green-400")); if (Model.BonusDexterity != 0) bonuses.Add(("DEX", Model.BonusDexterity, "text-yellow-400")); if (Model.BonusHealth != 0) bonuses.Add(("HP", Model.BonusHealth, "text-green-300")); if (Model.BonusMana != 0) bonuses.Add(("Mana", Model.BonusMana, "text-blue-300")); } @if (bonuses.Any()) {
@foreach (var bonus in bonuses) { var sign = bonus.value > 0 ? "+" : "";

@sign@bonus.value @bonus.name

}
} @if (Model.HealAmount > 0 || Model.ManaRestore > 0 || Model.StaminaRestore > 0) {
@if (Model.HealAmount > 0) {

Restores @Model.HealAmount HP

} @if (Model.ManaRestore > 0) {

Restores @Model.ManaRestore Mana

} @if (Model.StaminaRestore > 0) {

Restores @Model.StaminaRestore Stamina

}
} @{ var reqs = new List(); if (Model.RequiredLevel > 1) reqs.Add($"Level {Model.RequiredLevel}"); if (Model.RequiredStrength > 0) reqs.Add($"{Model.RequiredStrength} STR"); if (Model.RequiredIntelligence > 0) reqs.Add($"{Model.RequiredIntelligence} INT"); if (Model.RequiredWisdom > 0) reqs.Add($"{Model.RequiredWisdom} WIS"); if (Model.RequiredDexterity > 0) reqs.Add($"{Model.RequiredDexterity} DEX"); } @if (reqs.Any()) {
Requires: @string.Join(", ", reqs)
} @if (Model.IsTeleportScroll) {

Teleport Scroll

} @if (Model.TeachesSpellId.HasValue) {

Teaches a spell

} @if (Model.Stackable) {

Stackable (max @Model.MaxStack)

} @if (Model.EquipSlot.HasValue) {

Slot: @Model.EquipSlot

}

ID: @Model.Id