Skip second refresh with less that 150 items when sorting blueprints

This commit is contained in:
Eddoursul 2024-02-17 10:46:34 +01:00
parent bb475b50d1
commit edaa704c3b
2 changed files with 11 additions and 3 deletions

View File

@ -51,11 +51,19 @@ function StoreSingleCopy()
_00E_FS_BlueprintItemsStored.Show(iItemsToStore) _00E_FS_BlueprintItemsStored.Show(iItemsToStore)
endif endif
/; /;
int iCount = EnderalFunctions.MoveItemsToCountByKeyword(PlayerREF, _00E_FS_BlueprintContainerActorREF, Blueprint, 1)
ITMBookClose.Play(PlayerREF) ITMBookClose.Play(PlayerREF)
_00E_FS_BlueprintItemsStored.Show(EnderalFunctions.MoveItemsToCountByKeyword(PlayerREF, _00E_FS_BlueprintContainerActorREF, Blueprint, 1))
Armor item = Game.GetForm(0x1FE82) as Armor ; non-playable Draugr Skin 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) 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
_00E_FS_BlueprintItemsStored.Show(iCount)
endfunction endfunction
Function TakeBlueprints() Function TakeBlueprints()