I haven't said a word for quite bit of time but I've been working with funmaker and Luksor recently, now I've committed something. Please nag me if I've done something wrong, it's my first commit :v
The things I've changed are pickup-related. I've said in log:
Ad cInventory::AddItemAnyAmount: I was afraid that if I modified AddItem then something would break and It's exported to lua so I just created another function which works slightly differently.
I've got feeling that I should ask before :v
I tried emptying crafting grid when player is closing inventory but I had hard time with GetSlot( c_CraftOffset + 0..(c_CraftSlots-1) ) returning empty item :c
The things I've changed are pickup-related. I've said in log:
Code:
* Now when picking up max. stack amount is checked.
* Added cInventory::AddItemAnyAmount() which will not fail if it cannot add all items (it will just modify amount)
* If there is no space in inventory and picking up stacked items, it will try to fill stacks already in inventory, partially picking up the item.
* When closing inventory player will drop any items it's currently 'dragging'
Ad cInventory::AddItemAnyAmount: I was afraid that if I modified AddItem then something would break and It's exported to lua so I just created another function which works slightly differently.
I've got feeling that I should ask before :v
I tried emptying crafting grid when player is closing inventory but I had hard time with GetSlot( c_CraftOffset + 0..(c_CraftSlots-1) ) returning empty item :c