mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-22 05:25:15 +01:00
Alternative job titles in the Occupations screen actually used in-game (#9420)
* Added alt jobs names actually doing something. * Also add late join announcements. * Fix custom roles showing up first in crew monitor * Cleanup to match upstream changes * Updates from review, also improve both tgui manifests * Compromise for Skyrat edit notes vs JSX vs linter * Compromise for optimization vs not making a horrible mess of passing client around * Follow module rules * Revert no longer true changed to customization readme * Update dme * Fixed comments for alt titles
This commit is contained in:
@@ -259,11 +259,14 @@
|
||||
humanc = character //Let's retypecast the var to be human,
|
||||
|
||||
if(humanc) //These procs all expect humans
|
||||
GLOB.data_core.manifest_inject(humanc)
|
||||
// BEGIN SKYRAT EDIT CHANGE - ALTERNATIVE_JOB_TITLES
|
||||
var/chosen_rank = humanc.client?.prefs.alt_job_titles[rank] || rank
|
||||
GLOB.data_core.manifest_inject(humanc, humanc.client)
|
||||
if(SSshuttle.arrivals)
|
||||
SSshuttle.arrivals.QueueAnnounce(humanc, rank)
|
||||
SSshuttle.arrivals.QueueAnnounce(humanc, chosen_rank)
|
||||
else
|
||||
announce_arrival(humanc, rank)
|
||||
announce_arrival(humanc, chosen_rank)
|
||||
// END SKYRAT EDIT CHANGE - customization
|
||||
AddEmploymentContract(humanc)
|
||||
|
||||
humanc.increment_scar_slot()
|
||||
|
||||
Reference in New Issue
Block a user