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

Teleporter machinery now autolinks. Adds unit test. #9881

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

Tsar-Salat
Copy link
Contributor

Ports:

About The Pull Request

Teleporter machinery now autolinks to eachother, no more screwdriver and wirecutters needed.

Adds unit test.

Why It's Good For The Game

This has annoyed the hell out of mentors for eternity. No more.

Testing Photographs and Procedure

Screenshots&Videos
dreamseeker_HTyLzFdt4m.mp4

Changelog

🆑 RKz, Mothblocks
tweak: teleporter machinery now autolinks.
code: adds unit test to ensure this does not regress
/:cl:

// Put down the teleporter machinery
var/obj/machinery/teleport/hub/hub = allocate(/obj/machinery/teleport/hub)
var/obj/machinery/teleport/station/station = allocate(/obj/machinery/teleport/station, locate(run_loc_floor_bottom_left.x + 1, run_loc_floor_bottom_left.y, run_loc_floor_bottom_left.z))
var/obj/machinery/computer/teleporter/computer = allocate(/obj/machinery/computer/teleporter, locate(run_loc_floor_bottom_left.x + 2, run_loc_floor_bottom_left.y, run_loc_floor_bottom_left.z))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this unit test does not account for placement order

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it matter

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe? If you place them in different orders a regression might cause one to fail. It's just a coverage thing. I suppose it's fine as is.

@itsmeow itsmeow added this pull request to the merge queue Oct 24, 2023
Merged via the queue into BeeStation:master with commit eacb690 Oct 24, 2023
8 checks passed
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.

2 participants