Skip to content

Commit

Permalink
Fixes communications intel objective being instantly completed (#3723)
Browse files Browse the repository at this point in the history
# About the pull request

<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

tcomms_startup sets on = TRUE and is called on Initialize(), silly.

This means it just checks when you toggle the state of the tower
(usually to on)

Doesn't check if you inputted the frequencies I guess but eh

# Explain why it's good for the game
Don't give marines free intel they didn't earn

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

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

</details>


# Changelog
:cl:
fix: Communications intel objective now actually works
/:cl:
  • Loading branch information
TheGamerdk committed Jun 28, 2023
1 parent 169fcc3 commit 5d1c11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/telecomms/presets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
return TRUE
return FALSE

/obj/structure/machinery/telecomms/relay/preset/tower/tcomms_startup()
/obj/structure/machinery/telecomms/relay/preset/tower/update_state()
. = ..()
if(on)
playsound(src, 'sound/machines/tcomms_on.ogg', vol = 80, vary = FALSE, sound_range = 16, falloff = 0.5)
Expand Down

0 comments on commit 5d1c11e

Please sign in to comment.