Skip to content

Commit

Permalink
Devour now turns off lights (#3668)
Browse files Browse the repository at this point in the history
# About the pull request

This PR makes it so devour turns off lights.

# Explain why it's good for the game

This should stop some of the pesky bugs that have been cropping up
around lights and devour/regurg.

# 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: Morrow
fix: Prevented some light bugs with devouring marines
/:cl:

---------

Co-authored-by: Zonespace <[email protected]>
  • Loading branch information
morrowwolf and Zonespace27 authored Jun 23, 2023
1 parent ab775c7 commit 9a51e5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/modules/mob/mob_grab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@
X.visible_message(SPAN_WARNING("[X] devours [pulled]!"), \
SPAN_WARNING("You devour [pulled]!"), null, 5)

//IMPORTANT CODER NOTE: Due to us using the old lighting engine, we need to hacky hack hard to get this working properly
//So we're just going to get the lights out of here by forceMoving them to a far-away place
//They will be recovered when regurgitating, since this also calls forceMove
pulled.moveToNullspace()
if(ishuman(pulled))
var/mob/living/carbon/human/pulled_human = pulled
pulled_human.disable_lights()

//Then, we place the mob where it ought to be
X.stomach_contents.Add(pulled)
Expand Down

0 comments on commit 9a51e5d

Please sign in to comment.