mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-20 04:02:57 +01:00
MultiZ Layenia Base
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/// Toggles time off for jobs
|
||||
/datum/config_entry/flag/time_off
|
||||
|
||||
/// Toggles changing jobs with PTO
|
||||
/datum/config_entry/flag/pto_job_change
|
||||
|
||||
/// PTO hour cap
|
||||
/datum/config_entry/number/pto_cap
|
||||
config_entry_value = 100 /// Total hours
|
||||
min_val = 0 /// Minimum hourly value
|
||||
integer = FALSE /// We can be a float for partial hours
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Some modifications to the jobs subsystem, courtesy of SandPoot.
|
||||
* If we pull from upstream we should have this somewhere at some point, so it's shoehorned
|
||||
* in here for the moment.
|
||||
* Insert unhelpful comment here.
|
||||
*/
|
||||
|
||||
/datum/controller/subsystem/job/proc/get_job_name(job_name)
|
||||
if (!job_name)
|
||||
return "Unknown" // Invalid job
|
||||
//var/all_alt_titles = get_all_alt_titles()
|
||||
//if (job_name in all_alt_titles) // Check if the name is an alt title
|
||||
//return get_job_name(all_alt_titles[job_name]) // Locate the original job title and return it
|
||||
if (job_name in get_all_job_icons()) // Check if the job has a HUD icon
|
||||
return job_name
|
||||
if (job_name in get_all_centcom_jobs()) // Return the NT logo if it is a CentCom job
|
||||
return "CentCom"
|
||||
return "Unknown" // Return unknown if none of the above apply
|
||||
Reference in New Issue
Block a user