Skip to content

Commit

Permalink
Fix BioReactor Respawn Reward (#8348)
Browse files Browse the repository at this point in the history
The Biomatter Reactor was intended to give a 15 minute bonus to the respawn timer, but never worked. I fixed this.
  • Loading branch information
Mycah142 authored Nov 3, 2023
1 parent 37ca7cb commit 0f11f43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/biomatter_manipulation/bioreactor/platform.dm
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@
organ.forceMove(get_turf(neighbor_platform))
organ.removed()
continue
if(H && H.mind && H.mind.key && H.stat == DEAD)
var/mob/M = key2mob(H.mind.key)
if(istype(object, /obj/item/organ/internal/vital/brain))
var/obj/item/organ/internal/vital/brain/B = object
if(B.brainmob && B.brainmob.mind && B.brainmob.mind.key)
var/mob/M = key2mob(B.brainmob.mind.key)
to_chat(M, SPAN_NOTICE("Your remains have been dissolved and reused. Your crew respawn time is reduced by [(BIOREACTOR_RESPAWN_BONUS)/600] minutes."))
M << 'sound/effects/magic/blind.ogg' //Play this sound to a player whenever their respawn time gets reduced
M.set_respawn_bonus("CORPSE_DISSOLVING", BIOREACTOR_RESPAWN_BONUS)
Expand Down

0 comments on commit 0f11f43

Please sign in to comment.