Skip to content

[TM ONLY] Makes phones works across Z-levels and other areas - #156

Open
DiscordWizard wants to merge 3 commits into
ApocryphaXIII:masterfrom
DiscordWizard:master
Open

[TM ONLY] Makes phones works across Z-levels and other areas#156
DiscordWizard wants to merge 3 commits into
ApocryphaXIII:masterfrom
DiscordWizard:master

Conversation

@DiscordWizard

Copy link
Copy Markdown

About The Pull Request

Makes phones work so if you are in the city and get called from residential or the top of the tower or wherever, you still get the call.

Why It's Good For The Game

Bugfix, and now we can all communicate properly, welcome back anxiety-less communication.
Tested calling on the same Z-level, different areas, atop one another and next to one another, calling works fine.

Testing Photographs and Procedure

Screenshots & Videos

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

imagen

Changelog

🆑
fix: phone calling work across z-levels
/:cl:

@DiscordWizard
DiscordWizard requested a review from a team as a code owner August 28, 2026 15:50
@github-actions github-actions Bot added the Fix label Aug 28, 2026
sim_card = new default_sim_card_type(src)
sim_card.phone_weakref = WEAKREF(src)
phone_radio = new(src)
phone_radio = new /obj/item/radio/phone(src)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
phone_radio = new /obj/item/radio/phone(src)
phone_radio = new(src)

unneeded, phone_radio is an implicit type defined by the var, meaning New() doesn't need to be passed a type

Comment on lines +1 to +3
/obj/item/radio/phone/can_receive(input_frequency, list/levels)
return ..(input_frequency, RADIO_NO_Z_LEVEL_RESTRICTION) // without this, phones only work on their own Z level

@dwinters99 dwinters99 Aug 28, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

(NON-BLOCKING) i was going to ask you to modular comment this, but this is a PR that should go upstream after the testing cycle so i'll just mark this as TM only instead for now. me or @FalloutFalcon will upstream it for you if you don't end up getting around to it.

@dwinters99 dwinters99 changed the title Makes phones works across Z-levels and other areas [TM ONLY] Makes phones works across Z-levels and other areas Aug 28, 2026
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