Log inGet started
World

Pack Rat: Inventory, Loot and Equipment Kit

README.md

rules

The rules every inventory change passes, as pure functions over an inventory state, built on the engine's own slot inventory (@builtin::modules.extras.inventory): stacking up to an item's maxStack, swapping, splitting, equipping only into the slot an item is made for, and refusing any move of an item you do not have. Every operation returns (ok, why, newState) and never changes the state it was given. Used by inventoryKit itself and by tests.