From 3156094d416f0c54ad01a2270779aa7be6b87b2b Mon Sep 17 00:00:00 2001 From: ihatethisengine <115417687+ihatethisengine@users.noreply.github.com> Date: Mon, 11 Dec 2023 00:37:33 +0300 Subject: [PATCH] Fusion reactor explosion handling (#5166) # About the pull request You cannot destroy fusion reactors with explosives. Explosions do disable overloading tho as a little feature. # Explain why it's good for the game Not only it causes bugs, reactors is an important objective and you should not be able to destroy them with HEDP. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: ihatethisengine fix: fusion reactors cannot be destroyed with explosions /:cl: --- code/game/machinery/fusion_engine.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/machinery/fusion_engine.dm b/code/game/machinery/fusion_engine.dm index d7c7cc4c7d18..0e5f8142c2be 100644 --- a/code/game/machinery/fusion_engine.dm +++ b/code/game/machinery/fusion_engine.dm @@ -356,6 +356,11 @@ else . += SPAN_INFO("There is no fuel cell in the receptacle.") +/obj/structure/machinery/power/fusion_engine/ex_act(severity) + if(overloaded && severity >= EXPLOSION_THRESHOLD_MLOW) + set_overloading(FALSE) + return + /obj/structure/machinery/power/fusion_engine/update_icon() switch(buildstate) if(0)