[MIRROR] Adds borg jobban check to mindswap traits (#7662)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-01-31 13:25:09 -05:00
committed by GitHub
co-authored by Heroman3003 CHOMPStation2
parent 15fcbafe92
commit fdf343d7ef
@@ -197,6 +197,9 @@
if(!pred.ckey)
to_chat(prey, "<span class='notice'>\The [pred] isn't able to be dominated.</span>")
return
if(isrobot(pred) && jobban_isbanned(prey, "Cyborg"))
to_chat(prey, "<span class='warning'>Forces beyond your comprehension forbid you from taking control of [pred].</span>")
return
if(prey.prey_controlled)
to_chat(prey, "<span class='warning'>You are already controlling someone, you can't control anyone else at this time.</span>")
return
@@ -444,17 +447,20 @@
var/mob/living/pred = src
if(prey.stat == DEAD)
to_chat(prey, "<span class='warning'>You cannot do that to this prey.</span>")
to_chat(pred, "<span class='warning'>You cannot do that to this prey.</span>")
return
if(!prey.ckey)
to_chat(prey, "<span class='notice'>\The [prey] cannot take control.</span>")
to_chat(pred, "<span class='notice'>\The [prey] cannot take control.</span>")
return
if(isrobot(pred) && jobban_isbanned(prey, "Cyborg"))
to_chat(pred, "<span class='warning'>Forces beyond your comprehension prevent you from giving [prey] control.</span>")
return
if(prey.prey_controlled)
to_chat(prey, "<span class='warning'>\The [prey] is already under someone's control and cannot be given control of your body.</span>")
to_chat(pred, "<span class='warning'>\The [prey] is already under someone's control and cannot be given control of your body.</span>")
return
if(pred.prey_controlled)
to_chat(prey, "<span class='warning'>You are already controlling someone's body.</span>")
to_chat(pred, "<span class='warning'>You are already controlling someone's body.</span>")
return
if(tgui_alert(pred, "You are attempting to give [prey] control over you, are you sure? Ensure that their preferences align with this kind of play.", "Give Prey Control",list("No","Yes")) != "Yes")
return