[MIRROR] Ports Cryopods (#4880)

* Ports Cryopods (#58025)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
Co-authored-by: Kokonut <38844529+maxymax13@ users.noreply.github.com>
Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>

* Ports Cryopods

* aaaa

* Update cryopod.dm

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
Co-authored-by: Kokonut <38844529+maxymax13@ users.noreply.github.com>
Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-04-13 11:53:56 +01:00
committed by GitHub
co-authored by Mothblocks Kokonut Aleksej Komarov Jeremiah Gandalf
parent da714da60e
commit ef50ca23cb
13 changed files with 547 additions and 534 deletions
+8
View File
@@ -145,6 +145,14 @@ SUBSYSTEM_DEF(job)
JobDebug("AR has failed, Player: [player], Rank: [rank]")
return FALSE
/datum/controller/subsystem/job/proc/FreeRole(rank)
if(!rank)
return
JobDebug("Freeing role: [rank]")
var/datum/job/job = GetJob(rank)
if(!job)
return FALSE
job.current_positions = max(0, job.current_positions - 1)
/datum/controller/subsystem/job/proc/FindOccupationCandidates(datum/job/job, level, flag)
JobDebug("Running FOC, Job: [job], Level: [level], Flag: [flag]")