@page "/admin/items/edit" @model Items.EditModel @using DataServer.Data.Enums @{ ViewData["Title"] = Model.IsNew ? "Create Item" : $"Edit: {Model.Item.Name}"; var isEquipment = Model.Item.Type == ItemType.Weapon || Model.Item.Type == ItemType.Armor || Model.Item.Type == ItemType.Accessory; var isWeapon = Model.Item.Type == ItemType.Weapon; var isConsumable = Model.Item.Type == ItemType.Consumable; }

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

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

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

Basic Information

Visual & Stacking

No image

Stat Requirements

Stat Bonuses (When Equipped)

Crafting Stat Ranges

Min/Max values when crafted. Higher crafting skill = better rolls. (2x recipe level = 50% max roll chance per stat)

Tip: Leave min/max at 0 if the stat shouldn't roll. For fixed values, set min = max. Base values above are used for drops/vendor items. Ranges are only used when crafting with "Has Stat Rolls" enabled on recipe.

Combat Stats

Projectile & Ranged Weapon Properties

Configuration for bows, crossbows, and throwable weapons

Linear Projectile Coordinates

Click on the arrow tip (front) and tail (back) positions in the preview below. The projectile will be oriented toward its direction of travel.

Hover over the image to see coordinates

Image will appear after you select a sprite path above

Must match the AmmunitionType of ammo items (e.g., "arrow" for bows, "bolt" for crossbows)

0 = melee only

Distance before projectile expires

Chance to recover ammo after hit (for ammunition items)

Number of ammo slots (0 = not a quiver container)

Weapon Types:
  • Bows/Crossbows: Enable "Requires Ammunition", set AmmunitionType, ProjectileSpeed, Range
  • Throwables (knives, javelins): Enable "Is Throwable", set ProjectileSpeed, Range (no ammo required - consumes from inventory)
  • Quiver Containers: Set QuiverCapacity > 0, equip to Quiver slot
  • Ammunition (arrows, bolts): Set Recovery Chance, make Stackable, set EquipSlot to Quiver

Resistance Bonuses (When Equipped)

Permanent resistances granted while this item is equipped

@foreach (var resist in Model.ItemResistances) { 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";
%
}
% Manage Types →

Consumable Effects

0 = instant only

Temporary Buff Resistances

Resistances applied for BuffDuration seconds when consumed

@foreach (var resist in Model.BuffResistances) { 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";
%
}
%
Cancel @if (!Model.IsNew) {
}
@section Scripts { }