mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-20 05:37:54 +01:00
4f8e9f7ef8
* some more new to init * rigs * rigs * intellisense moment * telcoms and landmarks * fix that as well * some more minor things * re add missing message * fix trash eating...
70 lines
2.5 KiB
Plaintext
70 lines
2.5 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32
|
|
|
|
/obj/item/implant/freedom
|
|
name = "freedom implant"
|
|
desc = "Use this to escape from those evil Red Shirts."
|
|
implant_color = "r"
|
|
var/activation_emote = "chuckle"
|
|
var/uses = 1.0
|
|
|
|
|
|
/obj/item/implant/freedom/Initialize(mapload)
|
|
. = ..()
|
|
activation_emote = pick("blink", "blink_r", "eyebrow", "chuckle", "twitch", "frown", "nod", "blush", "giggle", "grin", "groan", "shrug", "smile", "pale", "sniff", "whimper", "wink")
|
|
uses = rand(1, 5)
|
|
|
|
|
|
/obj/item/implant/freedom/trigger(emote, mob/living/carbon/source as mob)
|
|
if (src.uses < 1)
|
|
return 0
|
|
|
|
if (emote == src.activation_emote)
|
|
src.uses--
|
|
to_chat(source, "You feel a faint click.")
|
|
if (source.handcuffed)
|
|
var/obj/item/W = source.handcuffed
|
|
source.handcuffed = null
|
|
if(source.buckled && source.buckled.buckle_require_restraints)
|
|
source.buckled.unbuckle_mob()
|
|
source.update_handcuffed()
|
|
if (source.client)
|
|
source.client.screen -= W
|
|
if (W)
|
|
W.loc = source.loc
|
|
dropped(source)
|
|
if (W)
|
|
W.layer = initial(W.layer)
|
|
if (source.legcuffed)
|
|
var/obj/item/W = source.legcuffed
|
|
source.legcuffed = null
|
|
source.update_inv_legcuffed()
|
|
if (source.client)
|
|
source.client.screen -= W
|
|
if (W)
|
|
W.loc = source.loc
|
|
dropped(source)
|
|
if (W)
|
|
W.layer = initial(W.layer)
|
|
return
|
|
|
|
/obj/item/implant/freedom/post_implant(mob/source)
|
|
source.mind.store_memory("Freedom implant can be activated by using the [src.activation_emote] emote, " + span_bold("say *[src.activation_emote] ") + "to attempt to activate.", 0, 0)
|
|
to_chat(source, "The implanted freedom implant can be activated by using the [src.activation_emote] emote, " + span_bold("say *[src.activation_emote]") + "to attempt to activate.")
|
|
|
|
/obj/item/implant/freedom/get_data()
|
|
var/dat = {"
|
|
"} + span_bold("Implant Specifications:") + {"<BR>
|
|
"} + span_bold("Name:") + {"Freedom Beacon<BR>
|
|
"} + span_bold("Life:") + {"optimum 5 uses<BR>
|
|
"} + span_bold("Important Notes:") + span_red("Illegal") + {"<BR>
|
|
<HR>
|
|
"} + span_bold("Implant Details:") + {"<BR>
|
|
"} + span_bold("Function:") + {"Transmits a specialized cluster of signals to override handcuff locking
|
|
mechanisms<BR>
|
|
"} + span_bold("Special Features:") + {"<BR>
|
|
"} + span_italics("Neuro-Scan") + {"- Analyzes certain shadow signals in the nervous system<BR>
|
|
"} + span_bold("Integrity:") + {"The battery is extremely weak and commonly after injection its
|
|
life can drive down to only 1 use.<HR>
|
|
No Implant Specifics"}
|
|
return dat
|