diff --git a/code/__DEFINES/preferences.dm b/code/__DEFINES/preferences.dm index c2cd40c1a58..5fa1c2e587a 100644 --- a/code/__DEFINES/preferences.dm +++ b/code/__DEFINES/preferences.dm @@ -51,4 +51,6 @@ #define EXP_TYPE_SECURITY "Security" #define EXP_TYPE_SILICON "Silicon" #define EXP_TYPE_SERVICE "Service" -#define EXP_TYPE_WHITELIST "Whitelist" \ No newline at end of file +#define EXP_TYPE_WHITELIST "Whitelist" + +#define EXP_DEPT_TYPE_LIST list(EXP_TYPE_SERVICE, EXP_TYPE_MEDICAL, EXP_TYPE_ENGINEERING, EXP_TYPE_SCIENCE, EXP_TYPE_SECURITY, EXP_TYPE_COMMAND, EXP_TYPE_SILICON, EXP_TYPE_SPECIAL) \ No newline at end of file diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index eb6fb8a4802..79b7da3c10c 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -449,7 +449,7 @@ proc/pollCandidates(Question, be_special_type, antag_age_check = 0, poll_time = if(jobban_isbanned(G, roletext) || jobban_isbanned(G, "Syndicate")) continue if(config.use_exp_restrictions && min_hours) - if(G.client.get_exp_living_num() < min_hours * 60) + if(G.client.get_exp_type_num(EXP_TYPE_LIVING) < min_hours * 60) continue if(check_antaghud && cannotPossess(G)) continue diff --git a/code/game/jobs/job_exp.dm b/code/game/jobs/job_exp.dm index 82c170a1997..fa13fbdb4b7 100644 --- a/code/game/jobs/job_exp.dm +++ b/code/game/jobs/job_exp.dm @@ -47,7 +47,7 @@ var/global/list/role_playtime_requirements = list( to_chat(src, "Playtime tracking is not enabled.") return - to_chat(src, "Your playtime is [get_exp_living()].") + to_chat(src, "Your [EXP_TYPE_CREW] playtime is [get_exp_type(EXP_TYPE_CREW)].") // Admin Verbs @@ -57,36 +57,31 @@ var/global/list/role_playtime_requirements = list( if(!check_rights(R_ADMIN|R_MOD|R_MENTOR)) return var/msg = "
| Player | Job | Crew | " + for(var/thisdept in EXP_DEPT_TYPE_LIST) + msg += "[thisdept] | " + msg += "
|---|---|---|---|
| [key_name_admin(C.mob)] | " + else + msg += "[key_name_mentor(C.mob)] | " + + jtext = "-" if(C.mob.mind && C.mob.mind.assigned_role) theirjob = job_master.GetJob(C.mob.mind.assigned_role) if(theirjob) jtext = theirjob.title - if(config.use_exp_restrictions && theirjob.exp_requirements && theirjob.exp_type) - jtext += "*" - if(check_rights(R_ADMIN, 0)) - pline = "[jtext] | " + + msg += "" + C.get_exp_type(EXP_TYPE_CREW) + " | " + msg += "[C.get_exp_dept_string()]" + msg += "