mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
allows implanting TTVs into chest once again (#85335)
## About The Pull Request TTVs can be implanted into the chest again. They still function inside people, and can be detonated. ## Why It's Good For The Game TTVs were made bulky years ago so you couldn't have a backpack full of bombs. This also had the side effect of implanting bombs into people made impossible because any items with weight above normal can't be implanted You can still implant chembombs now so you should be able to do TTVs as well. Allows for cool hostage scenario RP. TTV implants were always meant to be part of the game  Codewise added a whitelist for heavy items in cavity implant ## Changelog 🆑 balance: TTV bombs can be implanted into people's chest once again /🆑
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
/datum/surgery_step/handle_cavity,
|
||||
/datum/surgery_step/close)
|
||||
|
||||
GLOBAL_LIST_INIT(heavy_cavity_implants, typecacheof(list(/obj/item/transfer_valve)))
|
||||
|
||||
//handle cavity
|
||||
/datum/surgery_step/handle_cavity
|
||||
name = "implant item"
|
||||
@@ -49,7 +51,7 @@
|
||||
/datum/surgery_step/handle_cavity/success(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery = FALSE)
|
||||
var/obj/item/bodypart/chest/target_chest = target.get_bodypart(BODY_ZONE_CHEST)
|
||||
if(tool)
|
||||
if(item_for_cavity || tool.w_class > WEIGHT_CLASS_NORMAL || HAS_TRAIT(tool, TRAIT_NODROP) || isorgan(tool))
|
||||
if(item_for_cavity || ((tool.w_class > WEIGHT_CLASS_NORMAL) && !is_type_in_typecache(tool, GLOB.heavy_cavity_implants)) || HAS_TRAIT(tool, TRAIT_NODROP) || isorgan(tool))
|
||||
to_chat(user, span_warning("You can't seem to fit [tool] in [target]'s [target_zone]!"))
|
||||
return FALSE
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user