@page "/admin/loottables/edit" @model LootTables.EditModel @{ ViewData["Title"] = Model.IsNew ? "Create Loot Table" : $"Edit: {Model.LootTable.Name}"; }
@(Model.IsNew ? "Add a new loot table" : $"ID: {Model.LootTable.Id}")
| Icon | Item | Chance | Qty | Weight | Guar. | Actions |
|---|---|---|---|---|---|---|
|
@if (entry.ItemDefinition != null && !string.IsNullOrEmpty(entry.ItemDefinition.SpritePath))
{
|
@entry.ItemDefinition?.Name (ID: @entry.ItemDefinitionId) | = 0.1 ? "text-yellow-400" : "text-red-400")"> @((entry.DropChance * 100).ToString("0.##"))% | @entry.MinQuantity - @entry.MaxQuantity | @entry.Weight | @if (entry.Guaranteed) { ✓ } else { - } | |
| No entries yet. Add items to this loot table. | ||||||