Skip to content

Commit

Permalink
Fix of starting overload on reactor message (#7912)
Browse files Browse the repository at this point in the history
# About the pull request
... title said everything


# Changelog

:cl: BlackCrystalic
fix: starting of reactor overload message now give right info
/:cl:

Closes #7847
  • Loading branch information
blackcrystall authored Dec 31, 2024
1 parent ad96016 commit 32b907b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/machinery/fusion_engine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,17 @@
if(!skillcheck(user, SKILL_ENGINEER, SKILL_ENGINEER_TRAINED))
return

to_chat(user, SPAN_WARNING("You start [overloaded ? "overloading" : "restoring"] the safeties on [src]."))
to_chat(user, SPAN_WARNING("You start [overloaded ? "restoring" : "overloading"] the safeties on [src]."))
if(!do_after(user, 2 SECONDS, INTERRUPT_ALL, BUSY_ICON_BUILD))
return

if(inoperable())
to_chat(user, SPAN_WARNING("[src] needs to be working and have external power in order to be overloaded."))
to_chat(user, SPAN_WARNING("[src] needs to be working and have external power in order to be [overloaded ? "restored" : "overloaded"]."))
return

set_overloading(!overloaded)
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.")
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.")
return

. = ..()
Expand Down

0 comments on commit 32b907b

Please sign in to comment.