|
|
|
@ -50,7 +50,7 @@ event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemRefe |
|
|
|
|
|
|
|
|
|
if ((akDestContainer && akDestContainer.GetParentCell() == PlayerRef.GetParentCell()) || (! akDestContainer && Eddoursul_Functions.HasRefInCell(akBaseItem, None, true, ETR_PersistentStorageList))) |
|
|
|
|
|
|
|
|
|
ObjectReference cellStorage = Eddoursul_Functions.GetOrCreateCellStorage(PlayerRef, ETR_PersistentStorageList, ETR_CellStorageContainer) |
|
|
|
|
ObjectReference cellStorage = Eddoursul_Functions.GetCellStorage(PlayerRef, ETR_PersistentStorageList, ETR_CellStorageContainer) |
|
|
|
|
|
|
|
|
|
if cellStorage.GetItemCount(akBaseItem) == 0 |
|
|
|
|
cellStorage.AddItem(akBaseItem, 1, true) |
|
|
|
@ -71,7 +71,7 @@ event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemRefere |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
elseif bAtHome |
|
|
|
|
ObjectReference cellStorage = Eddoursul_Functions.GetOrCreateCellStorage(PlayerRef, ETR_PersistentStorageList, ETR_CellStorageContainer) |
|
|
|
|
ObjectReference cellStorage = Eddoursul_Functions.GetCellStorage(PlayerRef, ETR_PersistentStorageList, ETR_CellStorageContainer) |
|
|
|
|
int iCount = cellStorage.GetItemCount(akBaseItem) |
|
|
|
|
|
|
|
|
|
if iCount > 0 && ! Eddoursul_Functions.HasRefInCell(akBaseItem, None, true, ETR_PersistentStorageList) |
|
|
|
|