@page "/admin/mobs/edit" @model Mobs.EditModel @using DataServer.Data.Enums @{ ViewData["Title"] = Model.IsNew ? "Create Mob" : $"Edit: {Model.Mob.Name}"; }
@(Model.IsNew ? "Add a new mob definition" : $"ID: {Model.Mob.Id}")
| 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 } |
|
No abilities assigned. This mob will use a basic attack.
}| 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 } |
|
No animations assigned. Create sprite sheets first, then add animations here.
}| Loot Table | Priority | Roll % | Entries | Actions |
|---|---|---|---|---|
| @mlt.LootTable?.Name (ID: @mlt.LootTableId) | @mlt.Priority | @((mlt.RollChance * 100).ToString("0"))% | @(mlt.LootTable?.Entries?.Count ?? 0) | |
| No loot tables assigned. This mob won't drop items. | ||||