@page "/admin/mobs/edit" @model Mobs.EditModel @using DataServer.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

For ranged/kiting

HP% to flee (0-1)

Tier Scaling (Multipliers)

Damage Resistances

Negative % = weakness, Positive % = resistance, 100% = immune

Manage Types →
@foreach (var resist in Model.Resistances) { var bgColor = resist.Value < 0 ? "bg-red-900/30 border-red-700" : resist.Value > 0 ? "bg-green-900/30 border-green-700" : "bg-gray-800 border-gray-700";
%
}
@if (!Model.Resistances.Any()) {

No resistances configured. Add one below.

}
%

Visual Settings

Sprite Sheets

Configure sprite sheets for different directions and states

@foreach (var sprite in Model.SpriteConfig.Sprites) {
}
@if (!Model.SpriteConfig.Sprites.Any()) {

No sprites configured. Add sprite sheets below.

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

Abilities (@Model.MobAbilities.Count)

@if (Model.MobAbilities.Count > 0) { @foreach (var assignment in Model.MobAbilities) { var ability = assignment.AbilityDefinition; }
Ability Type Damage Range Cooldown Phase Status Actions
@ability?.Name @ability?.AbilityType @ability?.BaseDamage @ability?.Range @ability?.Cooldown.ToString("0.#")s @(assignment.Phase == 0 ? "All" : $"Phase {assignment.Phase}") @if (assignment.IsEnabled) { Active } else { Disabled }
@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
} else {

No abilities assigned. This mob will use a basic attack.

}
} @if (!Model.IsNew) {

Animations (@Model.MobAnimations.Count)

Manage Sheets
@if (Model.MobAnimations.Count > 0) { @foreach (var assignment in Model.MobAnimations) { var anim = assignment.AnimationDefinition; var sheet = anim?.SpriteSheet; }
Key Sheet Frames FPS Options Override Key Status Actions
@anim?.Key @sheet?.Name @anim?.FrameSequence @anim?.Fps @if (anim?.Loop == true) { Loop } @if (anim?.FlipX == true) { FlipX } @if (anim?.FlipY == true) { FlipY } @(assignment.OverrideKey ?? "-") @if (assignment.IsEnabled) { Active } else { Disabled }
@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
} else {

No animations assigned. Create sprite sheets first, then add animations here.

}
} @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 { }