Unidentified bolts don't show charges #718
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm guessing that charges are intentionally not shown for unidentified magical objects, which makes sense (unless it's a scroll, but I just checked and Scroll of Flame doesn't stack so I'm extrapolating that no scrolls do).
This behavior doesn't make sense for ammunition, though. Unidentified bolts should show their charge number because it's a plainly visible quantity, not a mysterious attribute.
Hopefully this can be fixed without having to add any XML flags. Maybe the presence of the missile-type flag is enough to distinguish an item that should hide charges and one that shouldn't?
Ok, here's where it happens:
7339abee84/src/game/boe.text.cpp (L329)Due to the existence of infinite-ammo missiles like the Sling, there is more complexity here than just checking if a missile-type is present. Maybe
missile != 0 && max_charges != 0would do the trick.