Files
Bubberstation/code/game/objects/items/implants/implant_freedom.dm
MrMelbert 06a4d47945 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.
/🆑
2024-02-11 00:36:53 +01:00

64 lines
2.0 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 (freedom)"
imp_type = /obj/item/implant/freedom
/obj/item/implantcase/freedom
name = "implant case - 'Freedom'"
desc = "A glass case containing a freedom implant."
imp_type = /obj/item/implant/freedom