Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Hold your arrow

Open osuphobia opened this issue 9 months ago • 1 comments

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

2024-05-25 105205 2024-05-25 105859 2024-05-25 105921 2024-05-25 105935 2024-05-15 195949

osuphobia avatar May 25 '24 04:05 osuphobia