Document player inventory persistence

This commit is contained in:
2026-05-18 19:19:00 -07:00
parent 1d2ac1e584
commit 188ef7b509
3 changed files with 19 additions and 1 deletions
+6
View File
@@ -423,6 +423,12 @@ treatment quality data for later generational and health systems. Version 0.1.M
only persists and restores those placeholders; it does not apply aging,
lifespan, inheritance, or generational outcome gameplay.
Player inventory is stored through `FAgrarianSavedPlayer::Inventory`, copied
from `UAgrarianInventoryComponent::Items`, and restored through
`UAgrarianInventoryComponent::RestoreSavedItems`. Restore recomputes derived
values and broadcasts inventory changes so HUD/debug listeners see loaded item
state.
## Testing Gates
Minimum persistence smoke test: