Repository navigation
feat: add RPG inventory and persistent loot sources - #16
Merged
Merged
Conversation
pes7
force-pushed
the
refactor/stable-ids-save-participants
branch
from
July 27, 2026 21:16
f4f23d8 to
ec7e96f
Compare
pes7
force-pushed
the
refactor/inventory-items-construction
branch
from
July 27, 2026 21:18
59459dc to
51630a8
Compare
pes7
changed the base branch from
refactor/stable-ids-save-participants
to
master
July 27, 2026 21:18
pes7
marked this pull request as ready for review
July 27, 2026 21:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This stacked PR adds the RPG inventory and persistent loot foundation needed by the player, raid NPCs, POI NPCs, world items, searchable containers and corpses.
The previous construction-oriented scope was removed. This PR no longer contains construction definitions, construction progress or worker/production gameplay.
Completed scope
ZoneUA.Inventoryruntime assemblyItemDefinitionandItemCatalogInventoryStateInventoryComponentInventorySaveParticipantWorldItemPickupILootSourcecontractInventoryDropperworld-itemLootSourceKind,LootSearchState,ILootSourceand pureLootContainerStateLootContainerCorpseLootContainerto snapshot a dead actor's complete inventoryLootReservationRegistrywith owner IDs and expiry times for raid-NPC coordinationDocs/RPG_INVENTORY_LOOT.mdRemoved as out of scope
Stacking
Base branch:
refactor/stable-ids-save-participantsMerge after PR #15, or retarget after earlier stacked PRs are merged.
The branch name remains
refactor/inventory-items-constructionfor Git history continuity, but the PR diff and scope are now inventory/loot only.Unity workflow
InventoryComponentandInventorySaveParticipantto the persistent player and loot-capable NPC prefabs.PersistentIdentity,TransformSaveParticipant,WorldItemPickupand a collider.PersistentPrefabCatalog.PersistentIdentity,InventoryComponent,InventorySaveParticipantandLootContainer.CorpseLootContainer.CorpseLootContainer.InitialiseFrom(deadActorInventory).Zone UA -> Validation -> Validate Inventory and Loot.Validation required in Unity 6000.5.5f1
InventoryLootTestspassUnsearched/Searched/EmptystateThis PR remains draft because Unity compilation, prefab references, interaction timing, death integration and Play Mode save/load must be validated locally.