Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 6ab58d5

Browse files
authored
Makes cryopodding remove the person from antag teams (#21787)
* Update cryopod.dm * Update cryopod.dm * Update cryopod.dm
1 parent 4599cf4 commit 6ab58d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/game/machinery/cryopod.dm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ GLOBAL_LIST_EMPTY(cryopod_computers)
308308
/obj/machinery/cryopod/proc/despawn_occupant()
309309
var/mob/living/mob_occupant = occupant
310310
if(mob_occupant.mind && mob_occupant.mind.assigned_role)
311+
// Removes from team antag teams to avoid influencing gameplay
312+
for(var/datum/antagonist/antag as anything in mob_occupant.mind.antag_datums)
313+
if(antag && istype(antag))
314+
var/datum/team/antag_team = antag.get_team()
315+
if(antag_team)
316+
antag_team.remove_member(mob_occupant.mind)
311317
//Handle job slot/tater cleanup.
312318
var/job = mob_occupant.mind.assigned_role
313319
SSjob.FreeRole(job)

0 commit comments

Comments
 (0)