diff --git a/Services/Admin/Pages/Items/Edit.cshtml b/Services/Admin/Pages/Items/Edit.cshtml index 11a38bc..89b43ee 100644 --- a/Services/Admin/Pages/Items/Edit.cshtml +++ b/Services/Admin/Pages/Items/Edit.cshtml @@ -281,15 +281,25 @@ @section Scripts { } diff --git a/Services/Admin/Pages/LootTables/Edit.cshtml b/Services/Admin/Pages/LootTables/Edit.cshtml new file mode 100644 index 0000000..062db5f --- /dev/null +++ b/Services/Admin/Pages/LootTables/Edit.cshtml @@ -0,0 +1,257 @@ +@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. + | +||||||
Manage loot table definitions
+| ID | +Name | +Tier | +Drops | +Entries | +Enabled | +Actions | +
|---|---|---|---|---|---|---|
| @table.Id | +
+ @table.Name
+ @if (!string.IsNullOrEmpty(table.Description))
+ {
+ @table.Description + } + |
+ + @table.MinTier - @table.MaxTier + | ++ @table.MinDrops - @table.MaxDrops + @if (table.GuaranteedDrop) + { + ✓ + } + | ++ @table.Entries.Count + | ++ @if (table.IsEnabled) + { + + } + else + { + + } + | +
+
+
+
+
+
+
+ |
+
| + No loot tables found. Create one? + | +||||||
@(Model.IsNew ? "Add a new mob definition" : $"ID: {Model.Mob.Id}")
+| 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. + | +||||
Mob editor coming soon...
+ +| ID | +Name | +Type | +Category | +Tier | +HP | +DMG | +Enabled | +Actions | +
|---|---|---|---|---|---|---|---|---|
| @mob.Id | +
+ @mob.Name
+ @if (!string.IsNullOrEmpty(mob.Description))
+ {
+ @mob.Description + } + |
+ + + @mob.Type + + | +@mob.Category | +@mob.MinTier - @mob.MaxTier | +@mob.BaseHealth | +@mob.BasePhysicalDamage | ++ @if (mob.IsEnabled) + { + + } + else + { + + } + | +
+
+
+
+
+
+
+ |
+
| + No mobs found. Create one? + | +||||||||
Management