Commit bacbc8c
When resuming a game, the inventory persisted is not loaded. Fix it.
- Updated `_update_trinkets_state()` to save all trinket fields (`id`,
`name`, `description`, `icon` resource path, `full_text`) as
dictionaries instead of just IDs.
- Updated `restore()` to reconstruct full `Trinket` objects from saved
data, including loading the icon texture from its resource path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 28fc6d8 commit bacbc8c
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
| |||
404 | 413 | | |
405 | 414 | | |
406 | 415 | | |
407 | | - | |
| 416 | + | |
408 | 417 | | |
409 | | - | |
| 418 | + | |
410 | 419 | | |
411 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
412 | 427 | | |
413 | 428 | | |
414 | 429 | | |
| |||
0 commit comments