Fully implements the ID Card design document (#56910)

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
Timberpoes
2021-02-28 19:26:45 -08:00
committed by GitHub
co-authored by Rohesie
parent 39db53e42d
commit 890615856e
154 changed files with 4820 additions and 1966 deletions
+10 -1
View File
@@ -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