[Issue Report]: Wirt re-rolls when you leave town then restart app
Author: WiroxCreated Aug 23, 2026Updated Aug 23, 2026
DevilutionX version
1.5.5 and 1.6 (haven't checked other versions)
Describe
After talking to the devs I've been informed that this way of re-rolling Wirt's items isn't intended: https://github.com/diasurgical/DevilutionX/discussions/8672#discussioncomment-18122847
This is caused by the game only keeping BoyItem in memory, but not in the savefile, which causes him to generate the item every time you restart the game.
It's not a problem if you don't leave the town, because then the same item is generated (because the random seed is only saved after leaving the town). If you do, however, also leave the town, Wirt generates a brand new item.
To Reproduce
- Start or load a singleplayer game.
- Go to Wirt and have a look at his item.
- Go to the caves.
- Save the game.
- Restart the app.
- Load the game.
- Go to Wirt and have a look at his item again.
- Notice he now has a different item.
Expected Behavior
Wirt should keep his item even after leaving town and restarting the app.
Source: diasurgical/DevilutionX