Optimized adding items to a hidden slot
This commit is contained in:
parent
00459d5b16
commit
23c16a0acf
Binary file not shown.
@ -164,21 +164,11 @@ Function AddItemsToContainer(Formlist itemsToAdd, int iFormlistIndexOffset, int
|
||||
|
||||
EndIf
|
||||
|
||||
int iIndex = itemsToAdd.GetSize() - 1
|
||||
containerToFill.AddItem(itemsToAdd, 1, true)
|
||||
|
||||
while iIndex >= 0
|
||||
|
||||
Form formToAdd = itemsToAdd.GetAt(iIndex)
|
||||
|
||||
if formToAdd == Gold001
|
||||
containerToFill.AddItem(itemsToAdd.GetAt(iIndex), iHiddenSlotTier*5)
|
||||
Else
|
||||
containerToFill.AddItem(itemsToAdd.GetAt(iIndex), 1)
|
||||
EndIf
|
||||
|
||||
iIndex -= 1
|
||||
|
||||
endwhile
|
||||
if itemsToAdd.HasForm(Gold001)
|
||||
containerToFill.AddItem(Gold001, iHiddenSlotTier * 5 - 1, true)
|
||||
endif
|
||||
|
||||
EndFunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user