mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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>"
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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."
|
||||
Reference in New Issue
Block a user