Skip to content

Commit

Permalink
Tactical reload does not get canceled by movement (#6086)
Browse files Browse the repository at this point in the history
# About the pull request
allows movement during tactical reload
# Explain why it's good for the game
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
balance: allows movement during tactical reload (to perform tactical
reload click and drag from a magazine to gun in your hand)
/:cl:

---------

Co-authored-by: vincibrv <[email protected]>
  • Loading branch information
cuberound and uuuuhuuuu authored Apr 6, 2024
1 parent 62e94d5 commit 9101bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/gun_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ DEFINES in setup.dm, referenced here.
var/tac_reload_time = 15
if(user.skills)
tac_reload_time = max(15 - 5*user.skills.get_skill_level(SKILL_FIREARMS), 5)
if(do_after(user,tac_reload_time, INTERRUPT_ALL, BUSY_ICON_FRIENDLY) && magazine.loc == old_mag_loc && !current_mag)
if(do_after(user,tac_reload_time, (INTERRUPT_ALL & (~INTERRUPT_MOVED)) , BUSY_ICON_FRIENDLY) && magazine.loc == old_mag_loc && !current_mag)
if(isstorage(magazine.loc))
var/obj/item/storage/master_storage = magazine.loc
master_storage.remove_from_storage(magazine)
Expand Down

0 comments on commit 9101bfe

Please sign in to comment.