Midgame Antagonist (#10477)

This commit is contained in:
Geeves
2020-11-11 10:10:36 +01:00
committed by GitHub
parent 954c61816b
commit 49fbf17970
2 changed files with 18 additions and 0 deletions
+12
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "People who latejoin can now be turned into antags as well, provided they have the role preference selected, it's a station antag, and amount of antags is lower than or equal to the living player count divided by the antag count coeff."