From 653b767f3296db89207066a063bff6bb32670e60 Mon Sep 17 00:00:00 2001 From: SandPoot Date: Sun, 17 Dec 2023 23:35:51 -0300 Subject: [PATCH] remove antags for borging... --- code/datums/mind.dm | 10 +++++++++- code/game/gamemodes/game_mode.dm | 6 ------ code/game/objects/items/robot/robot_parts.dm | 4 +--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 822da27923..d841116d17 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -293,7 +293,15 @@ remove_antag_datum(/datum/antagonist/cult) var/datum/antagonist/rev/revolutionary = has_antag_datum(/datum/antagonist/rev) - revolutionary?.remove_revolutionary() + revolutionary?.remove_revolutionary(TRUE) + + if(!isbrain(current)) + return + if(!istype(loc, /obj/item/organ/brain)) + return + var/obj/item/organ/brain/B = loc + if(!istype(B.laws, /datum/ai_laws/ratvar)) + remove_servant_of_ratvar(current, TRUE) /datum/mind/proc/remove_all_antag() //For the Lazy amongst us. remove_changeling() diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 12dfc92cc4..2bc497e62a 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -551,12 +551,6 @@ return max(0, enemy_minimum_age - C.player_age) -/datum/game_mode/proc/remove_antag_for_borging(datum/mind/newborgie) - SSticker.mode.remove_cultist(newborgie, 0, 0) - var/datum/antagonist/rev/rev = newborgie.has_antag_datum(/datum/antagonist/rev) - if(rev) - rev.remove_revolutionary(TRUE) - /datum/game_mode/proc/generate_station_goals() if(flipseclevel && !(config_tag == "extended")) //CIT CHANGE - allows the sec level to be flipped roundstart for(var/T in subtypesof(/datum/station_goal)) diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm index 760c58b533..1667e023f5 100644 --- a/code/game/objects/items/robot/robot_parts.dm +++ b/code/game/objects/items/robot/robot_parts.dm @@ -292,9 +292,7 @@ if(M.laws.id == DEFAULT_AI_LAWID) O.make_laws() - SSticker.mode.remove_antag_for_borging(BM.mind) - if(!istype(M.laws, /datum/ai_laws/ratvar)) - remove_servant_of_ratvar(BM, TRUE) + BM.mind.remove_antags_for_borging() BM.mind.transfer_to(O) if(O.mind && O.mind.special_role)