Merge pull request #13246 from Heroman3003/restricted-talon

Makes Talon Captain restricted behind 60 hours of Talon playtime
This commit is contained in:
Casey
2022-07-03 05:06:23 -04:00
committed by CHOMPStation2
parent acb9521a80
commit 047d3e2831
4 changed files with 28 additions and 10 deletions

View File

@@ -63,10 +63,11 @@ SUBSYSTEM_DEF(persist)
LAZYINITLIST(C.play_hours)
var/dept_hours = C.department_hours
var/play_hours = C.play_hours
if(isnum(dept_hours[department_earning]))
dept_hours[department_earning] += pto_factored
else
dept_hours[department_earning] = pto_factored
if(!(J.playtime_only))
if(isnum(dept_hours[department_earning]))
dept_hours[department_earning] += pto_factored
else
dept_hours[department_earning] = pto_factored
// If they're earning PTO they must be in a useful job so are earning playtime in that department
if(J.timeoff_factor > 0)