Renamed GetOrCreateCellStorage to GetCellStorage
This commit is contained in:
parent
8bc8b1362d
commit
fcc0924c1f
Binary file not shown.
Binary file not shown.
@ -106,7 +106,7 @@ event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemRefe
|
|||||||
ETR_ItemsFound.RemoveAddedForm(akBaseItem)
|
ETR_ItemsFound.RemoveAddedForm(akBaseItem)
|
||||||
ETR_ItemsStored.AddForm(akBaseItem)
|
ETR_ItemsStored.AddForm(akBaseItem)
|
||||||
|
|
||||||
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
|
if cellStorage.GetItemCount(akBaseItem) == 0
|
||||||
cellStorage.AddItem(akBaseItem, 1, true)
|
cellStorage.AddItem(akBaseItem, 1, true)
|
||||||
|
@ -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)))
|
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
|
if cellStorage.GetItemCount(akBaseItem) == 0
|
||||||
cellStorage.AddItem(akBaseItem, 1, true)
|
cellStorage.AddItem(akBaseItem, 1, true)
|
||||||
@ -71,7 +71,7 @@ event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemRefere
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
elseif bAtHome
|
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)
|
int iCount = cellStorage.GetItemCount(akBaseItem)
|
||||||
|
|
||||||
if iCount > 0 && ! Eddoursul_Functions.HasRefInCell(akBaseItem, None, true, ETR_PersistentStorageList)
|
if iCount > 0 && ! Eddoursul_Functions.HasRefInCell(akBaseItem, None, true, ETR_PersistentStorageList)
|
||||||
|
Loading…
Reference in New Issue
Block a user