mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
[MIRROR] subsystem antag (#12599)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Kashargul
Cameron Lennox
parent
9d7e5e7cf7
commit
092c641c3c
@@ -22,8 +22,8 @@
|
||||
// The random spawn proc on the antag datum will handle announcing the spawn and whatnot, in theory.
|
||||
/datum/event2/event/random_antagonist/start()
|
||||
var/list/valid_types = list()
|
||||
for(var/antag_type in GLOB.all_antag_types)
|
||||
var/datum/antagonist/antag = GLOB.all_antag_types[antag_type]
|
||||
for(var/antag_type in SSantag_job.all_antag_types)
|
||||
var/datum/antagonist/antag = SSantag_job.all_antag_types[antag_type]
|
||||
if(antag.flags & ANTAG_RANDSPAWN)
|
||||
valid_types |= antag
|
||||
if(valid_types.len)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
continue
|
||||
|
||||
// Or antags / bellied.
|
||||
if(player_is_antag(H.mind) || isbelly(H.loc))
|
||||
if(SSantag_job.player_is_antag(H.mind) || isbelly(H.loc))
|
||||
continue
|
||||
|
||||
// Or doctors (otherwise it could be possible for the only surgeon to need surgery).
|
||||
|
||||
Reference in New Issue
Block a user