Does some adjustment to _vr job things

This commit is contained in:
Heroman
2020-03-19 14:20:11 +10:00
parent 32b68a17c6
commit a8c4ac11c4
15 changed files with 70 additions and 61 deletions

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