Merge pull request #6913 from Heroman3003/jobstuff

Does some adjustment to _vr job things
This commit is contained in:
Novacat
2020-03-19 19:00:25 -04:00
committed by GitHub
15 changed files with 70 additions and 61 deletions
+2 -2
View File
@@ -36,13 +36,13 @@ SUBSYSTEM_DEF(persist)
// Try and detect job and department of mob
var/datum/job/J = detect_job(M)
if(!istype(J) || !J.pto_earning || !J.timeoff_factor)
if(!istype(J) || !J.pto_type || !J.timeoff_factor)
if (MC_TICK_CHECK)
return
continue
// Do not collect useless PTO
var/department_earning = J.pto_earning
var/department_earning = J.pto_type
clear_unused_pto(M)
// Update client whatever