From c2d7fcffc58fc8b76c7cbb3e2939d64e0e29e213 Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Fri, 21 Jan 2022 16:45:04 -0800 Subject: [PATCH] Traitor Roboticists can now purchase the Springlock MODsuit Module from the uplink. (#64224) Lets them upgrade their suit to be much stronger, while coming at a risk, or place it in other suits to sabotage them. --- code/modules/mod/modules/modules_antag.dm | 27 +++++++++++++++++++++++ code/modules/uplink/uplink_items/job.dm | 12 ++++++++++ 2 files changed, 39 insertions(+) diff --git a/code/modules/mod/modules/modules_antag.dm b/code/modules/mod/modules/modules_antag.dm index c1e93709b65..9a24da8f0e6 100644 --- a/code/modules/mod/modules/modules_antag.dm +++ b/code/modules/mod/modules/modules_antag.dm @@ -230,3 +230,30 @@ /obj/item/mod/module/noslip/on_suit_deactivation() REMOVE_TRAIT(mod.wearer, TRAIT_NOSLIPWATER, MOD_TRAIT) + +/obj/item/mod/module/springlock/bite_of_87 + +/obj/item/mod/module/springlock/bite_of_87/Initialize(mapload) + . = ..() + var/obj/item/mod/module/dna_lock/the_dna_lock_behind_the_slaughter = /obj/item/mod/module/dna_lock + name = initial(the_dna_lock_behind_the_slaughter.name) + desc = initial(the_dna_lock_behind_the_slaughter.desc) + icon_state = initial(the_dna_lock_behind_the_slaughter.icon_state) + complexity = initial(the_dna_lock_behind_the_slaughter.complexity) + use_power_cost = initial(the_dna_lock_behind_the_slaughter.use_power_cost) + +/obj/item/mod/module/springlock/bite_of_87/on_install() + mod.activation_step_time *= 0.1 + +/obj/item/mod/module/springlock/bite_of_87/on_uninstall() + mod.activation_step_time *= 10 + +/obj/item/mod/module/springlock/bite_of_87/on_suit_activation() + ..() + if(SSevents.holidays && SSevents.holidays[APRIL_FOOLS] || prob(1)) + var/list/all_parts = mod.mod_parts.Copy() + mod + for(var/obj/item/part in all_parts) // turns the suit yellow + part.remove_atom_colour(WASHABLE_COLOUR_PRIORITY) + part.add_atom_colour("#b17f00", FIXED_COLOUR_PRIORITY) + mod.wearer.remove_atom_colour(WASHABLE_COLOUR_PRIORITY) // turns purple guy purple + mod.wearer.add_atom_colour("#704b96", FIXED_COLOUR_PRIORITY) diff --git a/code/modules/uplink/uplink_items/job.dm b/code/modules/uplink/uplink_items/job.dm index 9d44d57f3ca..aa2cfbb3e41 100644 --- a/code/modules/uplink/uplink_items/job.dm +++ b/code/modules/uplink/uplink_items/job.dm @@ -155,6 +155,18 @@ restricted_roles = list(JOB_MEDICAL_DOCTOR, JOB_CHIEF_MEDICAL_OFFICER, JOB_ROBOTICIST) cost = 5 +/datum/uplink_item/role_restricted/springlock_module + name = "Heavily Modified Springlock MODsuit Module" + desc = "A module that spans the entire size of the MOD unit, sitting under the outer shell. \ + This mechanical exoskeleton pushes out of the way when the user enters and it helps in booting \ + up, but was taken out of modern suits because of the springlock's tendency to \"snap\" back \ + into place when exposed to humidity. You know what it's like to have an entire exoskeleton enter you? \ + This version of the module has been modified to allow for near instant activation of the MODsuit. \ + Useful for quickly getting your MODsuit on/off, or for taking care of a target via a tragic accident." + item = /obj/item/mod/module/springlock/bite_of_87 + restricted_roles = list(JOB_ROBOTICIST, JOB_RESEARCH_DIRECTOR) + cost = 2 + /datum/uplink_item/role_restricted/reverse_revolver name = "Reverse Revolver" desc = "A revolver that always fires at its user. \"Accidentally\" drop your weapon, then watch as the greedy corporate pigs blow their own brains all over the wall. \