@page "/admin/mobs/edit" @model Mobs.EditModel @using Server.Data.Enums @{ ViewData["Title"] = Model.IsNew ? "Create Mob" : $"Edit: {Model.Mob.Name}"; }

@(Model.IsNew ? "Create Mob" : "Edit Mob")

@(Model.IsNew ? "Add a new mob definition" : $"ID: {Model.Mob.Id}")

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

Basic Information

Base Combat Stats

Movement & Behavior

Tier Scaling (Multipliers)

Visual

Cancel @if (!Model.IsNew) {
}
@if (!Model.IsNew) {

Loot Tables (@Model.MobLootTables.Count)

@foreach (var mlt in Model.MobLootTables) { } @if (!Model.MobLootTables.Any()) { }
Loot Table Priority Roll % Entries Actions
@mlt.LootTable?.Name (ID: @mlt.LootTableId) @mlt.Priority @((mlt.RollChance * 100).ToString("0"))% @(mlt.LootTable?.Entries?.Count ?? 0)
@Html.AntiForgeryToken()
No loot tables assigned. This mob won't drop items.
}
@section Scripts { }