Commit 28fc6d8
The inventory should clear only when GameState.clear() is called.
Commit 635e10b made the inventory clear in the wrong moments: when
starting a quest and when abandoning a quest.
- Removed `_do_clear_inventory()` and `_update_inventory_state()` from
`start_quest()`.
- Removed `clear_inventory()` from `abandon_quest()`.
- Added `_do_clear_inventory()` and `trinkets.clear()` to `clear()`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6bb5975 commit 28fc6d8
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
| |||
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
248 | | - | |
249 | 246 | | |
250 | 247 | | |
251 | 248 | | |
| |||
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
| 370 | + | |
| 371 | + | |
373 | 372 | | |
374 | 373 | | |
375 | 374 | | |
| |||
0 commit comments