mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Midgame Antagonist (#10477)
This commit is contained in:
@@ -403,6 +403,18 @@
|
||||
|
||||
INVOKE_ASYNC(GLOBAL_PROC, .proc/show_location_blurb, H.client, 30)
|
||||
|
||||
if(joined_late)
|
||||
var/antag_count = 0
|
||||
for(var/antag_type in SSticker.mode.antag_tags)
|
||||
var/datum/antagonist/A = all_antag_types[antag_type]
|
||||
antag_count += A.get_active_antag_count()
|
||||
for(var/antag_type in SSticker.mode.antag_tags)
|
||||
var/datum/antagonist/A = all_antag_types[antag_type]
|
||||
A.update_current_antag_max()
|
||||
if((A.role_type in H.client.prefs.be_special_role) && !(A.flags & ANTAG_OVERRIDE_JOB) && antag_count < A.cur_max)
|
||||
A.add_antagonist(H.mind)
|
||||
break
|
||||
|
||||
Debug("ER/([H]): Completed.")
|
||||
|
||||
return H
|
||||
|
||||
Reference in New Issue
Block a user