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] Cleans up the SS13_base lua file and adds a new lua file for easily handling multiple signals on different objects. #2822

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1905
Original PR: tgstation/tgstation#82458

About The Pull Request

Cleaned up the SS13.register_signal and SS13.unregister_signal, removing the weird list shifting.
Also adds a new lua file that can be included for the use of registering different signals on various datums and being able to clear them all in 1 function.
Removed the make_easy_clear_function option when registering a signal via lua because I don't think it's used by anyone and it lacks any sort of versatility. Users can just create their own function for clearing signals from a datum.

Also updates the documentation for HARDDELETES.md as COMSIG_PARENT_QDELETING was renamed to COMSIG_QDELETING

Why It's Good For The Game

New handler file makes registering signals in batches a lot easier if you want to clear them in one go without clearing unrelated callbacks on the same datum. The list shifting in SS13.register_signal had pretty significant performance problems, so removing that will make registering and unregistering signals faster.

Changelog

🆑 Watermelon914
admin: LUA - Adds a new library called handler_group. Include it in your files by doing require('handler_group')
/:cl:

… easily handling multiple signals on different objects. (#1905)

* Cleans up the SS13_base lua file and adds a new lua file for easily handling multiple signals on different objects. (#82458)

## About The Pull Request
Cleaned up the SS13.register_signal and SS13.unregister_signal, removing
the weird list shifting.
Also adds a new lua file that can be included for the use of registering
different signals on various datums and being able to clear them all in
1 function.
Removed the make_easy_clear_function option when registering a signal
via lua because I don't think it's used by anyone and it lacks any sort
of versatility. Users can just create their own function for clearing
signals from a datum.

Also updates the documentation for HARDDELETES.md as
COMSIG_PARENT_QDELETING was renamed to COMSIG_QDELETING

## Why It's Good For The Game
New handler file makes registering signals in batches a lot easier if
you want to clear them in one go without clearing unrelated callbacks on
the same datum. The list shifting in SS13.register_signal had pretty
significant performance problems, so removing that will make registering
and unregistering signals faster.

## Changelog
:cl:
admin: LUA - Adds a new library called handler_group. Include it in your
files by doing require('handler_group')
/:cl:

---------

Co-authored-by: Watermelon914 <[email protected]>

* Cleans up the SS13_base lua file and adds a new lua file for easily handling multiple signals on different objects.

---------

Co-authored-by: Watermelon914 <[email protected]>
Co-authored-by: Watermelon914 <[email protected]>
@ReezeBL ReezeBL merged commit 59cee57 into master Apr 10, 2024
26 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-1905 branch April 10, 2024 22:03
AnywayFarus added a commit that referenced this pull request Apr 10, 2024
Iajret pushed a commit that referenced this pull request Jun 4, 2024
* Fix Meta cargo lobby being unconnected to power (#83666)

## About The Pull Request
Moves a misplaced wire to be connecting the cargo lobby APC instead of
right next to it. Also adds a missing wire in maintenance from cargo's
maintenance to the vault hallway and another one connecting the APC in
the maintenance above mining.

## Why It's Good For The Game
Allows meta's cargo lobby & mining maintence to actually charge without
someone having to add a wire.

## Changelog
:cl: Goat
fix: meta's cargo lobby and mining maintenance APCs is now connected to
the power line
/:cl:

* Fix Meta cargo lobby being unconnected to power

---------

Co-authored-by: Goat <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
ReezeBL pushed a commit that referenced this pull request Jun 5, 2024
* Fix Meta cargo lobby being unconnected to power (#83666)

## About The Pull Request
Moves a misplaced wire to be connecting the cargo lobby APC instead of
right next to it. Also adds a missing wire in maintenance from cargo's
maintenance to the vault hallway and another one connecting the APC in
the maintenance above mining.

## Why It's Good For The Game
Allows meta's cargo lobby & mining maintence to actually charge without
someone having to add a wire.

## Changelog
:cl: Goat
fix: meta's cargo lobby and mining maintenance APCs is now connected to
the power line
/:cl:

* Fix Meta cargo lobby being unconnected to power

---------

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