Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fixes bows not loosening their strings once fired #2197

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1208
Original PR: tgstation/tgstation#81724

About The Pull Request

So, there's this one place that could have just called clear_chambered because it does the exact same operations, but didn't.

Here's gun/ballistic/proc/clear_chambered():
https://github.com/tgstation/tgstation/blob/ce04e2b7ee279e025bd53e87296e7dfd70b9474a/code/modules/projectiles/guns/ballistic.dm#L285-L288

and here's gun/ballistic/bow/clear_chambered(), which is responsible for setting drawn to false:
https://github.com/tgstation/tgstation/blob/ce04e2b7ee279e025bd53e87296e7dfd70b9474a/code/modules/projectiles/guns/ballistic/bows/_bow.dm#L52-L54

You can connect the dots.

Why It's Good For The Game

This will fix #81462.

Changelog

🆑 Ghommie
fix: Fixed (cross)bows' strings not loosening once fired.
/:cl:

* Fixes bows not loosening their strings once fired (#81724)

## About The Pull Request
So, there's this one place that could have just called `clear_chambered`
because it does the exact same operations, but didn't.

Here's `gun/ballistic/proc/clear_chambered()`:

https://github.com/tgstation/tgstation/blob/ce04e2b7ee279e025bd53e87296e7dfd70b9474a/code/modules/projectiles/guns/ballistic.dm#L285-L288

and here's `gun/ballistic/bow/clear_chambered()`, which is responsible
for setting `drawn` to false:

https://github.com/tgstation/tgstation/blob/ce04e2b7ee279e025bd53e87296e7dfd70b9474a/code/modules/projectiles/guns/ballistic/bows/_bow.dm#L52-L54

You can connect the dots.

* Fixes bows not loosening their strings once fired

---------

Co-authored-by: Ghom <[email protected]>
@Iajret Iajret merged commit 16cd9e7 into master Mar 1, 2024
23 checks passed
@Iajret Iajret deleted the upstream-mirror-1208 branch March 1, 2024 14:02
AnywayFarus added a commit that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants