Add stack splitting

This commit is contained in:
2026-05-17 11:47:44 -07:00
parent b48595f70d
commit 555ad6df25
7 changed files with 155 additions and 1 deletions
+8
View File
@@ -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: