Open CoroNaut opened 2 months ago
It should be a side effect of #73550. The feature AIM_AFTER_FIRING
was disabled for the bows, and I didn't make a proper solution when enable it for the bows. If favorite ammo is set for your bow, it works as intended, but if you have not set it and carry more than one kind of arrows, this dumb thing happens.
Will try to solve it later.
I would also LOVE to see it not popup a dialog if you only have one arrow type in your inventory.
I think it's #70359 that changed how it works. There are also some other side effects caused by it, and I didn't find out how to deal with them.
After actually testing it, I found out what's happening (it's been a while after my PR got merged so I forgot how I did it in detail😂). If you are aiming at a real enemy, things work as intented. Only when aiming at a practice target (which does not count as a real target), or just drawing your bow with out a target, the things in question will happen. https://github.com/CleverRaven/Cataclysm-DDA/blob/e398be14514639f1e6aa512d8fd39c908b347eed/src/ranged.cpp#L2652-L2659 In fact, you did select an arrow, but as there are no targets available, you just quit the aim ui. So it's not as serious an issue as I thought, no real troubles happen in combat. Will try to change the order of the functions to make it not confusing when using bows.
Describe the bug
I understand that we probably don't keep an arrow 'in the bow' like a bullet in a gun. When you shoot your survival bow, it asks you to reload the weapon with a new arrow, but this action does nothing. then if you want to fire again, it pops up the exact same dialog to ask you what arrow to use, which works.
Attach save file
Grafton-trimmed.tar.gz
Steps to reproduce
Expected behavior
Preferably, the dialog asking the user to reload the bow would work and actually bring you right back to the aiming interface.
I would also LOVE to see it not popup a dialog if you only have one arrow type in your inventory. it used to be this way, but it changed at some point a year or two ago to always show a dialog for even a singular ammo type. Then i could just stay on the aiming interface and fire arrow after arrow.
Screenshots
No response
Versions and configuration
Additional context
No response