From 4fab43cf37224adaa89b5aa656f0c17b0ae859db Mon Sep 17 00:00:00 2001 From: Heroman Date: Sat, 20 Nov 2021 12:19:53 +1000 Subject: [PATCH] Hopefully fixes borgs not earning PTO --- code/controllers/subsystems/persist_vr.dm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/code/controllers/subsystems/persist_vr.dm b/code/controllers/subsystems/persist_vr.dm index a00d4f7a3dd..c40a0b0e35d 100644 --- a/code/controllers/subsystems/persist_vr.dm +++ b/code/controllers/subsystems/persist_vr.dm @@ -25,6 +25,7 @@ SUBSYSTEM_DEF(persist) return if(!resumed) src.currentrun = human_mob_list.Copy() + src.currentrun += silicon_mob_list.Copy() //cache for sanic speed (lists are references anyways) var/list/currentrun = src.currentrun @@ -41,9 +42,7 @@ SUBSYSTEM_DEF(persist) return continue - // Do not collect useless PTO var/department_earning = J.pto_type - clear_unused_pto(M) // Determine special PTO types and convert properly if(department_earning == PTO_CYBORG) @@ -103,12 +102,4 @@ SUBSYSTEM_DEF(persist) // They have a custom title, aren't crew, or someone deleted their record, so we need a fallback method. // Let's check the mind. if(M.mind && M.mind.assigned_role) - . = job_master.GetJob(M.mind.assigned_role) - -// This proc tries makes sure old Command PTO doesn't linger -/datum/controller/subsystem/persist/proc/clear_unused_pto(var/mob/M) - var/client/C = M.client - LAZYINITLIST(C.department_hours) - if(C.department_hours[DEPARTMENT_COMMAND]) - C.department_hours[DEPARTMENT_COMMAND] = null - C.department_hours.Remove(DEPARTMENT_COMMAND) + . = job_master.GetJob(M.mind.assigned_role) \ No newline at end of file