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 Runtime When Thanking Non-Existent Clown #1164

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#25666
Original PR: tgstation/tgstation#80337

About The Pull Request

Currently, attempting to thank the driver of a clown car when none exists causes a runtime. This is because while there is logic to ensure we don't attempt to thank a driver if there is none, said logic only checks the result of a pick() called on the list of drivers, which will runtime if the list is empty. This PR fixes the error by checking if the the driver list is empty first, then using pick() solely for choosing a driver to thank.

Why It's Good For The Game

While this isn't a very common runtime in normal gameplay, it is a bug and should be fixed regardless.

Changelog

🆑 IndieanaJones
fix: Fixed runtime regarding thanking non-existent clown car drivers
/:cl:

…(#25666)

* Fixes Runtime When Thanking Non-Existent Clown (#80337)

## About The Pull Request

Currently, attempting to thank the driver of a clown car when none
exists causes a runtime. This is because while there is logic to ensure
we don't attempt to thank a driver if there is none, said logic only
checks the result of a pick() called on the list of drivers, which will
runtime if the list is empty. This PR fixes the error by checking if the
the driver list is empty first, then using pick() solely for choosing a
driver to thank.

## Why It's Good For The Game

While this isn't a very common runtime in normal gameplay, it is a bug
and should be fixed regardless.

## Changelog

:cl:
fix: Fixed runtime regarding thanking non-existent clown car drivers
/:cl:

* Fixes Runtime When Thanking Non-Existent Clown

---------

Co-authored-by: IndieanaJones <[email protected]>
@ReezeBL ReezeBL merged commit a81aa7f into master Dec 17, 2023
23 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-25666 branch December 17, 2023 17:09
AnywayFarus added a commit that referenced this pull request Dec 17, 2023
Iajret pushed a commit that referenced this pull request Feb 27, 2024
* Birdshot Chapel Fixes & Improvements (#81642)

## About The Pull Request
Slightly remaps Birdshot's Monastery Garden, moves the altar, and
changes the area so Sparring Sect chaplains have a place to fight.
Fixes: #81614

![Screenshot 2024-02-22
230737](https://github.com/tgstation/tgstation/assets/73589390/b18d7a95-261b-41ca-b997-01a0b8480ad1)
## Why It's Good For The Game
The Chaplain didn't really have a place to preach before, and they also
had nowhere to spar! This converts the garden into a more useable space.
## Changelog
:cl:
qol: The chapel has been slightly overhauled on Birdshot, with the
chaplain now having a place to preach sermons.
fix: Sparring chaplains are now able to operate on Birdshot!
/:cl:

* Birdshot Chapel Fixes & Improvements

---------

Co-authored-by: Cheshify <[email protected]>
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