Skip to content

Commit

Permalink
Fusion reactor oversight fix (#7157)
Browse files Browse the repository at this point in the history
# About the pull request
fixes #7127


This if/then/otherwise statement was activating the wrong message when
it was overloaded meaning that when you were restoring safety’s then
chat would say that you weren’t. switched the then statements around and
now it’s working again
<!-- 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.
-->
# 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: fusion reactor overload messages now show correctly
/:cl:

---------

Co-authored-by: BeagleGaming1 <[email protected]>
  • Loading branch information
deathrobotpunch and BeagleGaming1 authored Oct 9, 2024
1 parent 9e13b1e commit 0918c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/fusion_engine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@
return

set_overloading(!overloaded)
to_chat(user, SPAN_WARNING("You finish [overloaded ? "overloading" : "restoring"] the safeties on [src]."))
log_game("[key_name(user)] has [overloaded ? "overloaded" : "restored the safeties of"] a generator.")
to_chat(user, SPAN_WARNING("You finish [overloaded ? "restoring" : "overloading"] the safeties on [src]."))
log_game("[key_name(user)] has [overloaded ? "restored the safeties of" : "overloaded"] a generator.")
return

. = ..()
Expand Down

0 comments on commit 0918c48

Please sign in to comment.