Do not refresh inventory when zero blueprints were stored
This commit is contained in:
parent
eaf0ed5be4
commit
331df9961d
Binary file not shown.
@ -52,15 +52,19 @@ function StoreSingleCopy()
|
|||||||
endif
|
endif
|
||||||
/;
|
/;
|
||||||
int iCount = EnderalFunctions.MoveItemsToCountByKeyword(PlayerREF, _00E_FS_BlueprintContainerActorREF, Blueprint, 1)
|
int iCount = EnderalFunctions.MoveItemsToCountByKeyword(PlayerREF, _00E_FS_BlueprintContainerActorREF, Blueprint, 1)
|
||||||
ITMBookClose.Play(PlayerREF)
|
|
||||||
|
if iCount > 0
|
||||||
Utility.WaitMenuMode(0.5)
|
ITMBookClose.Play(PlayerREF)
|
||||||
Form item = Game.GetForm(0x1FE82) ; non-playable Draugr Skin
|
|
||||||
PlayerREF.RemoveItem(item, 1, true)
|
; Moving items is fast, refreshing inventory is not
|
||||||
|
|
||||||
if iCount > 150
|
|
||||||
Utility.WaitMenuMode(0.5)
|
Utility.WaitMenuMode(0.5)
|
||||||
PlayerREF.RemoveItem(item, 1, true) ; doing this twice seems to reliably refresh inventory
|
Form item = Game.GetForm(0x1FE82) ; non-playable Draugr Skin
|
||||||
|
PlayerREF.RemoveItem(item, 1, true)
|
||||||
|
|
||||||
|
if iCount > 150
|
||||||
|
Utility.WaitMenuMode(0.5)
|
||||||
|
PlayerREF.RemoveItem(item, 1, true) ; doing this twice seems to reliably refresh inventory
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_00E_FS_BlueprintItemsStored.Show(iCount)
|
_00E_FS_BlueprintItemsStored.Show(iCount)
|
||||||
|
Loading…
Reference in New Issue
Block a user