Cataclysm-DDA
Cataclysm-DDA copied to clipboard
Hold your arrow
Summary
Features "Hold your arrow"
Purpose of change
Close #71819 Now you can choose to hold your arrow after quitting aim ui.
Describe the solution
Add the option UNLOAD_RAS_WEAPON
in interface-accessibility, just under AIM_AFTER_FIRING
, to permanently determine whether to unload your bow after canceling shooting.
Replace the option SWITCH_AMMO
in aim ui with TOGGLE_UNLOAD_RAS_WEAPON
when wielding a loaded RAS weapon, to temporarily toggle UNLOAD_RAS_WEAPON
.
Since that if the bow is loaded, reload/switch ammo command just didn't work as you can't reload something fully loaded, so no need to show it now.
If the bow is not loaded, you can still select "switch ammo".
Added open_container
to RAS weapons, now you need to unload your bow before putting it in your backpack or wearing it.
Describe alternatives you've considered
Testing
Compiled and tested locally.
Additional context