mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +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
@@ -30,7 +30,7 @@
|
||||
if(istype(O, /obj/item/card/id))
|
||||
var/obj/item/card/id/I = O
|
||||
src.access |= I.GetAccess()
|
||||
if(player_is_antag(user.mind) || registered_user == user)
|
||||
if(SSantag_job.player_is_antag(user.mind) || registered_user == user)
|
||||
to_chat(user, span_notice("The microscanner activates as you pass it over the ID, copying its access."))
|
||||
|
||||
/obj/item/card/id/syndicate/attack_self(mob/user)
|
||||
|
||||
@@ -446,14 +446,14 @@ the implant may become unstable and either pre-maturely inject the subject or si
|
||||
if(!ishuman(M))
|
||||
. = FALSE
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/datum/antagonist/antag_data = get_antag_data(H.mind.special_role)
|
||||
var/datum/antagonist/antag_data = SSantag_job.get_antag_data(H.mind.special_role)
|
||||
if(antag_data && (antag_data.flags & ANTAG_IMPLANT_IMMUNE))
|
||||
H.visible_message("[H] seems to resist the implant!", "You feel the corporate tendrils of [using_map.company_name] try to invade your mind!")
|
||||
. = FALSE
|
||||
|
||||
/obj/item/implant/loyalty/post_implant(mob/M)
|
||||
var/mob/living/carbon/human/H = M
|
||||
clear_antag_roles(H.mind, 1)
|
||||
SSantag_job.clear_antag_roles(H.mind, 1)
|
||||
to_chat(H, span_notice("You feel a surge of loyalty towards [using_map.company_name]."))
|
||||
|
||||
//////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user