mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Refactors job EXP to allow for multiple departments in restrictions (#17442)
This commit is contained in:
@@ -253,14 +253,20 @@
|
||||
|
||||
/mob/new_player/proc/IsJobAvailable(rank)
|
||||
var/datum/job/job = SSjobs.GetJob(rank)
|
||||
if(!job) return 0
|
||||
if(!job.is_position_available()) return 0
|
||||
if(jobban_isbanned(src,rank)) return 0
|
||||
if(!is_job_whitelisted(src, rank)) return 0
|
||||
if(!job.player_old_enough(client)) return 0
|
||||
if(job.admin_only && !(check_rights(R_EVENT, 0))) return 0
|
||||
if(job.available_in_playtime(client))
|
||||
return 0
|
||||
if(!job)
|
||||
return FALSE
|
||||
if(!job.is_position_available())
|
||||
return FALSE
|
||||
if(jobban_isbanned(src, rank))
|
||||
return FALSE
|
||||
if(!is_job_whitelisted(src, rank))
|
||||
return FALSE
|
||||
if(!job.player_old_enough(client))
|
||||
return FALSE
|
||||
if(job.admin_only && !check_rights(R_EVENT, FALSE))
|
||||
return FALSE
|
||||
if(job.get_exp_restrictions(client))
|
||||
return FALSE
|
||||
|
||||
if(GLOB.configuration.jobs.assistant_limit)
|
||||
if(job.title == "Assistant")
|
||||
|
||||
Reference in New Issue
Block a user