Skip to content

Commit

Permalink
Update overwatch.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamerdk authored Aug 23, 2023
1 parent bb70d9d commit 167c088
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions code/modules/cm_marines/overwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,18 @@
ftl_alive++
if(JOB_SQUAD_SPECIALIST)
spec_count++
if(istype(marine_human.wear_id, /obj/item/card/id)) //decapitated marine is mindless,
var/obj/item/card/id/ID = marine_human.wear_id //we use their ID to get their role.
if(ID.assignment)
if(specialist_type)
specialist_type = "MULTIPLE"
else
var/list/spec_type = splittext(ID.assignment, "(")
if(islist(spec_type) && (length(spec_type) > 1))
specialist_type = splittext(spec_type[2], ")")[1]

if(marine_human)
if(istype(marine_human.wear_id, /obj/item/card/id)) //decapitated marine is mindless,
var/obj/item/card/id/ID = marine_human.wear_id //we use their ID to get their role.
if(ID.assignment)
if(specialist_type)
specialist_type = "MULTIPLE"
else
var/list/spec_type = splittext(ID.assignment, "(")
if(islist(spec_type) && (length(spec_type) > 1))
specialist_type = splittext(spec_type[2], ")")[1]
else if(!specialist_type)
specialist_type = "UNKNOWN"
if(mob_state != "Dead")
spec_alive++
if(JOB_SQUAD_MEDIC)
Expand Down

0 comments on commit 167c088

Please sign in to comment.