devilutionX
devilutionX copied to clipboard
Inconsistency in treating 0 charge staff
Operating System
Windows x64
DevilutionX version
Custom build (please specify commit ID)
Describe
Commit https://github.com/diasurgical/devilutionX/commit/1e8230b9b1a18c54ac7fd4c8c6dc74970596fecc
If you save and load a game with 0 charges staff:
In any other situation you don't have a selectable spell/icon for 0 charges
Comes from https://github.com/diasurgical/devilutionX/blob/master/Source/items.cpp#L2579 (no charges check) vs https://github.com/diasurgical/devilutionX/blob/master/Source/player.cpp#L3157 (charges check)
To Reproduce
- Get a staff
- Equip it
- Use all charges
- Save
- Load
- Check spells
Expected Behavior
No response
Additional context
No response