Files
SkyratBot a3a7168881 [MIRROR] Freedom implant and Biodegrade works on knotted shoes (#26456)
* Freedom implant and Biodegrade works on knotted shoes (#81376)

## About The Pull Request

- Freedom Implant will un-knot knotted shoes.
- Biodegrade will melt knotted shoes.

## Why It's Good For The Game

Just a niche interaction idea I had. Knotted shoes are, obviously,
obstructing your movement so these two tools that aim to un-obstruct
your movement should do something about it, right?

Also it would be funny to see a Ling melt their own shoes. Biodegrade
prioritizes handcuffs over anything else so it shouldn't be of great
concern.

## Changelog

🆑 Melbert
add: Freedom Implants and Biodegrade can you free you of the shackles of
knotted shoes.
/🆑

* Freedom implant and Biodegrade works on knotted shoes

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2024-02-10 23:20:30 -05:00

66 lines
2.2 KiB
Plaintext

/obj/item/implant/freedom
name = "freedom implant"
desc = "Use this to escape from those evil Red Shirts."
icon_state = "freedom"
implant_color = "r"
uses = FREEDOM_IMPLANT_CHARGES
/obj/item/implant/freedom/implant(mob/living/target, mob/user, silent, force)
. = ..()
if(!.)
return FALSE
if(!iscarbon(target)) //This is pretty much useless for anyone else since they can't be cuffed
balloon_alert(user, "that would be a waste!")
return FALSE
return TRUE
/obj/item/implant/freedom/activate()
. = ..()
var/mob/living/carbon/carbon_imp_in = imp_in
if(!can_trigger(carbon_imp_in))
balloon_alert(carbon_imp_in, "no restraints!")
return
uses--
carbon_imp_in.uncuff()
var/obj/item/clothing/shoes/shoes = carbon_imp_in.shoes
if(istype(shoes) && shoes.tied == SHOES_KNOTTED)
shoes.adjust_laces(SHOES_TIED, carbon_imp_in)
if(!uses)
addtimer(CALLBACK(carbon_imp_in, TYPE_PROC_REF(/atom, balloon_alert), carbon_imp_in, "implant degraded!"), 1 SECONDS)
qdel(src)
/obj/item/implant/freedom/proc/can_trigger(mob/living/carbon/implanted_in)
if(implanted_in.handcuffed || implanted_in.legcuffed)
return TRUE
var/obj/item/clothing/shoes/shoes = implanted_in.shoes
if(istype(shoes) && shoes.tied == SHOES_KNOTTED)
return TRUE
return FALSE
/obj/item/implant/freedom/get_data()
return "<b>Implant Specifications:</b><BR> \
<b>Name:</b> Freedom Beacon<BR> \
<b>Life:</b> Optimum [initial(uses)] uses<BR> \
<b>Important Notes:</b> <font color='red'>Illegal</font><BR> \
<HR> \
<b>Implant Details:</b> <BR> \
<b>Function:</b> Transmits a specialized cluster of signals to override handcuff locking \
mechanisms. These signals will release any bindings on both the arms and legs.<BR> \
<b>Disclaimer:</b> Heavy-duty restraints such as straightjackets are deemed \"too complex\" to release from."
/obj/item/implanter/freedom
name = "implanter" // Skyrat edit , was implanter (freedom)
imp_type = /obj/item/implant/freedom
special_desc_requirement = EXAMINE_CHECK_SYNDICATE // Skyrat edit
special_desc = "A Syndicate implanter used for a freedom implant" // Skyrat edit
/obj/item/implantcase/freedom
name = "implant case - 'Freedom'"
desc = "A glass case containing a freedom implant."
imp_type = /obj/item/implant/freedom