This commit is contained in:
dingo
2025-12-09 09:49:35 -05:00
parent c41c65aca1
commit 47cf171a79
26 changed files with 1024 additions and 9754 deletions
+7 -7
View File
@@ -3,7 +3,6 @@ using System.ComponentModel.DataAnnotations.Schema;
using Server.Data.Enums;
namespace Server.Data.Entities;
/// <summary>
/// Actual item instance owned by a character (inventory or equipped)
/// </summary>
@@ -12,20 +11,21 @@ public class DungeonCharacterItem
{
[Key]
public ulong Id { get; set; }
public ulong CharacterId { get; set; }
public int ItemDefinitionId { get; set; }
public int Quantity { get; set; } = 1;
public int SlotIndex { get; set; } // Inventory position (0-29 for example), -1 if equipped
public int SlotIndex { get; set; } // Inventory position (0-29), or -1 if equipped
public bool IsEquipped { get; set; } = false;
public DungeonEquipmentSlot? EquipSlot { get; set; }
public DateTime AcquiredAt { get; set; } = DateTime.UtcNow;
// Navigation
public virtual DungeonCharacter? Character { get; set; }
[ForeignKey(nameof(ItemDefinitionId))]
public virtual DungeonItemDefinition? ItemDefinition { get; set; }
}