inventory use the I key to access

This commit is contained in:
dingo
2025-12-09 08:49:23 -05:00
parent 3b04f8068f
commit 3256031dfe
3 changed files with 272 additions and 3 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Server.Data.Enums;
namespace Server.Data.Entities;
@@ -16,11 +17,15 @@ public class DungeonCharacterItem
public int ItemDefinitionId { get; set; }
public int Quantity { get; set; } = 1;
public int SlotIndex { get; set; } // Inventory position (0-29 for example)
public int SlotIndex { get; set; } // Inventory position (0-29 for example), -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; }
public virtual DungeonItemDefinition? Definition { get; set; }
[ForeignKey(nameof(ItemDefinitionId))]
public virtual DungeonItemDefinition? ItemDefinition { get; set; }
}