mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fully implements the ID Card design document (#56910)
Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
@@ -316,7 +316,16 @@
|
||||
SSjob.AssignRole(src, rank, 1)
|
||||
|
||||
var/mob/living/character = create_character(TRUE) //creates the human and transfers vars and mind
|
||||
var/equip = SSjob.EquipRank(character, rank, TRUE)
|
||||
|
||||
var/is_captain = FALSE
|
||||
// If we don't have an assigned cap yet, check if this person qualifies for some from of captaincy.
|
||||
if(!SSjob.assigned_captain && ishuman(character) && SSjob.chain_of_command[rank] && !is_banned_from(ckey, list("Captain")))
|
||||
is_captain = TRUE
|
||||
// If we already have a captain, are they a "Captain" rank and are we allowing multiple of them to be assigned?
|
||||
else if(SSjob.always_promote_captain_job && (rank == "Captain"))
|
||||
is_captain = TRUE
|
||||
|
||||
var/equip = SSjob.EquipRank(character, rank, TRUE, is_captain)
|
||||
if(isliving(equip)) //Borgs get borged in the equip, so we need to make sure we handle the new mob.
|
||||
character = equip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user