Underlings are now told who their head is

When heads are present at roundstart, or latejoin the round, all their
alive underlings will be notified.
This commit is contained in:
Chiefwaffles
2015-07-07 16:30:37 -07:00
parent f05318d97b
commit f581ee258c
8 changed files with 27 additions and 1 deletions
+1
View File
@@ -390,6 +390,7 @@ var/datum/subsystem/job/SSjob
else //We ran out of spare locker spawns!
break
/datum/subsystem/job/proc/LoadJobs(jobsfile) //ran during round setup, reads info from jobs.txt -- Urist
if(!config.load_jobs_from_txt)
return 0
+2
View File
@@ -95,3 +95,5 @@ Head of Personnel
else
H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/ids(H.back), slot_in_backpack)
H.equip_to_slot_or_del(new /obj/item/weapon/melee/classic_baton/telescopic(H), slot_in_backpack)
announce_head(H.mind) //tell underlings they have a head
+2
View File
@@ -42,6 +42,8 @@ Chief Engineer
if(H.backbag == 2 || H.backbag == 3)
H.equip_to_slot_or_del(new /obj/item/weapon/melee/classic_baton/telescopic(H), slot_in_backpack)
announce_head(H.mind) //tell underlings they have a head
/*
Station Engineer
*/
+10 -1
View File
@@ -171,4 +171,13 @@
return max(0, minimal_player_age - C.player_age)
/datum/job/proc/config_check()
return 1
return 1
/datum/job/proc/announce_head(var/datum/mind/o_mind) //Announces to underlings of the mind's assigned job that the mind is their head.
for(var/datum/mind/p_mind in ticker.minds)
if(p_mind.current && p_mind.current.stat != DEAD)
var/datum/job/p_job = SSjob.GetJob(p_mind.assigned_role)
if(p_job.department_head)
for(var/head in p_job.department_head)
if(head == o_mind.assigned_role)
p_mind.current << "<span class = 'notice'>[o_mind.name] is your department head! </span>"
+2
View File
@@ -38,6 +38,8 @@ Chief Medical Officer
if(H.backbag == 2 || H.backbag == 3)
H.equip_to_slot_or_del(new /obj/item/weapon/melee/classic_baton/telescopic(H), slot_in_backpack)
announce_head(H.mind) //tell underlings they have a head
/*
Medical Doctor
*/
+2
View File
@@ -40,6 +40,8 @@ Research Director
if(H.backbag == 2 || H.backbag == 3)
H.equip_to_slot_or_del(new /obj/item/weapon/melee/classic_baton/telescopic(H), slot_in_backpack)
announce_head(H.mind) //tell underlings they have a head
/*
Scientist
*/
+2
View File
@@ -55,6 +55,8 @@ Head of Security
L.implanted = 1
H.sec_hud_set_implants()
announce_head(H.mind) //tell underlings they have a head
/*
Warden
*/
@@ -0,0 +1,6 @@
author: Chiefwaffles
delete-after: True
changes:
- rscadd: "Department Heads, on arrival, (latejoin or start) now have their name announced to their underlings."