Merge pull request #15587 from TomGarou/Synth-Brainwashing
Synth Brainwashing AKA Reprogramming
This commit is contained in:
@@ -958,6 +958,13 @@
|
||||
surgery = /datum/surgery/advanced/brainwashing
|
||||
research_icon_state = "surgery_head"
|
||||
|
||||
/datum/design/surgery/robo_brainwashing
|
||||
name = "Reprogramming"
|
||||
desc = "A surgical procedure which hardcodes a directive into the patient's logic subroutines, making it their absolute priority. It can be purged using a mindshield implant."
|
||||
id = "surgery_robot_brainwashing"
|
||||
surgery = /datum/surgery/advanced/robot_brainwashing
|
||||
research_icon_state = "surgery_head"
|
||||
|
||||
/datum/design/surgery/nerve_splicing
|
||||
name = "Nerve Splicing"
|
||||
desc = "A surgical procedure which splices the patient's nerves, making them more resistant to stuns."
|
||||
|
||||
@@ -152,5 +152,5 @@
|
||||
display_name = "Alien Surgery"
|
||||
description = "Abductors did nothing wrong."
|
||||
prereq_ids = list("exp_surgery", "alientech")
|
||||
design_ids = list("surgery_brainwashing","surgery_zombie", "surgery_ext_dissection", "surgery_heal_combo_upgrade_femto")
|
||||
design_ids = list("surgery_brainwashing", "surgery_robot_brainwashing", "surgery_zombie", "surgery_ext_dissection", "surgery_heal_combo_upgrade_femto")
|
||||
research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 10000)
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
/obj/item/disk/surgery/brainwashing
|
||||
name = "Brainwashing Surgery Disk"
|
||||
desc = "The disk provides instructions on how to impress an order on a brain, making it the primary objective of the patient."
|
||||
surgeries = list(/datum/surgery/advanced/brainwashing)
|
||||
surgeries = list(
|
||||
/datum/surgery/advanced/brainwashing,
|
||||
/datum/surgery/advanced/robot_brainwashing)
|
||||
|
||||
/datum/surgery/advanced/brainwashing
|
||||
name = "Brainwashing"
|
||||
|
||||
60
code/modules/surgery/advanced/robot_brainwashing.dm
Normal file
60
code/modules/surgery/advanced/robot_brainwashing.dm
Normal file
@@ -0,0 +1,60 @@
|
||||
/datum/surgery/advanced/robot_brainwashing
|
||||
name = "Reprogramming"
|
||||
desc = "A surgical procedure which hardcodes a directive into the patient's logic subroutines, making it their absolute priority. It can be purged using a mindshield implant."
|
||||
possible_locs = list(BODY_ZONE_HEAD)
|
||||
requires_bodypart_type = BODYPART_ROBOTIC
|
||||
steps = list(/datum/surgery_step/mechanic_open,
|
||||
/datum/surgery_step/open_hatch,
|
||||
/datum/surgery_step/mechanic_unwrench,
|
||||
/datum/surgery_step/prepare_electronics,
|
||||
/datum/surgery_step/reprogram,
|
||||
/datum/surgery_step/mechanic_wrench,
|
||||
/datum/surgery_step/mechanic_close)
|
||||
|
||||
/datum/surgery/advanced/reprogramming/can_start(mob/user, mob/living/carbon/target, obj/item/tool)
|
||||
if(!..())
|
||||
return FALSE
|
||||
var/obj/item/organ/brain/B = target.getorganslot(ORGAN_SLOT_BRAIN)
|
||||
if(!B)
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/datum/surgery_step/reprogram
|
||||
name = "reprogram"
|
||||
implements = list(TOOL_MULTITOOL = 85, TOOL_HEMOSTAT = 50, TOOL_WIRECUTTER = 35, /obj/item/stack/packageWrap = 35, /obj/item/stack/cable_coil = 15, /obj/item/card/emag = 100)
|
||||
time = 200
|
||||
var/objective
|
||||
|
||||
/datum/surgery_step/reprogram/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
objective = stripped_input(user, "Choose the objective to imprint on your victim's posibrain.", "Reprogramming", null, MAX_MESSAGE_LEN)
|
||||
if(!objective)
|
||||
return -1
|
||||
display_results(user, target, "<span class='notice'>You begin to reprogram [target]...</span>",
|
||||
"[user] begins to fix [target]'s posibrain.",
|
||||
"[user] begins to perform surgery on [target]'s posibrain.")
|
||||
|
||||
/datum/surgery_step/reprogram/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
if(!target.mind)
|
||||
to_chat(user, "<span class='warning'>[target] doesn't respond to the reprogramming, as if [target.p_they()] lacked a mind...</span>")
|
||||
return FALSE
|
||||
if(HAS_TRAIT(target, TRAIT_MINDSHIELD))
|
||||
to_chat(user, "<span class='warning'>You hear a faint buzzing from a device inside [target]'s posibrain, and the programming is purged.</span>")
|
||||
return FALSE
|
||||
display_results(user, target, "<span class='notice'>You succeed in reprogramming [target].</span>",
|
||||
"[user] successfully fixes [target]'s posibrain!",
|
||||
"[user] completes the surgery on [target]'s posibrain.")
|
||||
to_chat(target, "<span class='userdanger'>A new directive fills your mind... you feel forced to obey it!</span>")
|
||||
brainwash(target, objective)
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] surgically synth-brainwashed [ADMIN_LOOKUPFLW(target)] with the objective '[objective]'.")
|
||||
log_game("[key_name(user)] surgically synth-brainwashed [key_name(target)] with the objective '[objective]'.")
|
||||
return TRUE
|
||||
|
||||
/datum/surgery_step/reprogram/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
if(target.getorganslot(ORGAN_SLOT_BRAIN))
|
||||
display_results(user, target, "<span class='warning'>You screw up, causing more damage!</span>",
|
||||
"<span class='warning'>[user] screws up, causing damage to the circuits!/span>",
|
||||
"[user] completes the surgery on [target]'s posibrain.")
|
||||
target.adjustOrganLoss(ORGAN_SLOT_BRAIN, 40)
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] suddenly notices that the posibrain [user.p_they()] [user.p_were()] working on is not there anymore.", "<span class='warning'>You suddenly notice that the posibrain you were working on is not there anymore.</span>")
|
||||
return FALSE
|
||||
@@ -3576,6 +3576,7 @@
|
||||
#include "code\modules\surgery\advanced\necrotic_revival.dm"
|
||||
#include "code\modules\surgery\advanced\pacification.dm"
|
||||
#include "code\modules\surgery\advanced\revival.dm"
|
||||
#include "code\modules\surgery\advanced\robot_brainwashing.dm"
|
||||
#include "code\modules\surgery\advanced\toxichealing.dm"
|
||||
#include "code\modules\surgery\advanced\viral_bonding.dm"
|
||||
#include "code\modules\surgery\advanced\bioware\bioware.dm"
|
||||
|
||||
Reference in New Issue
Block a user