Add stack splitting
This commit is contained in:
@@ -106,6 +106,14 @@ of the player, and restores the removed stack if pickup spawning fails. This is
|
||||
the baseline behavior future UI-driven drop flows should call through rather
|
||||
than duplicating inventory mutation logic on the client.
|
||||
|
||||
Stack splitting is available through `AgrarianSplitStack StackIndex SplitQuantity`
|
||||
and `UAgrarianInventoryComponent::SplitStackByIndex`. Splitting is
|
||||
server-authoritative, validates the source stack index, quantity, and free slot
|
||||
capacity, copies the source stack metadata, reduces the source quantity, and
|
||||
creates a separate inventory slot. It intentionally does not re-merge the split
|
||||
stack through `AddItem`, because the UI needs an actual separate stack to
|
||||
support later drag/drop and partial drop flows.
|
||||
|
||||
## Time And Environment
|
||||
|
||||
The MVP gameplay calendar target is:
|
||||
|
||||
Reference in New Issue
Block a user