Skip to content

Commit

Permalink
Fusion reactor explosion handling (#5166)
Browse files Browse the repository at this point in the history
# 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
<details>
<summary>Screenshots & Videos</summary>

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

</details>


# Changelog
:cl: ihatethisengine
fix: fusion reactors cannot be destroyed with explosions
/:cl:
  • Loading branch information
ihatethisengine authored Dec 10, 2023
1 parent 86b8b5d commit 3156094
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/fusion_engine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3156094

Please sign in to comment.