inventory use the I key to access
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user